9194b9b67dc5eea45e63e80f608a328a4ae39e67
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5
6         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7         Use "neg %eax".
8
9         * time/mktime.c: Update copyright years.
10
11 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12
13         mktime: merge comment-quoting-style change from gnulib
14         * time/mktime.c: Quote 'like this' in comments.
15         The GNU coding standards suggest that we no longer quote `like this',
16         as "`" and "'" are typically rendered asymmetrically nowadays.
17         The typical gnulib style is to quote 'like this' when quoting
18         code, and "like this" when quoting English.
19
20         * time/mktime.c (compile-command): Add "-I.".
21
22         mktime: merge mktime-internal.h change from gnulib
23         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
24
25         mktime: merge time_r change from gnulib
26         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
27
28         mktime: merge DEBUG change from gnulib
29         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
30         case system <time.h> has a #define.
31
32         mktime: merge <sys/types.h> change from gnulib
33         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
34         since <time.t> is now guaranteed to define time_t.
35
36         mktime: merge HAVE_CONFIG_H change from gnulib
37         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
38
39 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
40
41         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
42         Use "neg %eax".
43
44         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
45         __rlim_t cast.
46         (struct rusage): Use anonymous union to pad each field to
47         __syscall_slong_t.
48
49 2012-05-21  David S. Miller  <davem@davemloft.net>
50
51         * Makefules (o-iterator): Remove .s cases.
52         (compile-command.s): Delete.
53         (COMPILE.s): Delete.
54         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
55
56 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
57
58         * configure.in (libc_cv_predef_stack_protector): Only consider
59         "foobar" and "__stack_chk_fail" lines in libc_undefs.
60         * configure: Regenerated.
61
62 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
63
64         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
65         New macro.  Use R*LP on int and pointer.
66         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
67         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
68         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
69         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
70
71         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
72         [__WORDSIZE_TIME64_COMPAT32] instead of
73         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
74         (struct utmp): Likewise.
75         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
76         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
77         Renamed to ...
78         (__WORDSIZE_TIME64_COMPAT32): This.
79         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
80         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
81         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
82         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
83         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
84         (__WORDSIZE_TIME64_COMPAT32): New macro.
85
86 2012-05-21  Andreas Jaeger  <aj@suse.de>
87
88         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
89         only if [SHARED]. Add prototype for __wcschr_ia32.
90
91 2012-05-21  Roland McGrath  <roland@hack.frob.com>
92
93         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
94         of %rbp unmolested in the jmp_buf while mangling the low bits.
95         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
96         unmolested high bits of %rbp while demangling the low bits.
97         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
98
99 2012-05-21  Andreas Jaeger  <aj@suse.de>
100
101         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
102         * sunrpc/svc_simple.c: Use it for registerrpc.
103         * sunrpc/xcrypt.c: Use it for passwd2des.
104
105         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
106
107 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
108
109         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
110         Don't define if [__SYSCALL_WORDSIZE != 32].
111         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
112         New macro.
113
114 2012-05-21  Bruno Haible  <bruno@clisp.org>
115             Andreas Jaeger  <aj@suse.de>
116
117         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
118         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
119         inptr and inend for must_buffer_ch.
120         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
121         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
122         * stdio-common/Makefile (tests): Remove bug15.
123         (bug15-ENV): Remove macro.
124         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
125         anymore.
126
127 2012-05-19  Andreas Jaeger  <aj@suse.de>
128             Roland McGrath  <roland@hack.frob.com>
129
130         * manual/contrib.texi: Completely rewritten. It contains now an
131         alphabetical list of contributors and their contributions.
132
133 2012-05-21  Richard Henderson  <rth@twiddle.net>
134
135         * misc/getauxval.c (__getauxval): Use unsigned long int.
136         * misc/sys/auxv.h: Include <sys/cdefs.h>.
137         (getauxval): Use unsigned long int.
138
139 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
140
141         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
142
143 2012-05-21  Roland McGrath  <roland@hack.frob.com>
144
145         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
146         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
147         __alignof__ (long double).
148
149 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
150
151         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
152
153 2012-05-20  Richard Henderson  <rth@twiddle.net>
154
155         * misc/getauxval.c: New file.
156         * misc/sys/auxv.h: New file.
157         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
158         (routines): Add getauxval.
159         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
160         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
161         * elf/dl-sysdep.c (_dl_auxv): Remove.
162         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
163         * elf/dl-support.c (_dl_auxv): New variable.
164         (_dl_aux_init): Initialize it.
165         * manual/startup.texi (Auxiliary Vector): New node.
166         * sysdeps/generic/bits/hwcap.h: New file.
167         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
168         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
169         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
170         * sysdeps/sparc/sysdep.h: ... here.  Include it.
171         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
172         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
174         Update.
175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
176         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
177         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
178         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
179         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
180         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
181         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
182         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
183
184 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
185
186         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
187
188 2012-05-19  David S. Miller  <davem@davemloft.net>
189
190         * sysdeps/sparc/fpu/libm-test-ulps: Update.
191
192 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
193
194         [BZ #14123]
195         * math/s_ccosh.c: Include <float.h>
196         (__ccosh): Avoid internal overflow calculating sinh and cosh
197         values before multiplying by sin and cos values.
198         * math/s_ccoshf.c: Likewise.
199         * math/s_ccoshl.c: Likewise.
200         * math/s_csin.c: Likewise.
201         * math/s_csinf.c: Likewise.
202         * math/s_csinl.c: Likewise.
203         * math/s_csinh.c: Likewise.
204         * math/s_csinhf.c: Likewise.
205         * math/s_csinhl.c: Likewise.
206         * math/libm-test.inc (ccos_test): Add more tests.
207         (ccosh_test): Likewise.
208         (csin_test): Likewise.
209         (csinh_test): Likewise.
210         * sysdeps/i386/fpu/libm-test-ulps: Update.
211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
212
213 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
214
215         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
216         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
217
218         * sysdeps/x86_64/x32/_itoa.h: Add comment.
219
220 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
221
222         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
223         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
224         * sysdeps/powerpc/soft-fp/Versions: Likewise.
225         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
226         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
227         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
228         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
229         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
230         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
231         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
232         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
233         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
234         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
235         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
236         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
237         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
238         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
239         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
240         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
241         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
242         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
243         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
244         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
245         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
246         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
247         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
248         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
249         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
250         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
251         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
252         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
253
254 2012-05-18  Andreas Jaeger  <aj@suse.de>
255
256         * csu/.gitignore: Delete.
257
258 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
259
260         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
261         (timex): Use __syscall_slong_t.
262
263 2012-05-18  Andreas Jaeger  <aj@suse.de>
264             Carlos O'Donell  <carlos_odonell@mentor.com>
265
266         * manual/install.texi (Configuring and compiling): Update
267         description about files modified in the source directory.
268         * INSTALL: Regenerated.
269
270 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
271
272         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
273         value.  Use "or" to set return value to -1.
274         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
275         negate return value.
276
277 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
278
279         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
280         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
281         failure if the compiler has Graphite support disabled.
282         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
283         Likewise.
284         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
285         CFLAGS-memmove.c): Likewise.
286         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
287         Likewise.
288
289 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
290
291         * sysdeps/x86_64/x32/_itoa.h: New file.
292
293         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
294         getdents system call only if kernel and user dirents have the
295         same d_ino and d_off.
296
297         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
298         LLONG_MAX != LONG_MAX.
299         (_itoa_word): Use _ITOA_WORD_TYPE on value.
300         (_fitoa_word): Likewise.
301
302         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
303         years.
304         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
305         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
306         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
307
308         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
309         include <bits/wordsize.h>.  Check __x86_64__ instead of
310         __WORDSIZE.
311         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
312         if __x86_64__ is defined.  Use anonymous union on fpstate.
313
314         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
315         anonymous union.
316
317 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
318
319         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
320         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
321         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
322         Refer to _rtld_local_ro instead of _rtld_global_ro.
323         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
324         Likewise.
325         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
326         Likewise.
327         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
328         Likewise.
329         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
330         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
331         of _rtld_global, and rtld_progname instead of _dl_argv[0].
332
333         * sysdeps/powerpc/powerpc32/dl-machine.c
334         (__elf_machine_runtime_setup) [PROF]: Don't reference
335         _dl_prof_resolve.
336
337 2012-05-18  Andreas Jaeger  <aj@suse.de>
338
339         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
340         function only available for GCCs before 3.4 since GCC 3.4
341         introduced a builtin.
342         (lrint): Likewise.
343         (llrintf): Likewise.
344         (llrint): Likewise.
345         (fmaxf): Likewise.
346         (fmax): Likewise.
347         (fminf): Likewise.
348         (fmin): Likewise.
349         (rint): Likewise.
350         (rintf): Likewise.
351         (nearbyint): Likewise.
352         (nearbyintf): Likewise.
353         (ceil): Likewise.
354         (ceilf): Likewise.
355         (floor): Likewise.
356         (floorf): Likewise.
357
358 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
359
360         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
361         on both fields and cast pointer to __syscall_ulong_t.
362
363         * bits/types.h (__fsword_t): New type.
364         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
365         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
366         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
367         (__FSWORD_T_TYPE): Likewise.
368         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
369         (__FSWORD_T_TYPE): Likewise.
370         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
371         (__FSWORD_T_TYPE): Likewise.
372         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
373         (__FSWORD_T_TYPE): Likewise.
374         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
375         __SWORD_TYPE with __fsword_t.
376         (statfs64): Likewise.
377
378 2012-05-17  David S. Miller  <davem@davemloft.net>
379
380         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
381
382 2012-05-17  Andreas Jaeger  <aj@suse.de>
383
384         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
385         warning.
386
387 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
388
389         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
390
391 2012-05-17  Andreas Jaeger  <aj@suse.de>
392
393         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
394         when it is used.
395
396 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
397
398         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
399
400 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
401
402         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
403         * sysdeps/x86_64/tst-mallocalign1.c: New file.
404
405 2012-05-17  Andreas Jaeger  <aj@suse.de>
406             Carlos O'Donell  <carlos_odonell@mentor.com>
407
408         [BZ #14059]
409         * sysdeps/x86_64/multiarch/init-arch.h
410         (bit_YMM_Usable): Rename to...
411         (bit_AVX_Usable): ... this.
412         (bit_FMA4_Usable): New macro.
413         (bit_XMM_state): New macro.
414         (bit_YMM_state): New macro.
415         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
416         [__ASSEMBLER__] (index_AVX_Usable): ... this.
417         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
418         (CPUID_OSXSAVE): New macro.
419         (CPUID_AVX): New macro.
420         (CPUID_FMA4): New macro.
421         (index_YMM_Usable): Rename to...
422         (index_AVX_Usable): ... this.
423         (HAS_AVX): Use HAS_ARCH_FEATURE.
424         (HAS_FMA4): Likewise.
425         (HAS_YMM_USABLE): Remove.
426         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
427         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
428         are present.
429         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
430         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
431         * sysdeps/x86_64/multiarch/Makefile: Likewise.
432         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
433         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
434
435 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
436
437         * math/libm-test.c: Support platforms without multiple rounding modes.
438         * math/bug-nextafter.c: Support platforms without FP exceptions.
439         * math/bug-nexttoward.c: Likewise.
440         * math/test-fenv.c: Likewise.
441         * math/test-misc.c: Likewise.
442         * stdlib/bug-getcontext.c: Likewise.
443
444 2012-05-17  Andreas Jaeger  <aj@suse.de>
445
446         * manual/examples/search.c (critter_cmp): Change signature to
447         avoid warnings.
448         * manual/string.texi (Collation Functions): Likewise.
449
450 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
451
452         * bits/types.h: Fold copyright years.
453         * bits/typesizes.h: Likewise.
454         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
455         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
456         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
457         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
458         * time/time.h: Likewise.
459
460 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
461
462         [BZ #208]
463         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
464         in instead of returning them.  Return void.
465         (__libc_mallinfo): Accumulate over all arenas.
466         (__malloc_stats): Adjust for change in int_mallinfo interface.
467
468 2012-05-16  Roland McGrath  <roland@hack.frob.com>
469
470         [BZ #10375]
471         * configure.in (NM): Add AC_CHECK_TOOL for it.
472         (libc_extra_cflags): New substituted variable.
473         Check for -fstack-protector being used implicitly.
474         * configure: Regenerated.
475         * config.make.in (config-extra-cflags): New variable,
476         gets @libc_extra_cflags@.
477         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
478
479         [BZ #10375]
480         * configure.in: Check for _FORTIFY_SOURCE being predefined.
481         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
482         * configure: Regenerated.
483         * config.make.in (CPPUNDEFS): New substituted variable.
484         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
485         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
486         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
487
488 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
489
490         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
491         (mq_attr): Use __syscall_slong_t.
492
493 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
494
495         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
496         Check __x86_64__ instead of __WORDSIZE.
497         (_STAT_VER_LINUX): Likewise.
498         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
499         __syscall_ulong_t and __syscall_slong_t.
500         (stat64): Likewise.
501
502 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
503
504         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
505
506 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
507
508         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
509
510 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
511
512         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
513         __syscall_ulong_t.
514
515         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
516         include <bits/wordsize.h>.  Check __x86_64__ instead of
517         __WORDSIZE.
518         (greg_t): Use "__extension__ long long int" if __x86_64__ is
519         defined.
520         (mcontext_t): Replace "unsigned long" with "unsigned long long".
521
522         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
523         include <bits/wordsize.h>.  Check __x86_64__ instead of
524         __WORDSIZE.
525         (user_regs_struct): Use "__extension__ unsigned long long"
526         instead of "unsigned long" if __x86_64__ is defined.
527         (user): Likewise.  Pad after pointer field if __ILP32__ is
528         defined.
529
530 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
531
532         * configure.in (makeinfo): Require version 4.5 or later.  Allow
533         versions 5 to 9.
534         * configure: Regenerated.
535         * manual/install.texi (texinfo): Increase version requirement to
536         4.5 or later.
537         * INSTALL: Regenerated.
538
539         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
540
541 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
542
543         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
544
545         * sysdeps/x86_64/x32/ffs.c: New file.
546
547         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
548         __syscall_ulong_t.
549         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
550         defined.  Use __syscall_ulong_t.
551         (shminfo): Use __syscall_ulong_t.
552         (shm_info): Likewise.
553
554         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
555         __syscall_ulong_t.
556
557         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
558         <bits/wordsize.h>.
559         (msgqnum_t): Use __syscall_ulong_t.
560         (msglen_t): Likewise.
561         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
562         __syscall_ulong_t.
563
564         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
565         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
566
567         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
568
569         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
570         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
571
572         * sysvipc/sys/msg.h (msgbuf): Replace long int with
573         __syscall_slong_t.
574
575         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
576         include <bits/wordsize.h>.  Check __x86_64__ instead of
577         __WORDSIZE.
578
579         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
580         "unsigned long long int" if __x86_64__ is defined.
581         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
582
583         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
584         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
585         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
586
587         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
588         <stdint.h>.
589         (GET_PC): Cast to uintptr_t first.
590         (GET_FRAME): Likewise.
591         (GET_STACK): Likewise.
592
593         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
594         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
595         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
596         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
597         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
598         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
599         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
600         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
601         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
602         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
603         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
604         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
605         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
606         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
607         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
608         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
609         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
610         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
611         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
612         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
613         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
614         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
615         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
616         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
617         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
618         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
619         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
620         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
621         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
622
623 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
624
625         * Makerules (+depfiles): Also collect depfiles from .oS in
626         $(extra-objs).
627         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
628         .oS, $(libnldbl-routines)).
629
630         * Makerules (native-compile-mkdep-flags): Define.
631         * sunrpc/Makefile (extra-objs): Add $(addprefix
632         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
633         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
634         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
635         calling $(make-target-directory).
636
637 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
638
639         * bits/types.h (__snseconds_t): Removed.
640         * time/time.h (struct timespec): Replace __snseconds_t with
641         __syscall_slong_t.
642         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
643         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
644         Likewise.
645         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
646         (__SNSECONDS_T_TYPE): Likewise.
647         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
648         (__SNSECONDS_T_TYPE): Likewise.
649         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
650         (__SNSECONDS_T_TYPE): Likewise.
651
652 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
653
654         * sysdeps/mach/hurd/bits/typesizes.h
655         (__SYSCALL_SLONG_TYPE): New macro.
656         (__SYSCALL_ULONG_TYPE): Likewise.
657
658 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
659
660         * bits/types.h (__syscall_slong_t): New type.
661         (__syscall_ulong_t): Likewise.
662
663         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
664         (__SYSCALL_ULONG_TYPE): Likewise.
665         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
666         (__SYSCALL_SLONG_TYPE): Likewise.
667         (__SYSCALL_ULONG_TYPE): Likewise.
668         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
669         (__SYSCALL_SLONG_TYPE): Likewise.
670         (__SYSCALL_ULONG_TYPE): Likewise.
671         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
672         (__SYSCALL_SLONG_TYPE): Likewise.
673         (__SYSCALL_ULONG_TYPE): Likewise.
674
675 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
676
677         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
678         Add sigaltstack-offsets.sym.
679         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
680         <sigaltstack-offsets.h>.
681         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
682         longjmp_msg pointer.
683         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
684         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
685         signal stack.
686         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
687
688 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
689
690         * elf/stackguard-macros.h: Remove file.
691         * sysdeps/generic/stackguard-macros.h: New file.
692         * sysdeps/i386/stackguard-macros.h: Likewise.
693         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
694         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
695         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
696         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
697         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
698         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
699         * sysdeps/x86_64/stackguard-macros.h: Likewise.
700         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
701         <elf/stackguard-macros.h>.
702
703         [BZ #14109]
704         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
705         __aligned__ in attribute.
706         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
707         (gregset_t): Likewise.
708
709 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
710
711         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
712         * sysdeps/x86_64/64/Implies-after: Here.  New file.
713         * sysdeps/x86_64/x32/Implies-after: New file.
714
715 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
716
717         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
718         and access return value for _dl_profile_fixup.  Use R10_LP to
719         load frame size.
720
721 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
722
723         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
724
725 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
726
727         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
728         * sysdeps/x86_64/x32/sysdep.h: New file.
729
730 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
731
732         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
733         * sysdeps/x86_64/setjmp.S: Likewise.
734
735 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
736
737         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
738         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
739         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
740         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
741         remove unused global constant.
742
743 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
744
745         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
746         include of <not-cancel.h>.
747
748 2012-05-15  Roland McGrath  <roland@hack.frob.com>
749
750         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
751
752 2012-05-15  Jeff Law  <law@redhat.com>
753             Andreas Jaeger  <aj@suse.de>
754
755         [BZ #13594]
756         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
757         out from...
758         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
759         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
760         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
761         code changing __hst_map_handle.map.
762
763 2012-05-15  Roland McGrath  <roland@hack.frob.com>
764
765         * configure.in (sysnames): Look for Implies-before and Implies-after
766         files.
767         * configure: Regenerated.
768
769 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
770
771         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
772         8-byte data alignment with LP_SIZE alignment.
773
774 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
775
776         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
777         into R10_LP.
778
779 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
780
781         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
782
783 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
784
785         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
786         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
787         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
788         Likewise.
789         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
790
791 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
792
793         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
794         (stackinfo_sub_sp): Likewise.
795
796 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
797
798         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
799         RAX_LP.
800
801 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
802
803         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
804         into R*_LP.
805
806 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
807
808         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
809         sizes into R*_LP.
810
811 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
812
813         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
814
815 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
816
817         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
818         into R11_LP and load __x86_64_shared_cache_size_half into
819         R8_LP.
820
821 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
822
823         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
824         R8_LP.
825
826 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
827
828         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
829         logb for POWER7.
830         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
831         logbf for POWER7.
832         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
833         logbl for POWER7.
834         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
835         powerpc32/power7/fpu/s_logb.c via #include.
836         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
837         powerpc32/power7/fpu/s_logbf.c via #include.
838         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
839         powerpc32/power7/fpu/s_logbl.c via #include.
840
841 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
842
843         * README.libm: Remove file.
844
845 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
846
847         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
848         count for x32.  Use R*_LP and omit operand-size suffix.
849
850 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
851
852         * shlib-versions: Move x86_64-.*-linux.* entries to ...
853         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
854         * sysdeps/x86_64/x32/shlib-versions: New file.
855
856 2012-05-14  Roland McGrath  <roland@hack.frob.com>
857
858         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
859         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
860         Use _dl_fatal_printf instead.
861
862 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
863
864         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
865         set if not set by the user.  Do not allow for being unset.
866         * sysdeps/unix/sysv/linux/configure: Regenerated.
867
868 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
869
870         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
871         the `q' suffix from lea and replace .quad with ASM_ADDR.
872
873 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
874
875         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
876         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
877         instead of $17.
878         (PTR_DEMANGLE): Likewise.
879
880 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
881
882         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
883         (LP_OP): Likewise.
884         (ASM_ADDR): Likewise.
885         (RAX_LP): Likewise.
886         (RBP_LP): Likewise.
887         (RBX_LP): Likewise.
888         (RCX_LP): Likewise.
889         (RDI_LP): Likewise.
890         (RSI_LP): Likewise.
891         (RSP_LP): Likewise.
892         (R8_LP): Likewise.
893         (R9_LP): Likewise.
894         (R10_LP): Likewise.
895         (R10_LP): Likewise.
896         (R11_LP): Likewise.
897         (R12_LP): Likewise.
898         (R13_LP): Likewise.
899         (R14_LP): Likewise.
900         (R15_LP): Likewise.
901
902 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
903
904         * sysdeps/x86_64/x32/dl-machine.h: New file.
905
906 2012-05-14  Andreas Jaeger  <aj@suse.de>
907
908         * manual/Makefile (subdir): Remove export of subdir.
909         (all): Remove target.
910         (.PHONY): Remove all from list.
911         (mkinstalldirs): Remove.
912         (.PHONY): Remove installdirs from list.
913         ($(inst_infodir)/libc.info): Use make-target-directory.
914         (installdirs): Remove.
915         (subdir_%): Remove.
916         (glibc-targets): Remove.
917         (lib): Remove.
918         (stubs): Remove.
919         ($(objpfx)stubs ../po/manual.pot): Remove.
920         ($(objpfx)stamp%): Remove.
921         (make-target-directory): Remove.
922         (subdir_install): Remove.
923         (routines): Remove.
924         (aux): Remove.
925         (sources): Remove.
926         (objects): Remove.
927         (headers): Remove.
928
929         [BZ #13750]
930         * manual/.gitignore: Remove, it's not needed anymore.
931         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
932         all files in it.
933         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
934         directory.
935         (texis): Renamed to $(objpfx)texis.
936         (texis-path): New, contains path to generated files.
937         (chapters.%): Use texis-path for complete path, add extra argument
938         libc-texinfo.sh.
939         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
940         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
941         (summary,texi, stamp-summary): Use complete path of
942         files. Generate files in build dir.
943         (dir-add.texi): Build in build dir.
944         (libm-err.texi,stamp-libm-err): Likewise.
945         (version.texi, stamp-version): Likewise.
946         (.%c.texi): Likewise.
947         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
948         (mostlyclean): Remove target.
949         (realclean): Remove target.
950         (generated): Add new variable with contents from mostlyclean and
951         realclean, remove entries duplicated in common-mostlyclean, add
952         stamp-libm-err and stamp-version.
953         (generated-dirs): Add libc directory.
954         ($(inst_infodir)/libc.info): Install files from build dir.
955
956         * manual/install.texi (Configuring and compiling): Adjust since
957         the info files are not part of the tar ball anymore.
958
959 2012-05-14  Andreas Jaeger  <aj@suse.de>
960
961         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
962         variable.
963
964 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
965
966         [BZ #13717]
967         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
968         to 2.2.0 where earlier.
969         * sysdeps/unix/sysv/linux/configure: Regenerated.
970         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
971         Remove conditional code.
972         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
973         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
974         Remove conditional code.
975         [!__NR_lchown]: Likewise.
976         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
977         [__NR_lchown]: Likewise.
978         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
979         comment referencing __ASSUME_LCHOWN_SYSCALL.
980         * sysdeps/unix/sysv/linux/i386/sigaction.c
981         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
982         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
983         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
984         Remove conditional code.
985         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
986         (__protocol_available): Remove #if 0 code.
987         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
988         conditional code.
989         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
990         * sysdeps/unix/sysv/linux/kernel-features.h
991         (__ASSUME_GETCWD_SYSCALL): Don't define.
992         (__ASSUME_REALTIME_SIGNALS): Likewise.
993         (__ASSUME_PREAD_SYSCALL): Likewise.
994         (__ASSUME_PWRITE_SYSCALL): Likewise.
995         (__ASSUME_POLL_SYSCALL): Likewise.
996         (__ASSUME_LCHOWN_SYSCALL): Likewise.
997         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
998         non-SPARC.
999         (__ASSUME_SIOCGIFNAME): Don't define.
1000         (__ASSUME_MSG_NOSIGNAL): Likewise.
1001         (__ASSUME_SENDFILE): Define unconditionally.
1002         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
1003         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
1004         conditional code.
1005         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
1006         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
1007         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1008         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1009         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
1010         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1011         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
1013         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1014         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
1016         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1017         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
1019         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1020         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
1022         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1023         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
1025         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1026         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
1028         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1029         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
1031         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1032         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
1034         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1035         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1036         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
1037         Remove conditional code.
1038         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1039         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1040         Remove conditional code.
1041         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1042         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
1043         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
1044         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1045         Remove conditional code.
1046         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1047         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
1048         Remove conditional code.
1049         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1050         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
1051         Remove conditional code.
1052         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1053         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1054         Remove conditional code.
1055         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1056         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1057         Remove conditional code.
1058         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1059         * sysdeps/unix/sysv/linux/sh/pwrite64.c
1060         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1061         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1062         * sysdeps/unix/sysv/linux/sigaction.c
1063         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1064         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1065         * sysdeps/unix/sysv/linux/sigpending.c
1066         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1067         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1068         * sysdeps/unix/sysv/linux/sigprocmask.c
1069         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1070         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1071         * sysdeps/unix/sysv/linux/sigsuspend.c
1072         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1073         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1074         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1075         (__libc_missing_rt_sigs): Remove.
1076         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
1077         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
1078         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
1079         Remove conditional code.
1080         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
1081         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
1082         return 1.
1083         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
1084         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
1085         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
1086         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
1087
1088 2012-05-14  Andreas Jaeger  <aj@suse.de>
1089
1090         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
1091         it's not used in glibc.
1092         (__coshm1): Likewise.
1093         (__acosh1p): Likewise.
1094         (__sgn): Likewise.
1095
1096         * manual/string.texi (Copying and Concatenation): Add missing
1097         variable in concat example.
1098         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
1099
1100 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1101
1102         [BZ #14103]
1103         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
1104         __builtin_clzl with __builtin_clzll.
1105
1106 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1107
1108         [BZ #14104]
1109         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
1110         libc_freeres_ptr.
1111
1112 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1113
1114         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
1115         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
1116         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
1117         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
1118
1119 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
1120
1121         * NEWS: Update ia64 info.
1122
1123 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
1124
1125         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
1126         used as bcopy.
1127
1128 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1129
1130         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
1131         * sysdeps/unix/syscalls.list (dup3): Likewise.
1132         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
1133         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
1134
1135 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1136
1137         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
1138         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
1139
1140 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1141
1142         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
1143         thread pointer.
1144         (TLS_IE): Use mov/add instead of movq/addq to load thread
1145         pointer.
1146         (TLS_GD_PREFIX): New.
1147         (TLS_GD): Use it.
1148
1149 2012-05-11  David S. Miller  <davem@davemloft.net>
1150
1151         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
1152         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
1153         (_FPU_SETCW): Likewise.
1154
1155 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1156
1157         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
1158         is 32-byte aligned.
1159
1160 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
1161
1162         [BZ #11837]
1163         * iconvdata/gb18030.c: Update tables.
1164         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
1165         characters specially.
1166         (BODY for TO_LOOP): Add encoding of missing ranges.
1167
1168 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
1169
1170         [BZ #13673]
1171         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
1172         * sysdeps/mach/hurd/dup3.c: Likewise.
1173         * sysdeps/mach/hurd/readlinkat.c: Likewise.
1174         * sysdeps/powerpc/memmove.c:: Likewise.
1175
1176 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1177
1178         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
1179         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
1180
1181 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1182
1183         * elf/elf.h (R_X86_64_RELATIVE64): New.
1184         (R_X86_64_NUM): Updated.
1185         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1186         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
1187         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
1188         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
1189         tst-quad1pie tst-quad2pie
1190         (modules-names): Add tst-quadmod1 tst-quadmod2.
1191         ($(objpfx)tst-quad1): New dependency.
1192         ($(objpfx)tst-quad2): Likewise.
1193         ($(objpfx)tst-quad1pie): Likewise.
1194         ($(objpfx)tst-quad2pie): Likewise.
1195         * sysdeps/x86_64/tst-quad1.c: New file.
1196         * sysdeps/x86_64/tst-quad1pie.c: New file.
1197         * sysdeps/x86_64/tst-quad2.c: Likewise.
1198         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
1199         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
1200         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
1201         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
1202         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
1203
1204 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1205
1206         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
1207         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
1208         * streams/stropts.h (t_scalar_t): Define type.
1209
1210         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
1211         (_PATH_PRESERVE): Set to "/var/lib".
1212         (_PATH_RWHODIR): Set to "/var/spool/rwho".
1213
1214         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
1215         instead of int.
1216
1217         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
1218         if __dir_mkfile succeeded.
1219
1220         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
1221         checking for _hurd_dtablesize.  Unlock it right after having
1222         finished _hurd_dtable allocation.
1223
1224 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1225
1226         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
1227         * sysdeps/mach/hurd/configure: Regenerated.
1228         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
1229         special-casing to...
1230         * sysdeps/gnu/configure.in: ... this new file.
1231         * sysdeps/unix/sysv/linux/configure: Regenerated.
1232         * sysdeps/gnu/configure: New generated file.
1233
1234         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
1235         for Linux: use nsec instead of usec, as well as:
1236         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
1237         members of type struct timespec.
1238         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
1239         New macros.
1240         (struct stat64): Likewise.
1241         (_STATBUF_ST_NSEC): New macro.
1242         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
1243
1244         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1245         __strtoul_internal rather than strtoul.
1246
1247 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1248
1249         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
1250         and reject them.
1251
1252 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1253
1254         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
1255         which preserves existing values.
1256         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
1257
1258 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1259
1260         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
1261         TIMEOUT values.  Return EINVAL for NFDS values either negative or
1262         greater than FD_SETSIZE.
1263
1264 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1265
1266         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
1267         allocated, call __vm_protect to finish enabling the existing space, and
1268         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
1269         allocate the remainder.
1270
1271 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1272
1273         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
1274         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
1275
1276 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1277
1278         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
1279         sysdeps/mach/hurd/readlink.c.
1280
1281         * posix/tst-sysconf.c (posix_options): Only use
1282         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
1283         _POSIX_SYNCHRONIZED_IO when they are defined
1284         * sysdeps/mach/hurd/bits/posix_opt.h:
1285         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
1286         (_XOPEN_REALTIME): Undefine macro.
1287         (_XOPEN_REALTIME_THREADS): Undefine macro.
1288         (_XOPEN_SHM): Undefine macro.
1289         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
1290         macro to -1.
1291         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
1292         macro to -1.
1293         (_POSIX_ASYNC_IO): Undefine macro.
1294         (_POSIX_PRIORITIZED_IO): Undefine macro.
1295         (_POSIX_SPIN_LOCKS): Define macro to -1.
1296
1297         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
1298         SA_NODEFER, SA_RESETHAND.
1299         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
1300         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
1301         F_DUPFD_CLOEXEC.
1302
1303 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1304
1305         * elf/Makefile (pldd-modules): Define unconditionally.
1306
1307 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1308
1309         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
1310
1311 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1312
1313         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1314         Return ENOENT when name is empty.
1315         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
1316
1317 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1318
1319         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
1320
1321         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
1322
1323 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1324
1325         Fix mlock in all cases except non-readable pages.
1326         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
1327         instead of VM_PROT_ALL as parameter to __vm_wire function.
1328
1329         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
1330         (__mkdir): When path is `/', just fail with EEXIST.
1331         * sysdeps/mach/hurd/mkdirat.c: Likewise.
1332
1333 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1334
1335         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
1336         <sys/uio.h> (for writev).
1337         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
1338         and <sys/param.h> (for MIN).
1339
1340 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1341
1342         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
1343         REQUESTED_TIME.  Properly set the remaining time and return EINTR
1344         if interrupted.
1345
1346 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1347
1348         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
1349         Depend on against $(link-rpcuserlibs).
1350
1351 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1352
1353         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
1354         (__libc_stack_end): Do not use attribute_relro.
1355         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
1356         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
1357         to libthread-provided value.
1358         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
1359         attribute_relro.
1360
1361 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1362
1363         [BZ #3748]
1364         * bits/libc-lock.h (__libc_once_get): New macro.
1365         * sysdeps/mach/bits/libc-lock.h: Likewise.
1366         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1367         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
1368         instead of using implementation details.
1369
1370         * libio/fileops.c: Unconditionally include <kernel-features.h>.
1371         * libio/freopen.c: Likewise.
1372         * libio/freopen64.c: Likewise.
1373         * misc/syslog.c: Likewise.
1374         * nscd/connections.c: Likewise.
1375         * nscd/netgroupcache.c: Likewise.
1376         * sysdeps/posix/getcwd.c: Likewise.
1377
1378 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1379
1380         * math/w_ilogbf.c: Add #include <limits.h>.
1381
1382 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1383
1384         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
1385         path instead of returning without unlocking.
1386
1387         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
1388         immediate-write ioctls.
1389         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
1390
1391 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1392
1393         * sysdeps/mach/hurd/i386/init-first.c (init): Use
1394         __builtin_frame_address instead of making assumptions about the
1395         location of the return address relative to DATA.  Force early load of
1396         the return address.
1397         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
1398         __builtin_frame_address.
1399
1400         dup3 for GNU Hurd.
1401         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
1402         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
1403         implement dup3 and do some further code clean-ups.
1404         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
1405         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
1406
1407 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1408
1409         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
1410
1411         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
1412         HURD_CRITICAL_END around holding _hurd_dtable_lock.
1413         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
1414         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
1415         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
1416         d->port.lock.
1417
1418         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
1419         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
1420         when handler == SIG_ERR, not when handler != SIG_ERR.
1421
1422 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1423
1424         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
1425         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
1426         definitions.
1427
1428         accept4 for GNU Hurd.
1429         * include/sys/socket.h (__libc_accept4): New prototype.
1430         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
1431         to implement __libc_accept4.
1432         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
1433         __libc_accept4.
1434         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
1435
1436         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
1437         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
1438         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
1439         signal-defines.sym.
1440
1441 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1442
1443         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
1444
1445 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1446
1447         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
1448         assertion on O_CLOEXEC flag.
1449         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
1450         * hurd/intern-fd.c: Likewise.
1451         * hurd/port2fd.c: Likewise.
1452
1453 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1454
1455         [BZ #3906]
1456         * bits/in.h (IPV6_PKTINFO): Define new macro.
1457         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
1458
1459 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1460
1461         [BZ #13954]
1462         [BZ #13955]
1463         [BZ #13956]
1464         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
1465         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1466         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
1467         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1468         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1469         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1470         * math/libm-test.inc (logb_test) : Additional logb tests.
1471
1472 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
1473             Andreas Jaeger  <aj@suse.de>
1474
1475         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
1476         * configure: Regenerated.
1477         * config.h.in (LINK_OBSOLETE_RPC): New macro.
1478         * config.make.in (link-obsolete-rpc): New substituted variable.
1479         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
1480         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
1481         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1482         (shared-only-routines): Don't set it under [link-obsolete-rpc],
1483         so that libc.a contains the symbols.
1484         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1485         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
1486         * sunrpc/auth_none.c: Likewise.
1487         * sunrpc/auth_unix.c: Likewise.
1488         * sunrpc/authdes_prot.c: Likewise.
1489         * sunrpc/authuxprot.c: Likewise.
1490         * sunrpc/clnt_gen.c: Likewise.
1491         * sunrpc/clnt_perr.c: Likewise.
1492         * sunrpc/clnt_raw.c: Likewise.
1493         * sunrpc/clnt_simp.c: Likewise.
1494         * sunrpc/clnt_tcp.c: Likewise.
1495         * sunrpc/clnt_udp.c: Likewise.
1496         * sunrpc/clnt_unix.c: Likewise.
1497         * sunrpc/des_crypt.c: Likewise.
1498         * sunrpc/des_soft.c: Likewise.
1499         * sunrpc/get_myaddr.c: Likewise.
1500         * sunrpc/key_call.c: Likewise.
1501         * sunrpc/key_prot.c: Likewise.
1502         * sunrpc/netname.c: Likewise.
1503         * sunrpc/pm_getmaps.c: Likewise.
1504         * sunrpc/pm_getport.c: Likewise.
1505         * sunrpc/pmap_clnt.c: Likewise.
1506         * sunrpc/pmap_prot.c: Likewise.
1507         * sunrpc/pmap_prot2.c: Likewise.
1508         * sunrpc/pmap_rmt.c: Likewise.
1509         * sunrpc/publickey.c: Likewise.
1510         * sunrpc/rpc_cmsg.c: Likewise.
1511         * sunrpc/rpc_common.c: Likewise.
1512         * sunrpc/rpc_dtable.c: Likewise.
1513         * sunrpc/rpc_prot.c: Likewise.
1514         * sunrpc/rpc_thread.c: Likewise.
1515         * sunrpc/rtime.c: Likewise.
1516         * sunrpc/svc.c: Likewise.
1517         * sunrpc/svc_auth.c: Likewise.
1518         * sunrpc/svc_raw.c: Likewise.
1519         * sunrpc/svc_run.c: Likewise.
1520         * sunrpc/svc_tcp.c: Likewise.
1521         * sunrpc/svc_udp.c: Likewise.
1522         * sunrpc/svc_unix.c: Likewise.
1523         * sunrpc/svcauth_des.c: Likewise.
1524         * sunrpc/xcrypt.c: Likewise.
1525         * sunrpc/xdr.c: Likewise.
1526         * sunrpc/xdr_array.c: Likewise.
1527         * sunrpc/xdr_float.c: Likewise.
1528         * sunrpc/xdr_intXX_t.c: Likewise.
1529         * sunrpc/xdr_mem.c: Likewise.
1530         * sunrpc/xdr_rec.c: Likewise.
1531         * sunrpc/xdr_ref.c: Likewise.
1532         * sunrpc/xdr_sizeof.c: Likewise.
1533         * sunrpc/xdr_stdio.c: Likewise.
1534
1535 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1536
1537         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
1538         change.  Update copyright years.
1539
1540 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1541
1542         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
1543
1544 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
1545             Joseph Myers  <joseph@codesourcery.com>
1546             Paul Pluzhnikov  <ppluzhnikov@google.com>
1547
1548         [BZ #14012]
1549         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
1550         requiring rpcgen.
1551         [cross-compiling] (extra-libs): Likewise.
1552         [cross-compiling] (extra-libs-others): Likewise.
1553         [cross-compiling] (librpcsvc-routines): Likewise.
1554         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
1555         [cross-compiling] (omit-deps): Likewise.
1556         (sunrpc-CPPFLAGS): New variable.
1557         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
1558         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
1559         (cross-rpcgen-objs): New variable.
1560         (extra-objs): Append $(cross-rpcgen-objs).
1561         ($(cross-rpcgen-objs)): New rule.
1562         ($(objpfx)cross-rpcgen): Likewise.
1563         (rpcgen-cmd): Define to use $(built-program-file).  Expand
1564         comment.
1565         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
1566         ($(objpfx)x%.stmp): Likewise.
1567         * sunrpc/proto.h [IS_IN_build] (_): Define.
1568         [IS_IN_build] (_libc_intl_domainname): Likewise.
1569
1570 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1571
1572         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
1573         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
1574         and R_X86_64_TPOFF64.
1575
1576 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1577
1578         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
1579         sysdeps/unix/sysv/syscalls.list.
1580         (stime): Likewise.
1581         (utime): Likewise.
1582         * sysdeps/unix/sysv/syscalls.list: Remove file.
1583
1584 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1585
1586         [BZ #3440]
1587         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
1588         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
1589         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
1590         (__LC_IDENTIFICATION): Make these macros useful in #if
1591         expressions, as required by C99.
1592
1593 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
1594
1595         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
1596         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
1597         after this.
1598
1599 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1600
1601         * stdlib/longlong.h: Updated from GCC.
1602
1603 2012-05-09  Andreas Jaeger  <aj@suse.de>
1604
1605         * nscd/nscd.c (run_modes): Make named enum, reorder so that
1606         default is first entry.
1607         (run_mode): Set type.
1608         (main): Remove informal message about syslog.
1609         (options): Fix typo.
1610
1611         [BZ #14053]
1612         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
1613         to asm.
1614         (lrint): Likewise.
1615         (llrintf): Likewise.
1616         (llrint): Likewise.
1617         (rint): Likewise.
1618         (rintf): Likewise.
1619         (nearbyint): Likewise.
1620         (nearbyintf): Likewise.
1621
1622 2012-05-09  Andreas Jaeger  <aj@suse.de>
1623             Pedro Alves  <palves@redhat.com>
1624
1625         * nscd/nscd.c (run_mode): Use enum.
1626         (main): Cleanup coding style issue.
1627
1628 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
1629             Andreas Jaeger  <aj@suse.de>
1630
1631         * nscd/nscd.c (go_background): Replaced with...
1632         (run_mode): ... this.
1633         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
1634         (options): Add -F --foreground.
1635         (main): Implement it.
1636         (parse_opt): Parse it.
1637
1638 2012-05-09  Andreas Jaeger  <aj@suse.de>
1639
1640         [BZ #14083]
1641         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
1642         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
1643         -Wconversion warning.
1644         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
1645         Likewise.
1646
1647 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
1648
1649         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
1650         == 0.
1651         (LC_ALL): Use macro-int-constant.
1652         (LC_COLLATE): Likewise.
1653         (LC_CTYPE): Likewise.
1654         (LC_MESSAGES): Likewise.
1655         (LC_MONETARY): Likewise.
1656         (LC_NUMERIC): Likewise.
1657         (LC_TIME): Likewise.
1658         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
1659         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1660         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1661         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
1662         Specify type.
1663         [C99-based standards] (float_t): Expect type.
1664         [C99-based standards] (double_t): Expect type.
1665         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
1666         type.
1667         [C99-based standards] (HUGE_VALL): Likewise.
1668         [C99-based standards] (INFINITY): Likewise.
1669         [C99-based standards] (NAN): Likewise.
1670         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
1671         [C99-based standards] (FP_NAN): Likewise.
1672         [C99-based standards] (FP_NORMAL): Likewise.
1673         [C99-based standards] (FP_SUBNORMAL): Likewise.
1674         [C99-based standards] (FP_ZERO): Likewise.
1675         [C99-based standards] (FP_FAST_FMA): Use
1676         optional-macro-int-constant.  Specify type.  Require == 1.
1677         [C99-based standards] (FP_FAST_FMAF): Likewise.
1678         [C99-based standards] (FP_FAST_FMAL): Likewise.
1679         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
1680         [C99-based standards] (FP_ILOGBNAN): Likewise.
1681         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
1682         Specify type.
1683         [C99-based standards] (MATH_ERREXCEPT): Likewise.
1684         [C99-based standards] (math_errhandling): Specify type.
1685         [ISO99 || ISO11] (signgam): Do not allow.
1686         [non-C99-based standards] (copysignf): Do not allow.
1687         [non-C99-based standards] (exp2f): Likewise.
1688         [non-C99-based standards] (log2f): Likewise.
1689         [non-C99-based standards] (modff): Allow.
1690         [non-C99-based standards] (erff): Do not allow.
1691         [non-C99-based standards] (erfcf): Likewise.
1692         [non-C99-based standards] (gammaf): Likewise.
1693         [non-C99-based standards] (hypotf): Likewise.
1694         [non-C99-based standards] (j0f): Likewise.
1695         [non-C99-based standards] (j1f): Likewise.
1696         [non-C99-based standards] (jnf): Likewise.
1697         [non-C99-based standards] (lgammaf): Likewise.
1698         [non-C99-based standards] (tgammaf): Likewise.
1699         [non-C99-based standards] (y0f): Likewise.
1700         [non-C99-based standards] (y1f): Likewise.
1701         [non-C99-based standards] (ynf): Likewise.
1702         [non-C99-based standards] (isnanf): Likewise.
1703         [non-C99-based standards] (acoshf): Likewise.
1704         [non-C99-based standards] (asinhf): Likewise.
1705         [non-C99-based standards] (atanhf): Likewise.
1706         [non-C99-based standards] (cbrtf): Likewise.
1707         [non-C99-based standards] (expm1f): Likewise.
1708         [non-C99-based standards] (ilogbf): Likewise.
1709         [non-C99-based standards] (log1pf): Likewise.
1710         [non-C99-based standards] (logbf): Likewise.
1711         [non-C99-based standards] (nextafterf): Likewise.
1712         [non-C99-based standards] (remainderf): Likewise.
1713         [non-C99-based standards] (rintf): Likewise.
1714         [non-C99-based standards] (scalbf): Likewise.
1715         [non-C99-based standards] (copysignl): Likewise.
1716         [non-C99-based standards] (exp2l): Likewise.
1717         [non-C99-based standards] (log2l): Likewise.
1718         [non-C99-based standards] (modfl): Allow.
1719         [non-C99-based standards] (erfl): Do not allow.
1720         [non-C99-based standards] (erfcl): Likewise.
1721         [non-C99-based standards] (gammal): Likewise.
1722         [non-C99-based standards] (hypotl): Likewise.
1723         [non-C99-based standards] (j0l): Likewise.
1724         [non-C99-based standards] (j1l): Likewise.
1725         [non-C99-based standards] (jnl): Likewise.
1726         [non-C99-based standards] (lgammal): Likewise.
1727         [non-C99-based standards] (tgammal): Likewise.
1728         [non-C99-based standards] (y0l): Likewise.
1729         [non-C99-based standards] (y1l): Likewise.
1730         [non-C99-based standards] (ynl): Likewise.
1731         [non-C99-based standards] (isnanl): Likewise.
1732         [non-C99-based standards] (acoshl): Likewise.
1733         [non-C99-based standards] (asinhl): Likewise.
1734         [non-C99-based standards] (atanhl): Likewise.
1735         [non-C99-based standards] (cbrtl): Likewise.
1736         [non-C99-based standards] (expm1l): Likewise.
1737         [non-C99-based standards] (ilogbl): Likewise.
1738         [non-C99-based standards] (log1pl): Likewise.
1739         [non-C99-based standards] (logbl): Likewise.
1740         [non-C99-based standards] (nextafterl): Likewise.
1741         [non-C99-based standards] (remainderl): Likewise.
1742         [non-C99-based standards] (rintl): Likewise.
1743         [non-C99-based standards] (scalbl): Likewise.
1744         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1745         [non-C99-based standards] (FP_*): Do not allow.
1746         [C99-based standards] (FP_*): Change to
1747         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1748         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1749         allow.
1750         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
1751         (SIG_ERR): Likewise.
1752         [X/Open-based standards] (SIG_HOLD): Likewise.
1753         (SIG_IGN): Likewise.
1754         (SIGABRT): Use macro-int-constant.  Specify type.  Require
1755         positive value.
1756         (SIGFPE): Likewise.
1757         (SIGILL): Likewise.
1758         (SIGINT): Likewise.
1759         (SIGSEGV): Likewise.
1760         (SIGTER): Likewise.
1761         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
1762         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
1763         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
1764         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
1765         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
1766         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
1767         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
1768         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
1769         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
1770         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
1771         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
1772         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
1773         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
1774         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
1775         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
1776         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
1777         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
1778         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
1779         [X/Open-based standards] (SIGTRAP): Likewise.
1780         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
1781         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
1782         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
1783         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
1784         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1785         allow.
1786
1787 2012-05-08  Ian Wienand  <ianw@vmware.com>
1788
1789         [BZ #14080]
1790         * time/tzset.c (__tzset_parse_tz): Update default rules for
1791         daylight time changes in the Energy Policy Act of 2005.
1792
1793 2012-05-09  Andreas Jaeger  <aj@suse.de>
1794
1795         [BZ #13983]
1796         * elf/ldconfig.c (parse_conf): Change string to make clear that
1797         ldconfig only issued a warning if ld.so.conf does not exist.
1798
1799 2012-05-08  David S. Miller  <davem@davemloft.net>
1800
1801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
1802         movxtod instead of popping the value on the stack.
1803
1804         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1805
1806 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
1807
1808         * config.h.in: Add HAVE_ARM_PCS_VFP.
1809
1810 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
1811
1812         [BZ #13979]
1813         * include/features.h: Warn if user requests __FORTIFY_SOURCE
1814         checking but the checks are disabled for any reason.
1815
1816 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1817
1818         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
1819         and ELF64_R_TYPE with ELFW(R_TYPE).
1820
1821 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
1822
1823         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
1824         (ulimit): Likewise.
1825
1826         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
1827         (settimeofday): Likewise.
1828
1829 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
1830
1831         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
1832         a struct th_u2 inside the union, and move tu_block/tu_code into
1833         a new th_u3 union of tu_block/tu_code inside of that.  Move
1834         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
1835         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
1836         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
1837         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
1838         (th_stuff): Change to th_u1.tu_stuff.
1839         (th_data): Define.
1840         (th_msg): Change to th_u1.th_u2.tu_data.
1841
1842 2012-05-07  David S. Miller  <davem@davemloft.net>
1843
1844         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1845
1846         [BZ #14074]
1847         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
1848         (SETUP_PIC_REG): Use it.
1849         (SETUP_PIC_REG_LEAF): Use it.
1850
1851 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
1852
1853         [BZ #13885]
1854         [BZ #13923]
1855         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1856         USE_AS_EXPM1L.
1857         (EXPL_FINITE): Likewise.
1858         (FLDLOG): Likewise.
1859         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1860         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1861         e_expl.S.
1862         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1863         USE_AS_EXPM1L.
1864         (EXPL_FINITE): Likewise.
1865         (FLDLOG): Likewise.
1866         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1867         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1868         e_expl.S.
1869         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
1870         test of -max_value argument for long double.
1871         * sysdeps/i386/fpu/libm-test-ulps: Update.
1872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1873
1874 2012-05-06  David S. Miller  <davem@davemloft.net>
1875
1876         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
1877         quad soft-float symbols whose references which are compiler
1878         generated.
1879         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
1880
1881 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
1882
1883         [BZ #13884]
1884         [BZ #13914]
1885         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1886         USE_AS_EXP10L.
1887         (EXPL_FINITE): Likewise.
1888         (FLDLOG): Likewise.
1889         (c0): Likewise.
1890         (c1): Likewise.
1891         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1892         Adjust comments for base varying.
1893         (__expl_finite): Change alias to EXPL_FINITE.
1894         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
1895         e_expl.S.
1896         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
1897         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1898         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1899         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
1900         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1901         USE_AS_EXP10L.
1902         (EXPL_FINITE): Likewise.
1903         (FLDLOG): Likewise.
1904         (c0): Likewise.
1905         (c1): Likewise.
1906         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1907         Adjust comments for base varying.
1908         (__expl_finite): Change alias to EXPL_FINITE.
1909         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
1910         tests for bugs.
1911         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1912
1913         [BZ #14064]
1914         * math/libm-test.inc (check_float_internal): Correct ulp
1915         calculation for subnormal expected results.
1916
1917 2012-05-06  Andreas Jaeger  <aj@suse.de>
1918
1919         * Makeconfig (+math-flags): New, set to -frounding-math.
1920         (+cflags): Add +math-flags so that all of glibc gets compiled with
1921         it.
1922
1923         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
1924
1925 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
1926
1927         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
1928         Disable one test.
1929
1930         [BZ #13787]
1931         [BZ #13922]
1932         [BZ #14036]
1933         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
1934         (__ieee754_expl): Allow for and saturate large arguments.
1935         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
1936         (u_threshold): Likewise.
1937         (__exp): Call __ieee754_exp before checking for overflow and
1938         underflow.
1939         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
1940         (u_threshold): Likewise.
1941         (__expf): Call __ieee754_expf before checking for overflow and
1942         underflow.
1943         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
1944         (u_threshold): Likewise.
1945         (__expl): Call __ieee754_expl before checking for overflow and
1946         underflow.
1947         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
1948         (__ieee754_expl): Allow for and saturate large arguments.
1949         * math/libm-test.inc (exp_test): Add another test.  Do not allow
1950         missing overflow exception on overflow.
1951         (expm1_test): Do not allow missing overflow exception on overflow.
1952
1953         * sysdeps/i386/fpu/e_expl.c: Move to ...
1954         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
1955         rather than using inline asm.
1956         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
1957         * sysdeps/x86_64/fpu/e_expl.S: Copy from
1958         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
1959
1960         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
1961         (nice): Likewise.
1962         (poll): Likewise.
1963         (signal): Likewise.
1964         (time): Likewise.
1965         (times): Likewise.
1966
1967 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1968
1969         * sysdeps/unix/syscalls.list (adjtime): Add entry from
1970         sysdeps/unix/common/syscalls.list.
1971         (fchmod): Likewise.
1972         (fchown): Likewise.
1973         (ftruncate): Likewise.
1974         (getrusage): Likewise.
1975         (gettimeofday): Likewise.
1976         (setpgid): Likewise.
1977         (setregid): Likewise.
1978         (setreuid): Likewise.
1979         (sigaction): Likewise.
1980         (truncate): Likewise.
1981         (vhangup): Likewise.
1982         * sysdeps/unix/common/syscalls.list: Remove file.
1983         * sysdeps/unix/bsd/Implies: Don't include unix/common.
1984         * sysdeps/unix/sysv/linux/Implies: Likewise.
1985
1986 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1987
1988         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
1989         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
1990         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
1991         Moved to ...
1992         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
1993         Here.
1994         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
1995         to ...
1996         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
1997         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
1998         to ...
1999         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
2000         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
2001         to ...
2002         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
2003         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
2004         to ...
2005         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
2006         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
2007         to ...
2008         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
2009         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
2010         to ...
2011         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
2012         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
2013         to ...
2014         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
2015         Here.
2016         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
2017         to ...
2018         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
2019         Here.
2020         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
2021         to ...
2022         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
2023         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
2024         Moved to ...
2025         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
2026         Here.
2027         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
2028         to ...
2029         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
2030
2031 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2032
2033         * sysdeps/unix/common/bits/dirent.h: Remove file.
2034         * sysdeps/unix/common/bits/fcntl.h: Likewise.
2035
2036         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
2037         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
2038         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
2039         * sysdeps/unix/bsd/isatty.c: Likewise.
2040         * sysdeps/unix/bsd/tcdrain.c: Likewise.
2041         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
2042         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
2043
2044 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2045
2046         [BZ #13563]
2047         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
2048         long double comparison inaccuracies.
2049         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
2050         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2051
2052 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
2053
2054         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
2055         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
2056
2057 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2058
2059         [BZ #14049]
2060         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
2061         nonzero digits before rounding a hex value.
2062         * stdlib/tst-strtod.c (tests): Add another test.
2063
2064 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2065
2066         * sysdeps/s390/fpu/libm-test-ulps: Update.
2067
2068 2012-05-03  Andreas Jaeger  <aj@suse.de>
2069
2070         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
2071         does not get optimized out.
2072         (malloc_opt_barrier): New.
2073
2074 2012-05-03  Andreas Jaeger  <aj@suse.de>
2075             Roland McGrath  <roland@hack.frob.com>
2076
2077         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
2078         intermediate file deletion.
2079         (generated): Add .symlist files.
2080
2081 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
2082
2083         [BZ #13775]
2084         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
2085         Redirect under this condition.
2086         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2087         [__USE_GNU] (__dprintf_chk): Not under this condition.
2088         [__USE_GNU] (__vdprintf_chk): Likewise.
2089         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
2090         under this condition.
2091         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2092         [__USE_XOPEN2K8] (dprintf): Define under this condition.
2093         [__USE_XOPEN2K8] (vdprintf): Likewise.
2094         [__USE_GNU] (__dprintf_chk): Not under this condition.
2095         [__USE_GNU] (__vdprintf_chk): Likewise.
2096         [__USE_GNU] (dprintf): Likewise.
2097         [__USE_GNU] (vdprintf): Likewise.
2098
2099 2012-05-03  Roland McGrath  <roland@hack.frob.com>
2100
2101         * elf/Makefile (common-generated): Set this instead of generated for
2102         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
2103         $(all-built-dso)-derived lists.
2104
2105 2012-05-03  Andreas Jaeger  <aj@suse.de>
2106
2107         * sysdeps/i386/fpu/libm-test-ulps: Update.
2108
2109         * FAQ: Removed.
2110         * FAQ.in: Likewise.
2111         * scripts/gen-FAQ.pl: Likewise.
2112         * manual/install.texi (Installation): Point to online location of
2113         FAQ.
2114         * Makefile (files-for-dist): Remove FAQ.
2115         (FAQ): Remove.
2116
2117 2012-05-02  Allan McRae  <allan@archlinux.org>
2118
2119         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
2120         (LDFLAGS-reldepmod5.so): Likewise.
2121         (LDFLAGS-reldep6mod1.so): Likewise.
2122         (LDFLAGS-reldep6mod4.so): Likewise.
2123         (LDFLAGS-reldep8mod3.so): Likewise.
2124         (LDFLAGS-unload4mod1.so): Likewise.
2125         (LDFLAGS-unload4mod2.so): Likewise.
2126         (LDFLAGS-tst-initorder): Likewise.
2127         (LDFLAGS-tst-initordera2.so): Likewise.
2128         (LDFLAGS-tst-initordera3.so): Likewise.
2129         (LDFLAGS-tst-initordera4.so): Likewise.
2130         (LDFLAGS-tst-initorderb2.so): Likewise.
2131         (LDFLAGS-noload): Likewise.
2132         (LDFLAGS-next): Likewise.
2133         (LDFLAGS-order2mod1.so): Likewise.
2134         (LDFLAGS-order2mod2.so): Likewise.
2135         (LDFLAGS-tst-initorder2): Likewise.
2136         (LDFLAGS-tst-initorder2a.so): Likewise.
2137         (LDFLAGS-tst-initorder2b.so): Likewise.
2138         (LDFLAGS-tst-initorder2c.so): Likewise.
2139         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
2140
2141 2012-05-02  David S. Miller  <davem@davemloft.net>
2142
2143         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2144
2145 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
2146
2147         [BZ #14055]
2148         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
2149
2150 2012-05-02  Andreas Jaeger  <aj@suse.de>
2151
2152         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
2153         since we manipulate rounding mode.
2154         (CPPFLAGS-test-idouble.c): Likewise.
2155         (CPPFLAGS-test-ifloat.c): Likewise.
2156         (CFLAGS-test-ldouble.c): Likewise.
2157         (CFLAGS-test-double.c): Likewise.
2158         (CFLAGS-test-float.c): Likewise.
2159         (CFLAGS-test-misc.c): Likewise.
2160         (CFLAGS-test-test-fenv.c): Likewise.
2161
2162 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2163
2164         [BZ #2550]
2165         [BZ #2570]
2166         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
2167         comparisons to determine direction to adjust input.
2168
2169 2012-05-01  Roland McGrath  <roland@hack.frob.com>
2170
2171         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
2172         output to the target.
2173
2174         * scripts/localplt.awk: New file.
2175         * elf/Makefile ($(objpfx)check-localplt): Target removed.
2176         (check-localplt-CFLAGS): Variable removed.
2177         ($(all-built-dso:=.jmprel)): New static pattern rule.
2178         (generated): Add those targets.
2179         (localplt-built-dso): New variable.
2180         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
2181
2182         * elf/check-localplt.c: File removed.
2183
2184         * scripts/check-execstack.awk: New file.
2185         * elf/Makefile ($(objpfx)check-execstack): Target removed.
2186         (check-execstack-CFLAGS): Variable removed.
2187         ($(objpfx)check-execstack.h): Target removed.
2188         ($(objpfx)execstack-default): New target.
2189         (generated): Add that instead of check-execstack.h.
2190         ($(all-built-dso:=.phdr)): New static pattern rule.
2191         (generated): Add those targets.
2192         * elf/check-execstack.c: File removed.
2193
2194         * scripts/check-textrel.awk: New file.
2195         * elf/Makefile ($(objpfx)check-textrel): Target removed.
2196         (check-textrel-CFLAGS): Variable removed.
2197         (all-built-dso): Use := to define.o
2198         ($(all-built-dso:=.dyn)): New static pattern rule.
2199         (generated): Add those targets.
2200         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
2201         * config.make.in (READELF): New substituted variable.
2202         * elf/check-textrel.c: File removed.
2203
2204 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2205
2206         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2207         allow.
2208         * conform/data/ctype.h-data [C99-based standards] (isblank):
2209         Expect function.
2210         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
2211         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
2212         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2213         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
2214         Specify type.  Require positive value.
2215         (EILSEQ): Likewise.
2216         (ERANGE): Likewise.
2217         [ISO || POSIX] (EILSEQ): Do not expect.
2218         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
2219         Specify type.  Require positive value.
2220         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
2221         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
2222         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
2223         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
2224         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
2225         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
2226         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
2227         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
2228         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
2229         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
2230         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
2231         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
2232         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
2233         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
2234         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
2235         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
2236         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
2237         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
2238         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
2239         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
2240         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
2241         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
2242         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
2243         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
2244         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
2245         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
2246         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
2247         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
2248         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
2249         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
2250         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
2251         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
2252         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
2253         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
2254         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
2255         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
2256         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
2257         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
2258         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
2259         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
2260         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
2261         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
2262         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
2263         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
2264         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
2265         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
2266         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
2267         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
2268         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
2269         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
2270         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
2271         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
2272         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
2273         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
2274         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
2275         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
2276         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
2277         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
2278         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
2279         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
2280         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
2281         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
2282         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
2283         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
2284         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
2285         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
2286         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
2287         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
2288         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
2289         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
2290         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
2291         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
2292         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
2293         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
2294         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
2295         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
2296         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
2297         Require >= 2.
2298         (FLT_ROUNDS): Expect as macro, not constant.
2299         (FLT_MANT_DIG): Use macro-int-constant.
2300         (DBL_MANT_DIG): Likewise.
2301         (LDBL_MANT_DIG): Likewise.
2302         (FLT_DIG): Likewise.
2303         (DBL_DIG): Likewise.
2304         (LDBL_DIG): Likewise.
2305         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
2306         (DBL_MIN_EXP): Likewise.
2307         (LDBL_MIN_EXP): Likewise.
2308         (FLT_MAX_EXP): Use macro-int-constant.
2309         (DBL_MAX_EXP): Likewise.
2310         (LDBL_MAX_EXP): Likewise.
2311         (FLT_MAX_10_EXP): Likewise.
2312         (DBL_MAX_10_EXP): Likewise.
2313         (LDBL_MAX_10_EXP): Likewise.
2314         (FLT_MAX): Use macro-constant.
2315         (DBL_MAX): Likewise.
2316         (LDBL_MAX): Likewise.
2317         (FLT_EPSILON): Use macro-constant.  Give upper bound.
2318         (DBL_EPSILON): Likewise.
2319         (LDBL_EPSILON): Likewise.
2320         (FLT_MIN): Likewise.
2321         (DBL_MIN): Likewise.
2322         (LDBL_MIN): Likewise.
2323         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
2324         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
2325         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
2326         [ISO11] (FLT_HAS_SUBNORM): Likewise.
2327         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
2328         [ISO11] (DBL_DECIMAL_DIG): Likewise.
2329         [ISO11] (FLT_DECIMAL_DIG): Likewise.
2330         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
2331         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
2332         [ISO11] (FLT_TRUE_MIN): Likewise.
2333         [ISO11] (LDBL_TRUE_MIN): Likewise.
2334         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2335         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
2336         (SCHAR_MIN): Use macro-int-constant.  Specify type.
2337         (SCHAR_MAX): Likewise.
2338         (UCHAR_MAX): Likewise.
2339         (CHAR_MIN): Likewise.
2340         (CHAR_MAX): Likewise.
2341         (MB_LEN_MAX): Use macro-int-constant.
2342         (SHRT_MIN): Use macro-int-constant.  Specify type.
2343         (SHRT_MAX): Likewise.
2344         (USHRT_MAX): Likewise.
2345         (INT_MAX): Likewise.
2346         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
2347         bound negative.
2348         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2349         bound with "U".
2350         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2351         bound with "L".
2352         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
2353         bound negative.  Suffix upper bound with "L".
2354         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2355         bound with "UL".
2356         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
2357         Specify type.
2358         [C99-based standards] (LLONG_MAX): Likewise.
2359         [C99-based standards] (ULLONG_MAX): Likewise.
2360         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
2361         == 0.
2362         [ISO11] (max_align_t): Require type.
2363         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2364
2365         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
2366         from $CFLAGS, without defining away __attribute__ calls.
2367         (checknamespace): Use $CFLAGS_namespace.
2368
2369         * conform/conformtest.pl (@keywords): Only include C99 keywords
2370         for standards based on C99 or C11.
2371
2372         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
2373         Disable tests.
2374         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
2375         UNIX98]: Likewise.
2376
2377         * conform/conformtest.pl: Handle "macro-int-constant" and test for
2378         usability of symbols in #if.
2379
2380         * conform/conformtest.pl: If macro or constant types start
2381         "promoted:", expect the symbol to be of the following type
2382         promoted by the integer promotions.
2383
2384         * conform/conformtest.pl: Parse all "constant" and "macro" lines
2385         in one place.  Also handle "macro-constant".
2386
2387         * conform/conformtest.pl: Only accept expected macro values with
2388         "==".  Parse all "macro" lines in one place.
2389         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
2390
2391         * conform/conformtest.pl: Handle braced types on "constant" lines
2392         instead of handling "typed-constant".
2393         * conform/data/signal.h-data: Use "constant" instead of
2394         "typed-constant".
2395
2396         * conform/conformtest.pl: Handle "optional-" at start of lines in
2397         one place rather than duplicating several cases.  Handle each
2398         format of "macro" line with initial "optional-".
2399
2400         * conform/conformtest.pl: Only accept expected constant or
2401         optional-constant values with "==".  Parse all "constant" lines in
2402         one place.  Parse all "optional-constant" lines in one place.
2403         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
2404         * conform/data/fmtmsg.h-data: Likewise.
2405         * conform/data/netinet/in.h-data: Likewise.
2406         * conform/data/tar.h-data: Likewise.
2407         * conform/data/limits.h-data: Use "==" form on "constant" and
2408         "optional-constant" lines.
2409
2410         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
2411         Use -std=c99 for XOPEN2K.
2412         (@knownproblems): Remove.
2413         (newtoken): Don't check %isknown.
2414
2415         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
2416         Do not expect macro.
2417         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
2418         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
2419         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
2420         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
2421         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
2422         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
2423         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
2424         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
2425         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
2426         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
2427         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
2428         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
2429         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
2430         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
2431         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
2432         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
2433         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
2434         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
2435         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
2436         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
2437         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
2438         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
2439         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
2440         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
2441         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
2442         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
2443         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
2444         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
2445         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
2446         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
2447         [XPG3] (acosh): Likewise.
2448         [XPG3] (asinh): Likewise.
2449         [XPG3] (atanh): Likewise.
2450         [XPG3] (cbrt): Likewise.
2451         [XPG3] (expm1): Likewise.
2452         [XPG3] (ilogb): Likewise.
2453         [XPG3] (log1p): Likewise.
2454         [XPG3] (logb): Likewise.
2455         [XPG3] (nextafter): Likewise.
2456         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
2457         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
2458         [XPG3] (remainder): Likewise.
2459         [XPG3] (rint): Likewise.
2460         [XPG3 || XPG4 || UNIX98] (round): Likewise.
2461         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
2462         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
2463         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
2464         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
2465         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
2466         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
2467         [UNIX98 || XOPEN2K] (scalb): Expect.
2468         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
2469         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
2470         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
2471         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
2472         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
2473         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
2474         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
2475         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
2476         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
2477         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
2478         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
2479         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
2480         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
2481         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
2482         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
2483         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
2484         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
2485         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
2486         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
2487         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
2488         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
2489         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
2490         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
2491         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
2492         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
2493         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
2494         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
2495         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
2496         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
2497         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
2498         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
2499         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
2500         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
2501         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
2502         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
2503         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
2504         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
2505         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
2506         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
2507         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
2508         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
2509         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
2510         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
2511         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
2512         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
2513         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
2514         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
2515         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
2516         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
2517         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
2518         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
2519         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
2520         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
2521         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
2522         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
2523         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
2524         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
2525         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
2526         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
2527         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
2528         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
2529         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
2530         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
2531         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
2532         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
2533         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
2534         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
2535         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
2536         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
2537         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
2538         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
2539         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
2540         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
2541         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
2542         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
2543         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
2544         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
2545         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
2546         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
2547         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
2548         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
2549         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
2550         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
2551         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
2552         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
2553         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
2554         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
2555         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
2556         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
2557         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
2558         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
2559         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
2560         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
2561         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
2562         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
2563         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
2564         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
2565         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
2566         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
2567         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
2568         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
2569         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
2570         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
2571         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
2572         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
2573         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
2574         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
2575         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
2576         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
2577         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
2578         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
2579         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
2580         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
2581         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
2582         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
2583         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
2584         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
2585         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
2586         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
2587         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
2588         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
2589         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
2590         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
2591         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
2592         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
2593         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
2594         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
2595         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
2596         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
2597         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
2598         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
2599         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
2600         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
2601         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
2602         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
2603         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
2604         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
2605
2606         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
2607         _XOPEN_SOURCE_EXTENDED for XPG4.
2608
2609         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
2610
2611         * Makeconfig (localtime): Remove variable.
2612         (inst_localtime-file): Likewise.
2613
2614 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2615
2616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
2617         Update.
2618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2619         Update.
2620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
2621         Update.
2622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2623         Update.
2624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
2625         Update.
2626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
2627         Update.
2628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2629         Update.
2630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
2631         Update.
2632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2633         Update.
2634
2635 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2636
2637         [BZ #2550]
2638         [BZ #2570]
2639         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
2640         comparisons to determine direction to adjust input.
2641         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2642         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
2643         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
2644         Likewise.
2645         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
2646         Likewise.
2647         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2648         Likewise.
2649         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2650         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
2651         Likewise.
2652         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
2653         Likewise.
2654         * math/libm-test.inc (nexttoward_test): Add more tests.
2655
2656 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2657
2658         [BZ #14040]
2659         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
2660         in version GLIBC_2.1, not GLIBC_2.0.
2661         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
2662         Likewise.
2663
2664 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
2665
2666         [BZ #13942]
2667         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
2668         (1 - x) * (1 + x).
2669         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2670         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
2671         * math/libm-test.inc (acos_test): Add more tests.
2672         (asin_test): Likewise.
2673         * sysdeps/i386/fpu/libm-test-ulps: Update.
2674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2675
2676         [BZ #14034]
2677         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
2678         of square root.
2679         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
2680         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2681         * math/libm-test.inc (acos_test_tonearest): New function.
2682         (acos_test_towardzero): Likewise.
2683         (acos_test_downward): Likewise.
2684         (acos_test_upward): Likewise.
2685         (asin_test_tonearest): Likewise.
2686         (asin_test_towardzero): Likewise.
2687         (asin_test_downward): Likewise.
2688         (asin_test_upward): Likewise.
2689         (main): Call the new functions.
2690         * sysdeps/i386/fpu/libm-test-ulps: Update.
2691         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2692
2693         [BZ #13884]
2694         [BZ #13924]
2695         * math/e_exp10.c: Include <float.h>.
2696         (__ieee754_exp10): Handle underflow here rather than multiplying
2697         large negative argument by M_LN10.
2698         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
2699         of __ieee754_expf.
2700         * math/e_exp10l.c: Include <float.h>.
2701         (__ieee754_exp10l): Handle underflow here rather than multiplying
2702         large negative argument by M_LN10l.
2703         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
2704         spurious overflow exception on underflow.
2705
2706 2012-04-29  Marek Polacek  <polacek@redhat.com>
2707
2708         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
2709         (__fortify_function): New macro.
2710         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
2711         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
2712         __extern_always_inline.
2713         * libio/bits/stdio2.h: Likewise.
2714         * libio/bits/stdio.h: Likewise.
2715         * string/string.h: Likewise.
2716         * string/bits/string3.h: Likewise.
2717         * include/stdio.h: Likewise.
2718         * stdlib/bits/stdlib.h: Likewise.
2719         * stdlib/stdlib.h: Likewise.
2720         * rt/bits/mqueue2.h: Likewise.
2721         * rt/mqueue.h: Likewise.
2722         * posix/bits/unistd.h: Likewise.
2723         * posix/unistd.h: Likewise.
2724         * io/bits/poll2.h: Likewise.
2725         * io/bits/fcntl2.h: Likewise.
2726         * io/fcntl.h: Likewise.
2727         * io/sys/poll.h: Likewise.
2728         * misc/bits/syslog.h: Likewise.
2729         * misc/bits/syslog-ldbl.h: Likewise.
2730         * misc/sys/syslog.h: Likewise.
2731         * socket/bits/socket2.h: Likewise.
2732         * socket/sys/socket.h: Likewise.
2733         * debug/tst-chk1.c: Likewise.
2734         * wcsmbs/bits/wchar2.h: Likewise.
2735         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2736         * wcsmbs/wchar.h: Likewise.
2737
2738 2012-04-29  Andreas Jaeger  <aj@suse.de>
2739
2740         * Makerules (tests): Remove enable-check-abi protection.
2741         (check-abi-warn): Remove.
2742         (check-abi-%): Remove check-abi-warn usage.
2743
2744         * configure.in: Remove check-abi configure option.
2745         * configure: Regenerated.
2746         * config.make.in (enable-check-abi): Remove.
2747
2748 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2749
2750         [BZ #14033]
2751         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
2752         double functions to double *_finite functions.
2753
2754         [BZ #13941]
2755         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
2756         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
2757         LDBL_MIN_EXP.
2758         * stdio-common/Makefile (tests): Add tst-sprintf3.
2759         * stdio-common/tst-sprintf3.c: New file.
2760
2761         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
2762         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
2763
2764 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2765
2766         * conform/conformtest.pl: Remove duplicate typed-constant
2767         handling.
2768
2769 2012-04-28  David S. Miller  <davem@davemloft.net>
2770
2771         * Makerules (%.abilist): Add vpath on sysdep_dirs.
2772         (check-abi-%): Remove AWK script prerequisite and explicit
2773         abilist directory.
2774         (check-abi): Rewrite to just diff the symlist with the abilist.
2775         (config-tls, config-abi-config): Delete, no longer used.
2776         (update-abi-%): Remove AWK script and explicit abilist directory.
2777         (update-abi): Rewrite to simply compare and conditionally copy the
2778         symlist and the sysdep abilist file.  Remove update-abi-config
2779         checks.
2780         * abilist/ld.abilist: Remove.
2781         * abilist/libBrokenLocale.abilist: Remove.
2782         * abilist/libanl.abilist: Remove.
2783         * abilist/libcrypt.abilist: Remove.
2784         * abilist/libdl.abilist: Remove.
2785         * abilist/librt.abilist: Remove.
2786         * abilist/libthread_db.abilist: Remove.
2787         * abilist/libutil.abilist: Remove.
2788         * scripts/extract-abilist.awk: Remove.
2789         * scripts/merge-abilist.awk: Remove.
2790         * sysdeps/generic/libcidn.abilist: New file.
2791         * sysdeps/generic/libnss_compat.abilist: New file.
2792         * sysdeps/generic/libnss_db.abilist: New file.
2793         * sysdeps/generic/libnss_dns.abilist: New file.
2794         * sysdeps/generic/libnss_files.abilist: New file.
2795         * sysdeps/generic/libnss_hesiod.abilist: New file.
2796         * sysdeps/generic/libnss_nis.abilist: New file.
2797         * sysdeps/generic/libnss_nisplus.abilist: New file.
2798         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
2799         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
2800         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
2801         file.
2802         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
2803         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
2804         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
2805         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
2806         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
2807         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
2808         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
2809         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
2810         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
2811         file.
2812         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
2813         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
2814         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
2815         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
2816         file.
2817         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
2818         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
2819         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
2820         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
2821         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
2822         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
2823         file.
2824         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
2825         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
2826         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
2827         file.
2828         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
2829         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
2830         New file.
2831         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
2832         New file.
2833         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
2834         New file.
2835         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
2836         New file.
2837         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
2838         New file.
2839         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
2840         New file.
2841         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
2842         New file.
2843         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
2844         New file.
2845         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
2846         New file.
2847         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
2848         New file.
2849         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
2850         New file.
2851         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
2852         New file.
2853         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
2854         New file.
2855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
2856         file.
2857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
2858         New file.
2859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
2860         New file.
2861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
2862         file.
2863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
2864         New file.
2865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
2866         New file.
2867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
2868         file.
2869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
2870         New file.
2871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2872         New file.
2873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
2874         New file.
2875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
2876         New file.
2877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
2878         New file.
2879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
2880         New file.
2881         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
2882         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
2883         file.
2884         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
2885         New file.
2886         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
2887         file.
2888         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
2889         file.
2890         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
2891         file.
2892         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
2893         file.
2894         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
2895         file.
2896         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2897         New file.
2898         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
2899         file.
2900         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
2901         file.
2902         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
2903         New file.
2904         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
2905         file.
2906         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
2907         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
2908         file.
2909         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
2910         New file.
2911         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
2912         file.
2913         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
2914         file.
2915         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
2916         file.
2917         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
2918         file.
2919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
2920         file.
2921         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2922         New file.
2923         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
2924         file.
2925         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
2926         file.
2927         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
2928         New file.
2929         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
2930         file.
2931         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2932         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
2933         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
2934         file.
2935         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
2936         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
2937         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
2938         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
2939         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
2940         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
2941         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
2942         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
2943         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
2944         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
2945         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
2946         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
2947         file.
2948         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
2949         New file.
2950         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
2951         file.
2952         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
2953         file.
2954         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
2955         file.
2956         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
2957         file.
2958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
2959         file.
2960         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2961         New file.
2962         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
2963         New file.
2964         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
2965         file.
2966         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
2967         New file.
2968         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
2969         file.
2970         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
2971         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
2972         file.
2973         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
2974         New file.
2975         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
2976         file.
2977         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
2978         file.
2979         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
2980         file.
2981         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
2982         file.
2983         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
2984         file.
2985         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2986         New file.
2987         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
2988         New file.
2989         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
2990         file.
2991         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
2992         New file.
2993         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
2994         file.
2995
2996 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2997
2998         * conform/conformtest.pl: Fix typo in handling typed-constant from
2999         allow-header.
3000
3001 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3002
3003         * README: Cut down references to pre-2.6 Linux kernels and
3004         Linuxthreads.  Update lists of configurations in libc and ports
3005         and sort alphabetically.  Say "or newer" with Linux kernel version
3006         requirements.
3007
3008         * config.h.in [IS_IN_build]: Allow compiling without optimization.
3009
3010 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3011
3012         [BZ #887]
3013         * math/libm-test.inc (logb_test_downward): New test to expose
3014         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
3015         rounding mode.
3016
3017 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3018
3019         [BZ #14027]
3020         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
3021         to be done.
3022         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
3023         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
3024
3025 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
3026
3027         * sysdeps/unix/i386/brk.S: Remove file.
3028         * sysdeps/unix/i386/dl-brk.S: Likewise.
3029         * sysdeps/unix/i386/pipe.S: Likewise.
3030         * sysdeps/unix/i386/sigreturn.S: Likewise.
3031         * sysdeps/unix/i386/syscall.S: Likewise.
3032         * sysdeps/unix/i386/vfork.S: Likewise.
3033         * sysdeps/unix/i386/wait.S: Likewise.
3034
3035         * sysdeps/unix/common/tcsendbrk.c: Move to ...
3036         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
3037
3038         * configure.in (arm*-none*): Do not allow without
3039         --enable-hacker-mode.
3040         (netbsd*): Remove case setting base_os.
3041         (386bsd*): Likewise.
3042         (freebsd*): Likewise.
3043         (bsdi*): Likewise.
3044         (osf*): Likewise.
3045         (sunos*): Likewise.
3046         (ultrix*): Likewise.
3047         (newsos*): Likewise.
3048         (dynix*): Likewise.
3049         (*bsd*): Likewise.
3050         (sysv*): Likewise.
3051         (isc*): Likewise.
3052         (esix*): Likewise.
3053         (sco*): Likewise.
3054         (minix*): Likewise.
3055         (irix4*): Likewise.
3056         (irix6*): Likewise.
3057         (solaris[2-9]*): Likewise.
3058         (none): Likewise.
3059         * configure: Regenerated.
3060
3061 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3062
3063         [BZ #11521]
3064         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
3065         overflow or cancellation in calculating denominator.
3066         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
3067         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
3068         down expression to avoid unexpected rounding in newer GCCs.
3069         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
3070
3071 2012-04-26  David S. Miller  <davem@davemloft.net>
3072
3073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
3074         long-double compat symbols.
3075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
3079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3080         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
3081         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
3082         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
3083         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
3084         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
3085         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
3086         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
3087         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3088
3089 2012-04-25  David S. Miller  <davem@davemloft.net>
3090
3091         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
3092         HWCAP_* values only after the memory barriers have been defined.
3093         (atomic_full_barrier): Define.
3094         (atomic_read_barrier): Define.
3095         (atomic_write_barrier): Define.
3096
3097 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3098
3099         * shlib-versions: Add libgcc_s version information.
3100         * sysdeps/generic/libgcc_s.h: Remove.
3101         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
3102         libgcc_s.h.
3103         * sysdeps/gnu/unwind-resume.c: Likewise.
3104         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
3105
3106 2012-04-25  David S. Miller  <davem@davemloft.net>
3107
3108         * sysdeps/unix/sparc/brk.S: Delete.
3109         * sysdeps/unix/sparc/dl-brk.S: Delete.
3110         * sysdeps/unix/sparc/pipe.S: Delete.
3111         * sysdeps/unix/sparc/sysdep.S: Delete.
3112         * sysdeps/unix/sparc/sysdep.h: Delete.
3113         * sysdeps/unix/sparc/vfork.S: Delete.
3114         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
3115         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
3116         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
3117         ret_ERRVAL, r0, r1, MOVE): Define.
3118         (JUMPTARGET): Remove.
3119         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
3120         sysdeps/unix/sparc/sysdep.h
3121         (ENTRY, END): Remove.
3122         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3123
3124 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
3125
3126         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
3127         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
3128         -DIS_IN_build.
3129
3130         * timezone/README: Update upstream location and email address for
3131         tzcode and tzdata.
3132         * timezone/zdump.c: Update from tzcode 2012b.
3133         * timezone/zic.c: Likewise.
3134
3135         * configure.in (libc_cv_as_needed): Remove test.
3136         * configure: Regenerated.
3137         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
3138         conditional definition.
3139         [$(have-as-needed) != yes] (no-as-needed): Likewise.
3140         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
3141         * config.make.in (have-as-needed): Remove variable.
3142
3143 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3144             Paul Pluzhnikov  <ppluzhnikov@google.com>
3145
3146         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
3147         strings correctly.
3148
3149 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3150
3151         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
3152         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
3153         * sysdeps/sh/strlen.S: Likewise.
3154
3155 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3156
3157         * sysdeps/unix/fork.S: Remove file.
3158         * sysdeps/unix/i386/fork.S: Likewise.
3159         * sysdeps/unix/sparc/fork.S: Likewise.
3160
3161         * sysdeps/unix/system.c: Remove file.
3162         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
3163
3164         * sysdeps/unix/getegid.S: Remove file.
3165         * sysdeps/unix/geteuid.S: Likewise.
3166
3167 2012-04-24  Roland McGrath  <roland@hack.frob.com>
3168
3169         * scripts/check-localplt.awk: New file.
3170         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
3171         of diff.
3172         * scripts/data/localplt-generic.data: Add a comment.
3173
3174         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
3175         NODE when __dir_mkfile failed.
3176         * sysdeps/mach/hurd/symlinkat.c: Likewise.
3177         Reported by Ludovic Courtès <ludo@gnu.org>.
3178
3179 2012-04-24  Andreas Jaeger  <aj@suse.de>
3180
3181         * Makerules (common-clean): Also remove gen-as-const-headers
3182         files.
3183
3184 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3185
3186         * Makerules (native-compile): Do not change working directory for
3187         build.  Use $(OUTPUT_OPTION) in command.
3188         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
3189
3190 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3191
3192         [BZ #13886]
3193         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
3194         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
3195         * math/libm-test.inc (floor_test): Add more tests.
3196         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
3197
3198 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3199
3200         * sysdeps/unix/getdents.c: Remove file.
3201         * sysdeps/unix/sysv/getdents.c: Likewise.
3202         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
3203
3204         * sysdeps/unix/syscalls.list (madvise): Add syscall from
3205         sysdeps/unix/mman/syscalls.list.
3206         (mmap): Likewise.
3207         (mprotect): Likewise.
3208         (msync): Likewise.
3209         (munmap): Likewise.
3210         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
3211         * sysdeps/unix/mman/syscalls.list: Remove.
3212         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
3213
3214         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
3215         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
3216         * configure: Regenerated.
3217         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
3218         $(libgcc_s_suffix).
3219         * config.make.in (libgcc_s_suffix): Remove variable.
3220
3221 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
3222
3223         * sysdeps/unix/sysv/gethostname.c: Move to ...
3224         * sysdeps/posix/gethostname.c: ... here.
3225
3226         * sysdeps/unix/execve.S: Remove file.
3227
3228         * sysdeps/unix/_exit.S: Remove file.
3229
3230 2012-04-23  Andreas Jaeger  <aj@suse.de>
3231
3232         [BZ #13739]
3233         * manual/Makefile: Remove make dist support, there's no
3234         need for a stand-alone documentation tar ball.
3235         (TEXI2DVI): Define always, it's not in Makeconfig.
3236         (dist): Removed.
3237         (tar-it): Removed.
3238         (edition): Removed.
3239         (glibc-doc-$(edition).tar): Removed
3240         (%.Z): Removed.
3241         (%.gz): Removed.
3242         (%.uu): Removed.
3243         (ETAGS): Remove, it's in Makeconfig.
3244         (move-if-change): Remove, it's in Makeconfig.
3245
3246 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3247
3248         [BZ #13970]
3249         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
3250         (strtod, strtof, strtold, strtol, strtoul, strtoq)
3251         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
3252         (strtod_l, strtof_l, strtold_l): Remove __wur.
3253         It is not necessarily an error to ignore strtol's return value.
3254         One can reliably look at the stored endptr to decide whether
3255         the number had valid syntax.
3256
3257 2012-04-21  Andreas Jaeger  <aj@suse.de>
3258
3259         [BZ #13739]
3260         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
3261
3262 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
3263
3264         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
3265         * sysdeps/unix/sysv/Versions: Remove file.
3266
3267 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
3268
3269         [BZ #13927]
3270         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3271
3272 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
3273
3274         [BZ #7064]
3275         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
3276         version from __vm86.
3277
3278 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
3279
3280         * sysdeps/unix/common/lxstat.c: Remove file.
3281         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
3282
3283         * sysdeps/unix/sysv/Makefile: Remove file.
3284
3285         * sysdeps/unix/sysv/direct.h: Remove file.
3286
3287         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
3288         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
3289         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
3290         * sysdeps/unix/sysv/bits/signum.h: Likewise.
3291         * sysdeps/unix/sysv/bits/stat.h: Likewise.
3292         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
3293         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
3294
3295         * sysdeps/unix/sysv/setrlimit.c: Remove file.
3296
3297         * sysdeps/unix/xmknod.c: Remove file.
3298         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
3299
3300         * sysdeps/unix/sysv/settimeofday.c: Remove file.
3301
3302         * sysdeps/unix/sysv/i386/time.S: Remove file.
3303
3304         * sysdeps/unix/fxstat.c: Remove file.
3305         * sysdeps/unix/xstat.c: Likewise.
3306         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
3307
3308         * sysdeps/unix/sysv/sigaction.c: Remove file.
3309
3310         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
3311         (sysdep_headers): Remove variable.
3312         [termio.h not in sysdep_headers] (generated): Likewise.
3313         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
3314         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
3315         * sysdeps/unix/sysv/tcdrain.c: Likewise.
3316         * sysdeps/unix/sysv/tcflow.c: Likewise.
3317         * sysdeps/unix/sysv/tcflush.c: Likewise.
3318         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
3319         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
3320         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
3321         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
3322         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
3323
3324         * sysdeps/unix/siglist.c: Remove file.
3325
3326         * sysdeps/unix/getppid.S: Remove file.
3327
3328         * sysdeps/unix/mkdir.c: Remove file.
3329         * sysdeps/unix/rmdir.c: Likewise.
3330
3331 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
3332
3333         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
3334         ERR_MAX value.
3335         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
3336         errlist-compat value.
3337
3338 2012-04-18  David S. Miller  <davem@davemloft.net>
3339
3340         * sysdeps/generic/memcopy.h (reg_char): Delete.
3341         * debug/strcat_chk.c: Use char, not reg_char.
3342         * debug/strcpy_chk.c: Likewise.
3343         * debug/strncat_chk.c: Likewise.
3344         * debug/strncpy_chk.c: Likewise.
3345         * string/memchr.c: Likewise.
3346         * string/memrchr.c: Likewise.
3347         * string/rawmemchr.c: Likewise.
3348         * string/strcat.c: Likewise.
3349         * string/strchr.c: Likewise.
3350         * string/strchrnul.c: Likewise.
3351         * string/strcmp.c: Likewise.
3352         * string/strcpy.c: Likewise.
3353         * string/strncat.c: Likewise.
3354         * string/strncmp.c: Likewise.
3355         * string/strncpy.c: Likewise.
3356
3357 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3358
3359         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
3360         __builtin_memcopy is called when src and dest ranges are known to not
3361         overlap.
3362
3363 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3364
3365         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
3366         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
3367         fwd_align_merge macro call.
3368         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
3369         bwd_align_merge macro call.
3370         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3371
3372 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3373
3374         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
3375         bwd_align_merge macros.
3376         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
3377         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
3378         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3379
3380 2012-04-18  David S. Miller  <davem@davemloft.net>
3381
3382         * sysdeps/sparc/sparc64/memcopy.h: Delete.
3383
3384 2012-04-18  Andreas Jaeger  <aj@suse.de>
3385
3386         [BZ# 6794]
3387         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
3388         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
3389         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3390
3391         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
3392         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
3393         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3394
3395         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
3396         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
3397         Adjust for changed ldbl-128 files.
3398
3399         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
3400         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
3401         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3402
3403 2012-04-17  David S. Miller  <davem@davemloft.net>
3404
3405         * sysdeps/sparc/sparc32/memcopy.h: Delete.
3406
3407 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
3408
3409         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
3410         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
3411         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
3412         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
3413         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3414         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
3415
3416 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3417
3418         [BZ #6794]
3419         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
3420         * math/libm-test.inc: Add ilogb errno and exception tests.
3421         * math/w_ilogb.c: New file: ilogb wrapper.
3422         * math/w_ilogbf.c: New file: ilogbf wrapper.
3423         * math/w_ilogbl.c: New file: ilogbl wrapper.
3424         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
3425         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
3426         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
3427         exception being thrown with 0.0 as argument.
3428         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
3429         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
3430         exception being thrown with 0.0 as argument.
3431         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
3432         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3433         exception being thrown with 0.0 as argument.
3434         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
3435         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3436         exception being thrown with 0.0 as argument.
3437         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
3438         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
3439         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
3440         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
3441         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
3442         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
3443         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
3444         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
3445         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
3446
3447 2012-04-17  Petr Baudis  <pasky@ucw.cz>
3448
3449         * include/sys/uio.h: Change __vector to __iovec to avoid clash
3450         with altivec.
3451
3452 2012-04-16  Marek Polacek  <polacek@redhat.com>
3453
3454         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
3455
3456 2012-04-16  Marek Polacek  <polacek@redhat.com>
3457
3458         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
3459         operands of fdivp instruction.
3460
3461 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3462
3463         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
3464         * elf/tst-auditmod3b.c: Likewise.
3465         * elf/tst-auditmod4b.c: Likewise.
3466         * elf/tst-auditmod5b.c: Likewise.
3467         * elf/tst-auditmod6b.c: Likewise.
3468         * elf/tst-auditmod6c.c: Likewise.
3469         * elf/tst-auditmod7b.c: Likewise.
3470         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
3471         * sysdeps/x86_64/preconfigure.in: Likewise.
3472         * sysdeps/x86_64/preconfigure: Regenerated.
3473
3474 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3475
3476         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
3477         __ILP32__.
3478
3479 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
3480
3481         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3482         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
3483
3484 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
3485
3486         [BZ #13973]
3487         * locale/iso-639.def: Fix gl language name. Spotted by
3488         Yaron Shahrabani.
3489
3490 2012-04-12  Roland McGrath  <roland@hack.frob.com>
3491
3492         [BZ #2074]
3493         * libio/libio.h (__io_write_fn): Update comment.
3494
3495 2012-04-12  Petr Baudis  <pasky@ucw.cz>
3496
3497         [BZ #2074]
3498         * stdio.texi (Hook Functions): The user provided writer function
3499         is not allowed to return -1.
3500
3501 2012-04-11  David S. Miller  <davem@davemloft.net>
3502
3503         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3504
3505 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
3506
3507         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
3508         Add a leading slash to rtkaio.
3509
3510 2012-04-11  Jim Meyering  <meyering@redhat.com>
3511
3512         [BZ #11959]
3513         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
3514         It is not necessarily an error to ignore fwrite's return
3515         value.  One can reliably use ferror to test for errors after
3516         the fact.
3517
3518 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3519
3520         * bits/types.h (__snseconds_t): New type.
3521         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
3522
3523         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
3524         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3525         (__SNSECONDS_T_TYPE): Likewise.
3526         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3527         (__SNSECONDS_T_TYPE): Likewise.
3528         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3529         (__SNSECONDS_T_TYPE): Likewise.
3530
3531 2012-04-10  Andreas Jaeger  <aj@suse.de>
3532
3533         [BZ #2636]
3534         * manual/time.texi (Processor Time): Return type of times is
3535         elapsed real time since an arbitrary point in the past.
3536         (CPU Time): Move CLK_TCK from here...
3537         (Processor Time): ...to here.  Correct description.
3538         * manual/conf.texi (Constants for Sysconf): Correct description of
3539         _SC_CLK_TCK.
3540
3541 2012-04-10  David S. Miller  <davem@davemloft.net>
3542
3543         [BZ #13967]
3544         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
3545         where the is a gap between DT_REL(A) and DT_JMPREL.
3546
3547 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3548
3549         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
3550         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3551         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3552
3553 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3554
3555         * elf/dl-support.c (_dl_inhibit_cache): New variable.
3556         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
3557         (dl_main): Handle --inhibit-cache.
3558         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
3559         _dl_inhibit_cache.
3560         * elf/dl-load.c (_dl_map_object): Use it.
3561         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
3562
3563 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3564
3565         [BZ #13872]
3566         * sysdeps/i386/fpu/e_powl.S (p78): New object.
3567         (__ieee754_powl): Saturate large exponents rather than testing for
3568         overflow of y*log2(x).
3569         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3570         * math/libm-test.inc (pow_test): Do not permit spurious overflow
3571         exceptions.
3572
3573         [BZ #11521]
3574         * math/s_ctan.c: Include <float.h>.
3575         (__ctan): Avoid internal overflow or cancellation in calculating
3576         denominator.
3577         * math/s_ctanf.c: Likewise.
3578         * math/s_ctanl.c: Likewise.
3579         * math/s_ctanh.c: Likewise.
3580         * math/s_ctanhf.c: Likewise.
3581         * math/s_ctanhl.c: Likewise.
3582         * math/libm-test.inc (ctan_test): Add more tests.
3583         (ctanh_test): Likewise.
3584         * sysdeps/i386/fpu/libm-test-ulps: Update.
3585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3586
3587 2012-04-09  Andreas Jaeger  <aj@suse.de>
3588
3589         [BZ #6894]
3590         * manual/filesys.texi (Directory Entries): Mention that d_namlen
3591         is an optional BSD extension.
3592
3593         [BZ #10254]
3594         * manual/stdio.texi (Opening Streams): Document additional fopen
3595         parameters.
3596
3597 2012-04-09  Roland McGrath  <roland@hack.frob.com>
3598
3599         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
3600         %eax without telling the compiler.
3601
3602 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
3603
3604         [BZ # 13963]
3605         * manual/install.texi: Use sourceware.org.
3606
3607 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3608
3609         [BZ #13873]
3610         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
3611         (__ieee754_pow): Generate overflow and underflow using huge*huge
3612         and tiny*tiny rather than just returning constant infinity or zero
3613         for large exponents.
3614         * math/libm-test.inc (pow_test): Require overflow exceptions for
3615         applicable cases of large exponents.
3616
3617         [BZ #706]
3618         * sysdeps/i386/fpu/e_pow.S (p10): New object.
3619         (__ieee754_pow): Use iterative multiplication algorithm only for
3620         integer exponents with absolute value below 1024.  Check for odd
3621         integer exponents when using algorithm for real exponents.
3622         * math/libm-test.inc (pow_test): Add more tests.
3623         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3624
3625 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
3626
3627         [BZ #13705]
3628         * math/libm-test.inc (exp_test): Do not allow overflow exception
3629         on underflow test.
3630
3631 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
3632
3633         [BZ #13705]
3634         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
3635         instead of __kernel_standard_f.
3636
3637 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
3638
3639         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
3640         * sysdeps/x86_64/memset_chk.S: Likewise.
3641
3642 2012-04-08  Andreas Jaeger  <aj@suse.de>
3643
3644         [BZ #10153]
3645         * manual/startup.texi (Environment Access): Describe return value
3646         for putenv and setenv.
3647
3648         [BZ #6895]
3649         * manual/filesys.texi (Directory Entries): Add description for
3650         DT_LNK.
3651
3652         [BZ #6890]
3653         * manual/filesys.texi (Directory Entries): Clarify that it's file
3654         system not operating system in the description of DT_UNKNOWN.
3655
3656         [BZ #6578]
3657         * manual/syslog.texi (closelog): Fix reference, it's openlog.
3658
3659 2012-04-08  Stephen Compall  <s11@member.fsf.org>
3660
3661         [BZ #6649]
3662         * manual/llio.texi (Opening and Closing Files): Add cross
3663         reference to explain mode argument.
3664
3665 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
3666
3667         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
3668         * sysdeps/x86_64/memset_chk.S: Likewise.
3669
3670 2012-04-07  David S. Miller  <davem@davemloft.net>
3671
3672         * elf/elf.h (R_SPARC_WDISP10): Define.
3673         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
3674         R_SPARC_SIZE32.
3675         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3676         R_SPARC_SIZE64 and R_SPARC_H34.
3677
3678 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
3679
3680         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
3681         conditions and remove no longer applicable assertion.
3682
3683 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3684
3685         * bits/byteswap.h: Include <features.h>.
3686         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3687         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3688
3689 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3690
3691         * bits/byteswap.h (__bswap_16): Removed.
3692         Include <bits/byteswap-16.h> to get __bswap_16.
3693         * sysdeps/i386/bits/byteswap.h: Likewise.
3694         * sysdeps/s390/bits/byteswap.h: Likewise.
3695         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3696         * bits/byteswap-16.h: New file.
3697         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3698         * sysdeps/s390/bits/byteswap-16.h: Likewise.
3699         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
3700         * string/Makefile (headers): Add bits/byteswap-16.h.
3701
3702 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3703
3704         [BZ #13895]
3705         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
3706         extra indirection.
3707         * nss/Makefile (tests-static, tests): Add tst-nss-static.
3708         * nss/tst-nss-static.c: New.
3709
3710 2012-04-06  Robert Millan  <rmh@gnu.org>
3711
3712         [BZ #6486]
3713         * manual/llio.texi (File Position Primitive): lseek
3714         refers to WHENCE when it really means OFFSET.
3715
3716 2012-04-06  Andreas Jaeger  <aj@suse.de>
3717
3718         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
3719         strncmp declarations.
3720
3721         * abilist/libc.abilist: Add __poll and __ppoll.
3722
3723 2012-04-05  David S. Miller  <davem@davemloft.net>
3724
3725         * scripts/check-local-headers.sh: Accept a host triplet in the
3726         path matched by the exclude regexp.
3727
3728         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
3729         definition.
3730         * sysdeps/powerpc/powerpc32/dl-machine.h
3731         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
3732         * sysdeps/s390/s390-32/dl-machine.h
3733         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3734         * sysdeps/sparc/sparc32/dl-machine.h
3735         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3736         * sysdeps/sparc/sparc64/dl-machine.h
3737         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3738
3739         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
3740         lazy binding.
3741         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
3742         undefined symbol errors.
3743
3744         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
3745         DT_NEEDED entries.
3746
3747 2012-04-05  Michael Matz  <matz@suse.de>
3748
3749         [BZ #13592]
3750         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
3751
3752 2012-04-05  Andreas Jaeger  <aj@suse.de>
3753
3754         [BZ #13908]
3755         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
3756         comment.
3757
3758 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3759
3760         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
3761         which ROUND is no valid rounding mode.
3762
3763 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3764
3765         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
3766         read again.
3767         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
3768
3769 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3770
3771         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
3772         an exception using FPU order intentionally.
3773
3774 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3775
3776         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
3777         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
3778         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
3779         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
3780
3781 2012-04-05  Simon Josefsson  <simon@josefsson.org>
3782
3783         [BZ #12340]
3784         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
3785         EINVAL when BUFLEN is too smal.
3786
3787 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
3788
3789         [BZ #13553]
3790         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
3791         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3792
3793 2012-04-03  Andreas Jaeger  <aj@suse.de>
3794
3795         [BZ #13938]
3796         * manual/setjmp.texi (System V contexts): Fix sentence.
3797
3798         [BZ #13926]
3799         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
3800         New macro for this case.
3801         [!__GNUC__] (__bswap_64): New inline function for this case.
3802         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3803         * bits/byteswap.h: Likewise.
3804         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
3805         ull, guard with __GLIBC_HAVE_LONG_LONG.
3806
3807         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
3808         __GLIBC_HAVE_LONG_LONG.
3809
3810         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
3811         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
3812
3813 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3814
3815         [BZ #13691]
3816         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
3817         inptr and inend, rather than using last_ch.
3818
3819 2012-04-02  David S. Miller  <davem@davemloft.net>
3820
3821         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
3822         * stdio-common/printf-parse.h (read_int): Change return type to
3823         'int', return -1 on INT_MAX overflow.
3824         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
3825         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
3826         overflows INT_MAX.  Check for overflow of in-format-string precision
3827         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
3828         SIZE_MAX not INT_MAX for integer overflow test.
3829         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
3830         skip the construct in the format string but do not record anything.
3831         * stdio-common/bug22.c: Adjust to test both width/prevision
3832         INT_MAX overflow as well as total length INT_MAX overflow.  Check
3833         explicitly for proper errno values.
3834
3835 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
3836
3837         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
3838         CHAR_MAX.
3839         * string/test-strcmp.c [! WIDE]: Likewise.
3840         * time/tst-mktime2.c: Likewise for INT_MAX.
3841         * string/test-string.h: #include <sys/param.h> for MIN.
3842
3843         * csu/init-first.c (__libc_init_first): Call __ctype_init.
3844         * sysdeps/i386/init-first.c (init): Likewise.
3845         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
3846         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
3847         * sysdeps/sh/init-first.c (init): Likewise.
3848
3849 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
3850
3851         * po/ru.po: Update from translation team.
3852         * po/vi.po: Likewise.
3853
3854 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
3855
3856         * resolv/nss_dns/dns-host.c: Merge copyright years.
3857
3858 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3859
3860         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
3861         Optimize memcpy with prefetch if
3862         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
3863         src, dst pointers have unequal 16 byte alignments.
3864
3865 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3866
3867         [BZ #13928]
3868         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
3869         from a CNAME entry and return the minimum ttl for the query.
3870         (gaih_getanswer_slice): Likewise.
3871
3872 2012-03-30  Jeff Law  <law@redhat.com>
3873
3874         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
3875         due to long keys.
3876         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
3877         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
3878
3879         * resolv/nss_dns/dns-host.c: Update copyright year.
3880
3881 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
3882
3883         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
3884         requests to save a system call.  Fix check that all bytes are sent.
3885
3886         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
3887         comments for sendmmsg.
3888
3889 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3890
3891         [BZ #13691]
3892         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
3893         with only 1 character between 0x0041 and 0x01b0.
3894         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
3895         * wcsmbs/tst-mbsnrtowcs.c: New file.
3896
3897 2012-03-29  David S. Miller  <davem@davemloft.net>
3898
3899         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
3900         small copies by hand.
3901
3902 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3903
3904         [BZ #13761]
3905         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
3906         _nss_compat_initgroups_dyn): Fall back to malloc/free
3907         for large group memberships.
3908
3909 2012-03-28  David S. Miller  <davem@davemloft.net>
3910
3911         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
3912         that branches into memcpy.
3913         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3914         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
3915         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3916         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
3917         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
3918         bits.
3919         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
3920         implementation too.
3921         * sysdeps/sparc/mempcpy.S: New file.
3922
3923         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
3924         the IFUNC routine in the libc case.
3925         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3926
3927         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
3928         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
3929         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
3930         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
3931         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
3932         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
3933         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
3934         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
3935
3936         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
3937         loop to 256 bytes instead of 64 bytes and fix test signedness.
3938
3939         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
3940         * sysdeps/sparc/sparc32/Makefile: rather than here...
3941         * sysdeps/sparc/sparc64/Makefile: and here.
3942
3943 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
3944
3945         * malloc/mallocbug.c: Avoid warnings about unused variables.
3946
3947 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3948
3949         [BZ #13760]
3950         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
3951         in the right place. Discard and retry query if response is
3952         larger than input buffer size.
3953
3954 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
3955
3956         [BZ #369]
3957         [BZ #2678]
3958         [BZ #3866]
3959         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
3960         x for large integer exponent.
3961         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3962         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
3963         sign of result as needed afterwards.
3964         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3965         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
3966         result for underflowing pow the same as for overflow.
3967         (__kernel_standard_l): Handle powl overflow and underflow here
3968         rather than calling __kernel_standard.
3969         * math/libm-test.inc (pow_test): Add more tests.
3970
3971         [BZ #3868]
3972         [BZ #13879]
3973         [BZ #13910]
3974         [BZ #13911]
3975         [BZ #13912]
3976         [BZ #13913]
3977         [BZ #13915]
3978         [BZ #13916]
3979         [BZ #13917]
3980         [BZ #13918]
3981         [BZ #13919]
3982         [BZ #13920]
3983         [BZ #13921]
3984         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
3985         * sysdeps/ieee754/k_standard.c: Include <float.h>.
3986         (__kernel_standard_l): New function.
3987         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
3988         __kernel_standard.
3989         * math/w_acosl.c (__acosl): Likewise.
3990         * math/w_asinl.c (__asinl): Likewise.
3991         * math/w_atan2l.c (__atan2l): Likewise.
3992         * math/w_atanhl.c (__atanhl): Likewise.
3993         * math/w_coshl.c (__coshl): Likewise.
3994         * math/w_exp10l.c (__exp10l): Likewise.
3995         * math/w_exp2l.c (__exp2l): Likewise.
3996         * math/w_fmodl.c (__fmodl): Likewise.
3997         * math/w_hypotl.c (__hypotl): Likewise.
3998         * math/w_j0l.c (__j0l, __y0l): Likewise.
3999         * math/w_j1l.c (__j1l, __y1l): Likewise.
4000         * math/w_jnl.c (__jnl, __ynl): Likewise.
4001         * math/w_lgammal.c (__lgammal): Likewise.
4002         * math/w_log10l.c (__log10l): Likewise.
4003         * math/w_log2l.c (__log2l): Likewise.
4004         * math/w_logl.c (__logl): Likewise.
4005         * math/w_powl.c (__powl): Likewise.
4006         * math/w_remainderl.c (__remainderl): Likewise.
4007         * math/w_scalbl.c (sysv_scalbl): Likewise.
4008         * math/w_sinhl.c (__sinhl): Likewise.
4009         * math/w_sqrtl.c (__sqrtl): Likewise.
4010         * math/w_tgammal.c (__tgammal): Likewise.
4011         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
4012         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
4013         * math/libm-test.inc (acos_test): Add more tests.
4014         (acosh_test): Likewise.
4015         (asin_test): Likewise.
4016         (atanh_test): Likewise.
4017         (exp_test): Likewise.
4018         (exp10_test): Likewise.
4019         (exp2_test): Likewise.
4020         (expm1_test): Likewise.
4021         (lgamma_test): Likewise.
4022         (log_test): Likewise.
4023         (log10_test): Likewise.
4024         (log1p_test): Likewise.
4025         (log2_test): Likewise.
4026         (pow_test): Do not allow some spurious overflow exceptions.
4027         (sqrt_test): Add more tests.
4028         (tgamma_test): Likewise.
4029         (y0_test): Likewise.
4030         (y1_test): Likewise.
4031         (yn_test): Likewise.
4032
4033 2012-03-27  Anton Blanchard  <anton@samba.org>
4034
4035         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
4036         MAP_HUGETLB.
4037         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4038         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4039         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4040
4041 2012-03-27  David S. Miller  <davem@davemloft.net>
4042
4043         * conform/Makefile: Run run-conformtest.sh using $(BASH).
4044
4045         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
4046         have-as-vis3 check.
4047
4048 2012-03-27  Andreas Jaeger  <aj@suse.de>
4049
4050         * sysdeps/x86_64/elf/configure.in: Moved to ...
4051         * sysdeps/x86_64/configure.in: ... here.
4052         * sysdeps/x86_64/elf/start.S: Moved to ...
4053         * sysdeps/x86_64/start.S: ... here.
4054         * sysdeps/x86_64/elf/configure: Delete.
4055
4056         * sysdeps/x86_64/configure.in: Merge contents from
4057         sysdeps/i386/configure.in (without i686 check).
4058
4059         * sysdeps/i386/elf/Versions: Merge into ...
4060         * sysdeps/i386/Versions: ... this.
4061         * sysdeps/i386/elf/Versions: Delete file.
4062         * sysdeps/i386/elf/start.S: Moved to ...
4063         * sysdeps/i386/start.S: ...here.
4064         * sysdeps/i386/elf/configure.in: Merge into...
4065         * sysdeps/i386/configure.in: ...here.
4066         * sysdeps/i386/elf/configure.in: Delete file.
4067         * sysdeps/i386/elf/configure: Delete file.
4068
4069         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
4070         * debug/backtracesyms.c: ... here.
4071         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
4072         * debug/backtracesymsfd.c: ... here.
4073         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
4074         * sysdeps/generic/ifunc-sel.h: ... here.
4075
4076         * sysdeps/unix/i386/start.c: Delete file.
4077         * sysdeps/unix/sparc/start.c: Delete file.
4078         * sysdeps/unix/start.c: Delete file.
4079
4080         * sysdeps/sh/elf/configure.in: Moved to ...
4081         * sysdeps/sh/configure.in: ... here.
4082         * sysdeps/sh/elf/start.S: Moved to ...
4083         * sysdeps/sh/start.S: ... here.
4084         * sysdeps/sh/elf/configure: Delete file.
4085
4086         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
4087         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
4088         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
4089         * sysdeps/powerpc/powerpc64/entry.h: ... here.
4090         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
4091         * sysdeps/powerpc/powerpc64/start.S: here.
4092         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
4093         * sysdeps/powerpc/powerpc64/Makefile: ... this.
4094         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
4095         * sysdeps/powerpc/powerpc64/configure.in: ... this.
4096         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
4097
4098         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
4099         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
4100         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
4101         * sysdeps/powerpc/powerpc32/start.S: ... here.
4102         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
4103         * sysdeps/powerpc/powerpc32/configure.in: ... this.
4104         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
4105
4106         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
4107         * sysdeps/powerpc/ifunc-sel.h: ... here.
4108         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
4109         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
4110
4111         * sysdeps/sparc/elf/configure.in: Moved to ...
4112         * sysdeps/sparc/configure.in: ... here.
4113         * sysdeps/sparc/elf/configure: Delete file.
4114         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
4115         * sysdeps/sparc/sparc32/start.S: ... here.
4116         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
4117         * sysdeps/sparc/sparc64/start.S: ... here.
4118         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
4119         * sysdeps/sparc/sparc32/Makefile: ... this.
4120         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
4121         * sysdeps/sparc/sparc64/Makefile: ... this.
4122
4123         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
4124         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
4125         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
4126         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
4127         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
4128         * sysdeps/s390/s390-32/setjmp.S: ... here.
4129         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
4130         * sysdeps/s390/s390-32/configure.in: ... here.
4131         * sysdeps/s390/s390-32/elf/configure: Delete file.
4132         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
4133         * sysdeps/s390/s390-32/start.S: ... here.
4134
4135         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
4136         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
4137         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
4138         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
4139         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
4140         * sysdeps/s390/s390-64/setjmp.S: ... here.
4141         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
4142         * sysdeps/s390/s390-64/configure.in: ... here
4143         * sysdeps/s390/s390-64/elf/configure: Delete file.
4144         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
4145         * sysdeps/s390/s390-64/start.S: ... here.
4146         * sysdeps/s390/s390-64/elf/configure: Delete.
4147
4148         * configure.in: Remove support for elf directories in sysdeps.
4149
4150         * configure: Regenerated.
4151         * sysdeps/i386/configure: Regenerated.
4152         * sysdeps/powerpc/powerpc32/configure: Regenerated.
4153         * sysdeps/powerpc/powerpc64/configure: Regenerated.
4154         * sysdeps/s390/s390-32/configure: Regenerated.
4155         * sysdeps/s390/s390-64/configure: Regenerated.
4156         * sysdeps/sh/configure: Regenerated.
4157         * sysdeps/sparc/configure: Regenerated.
4158         * sysdeps/x86_64/configure: Regenerated.
4159
4160 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
4161
4162         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4163
4164         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
4165         denormal result into account.
4166
4167 2012-03-25  Roland McGrath  <roland@hack.frob.com>
4168
4169         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
4170         Reported by Allan McRae <allan@archlinux.org>.
4171
4172 2012-03-23  Jeff Law  <law@redhat.com>
4173
4174         * nss/getnssent.c (__nss_getent): Fix typo.
4175
4176 2012-03-23  David S. Miller  <davem@davemloft.net>
4177
4178         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4179
4180 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
4181
4182         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
4183         to pad to uint64_t for each field.
4184         (dl_tls_index): Replace unsigned long with uint64_t.
4185
4186 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
4187         Paul Pluzhnikov  <ppluzhnikov@google.com>
4188
4189         [BZ #6528]
4190         * grp/Makefile (otherlibs): Don't set it.
4191         * inet/Makefile (otherlibs): Likewise.
4192         * login/Makefile (otherlibs): Likewise.
4193         * nscd/Makefile (otherlibs): Likewise.
4194         * posix/Makefile (otherlibs): Likewise.
4195         * pwd/Makefile (otherlibs): Likewise.
4196         * rt/Makefile (otherlibs): Likewise.
4197         * sunrpc/Makefile (otherlibs): Likewise.
4198         * nss/Makefile (otherlibs): Likewise.
4199         Add libnss_files to routines and static-only-routines.
4200         ($(objpfx)getent): Remove rule.
4201         * resolv/Makefile: Add libnss_dns and libresolv to routines and
4202         static-only-routines.
4203
4204 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4205
4206         [BZ #13892]
4207         * math/s_cexp.c: Include <float.h>.
4208         (__cexp): Handle exp result overflowing not necessarily
4209         overflowing both real and imaginary parts of result.
4210         * math/s_cexpf.c: Likewise.
4211         * math/s_cexpl.c: Likewise.
4212         * math/libm-test.inc (cexp_test): Add more tests.
4213         * sysdeps/i386/fpu/libm-test-ulps: Update.
4214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4215
4216 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4217
4218         * include/link.h (ELFW): New macro.
4219         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
4220         Replace ELF64_R_TYPE with ELFW(R_TYPE).
4221
4222 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4223
4224         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
4225         with uint64_t.
4226
4227 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4228
4229         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
4230         declaration.
4231         (struct La_x32_retval): Likewise.
4232
4233 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4234
4235         * sysdeps/x86_64/preconfigure.in: New file.
4236         * sysdeps/x86_64/preconfigure: New generated file.
4237
4238 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4239
4240         [BZ #13824]
4241         * math/e_exp2l.c: Include <float.h>.
4242         (__ieee754_exp2l): Handle overflow and underflow cases
4243         separately.  Only pass fractional part of argument to
4244         __ieee754_expl.
4245         * math/libm-test.inc (exp2_test): Add more tests.
4246
4247         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
4248         negating x to take absolute value.
4249         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
4250         Likewise.
4251         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4252         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
4253         Likewise.
4254         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
4255         computing low part if x was negated.
4256         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4257
4258 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4259
4260         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
4261         la_x32_gnu_pltexit.
4262         (pltexit): Cast int_retval to ptrdiff_t.
4263         * elf/tst-auditmod3b.c: Likewise.
4264         * elf/tst-auditmod4b.c: Likewise.
4265         * elf/tst-auditmod5b.c: Likewise.
4266         * elf/tst-auditmod6b.c: Likewise.
4267         * elf/tst-auditmod6c.c: Likewise.
4268         * elf/tst-auditmod7b.c: Likewise.
4269
4270         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
4271         and x32_gnu_pltexit.
4272
4273         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
4274         __ELF_NATIVE_CLASS.
4275         (La_x32_regs): New macro.
4276         (La_x32_retval): Likewise.
4277         (la_x32_gnu_pltenter): New function prototype.
4278         (la_x32_gnu_pltexit): Likewise.
4279
4280 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
4281
4282         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
4283         exponent.
4284
4285         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4286
4287         * configure.in (libc_cv_cc_nofma): Check for option to disable
4288         generation of FMA instructions.
4289         * configure: Regenerate.
4290         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
4291         * sysdeps/ieee754/dbl-64/Makefile: New file.
4292         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4293         Remove brandred-fma4.
4294         (CFLAGS-brandred-fma4.c): Remove.
4295         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
4296         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
4297         define.
4298         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
4299         define.
4300
4301 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4302
4303         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4304         LLONG_MAX != LONG_MAX.
4305         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4306         (_fitoa_word): Likewise.
4307         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
4308         LLONG_MAX != LONG_MAX.
4309         * stdio-common/_itowa.h: Include <_itoa.h>.
4310         (_itowa_word): Use _ITOA_WORD_TYPE on value.
4311         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
4312         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
4313         only if not defined.
4314         (_ITOA_WORD_TYPE): Likewise.
4315         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4316         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
4317
4318 2012-03-21  David S. Miller  <davem@davemloft.net>
4319
4320         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4321
4322 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4323
4324         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
4325         of x86_64 when setting libc_cv_slibdir, libdir and
4326         libc_cv_localedir.
4327         * sysdeps/unix/sysv/linux/configure: Regenerated.
4328
4329 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4330
4331         * manual/lang.texi (Old Varargs): Remove section.
4332         (How Variadic): Update menu.
4333         (va_start): Do not mention varargs.h.
4334
4335 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4336             Joseph Myers  <joseph@codesourcery.com>
4337
4338         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
4339         link test.
4340         * configure: Regenerated.
4341
4342 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4343
4344         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
4345         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
4346         conformtest.pl
4347
4348 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4349
4350         * NOTES: Remove.
4351         * Makefile (files-for-dist): Remove NOTES.
4352         (NOTES): Remove rule.
4353         * README: Don't refer to NOTES.
4354         * manual/creature.texi: Don't include macros.texi.
4355         * manual/intro.texi (creature.texi): Remove comment referring to
4356         NOTES.
4357
4358         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
4359         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
4360         * configure: Regenerated.
4361         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
4362         LIBC_TRY_CC_OPTION.
4363         (libc_cv_as_i686): Likewise.
4364         (libc_cv_cc_avx): Likewise.
4365         (libc_cv_cc_sse2avx): Likewise.
4366         (libc_cv_cc_fma4): Likewise.
4367         (libc_cv_cc_novzeroupper): Likewise.
4368         * sysdeps/i386/configure: Regenerated.
4369
4370         [BZ #13883]
4371         * sysdeps/i386/fpu/s_cexp.S: Remove.
4372         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4373         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4374         * math/libm-test.inc (cexp_test): Add more tests.
4375         * sysdeps/i386/fpu/libm-test-ulps: Update.
4376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4377
4378 2012-03-21  Allan McRae  <allan@archlinux.org>
4379
4380         * timezone/Makefile: Do not install iso3166.tab and zone.tab
4381
4382 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4383
4384         [BZ #13871]
4385         * math/w_exp2.c: Do not include <float.h>.
4386         (o_threshold, u_threshold): Remove.
4387         (__exp2): Calculate result before checking finiteness and calling
4388         __kernel_standard.
4389         * math/w_exp2f.c: Likewise.
4390         * math/w_exp2l.c: Likewise.
4391         * math/libm-test.inc (exp2_test): Require overflow exception for
4392         1e6 input.
4393
4394         [BZ #3866]
4395         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
4396         range of signed 64-bit integers before using fistpll.  Remove
4397         checks for whether integers fit in mantissa bits.
4398         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
4399         the range of signed 32-bit integers before using fistpl.  Remove
4400         checks for whether integers fit in mantissa bits.
4401         * sysdeps/i386/fpu/e_powl.S (p64): New object.
4402         (__ieee754_powl): Test for y outside the range of signed 64-bit
4403         integers before using fistpll.  Reduce 64-bit values to 63-bit
4404         ones as needed.
4405         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
4406         divide-by-zero is raised for zero to large negative powers.
4407         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
4408         (__ieee754_powl): Test for y outside the range of signed 64-bit
4409         integers before using fistpll.  Reduce 64-bit values to 63-bit
4410         ones as needed.
4411         * math/libm-test.inc (pow_test): Add more tests.
4412
4413 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4414
4415         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
4416         <stdio-common/_itoa.h>.
4417         * debug/segfault.c: Likewise.
4418         * elf/dl-cache.c: Likewise.
4419         * elf/dl-minimal.c: Likewise.
4420         * elf/dl-misc.c: Likewise.
4421         * elf/dl-sysdep.c: Likewise.
4422         * elf/dl-version.c: Likewise.
4423         * elf/rtld.c: Likewise.
4424         * hurd/hurdsock.c: Likewise.
4425         * hurd/lookup-retry.c: Likewise.
4426         * malloc/malloc.c: Likewise.
4427         * malloc/mtrace.c: Likewise.
4428         * nscd/nscd_getgr_r.c: Likewise.
4429         * nscd/nscd_getpw_r.c: Likewise.
4430         * nscd/nscd_getserv_r.c: Likewise.
4431         * posix/getopt_init.c: Likewise.
4432         * posix/wordexp.c: Likewise.
4433         * stdio-common/_itoa.c: Likewise.
4434         * stdio-common/printf_fphex.c: Likewise.
4435         * stdio-common/vfprintf.c: Likewise.
4436         * string/_strerror.c: Likewise.
4437         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4438         * sysdeps/i386/i686/hp-timing.h: Likewise.
4439         * sysdeps/mach/_strerror.c: Likewise.
4440         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
4441         * sysdeps/mach/hurd/sethostid.c: Likewise.
4442         * sysdeps/mach/hurd/xmknodat.c: Likewise.
4443         * sysdeps/mach/xpg-strerror.c: Likewise.
4444         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4445         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4446         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
4447         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
4448         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4449         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
4450         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4451         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4452         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
4453         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
4454         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
4455         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4456         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
4457         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4458         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4459         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4460         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
4461         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
4462         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4463         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4464         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
4465
4466         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
4467
4468         * stdio-common/_itoa.h: Moved to ...
4469         * sysdeps/generic/_itoa.h: Here.
4470
4471         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
4472
4473         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
4474         instead of "_itoa.h" and "_itowa.h".
4475         * stdio-common/vfprintf.: Likewise.
4476
4477 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4478
4479         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
4480         <bits/wordsize.h>.
4481         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
4482         (__signbit): Likwise.
4483         (llrintf): Likwise.
4484         (llrint): Likwise.
4485
4486 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4487
4488         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
4489         __WORDSIZE != 64.
4490
4491 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
4492
4493         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
4494         OVERFLOW_EXCEPTION_OK.
4495         * math/libm-test.inc ("Philosophy"): Update comment about
4496         exception testing.
4497         (OVERFLOW_EXCEPTION): Define.
4498         (OVERFLOW_EXCEPTION_OK): Likewise.
4499         (INVALID_EXCEPTION_OK): Renumber.
4500         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4501         (IGNORE_ZERO_INF_SIGN): Likewise.
4502         (test_exceptions): Handle FE_OVERFLOW.
4503         (exp10_test): Expect overflow exceptions.
4504         (exp2_test): Likewise.
4505         (expm1_test): Likewise.
4506         (nextafter_test): Likewise.
4507         (pow_test): Likewise.
4508         (scalbn_test): Likewise.
4509         (scalbln_test): Likewise.
4510
4511 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4512
4513         * sysdeps/x86_64/bits/atomic.h
4514         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
4515         64bit integer.
4516         (atomic_exchange_acq): Likewise.
4517         (__arch_exchange_and_add_body): Likewise.
4518         (__arch_add_body): Likewise.
4519         (atomic_add_negative): Likewise.
4520         (atomic_add_zero): Likewise.
4521
4522 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4523
4524         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
4525         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
4526
4527 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4528
4529         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
4530         Check __x86_64__ instead of __WORDSIZE.
4531
4532 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4533
4534         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
4535
4536 2012-03-19  David S. Miller  <davem@davemloft.net>
4537
4538         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4539
4540         * sysdeps/sparc/fpu/fenv_private.h: New file.
4541         * sysdeps/sparc/fpu/math_private.h: Use it.
4542         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
4543         Remove.
4544         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
4545         (libc_feholdexcept_setroundl): Remove.
4546         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
4547         Remove.
4548         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
4549         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
4550
4551 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4552
4553         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
4554         int64_t instead of long int.
4555         (INSERT_WORDS64): Likwise.
4556
4557 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4558
4559         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
4560         _Unwind_GetCFA return to _Unwind_Ptr first.
4561
4562 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
4563
4564         [BZ #13629]
4565         * math/s_clog.c: Include <float.h>.
4566         (__clog): Scale large or subnormal inputs.
4567         * math/s_clogf.c: Likewise.
4568         * math/s_clogl.c: Likewise.
4569         * math/s_clog10.c: Include <float.h>.
4570         (M_LOG10_2): Define.
4571         (__clog10): Scale large or subnormal inputs.
4572         * math/s_clog10f.c: Likewise.
4573         * math/s_clog10l.c: Likewise.
4574         * math/libm-test.inc (clog_test): Add more tests.
4575         (clog10_test): Likewise.
4576         * sysdeps/i386/fpu/libm-test-ulps: Update.
4577         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4578
4579         [BZ #11451]
4580         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
4581         x and y.
4582         * math/libm-test.inc (atan2_test): Add another test.
4583
4584         * Makerules (common-objdir-compile): Remove.
4585         * sysdeps/unix/Makefile (config-generated): Do not add
4586         $(unix-generated) to variable.
4587         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
4588         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
4589         Remove rule.
4590         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
4591         Likewise.
4592         [generic bits/local_lim.h] (before-compile): Do not append to
4593         variable.
4594         [generic bits/local_lim.h] (common-generated): Likewise.
4595         [generic sys/param.h] (before-compile): Do not append to variable.
4596         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
4597         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
4598         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
4599         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
4600         include.
4601         [generic sys/param.h] (sys/param.h-includes): Remove variable.
4602         [generic sys/param.h] (sys/param.h-includes): Remove rule.
4603         [generic sys/param.h] ($(addprefix
4604         $(common-objpfx),$(sys/param.h-includes))): Likewise.
4605         [generic sys/param.h] (common-generated): Do not append to
4606         variable.
4607         [generic sys/param.h] (sysdep_headers): Likewise.
4608         [generic bits/errno.h] (before-compile): Do not append to
4609         variable.
4610         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
4611         rule.
4612         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
4613         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
4614         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
4615         [generic bits/errno.h] (common-generated): Do not append to
4616         variable.
4617         [generic bits/ioctls.h] (before-compile): Do not append to
4618         variable.
4619         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
4620         rule.
4621         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
4622         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
4623         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
4624         rule.
4625         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
4626         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
4627         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
4628         [generic bits/ioctls.h] (common-generated): Do not append to
4629         variable.
4630         [generic sys/syscall.h] (syscall.h): Remove variable.
4631         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
4632         rule.
4633         [generic sys/syscall.h] (before-compile): Do not append to
4634         variable.
4635         [generic sys/syscall.h] (common-generated): Likewise.
4636         * sysdeps/unix/errnos-tmpl.c: Remove file.
4637         * sysdeps/unix/errnos.awk: Likewise.
4638         * sysdeps/unix/ioctls-tmpl.c: Likewise.
4639         * sysdeps/unix/ioctls.awk: Likewise.
4640         * sysdeps/unix/mk-local_lim.c: Likewise.
4641         * sysdeps/unix/snarf-ioctls: Likewise.
4642
4643 2012-03-19  Richard Henderson  <rth@twiddle.net>
4644
4645         * sysdeps/i386/fpu/fenv_private.h: New file.
4646         * sysdeps/i386/fpu/math_private.h: Use it.
4647         (math_opt_barrier, math_force_eval): Remove.
4648         (libc_feholdexcept_setround_53bit): Remove.
4649         (libc_feupdateenv_53bit): Remove.
4650         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4651         (math_opt_barrier, math_force_eval): Remove.
4652         (libc_feholdexcept): Remove.
4653         (libc_feholdexcept_setround): Remove.
4654         (libc_fetestexcept, libc_fesetenv): Remove.
4655         (libc_feupdateenv_test): Remove.
4656         (libc_feupdateenv, libc_feholdsetround): Remove.
4657         (libc_feresetround): Remove.
4658
4659         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
4660         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
4661
4662         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
4663         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
4664         (libc_feupdateenv_testl): New.
4665         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
4666         (libc_feupdateenv_testf): New.
4667         (libc_feupdateenv): Use libc_feupdateenv_test.
4668         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
4669         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
4670
4671         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
4672         (libc_feholdsetroundf, libc_feholdsetroundl): New.
4673         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
4674         (libc_feresetround_noex): New.
4675         (libc_feresetround_noexf): New.
4676         (libc_feresetround_noexl): New.
4677         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
4678         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
4679         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
4680         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
4681         SET_RESTORE_ROUND.
4682         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4683         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
4684         (__cos): Likewise.
4685         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
4686         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
4687         SET_RESTORE_ROUND_NOEX.
4688         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
4689         SET_RESTORE_ROUND_NOEXF.
4690         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
4691         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
4692         (libc_feholdsetroundf): New.
4693         (libc_feresetround, libc_feresetroundf): New.
4694
4695         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
4696         (libc_feholdexcept_setround_53bit): Convert from macro to function.
4697         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
4698
4699         * sysdeps/generic/math_private.h: Include <fenv.h>.
4700         (default_libc_feholdexcept): New.
4701         (default_libc_feholdexcept_setround): New.
4702         (default_libc_fesetenv, default_libc_feupdateenv): New.
4703         (libc_feholdexcept): Only define if undefined.
4704         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
4705         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
4706         (libc_feholdexcept_setroundl): Likewise.
4707         (libc_feholdexcept_setround_53bit): Likewise.
4708         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
4709         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
4710         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
4711         (libc_feupdateenv_53bit): Likewise.
4712         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
4713         (libc_feholdexcept): Convert from macro to inline function.
4714         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
4715         (libc_fesetenv, libc_feupdateenv): Likewise.
4716
4717         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
4718         not previously defined.
4719         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
4720         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
4721         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
4722         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
4723         * sysdeps/ieee754/flt-32/math_private.h: New file.
4724         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
4725         math_private.h below SET_FLOAT_WORD.
4726         (__isnan, __isinf_ns, __finite): Remove.
4727         (__isnanf, __isinf_nsf, __finitef): Remove.
4728
4729 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
4730
4731         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4732
4733 2012-03-17  David S. Miller  <davem@davemloft.net>
4734
4735         [BZ #6471]
4736         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
4737         for 2.16.
4738
4739 2012-03-16  David S. Miller  <davem@davemloft.net>
4740
4741         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
4742         warnings.
4743
4744         [BZ #6471]
4745         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
4746         properly.
4747         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
4748         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
4749         sysdep_routines when subdir is sysvipc.
4750         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
4751         __getshmlba helper.
4752
4753         * sysdeps/sparc/fpu/libm-test/ulps: Update.
4754
4755 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4756
4757         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
4758         [__LP64__].
4759
4760 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4761
4762         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
4763         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
4764         (__lround): Renamed to ...
4765         (__llround): This.  Replace long int with long long int.
4766         Define lround functions as aliases of llround functions.
4767         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
4768
4769 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4770
4771         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4772         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
4773         adresses to uintptr_t.  Replace "long int" and "unsigned long
4774         int" with "greg_t" on va_arg.
4775
4776 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4777
4778         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
4779         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
4780
4781         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
4782         Move e_machine check before EI_CLASS check.  Handle x32
4783         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
4784         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
4785         SKIP_EM_IA_64 and include
4786         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
4787
4788         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
4789         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
4790         (add_system_dir): New macro.
4791
4792         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
4793         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
4794
4795 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4796
4797         [BZ #2551]
4798         [BZ #2552]
4799         [BZ #2553]
4800         [BZ #2554]
4801         [BZ #2562]
4802         [BZ #2563]
4803         [BZ #2565]
4804         [BZ #2566]
4805         [BZ #2576]
4806         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
4807         (y0): Likewise.
4808         * math/w_j0f.c (j0f): Likewise.
4809         (y0f): Likewise.
4810         * math/w_j0l.c (__j0l): Likewise.
4811         (__y0l): Likewise.
4812         * math/w_j1.c (j1): Likewise.
4813         (y1): Likewise.
4814         * math/w_j1f.c (j1f): Likewise.
4815         (y1f): Likewise.
4816         * math/w_j1l.c (__j1l): Likewise.
4817         (__y1l): Likewise.
4818         * math/w_jn.c (jn): Likewise.
4819         (yn): Likewise.
4820         * math/w_jnf.c (jnf): Likewise.
4821         (ynf): Likewise.
4822         * math/w_jnl.c (__jnl): Likewise.
4823         (__ynl): Likewise.
4824         * math/libm-test.inc (j0_test): Add more tests.
4825         (j1_test): Likewise.
4826         (jn_test): Likewise.  Add trailing semicolon to existing test.
4827         (y0_test): Likewise.
4828         (y1_test): Likewise.
4829         * sysdeps/i386/fpu/libm-test-ulps: Update.
4830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4831
4832         [BZ #13851]
4833         [BZ #13854]
4834         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
4835         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
4836         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
4837         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
4838         (__tanl): Set errno for infinite argument.
4839         * sysdeps/i386/fpu/mptan.c: Remove.
4840         * sysdeps/i386/fpu/s_tan.S: Likewise.
4841         * sysdeps/i386/fpu/s_tanl.S: Likewise.
4842         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
4843         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
4844         * math/libm-test.inc (tan_test): Add more tests and enable more
4845         tests for double and long double.
4846         * sysdeps/i386/fpu/libm-test-ulps: Update.
4847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4848
4849 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4850
4851         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
4852         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
4853
4854 2012-03-16  Roland McGrath  <roland@hack.frob.com>
4855
4856         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
4857         * configure.in: Use it for both main tree and add-ons.
4858         * configure: Regenerated.
4859
4860 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4861
4862         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
4863
4864 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4865
4866         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
4867         in comment.
4868
4869         [BZ #13851]
4870         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
4871         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
4872         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4873         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
4874         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
4875         infinite argument.
4876         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
4877         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
4878         != 0 for prec == 2.
4879         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
4880         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
4881         * sysdeps/i386/fpu/s_cosl.S: Likewise.
4882         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
4883         * sysdeps/i386/fpu/s_sinl.S: Likewise.
4884         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
4885         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
4886         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
4887         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
4888         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
4889         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
4890         * math/libm-test.inc (cos_test): Add more tests and enable more
4891         tests for long double.
4892         (sin_test): Likewise.
4893         (sincos_test): Likewise.
4894         * sysdeps/i386/fpu/libm-test-ulps: Update.
4895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4896
4897 2012-03-16  David S. Miller  <davem@davemloft.net>
4898
4899         * sysdeps/sparc/fpu/math_private.h: New file.
4900
4901 2012-03-15  David S. Miller  <davem@davemloft.net>
4902
4903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
4904         file.
4905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
4906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
4907         file.
4908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
4909         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
4910         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
4911         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
4912         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
4913         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
4914         sysdep routines.
4915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4916
4917         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
4918         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
4919
4920         * sysdeps/sparc/sparc-ifunc.h: New file.
4921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
4922         sparc-ifunc.h
4923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4925         Likewise.
4926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
4927         Likewise.
4928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
4929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
4930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4932         Likewise.
4933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
4938         Likewise.
4939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
4940         Likewise.
4941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
4943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
4944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
4945         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4946         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4947         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
4948         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
4949         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4950         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4951         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4952         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4953         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4954         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4955         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
4956         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
4957         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
4958         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
4959         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
4960         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
4961         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
4962         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
4963         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
4964         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
4965
4966 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4967
4968         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
4969         scaling.
4970         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4971
4972 2012-03-15  Andreas Jaeger  <aj@suse.de>
4973
4974         [BZ #13852]
4975         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
4976         ieee754/flt-32 implementation for sin, cos and sincos.
4977         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
4978         * sysdeps/i386/fpu/s_cosf.S: Likewise.
4979         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
4980         * sysdeps/i386/fpu/s_sinf.S: Likewise.
4981         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
4982         ieee754/flt-32 implementation for tan.
4983
4984         * math/libm-test.inc (cos_test): Enable some large input tests for
4985         float as well
4986         (sin_test): Likewise.
4987         (sincos_test): Likewise.
4988         (tan_test): Add tests for large input.
4989
4990         * sysdeps/i386/fpu/libm-test-ulps: Update.
4991
4992 2012-03-15  Andreas Jaeger  <aj@suse.de>
4993
4994         [BZ #13658]
4995         * math/libm-test.inc (cos_test): Add more test cases.
4996         (sin_test): Likewise.
4997         (sincos_test): Likewise.
4998
4999 2012-03-15  Andreas Jaeger  <aj@suse.de>
5000
5001         [BZ #13837]
5002         * math/libm-test.inc (cos_test): Add a test case for large input
5003         value.
5004         (sin_test): Likewise.
5005         (sincos_test): Likewise.
5006
5007 2012-03-15  Andreas Jaeger  <aj@suse.de>,
5008         Joseph Myers  <joseph@codesourcery.com>
5009
5010         [BZ #13658]
5011         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
5012         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
5013         * sysdeps/i386/fpu/branred.c: Likewise.
5014         * sysdeps/i386/fpu/dosincos.c: Likewise.
5015         * sysdeps/i386/fpu/mpa.c: Likewise.
5016         * sysdeps/i386/fpu/s_cos.S: Likewise.
5017         * sysdeps/i386/fpu/s_sin.S: Likewise.
5018         * sysdeps/i386/fpu/s_sincos.S: Likewise.
5019         * sysdeps/i386/fpu/sincos32.c: Likewise.
5020
5021         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
5022         Define.
5023         (libc_feupdateenv_53bit): Define.
5024         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
5025         Define.
5026         (libc_feupdateenv_53bit): Define.
5027
5028         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
5029         53 bit (without extend i386 double precision).
5030
5031         * math/libm-test.inc (sincos_test): Add tests for large input.
5032         (sin): Likewise.
5033         (cos): Likewise.
5034
5035         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
5036
5037 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5038
5039         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5040
5041 2012-03-15  David S. Miller  <davem@davemloft.net>
5042
5043         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
5044         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
5045         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
5046         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
5047         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
5048         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
5049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
5050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
5051         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
5052         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
5053         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
5054         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
5055         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
5056         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
5057         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
5058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
5059         file.
5060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
5061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
5062         file.
5063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
5064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
5065         file.
5066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
5067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
5068         file.
5069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
5070         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
5071         fmin/fmax sysdep routines.
5072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5073
5074 2012-03-14  David S. Miller  <davem@davemloft.net>
5075
5076         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
5077         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
5078         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
5079         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
5080         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
5081         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
5082         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
5083         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
5084         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
5085         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
5086         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
5087         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
5088         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
5089         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
5090         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
5091         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
5092         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
5093         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
5094         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
5095         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
5096         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
5097         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
5098         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
5099         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
5100         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
5101         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
5102         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
5103         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
5104         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
5105         routines.
5106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
5107         file.
5108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
5109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
5110         file.
5111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
5112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
5113         file.
5114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
5115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
5116         file.
5117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
5118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
5119         file.
5120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
5121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
5122         file.
5123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
5124         file.
5125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
5126         file.
5127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
5128         file.
5129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
5130         New file.
5131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
5132         file.
5133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
5134         file.
5135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
5136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
5137         file.
5138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
5139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
5140         file.
5141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
5142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
5143         file.
5144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
5145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
5146         VIS3 routines.
5147
5148         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5149         New file.
5150
5151         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5152
5153         * sysdeps/sparc/configure.in: New file.
5154         * sysdeps/sparc/configure: Generate.
5155         * configure.in (libc_cv_sparc_as_vis3): Substitute.
5156         * configure: Regenerate.
5157         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
5158         * config.make.in (have-as-vis3): New.
5159         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
5160         available use -Av9d instead of -Av9a.
5161         * sysdeps/sparc/sparc64/Makefile: Likewise.
5162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
5163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
5164         New file.
5165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
5166         file.
5167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
5168         New file.
5169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
5170         file.
5171         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
5172         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
5173         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
5174         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
5175         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
5176
5177         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
5178         fzeros/fnegs to load 0x80000000 into a float register instead of
5179         using the stack.
5180         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
5181
5182 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5183
5184         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5185         bits/syscall.h.
5186         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
5187         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
5188         ($(inst_includedir)/bits/syscall.h): Remove rule.
5189         ($(objpfx)bits/syscall.d): Include instead of
5190         $(objpfx)syscall-list.d.
5191         (generated): Change syscall-list.h and syscall-list.d to
5192         bits/syscall.h and bits/syscall.d.
5193
5194 2012-03-14  Roland McGrath  <roland@hack.frob.com>
5195
5196         [BZ #13846]
5197         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
5198
5199 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5200
5201         [BZ #13841]
5202         * math/s_csqrt.c: Include <float.h>.
5203         (__csqrt): Scale large or subnormal inputs.
5204         * math/s_csqrtf.c: Likewise.
5205         * math/s_csqrtl.c: Likewise.
5206         * math/libm-test.inc (csqrt_test): Add more tests.
5207         * sysdeps/i386/fpu/libm-test-ulps: Update.
5208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5209
5210         [BZ #13840]
5211         * math/libm-test.inc (hypot_test): Add more tests.
5212
5213 2012-03-13  David S. Miller  <davem@davemloft.net>
5214
5215         [BZ #13840]
5216         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
5217         double-precision for the calculation instead of scaling.
5218
5219 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
5220
5221         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
5222         manipulate bits before adding and subtracting TWO52[sx].
5223         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
5224         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5225         Likewise.
5226         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
5227
5228 2012-03-13  David S. Miller  <davem@davemloft.net>
5229
5230         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
5231         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
5232         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
5233         rtld-global-offsets.h
5234         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5235
5236         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
5237         large parameters.
5238
5239         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
5240
5241         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
5242         'err' in the ifdef scope in which it is actually used.
5243
5244         * nss/nss_db/db-init.c: Include string.h
5245
5246 2012-03-12  David S. Miller  <davem@davemloft.net>
5247
5248         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
5249         masking out of the most significant byte of random value used.
5250         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5251         Fix coding style in previous change.
5252
5253         * sysdeps/unix/sysv/linux/kernel-features.h
5254         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
5255         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
5256         expression.
5257         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
5258         later.
5259
5260 2012-03-11  David S. Miller  <davem@davemloft.net>
5261
5262         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
5263         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
5264         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
5265         for 'resultvar' otherwise things get truncated on 64-bit.
5266
5267         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5268         Fix masking out of the most significant byte of random value used.
5269
5270         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5271
5272 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
5273
5274         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5275
5276 2012-03-09  David S. Miller  <davem@davemloft.net>
5277
5278         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
5279         variables with appropriate CPP guards.
5280         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
5281         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
5282         on resulting framesize and the management of the outregs buffer for pltexit.
5283         Preserve floating point return values across _dl_call_pltexit call.
5284         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
5285         framesize and the management of the outregs buffer for pltexit.
5286         Preserve floating point return values across _dl_call_pltexit
5287         call.
5288         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
5289         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
5290         (print_exit): Fix format string for return register value.
5291
5292 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
5293
5294         * sunrpc/Makefile (others): Add rpcgen.
5295         ($(objpfx)rpcgen): Remove special build rule and dependency on
5296         libc.
5297         * sunrpc/rpcgen.c: New file.
5298
5299 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
5300
5301         [BZ #13673]
5302         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
5303         * stdio-common/bug-vfprintf-nargs.c: Likewise.
5304         * sysdeps/i386/crti.S: Likewise.
5305         * sysdeps/i386/crtn.S: Likewise.
5306         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
5307         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
5308         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
5309         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
5310         * sysdeps/sh/crti.S: Likewise.
5311         * sysdeps/sh/crtn.S: Likewise.
5312         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5313
5314         [BZ #13673]
5315         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
5316         with URL.
5317         * locale/programs/locfile-kw.gperf: Likewise.
5318         * locale/programs/charmap-kw.h: Regenerated.
5319         * locale/programs/locfile-kw.h: Likewise.
5320
5321         [BZ #13673]
5322         * intl/plural.y: Replace FSF snail mail address with URL.
5323         * intl/plural.c: Regenerated.
5324
5325 2012-03-09  Richard Henderson  <rth@twiddle.net>
5326
5327         * include/math_private.h: Remove file.
5328         * math/math_private.h: Move file ...
5329         * sysdeps/generic/math_private.h: ... here.
5330
5331         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
5332         * sysdeps/powerpc/fpu/math_private.h: Likewise.
5333         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5334
5335         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
5336         and <math_private.h>.
5337         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5338         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5339         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5340         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5341         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5342         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
5343         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5344         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5345         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
5346         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5347         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5348         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5349         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
5350         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5351         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
5352         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
5353         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5354         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5355         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
5356         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
5357         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5358         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
5359         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
5360         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5361         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
5362         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5363         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
5364         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5365         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5366         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5367         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
5368         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5369         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5370         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5371         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5372         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5373         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5374         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5375         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5376         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5377         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
5378         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5379         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5380         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5381         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
5382         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5383         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
5384         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
5385         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5386         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5387         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
5388         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
5389         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
5390         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5391         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
5392         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5393         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5394         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
5395         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
5396         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
5397         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5398         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
5399         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5400         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5401         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5402         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5403         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5404         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5405         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
5406         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
5407         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5408         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5409         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5410         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5411         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
5412         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5413         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
5414         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5415         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
5416         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
5417         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5418         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
5419         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5420         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5421         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5422         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
5423         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
5424         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5425         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
5426         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5427         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5428         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
5429         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5430         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
5431         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
5432         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
5433         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5434         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
5435         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
5436         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5437         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
5438         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
5439         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
5440         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
5441         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5442         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
5443         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
5444         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
5445         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5446         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5447         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5448         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5449         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
5450         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5451         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5452         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5453         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5454         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5455         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5456         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5457         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5458         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5459         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5460         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
5461         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5462         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5463         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
5464         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5465         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5466         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
5467         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
5468         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5469         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5470         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
5471         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
5472         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5473         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
5474         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5475         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
5476         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5477         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5478         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5479         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5480         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
5481         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
5482         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5483         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5484         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5485         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5486         * sysdeps/ieee754/k_standard.c: Likewise.
5487         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
5488         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5489         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5490         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5491         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5492         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5493         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5494         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5495         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5496         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5497         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5498         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5499         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5500         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5501         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5502         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5503         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5504         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5505         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5506         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5507         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5508         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5509         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5510         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5511         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5512         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5513         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5514         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5515         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5516         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5517         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5518         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5519         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5520         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5521         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5522         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5523         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5524         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
5525         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5526         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5527         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5528         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5529         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5530         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5531         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5532         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5533         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5534         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5535         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5536         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5537         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5538         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5539         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5540         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5541         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5542         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5543         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
5544         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5545         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5546         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5547         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5548         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5549         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5550         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
5551         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5552         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5553         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
5554         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
5555         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
5556         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
5557         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
5558         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5559         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
5560         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
5561         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
5562         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
5563         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
5564         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
5565         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5566         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5567         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5568         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
5569         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5570         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5571         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
5572         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5573         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5574         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
5575         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5576         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5577         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
5578         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5579         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
5580         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5581         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5582         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5583         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
5584         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
5585         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
5586         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
5587         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5588         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5589         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5590         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5591         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
5592         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5593         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5594         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
5595         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
5596         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5597         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5598         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5599         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
5600         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5601         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
5602         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5603         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
5604         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5605         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5606         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
5607         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
5608         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5609         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
5610         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
5611         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5612         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5613         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5614         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5615         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5616         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5617         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5618         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5619         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5620         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
5621         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5622         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5623         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
5624         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5625         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5626         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
5627         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
5628         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5629         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
5630         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
5631         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5632         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5633         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5634         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5635         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5636         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
5637         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5638         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5639         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5640         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5641         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
5642         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
5643         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5644         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5645         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5646         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
5647         * sysdeps/ieee754/s_lib_version.c: Likewise.
5648         * sysdeps/ieee754/s_matherr.c: Likewise.
5649         * sysdeps/ieee754/s_signgam.c: Likewise.
5650         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5651         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5652         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
5653         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
5654         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
5655         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5656         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
5657         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
5658         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5659         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
5660         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
5661         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
5662         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5663         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5664         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
5665         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5666         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5667         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5668         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5669         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5670         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5671
5672 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5673
5674         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
5675         * sunrpc/rpc_main.c: Likewise.
5676         * sunrpc/rpc_svcout.c: Likewise.
5677
5678 2012-03-09  David S. Miller  <davem@davemloft.net>
5679
5680         * include/math_private.h: New file.
5681
5682 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5683
5684         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
5685         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
5686         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
5687         from <bits/socket_type.h>.
5688         (enum __socket_type): Don't define here.
5689         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
5690         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5691         bits/socket_type.h.
5692
5693         [BZ #13566]
5694         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
5695         checking __USE_GNU.
5696
5697         * Makerules ($(inst_includedir)/%.h): New rule.
5698         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
5699         (install-others): Remove variable setting.
5700         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
5701
5702 2012-03-08  Richard Henderson  <rth@twiddle.net>
5703
5704         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
5705         from macro to inline function; merge with the
5706         !__LIBC_INTERNAL_MATH_INLINES version.
5707         (__ieee754_sqrtf): Likewise.
5708
5709         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
5710         to inline function.
5711         (__rintf, __floor, __floorf): Likewise.
5712
5713         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
5714         macro to inline function.
5715         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
5716
5717         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
5718         not <math/math_private.h>.
5719
5720 2012-03-08  David S. Miller  <davem@davemloft.net>
5721
5722         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
5723         copyright year.
5724         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5725
5726 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
5727
5728         * resolv/gai_misc.c (handle_requests): Fix struct timespec
5729         normalization.
5730         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
5731         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
5732
5733 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
5734
5735         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
5736         be defined individually, they must be defined as a block.  Define
5737         S for printing a string instead of hidint the different by using a
5738         macro for adding the 'l'.
5739         * stdio-common/tst-fphex-wide.c: Adjust.
5740
5741 2012-03-07  Marek Polacek  <polacek@redhat.com>
5742
5743         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
5744
5745 2012-03-08  Marek Polacek  <polacek@redhat.com>
5746
5747         [BZ #13806]
5748         * stdio-common/Makefile (tests): Add tst-fphex-wide.
5749         * stdio-common/tst-fphex.c: Define a few macros to make the
5750         test reusable.  Use them.
5751         * stdio-common/tst-fphex-wide.c: New file.
5752
5753 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
5754
5755         [BZ #6911]
5756         * manual/macros.texi (gnusystems): New macro.
5757         (nongnusystems): Likewise.
5758         (gnulinuxhurdsystems): Likewise.
5759         (gnuhurdsystems): Likewise..
5760         (gnulinuxsystems): Likewise.
5761         * manual/charset.texi: Use new macros or @theglibc{} to refer to
5762         variants of the GNU system, not "GNU system".
5763         * manual/conf.texi: Likewise.
5764         * manual/errno.texi: Likewise.  Update example of errno macro
5765         expansion.
5766         * manual/filesys.texi: Likewise.
5767         (getumask): Document as specific to GNU/Hurd.
5768         * manual/install.texi: Likewise.  Reword some references to
5769         GNU/Linux.
5770         * manual/intro.texi: Likewise.
5771         * manual/io.texi: Likewise.
5772         (File Name Portability): Detail which constraints are inapplicable
5773         to all GNU systems and which are only inapplicable to GNU/Hurd.
5774         * manual/job.texi: Likewise.
5775         * manual/llio.texi: Likewise.
5776         (O_NOCTTY): Document as present on GNU/Linux.
5777         * manual/maint.texi: Likewise.
5778         * manual/memory.texi: Likewise.
5779         * manual/pattern.texi: Likewise.
5780         * manual/pipe.texi: Likewise.
5781         * manual/process.texi: Likewise.
5782         * manual/resource.texi: Likewise.
5783         (RUSAGE_CHILDREN): Remove statement about specifying a particular
5784         child on GNU/Hurd.
5785         * manual/setjmp.texi: Likewise.
5786         * manual/signal.texi: Likewise.
5787         * manual/startup.texi: Likewise.
5788         * manual/stdio.texi: Likewise.
5789         * manual/terminal.texi: Likewise.
5790         (ONLCR): Document as POSIX.
5791         (OXTABS): Document availability on GNU/Linux as XTABS.
5792         (ONOEOT): Document availability separately from other bits.
5793         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
5794         * manual/time.texi: Likewise.
5795         * manual/users.texi: Likewise.
5796         * INSTALL: Regenerated.
5797         * sysdeps/gnu/errlist.c: Regenerated.
5798
5799         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
5800         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
5801         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
5802         puts.
5803         * configure: Regenerated.
5804
5805 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
5806
5807         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
5808         default includes instead of AC_HEADER_CHECK.
5809         * sysdeps/i386/configure: Regenerated.
5810
5811         [BZ #10716]
5812         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
5813         * math/s_cacoshf.c (__cacoshf): Likewise.
5814         * math/s_cacoshl.c (__cacoshl): Likewise.
5815         * math/s_casinh.c (__casinh): Set signs of result from argument.
5816         * math/s_casinhf.c (__casinhf): Likewise.
5817         * math/s_casinhl.c (__casinhl): Likewise.
5818         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
5819         (casinh_test): Add more tests.
5820         * sysdeps/i386/fpu/libm-test-ulps: Update.
5821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5822
5823 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
5824
5825         * po/zh_TW.po: Update from translation team.
5826
5827         * login/Makefile (distribute): Remove variable.
5828         * catgets/Makefile: Likewise.
5829         * mach/Makefile: Likewise.
5830         * malloc/Makefile: Likewise.
5831         * misc/Makefile: Likewise.
5832         * iconv/Makefile: Likewise.
5833         * nscd/Makefile: Likewise.
5834         * hurd/Makefile: Likewise.
5835         * manual/Makefile: Likewise.
5836         * locale/Makefile: Likewise.
5837         * intl/Makefile: Likewise.
5838         * conform/Makefile: Likewise.
5839         * nss/Makefile: Likewise.
5840         * time/Makefile: Likewise.
5841         * soft-fp/Makefile: Likewise.
5842         * dirent/Makefile: Likewise.
5843         * gmon/Makefile: Likewise.
5844         * po/Makefile: Likewise.
5845         * rt/Makefile: Likewise.
5846         * socket/Makefile: Likewise.
5847         * math/Makefile: Likewise.
5848         * signal/Makefile: Likewise.
5849         * debug/Makefile: Likewise.
5850         * elf/Makefile: Likewise.
5851         * timezone/Makefile: Likewise.
5852         * stdlib/Makefile: Likewise.
5853         * iconvdata/Makefile: Likewise.
5854         * sunrpc/Makefile: Likewise.
5855         * io/Makefile: Likewise.
5856         * argp/Makefile: Likewise.
5857         * inet/Makefile: Likewise.
5858         * hesiod/Makefile: Likewise.
5859         * grp/Makefile: Likewise.
5860         * csu/Makefile: Likewise.
5861         * wctype/Makefile: Likewise.
5862         * crypt/Makefile: Likewise.
5863         * libio/Makefile: Likewise.
5864         * string/Makefile: Likewise.
5865         * nis/Makefile: Likewise.
5866         * resolv/Makefile: Likewise.
5867         * stdio-common/Makefile: Likewise.
5868         * wcsmbs/Makefile: Likewise.
5869         * dlfcn/Makefile: Likewise.
5870         * posix/Makefile: Likewise.
5871
5872         [BZ #6959]
5873         * timezone/Makefile: Don't install timezone files, just the programs
5874         and scripts.
5875
5876 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
5877
5878         * nss/databases.def: Add missing gshadow entry.
5879
5880         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
5881
5882 2012-03-06  Marek Polacek  <polacek@redhat.com>
5883
5884         [BZ #13726]
5885         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
5886         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5887         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
5888         * stdio-common/tst-long-dbl-fphex.c: New file.
5889
5890 2012-03-06  David S. Miller  <davem@davemloft.net>
5891
5892         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5893         (set_obp_int): New function.
5894         (get_obp_int): New function.
5895         (__get_clockfreq_via_dev_openprom): Likewise.
5896         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5897         Avoid unused variable warnings on 'val' and use builtin_expect.
5898         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
5899         __builtin_expect.
5900         (INLINE_CLONE_SYSCALL): Likewise.
5901
5902 2012-03-05  David S. Miller  <davem@davemloft.net>
5903
5904         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5905
5906 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
5907
5908         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5909
5910         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
5911         only for |x| >= 40.
5912         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5913
5914 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5915
5916         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
5917         Replace gettimeofday with __vdso_gettimeofday.
5918
5919         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5920         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
5921         __vdso_clock_gettime and __vdso_getcpu.
5922
5923         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
5924         time with __vdso_time.
5925
5926 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5927
5928         * manual/lang.texi (size_t): Note types to which size_t may be
5929         equivalent with the GNU C Library, but do not describe when
5930         differences between them are significant.
5931
5932 2012-03-05  Andreas Jaeger  <aj@suse.de>
5933
5934         * sysdeps/i386/fpu/libm-test-ulps: Update.
5935
5936 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5937
5938         [BZ #3976]
5939         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
5940         (__ieee754_pow): Save and restore rounding mode and use
5941         round-to-nearest for main computations.
5942         * math/libm-test.inc (pow_test_tonearest): New function.
5943         (pow_test_towardzero): Likewise.
5944         (pow_test_downward): Likewise.
5945         (pow_test_upward): Likewise.
5946         (main): Call the new functions.
5947         * sysdeps/i386/fpu/libm-test-ulps: Update.
5948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5949
5950         [BZ #3976]
5951         * math/libm-test.inc (cosh_test_tonearest): New function.
5952         (cosh_test_towardzero): Likewise.
5953         (cosh_test_downward): Likewise.
5954         (cosh_test_upward): Likewise.
5955         (sinh_test_tonearest): Likewise.
5956         (sinh_test_towardzero): Likewise.
5957         (sinh_test_downward): Likewise.
5958         (sinh_test_upward): Likewise.
5959         (main): Call the new functions.
5960         * sysdeps/i386/fpu/libm-test-ulps: Update.
5961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5962
5963 2012-03-05  Tom de Vries  <tom@codesourcery.com>
5964
5965         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
5966         default stack guard is set in last bytes.
5967         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
5968
5969 2012-03-05  Kees Cook  <keescook@chromium.org>
5970
5971         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
5972
5973         [BZ #13656]
5974         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
5975         possibly allocate from heap instead of stack.
5976         * stdio-common/bug-vfprintf-nargs.c: New file.
5977         * stdio-common/Makefile (tests): Add nargs overflow test.
5978
5979 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
5980
5981         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5982
5983 2012-03-03  Marek Polacek  <polacek@redhat.com>
5984
5985         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
5986         * math/math_private.h: Likewise.
5987         * stdlib/tst-strtod.c: Likewise.
5988         * sysdeps/i386/i486/bits/atomic.h: Likewise.
5989         * sysdeps/x86_64/bits/atomic.h: Likewise.
5990
5991 2012-03-02  David S. Miller  <davem@davemloft.net>
5992
5993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
5994         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
5995         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
5996         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
5997         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
5998         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
5999         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
6000         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
6001
6002 2012-03-02  Roland McGrath  <roland@hack.frob.com>
6003
6004         [BZ #13792]
6005         * manual/examples/README: New file, says the example source files
6006         can be used under GPL>=2.
6007         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
6008         line containing just "*/".
6009         * manual/examples/add.c: Add copyright header (GPL>=2).
6010         * manual/examples/argp-ex1.c: Likewise.
6011         * manual/examples/argp-ex2.c: Likewise.
6012         * manual/examples/argp-ex3.c: Likewise.
6013         * manual/examples/argp-ex4.c: Likewise.
6014         * manual/examples/atexit.c: Likewise.
6015         * manual/examples/db.c: Likewise.
6016         * manual/examples/dir.c: Likewise.
6017         * manual/examples/dir2.c: Likewise.
6018         * manual/examples/execinfo.c: Likewise.
6019         * manual/examples/filecli.c: Likewise.
6020         * manual/examples/filesrv.c: Likewise.
6021         * manual/examples/fmtmsgexpl.c: Likewise.
6022         * manual/examples/genpass.c: Likewise.
6023         * manual/examples/inetcli.c: Likewise.
6024         * manual/examples/inetsrv.c: Likewise.
6025         * manual/examples/isockad.c: Likewise.
6026         * manual/examples/longopt.c: Likewise.
6027         * manual/examples/memopen.c: Likewise.
6028         * manual/examples/memstrm.c: Likewise.
6029         * manual/examples/mkfsock.c: Likewise.
6030         * manual/examples/mkisock.c: Likewise.
6031         * manual/examples/mygetpass.c: Likewise.
6032         * manual/examples/pipe.c: Likewise.
6033         * manual/examples/popen.c: Likewise.
6034         * manual/examples/rprintf.c: Likewise.
6035         * manual/examples/search.c: Likewise.
6036         * manual/examples/select.c: Likewise.
6037         * manual/examples/setjmp.c: Likewise.
6038         * manual/examples/sigh1.c: Likewise.
6039         * manual/examples/sigusr.c: Likewise.
6040         * manual/examples/stpcpy.c: Likewise.
6041         * manual/examples/strdupa.c: Likewise.
6042         * manual/examples/strftim.c: Likewise.
6043         * manual/examples/strncat.c: Likewise.
6044         * manual/examples/subopt.c: Likewise.
6045         * manual/examples/swapcontext.c: Likewise.
6046         * manual/examples/termios.c: Likewise.
6047         * manual/examples/testopt.c: Likewise.
6048         * manual/examples/testpass.c: Likewise.
6049         * manual/examples/timeval_subtract.c: Likewise.
6050
6051         [BZ #13792]
6052         * manual/time.texi (Elapsed Time): Move timeval_subtract example
6053         function to ...
6054         * manual/timeval_subtract.c.texi: ... here, new file.
6055
6056 2012-03-02  David S. Miller  <davem@davemloft.net>
6057
6058         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
6059
6060 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
6061
6062         [BZ #3976]
6063         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
6064         (__sin): Save and restore rounding mode and use round-to-nearest
6065         for all computations.
6066         (__cos): Save and restore rounding mode and use round-to-nearest
6067         for all computations.
6068         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
6069         <fenv.h>.
6070         (tan): Save and restore rounding mode and use round-to-nearest for
6071         all computations.
6072         * math/libm-test.inc (cos_test_tonearest): New function.
6073         (cos_test_towardzero): Likewise.
6074         (cos_test_downward): Likewise.
6075         (cos_test_upward): Likewise.
6076         (sin_test_tonearest): Likewise.
6077         (sin_test_towardzero): Likewise.
6078         (sin_test_downward): Likewise.
6079         (sin_test_upward): Likewise.
6080         (tan_test_tonearest): Likewise.
6081         (tan_test_towardzero): Likewise.
6082         (tan_test_downward): Likewise.
6083         (tan_test_upward): Likewise.
6084         (main): Call the new functions.
6085         * sysdeps/i386/fpu/libm-test-ulps: Update.
6086         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6087
6088         [BZ #10135]
6089         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
6090         small n, then large n, before computing and testing k+n.
6091         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6092         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6093         Likewise.
6094         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6095         Likewise.
6096         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
6097         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6098         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6099         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6100         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6101         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6102         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6103         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
6104         * math/libm-test.inc (scalbn_test): Add more tests.
6105         (scalbln_test): Likewise.
6106
6107         * manual/filesys.texi (mode_t): Describe constraints on size and
6108         signedness, not exact equivalence to a particular type.
6109         (ino_t): Likewise.
6110         (ino64_t): Likewise.
6111         (dev_t): Likewise.
6112         (nlink_t): Likewise.
6113         (blkcnt_t): Likewise.
6114         (blkcnt64_t): Likewise.
6115         * manual/llio.texi (off_t): Likewise.
6116
6117         [BZ #3976]
6118         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
6119         (__ieee754_exp): Save and restore rounding mode and use
6120         round-to-nearest for all computations.
6121         * math/libm-test.inc (exp_test_tonearest): New function.
6122         (exp_test_towardzero): Likewise.
6123         (exp_test_downward): Likewise.
6124         (exp_test_upward): Likewise.
6125         (main): Call the new functions.
6126         * sysdeps/i386/fpu/libm-test-ulps: Update.
6127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6128
6129 2012-03-01  Chris Demetriou  <cgd@google.com>
6130
6131         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
6132         have predictable order.
6133
6134 2012-03-01  David S. Miller  <davem@davemloft.net>
6135
6136         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
6137
6138         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
6139         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
6140         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
6141         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
6142
6143         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
6144         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
6145         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
6146         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
6147         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
6148         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
6149         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
6150         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
6151         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
6152
6153         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6154
6155         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
6156         * sysdeps/sparc/fpu/libm-test-ulps: to here.
6157         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
6158
6159         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
6160         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6161         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6162         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
6163         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
6164         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
6165         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
6166         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6167         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6168         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
6169         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
6170         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6171         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6172         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6173         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6174         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6175         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
6176         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
6177         * sysdeps/sparc/elf/configure: Regenerated.
6178
6179 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
6180
6181         * configure.in (AS, LD): Require binutils 2.20 or later.
6182         * configure: Regenerated.
6183         * manual/install.texi (Tools for Compilation): Give binutils 2.20
6184         as required minimum version.
6185         * INSTALL: Regenerated.
6186
6187         [BZ #2541]
6188         [BZ #4108]
6189         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
6190         before squaring exponent.
6191         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
6192         bottom long double and 27 bits of top long double before squaring
6193         exponent.
6194         * math/libm-test.inc (erfc_test): Add more tests.
6195         * sysdeps/i386/fpu/libm-test-ulps: Update.
6196         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6198
6199 2012-03-01  Kai Tietz  <ktietz@redhat.com>
6200
6201         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
6202         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
6203         containing bit-fields.
6204         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6205         * soft-fp/single.h (_FP_UNION_S): Likewise.
6206         * soft-fp/double.h (_FP_UNION_D): Likewise.
6207
6208 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6209
6210         [BZ #13786]
6211         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
6212         not include ../strcmp.S.
6213         [USE_AS_STRNCASECMP_L]: Likewise.
6214         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
6215         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
6216         * sysdeps/i386/i686/multiarch/strncase_l-c.c
6217         (__strncasecmp_l_ia32): Define as alias to
6218         __strncasecmp_l_nonascii.
6219
6220         [BZ #5794]
6221         * math/libm-test.inc (expm1_test): Add test for bug 5794.
6222         * sysdeps/i386/fpu/libm-test-ulps: Update.
6223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6224
6225         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
6226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6227
6228 2012-02-29  Jeff Law  <law@redhat.com>
6229
6230         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
6231         out of bounds read.
6232
6233 2012-02-29  Marek Polacek  <polacek@redhat.com>
6234
6235         [BZ #13706]
6236         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
6237         * elf/Makefile: Add rules to run tst-unused-dep.out.
6238
6239 2012-02-28  David S. Miller  <davem@davemloft.net>
6240
6241         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
6242         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
6243         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
6244         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
6245         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
6246         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
6247
6248 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6249
6250         * math/libm-test.inc (llround_test): Move one test from
6251         lround_test.  Use TEST_f_L in moved test.
6252         (lround_test): Move misplaced test to llround_test.  Add testcase
6253         from bug 2561.
6254
6255 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
6256
6257         * sysdeps/x86_64/fpu/e_expf.S: New file.
6258         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
6259
6260 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
6261
6262         [BZ #13637]
6263         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
6264         of remain_len that may cause incomplete multi-byte character and
6265         false match.
6266         * posix/bug-regex33.c: New file.
6267         * posix/Makefile (tests): Add bug-regex33.
6268
6269 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
6270
6271         * manual/macros.texi: New file.
6272         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
6273         * manual/libc.texinfo: Include macros.texi.
6274         * manual/creatute.texi: Likewise.
6275         * manual/install.texi: Likewise.
6276         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
6277         @glibcadj{} in references to the GNU C Library.
6278         * manual/charset.texi: Likewise.
6279         * manual/conf.texi: Likewise.
6280         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
6281         when not using those macros.
6282         * manual/creature.texi: Likewise.
6283         * manual/crypt.texi: Likewise.
6284         * manual/errno.texi: Likewise.
6285         * manual/filesys.texi: Likewise.
6286         * manual/header.texi: Likewise.
6287         * manual/install.texi: Likewise.
6288         * manual/intro.texi: Likewise.
6289         * manual/io.texi: Likewise.
6290         * manual/job.texi: Likewise.
6291         * manual/lang.texi: Likewise.
6292         * manual/libc.texiinfo: Likewise.
6293         * manual/llio.texi: Likewise.
6294         * manual/locale.texi: Likewise.
6295         * manual/maint.texi: Likewise.
6296         * manual/math.texi: Likewise.
6297         * manual/memory.texi: Likewise.
6298         * manual/message.texi: Likewise.
6299         * manual/nss.texi: Likewise.
6300         * manual/pattern.texi: Likewise.
6301         * manual/process.texi: Likewise.
6302         * manual/resource.texi: Likewise.
6303         * manual/search.texi: Likewise.
6304         * manual/setjmp.texi: Likewise.
6305         * manual/signal.texi: Likewise.
6306         * manual/socket.texi: Likewise.
6307         * manual/startup.texi: Likewise.
6308         * manual/stdio.texi: Likewise.
6309         * manual/string.texi: Likewise.
6310         * manual/sysinfo.texi: Likewise.
6311         * manual/syslog.texi: Likewise.
6312         * manual/terminal.texi: Likewise.
6313         * manual/time.texi: Likewise.
6314         * manual/users.texi: Likewise.
6315         * INSTALL: Regenerated.
6316         * NOTES: Regenerated.
6317         * sysdeps/gnu/errlist.c: Regenerated.
6318
6319 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
6320
6321         * include/dirent.h: Include <dirstream.h> before
6322         <dirent/dirent.h>.
6323
6324 2012-02-28  David S. Miller  <davem@davemloft.net>
6325
6326         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
6327         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
6328         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
6329         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
6330
6331 2012-02-27  David S. Miller  <davem@davemloft.net>
6332
6333         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
6334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
6335         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
6336         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
6337
6338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
6339         frame pointer instead of stack pointer relative arg slot.
6340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6341         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6342         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6343
6344 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
6345
6346         [BZ #3992]
6347         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
6348
6349 2012-02-27  David S. Miller  <davem@davemloft.net>
6350
6351         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
6352         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6353         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6354         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
6355         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6356         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6357         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
6358         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
6359
6360 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6361
6362         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
6363         later.  Allow versions 5-9.
6364         * configure: Regenerated.
6365         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
6366         required minimum version and 4.6 as recommended version.  Do not
6367         mention bugs in GCC 2.7 and 2.8.
6368         * INSTALL: Regenerated.
6369
6370 2012-02-27  David S. Miller  <davem@davemloft.net>
6371
6372         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
6373         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
6374         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
6375         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
6376         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
6377         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
6378         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
6379         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
6380
6381         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
6382         manipulate bits before adding and subtracting TWO112[sx].
6383         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6384
6385 2012-02-27  Roland McGrath  <roland@hack.frob.com>
6386
6387         [BZ #13775]
6388         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
6389         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
6390         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
6391         being in POSIX, because they are in 1003.1-2008.
6392
6393         * rt/tst-aio.c: Include <fcntl.h>.
6394         * rt/tst-aio7.c: Likewise.
6395         * rt/tst-aio64.c: Likewise.
6396
6397         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
6398
6399 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6400
6401         * manual/install.texi (--with-headers): Describe headers as
6402         interface headers, not private headers.
6403         (Specific advice for GNU/Linux systems): Describe use of headers
6404         from "make headers_install", not private headers from older
6405         kernels.
6406         * INSTALL: Regenerated.
6407         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
6408         Change to 2.6.19.
6409         * sysdeps/unix/sysv/linux/configure: Regenerated.
6410
6411         * manual/llio.texi (fclean): Remove documentation.
6412
6413         * manual/Makefile (libc-texi-generated): New variable.  Include
6414         version.texi.
6415         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
6416         $(libc-texi-generated), not duplicated list of files.
6417         (version.texi, stamp-version): New rules.
6418         (realclean): Remove $(libc-texi-generated), not individual files
6419         from that list.  Do not remove dir-add.texinfo.
6420         * manual/libc.texinfo: Comment out uses of edition numbers and
6421         references to printed manual.  Remove last-updated dates.
6422         (EDITION): Comment out.
6423         (ISBN): Likewise.
6424         (VERSION, UPDATED): Remove.
6425         (version.texi): Include.
6426
6427 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6428
6429         * sysdeps/posix/spawni.c: Include <signal.h>.
6430         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
6431         * sysdeps/pthread/aio_fsync.c: Likewise.
6432
6433 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
6434
6435         * conform/Makefile (tests): Run only when not cross-compiling and
6436         when fast-check is not defined.
6437
6438         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
6439         * conform/data/limits.h-data: Fixes for POSIX2008.
6440         * conform/run-conformtest.sh: Run all tests.
6441         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
6442         headers.
6443         * include/bits/dlfcn.h: Likewise.
6444         * include/langinfo.h: Likewise.
6445         * include/monetary.h: Likewise.
6446         * include/sys/poll.h: Likewise.
6447
6448         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
6449         for __USE_GNU.
6450         * posix/spawn.h: Define __need_sigset_t.
6451         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
6452         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
6453         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
6454         to get sigevent_t only.
6455         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
6456         only for __USE_GNU.
6457         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6458         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6459         process_vm_writev only for __USE_GNU.
6460         * termios/termios.h: Declare tcgetsid also for POSIX2008.
6461
6462         * conform/Makefile: For now ignore errors from run-conformtest.
6463         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
6464         POSIX to avoid namespace pollution.  Don't prepend headers.
6465         * conform/data/aio.h-data: Fixes for POSIX testing.
6466         * conform/data/fcntl.h-data: Likewise.
6467         * conform/data/glob.h-data: Likewise.
6468         * conform/data/grp.h-data: Likewise.
6469         * conform/data/pthread.h-data: Likewise.
6470         * conform/data/pwd.h-data: Likewise.
6471         * conform/data/signal.h-data: Likewise.
6472         * conform/data/spawn.h-data: Likewise.
6473         * conform/data/stdio.h-data: Likewise.
6474         * conform/data/stdlib.h-data: Likewise.
6475         * conform/data/stropts.h-data: Likewise.
6476         * conform/data/sys/mman.h-data: Likewise.
6477         * conform/data/sys/stat.h-data: Likewise.
6478         * conform/data/sys/types.h-data: Likewise.
6479         * conform/data/sys/wait.h-data: Likewise.
6480         * conform/data/time.h-data: Likewise.
6481         * conform/data/unistd.h-data: Likewise.
6482         * conform/data/utime.h-data: Likewise.
6483
6484         * io/sys/stat.h: fchmod was always in POSIX.
6485         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
6486         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
6487         * rt/aio.h: Define __need_timespec before including <time.h>.
6488         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
6489         struct.  Add forward declaration of pthread_attr_t and use it in
6490         sigevent.
6491         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6492         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6493         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
6494         always remove CLK_TCK definition.
6495
6496 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
6497
6498         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
6499
6500 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
6501
6502         * conform/run-conformtest.sh: New file.
6503         * conform/Makefile: Run run-conformtest for tests.
6504         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
6505         support.
6506
6507         * conform/data/uchar.h-data: New file.
6508         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
6509         * conform/data/arpa/inet.h-data: Likewise.
6510         * conform/data/assert.h-data: Likewise.
6511         * conform/data/complex.h-data: Likewise.
6512         * conform/data/cpio.h-data: Likewise.
6513         * conform/data/ctype.h-data: Likewise.
6514         * conform/data/dirent.h-data: Likewise.
6515         * conform/data/dlfcn.h-data: Likewise.
6516         * conform/data/errno.h-data: Likewise.
6517         * conform/data/fcntl.h-data: Likewise.
6518         * conform/data/float.h-data: Likewise.
6519         * conform/data/fmtmsg.h-data: Likewise.
6520         * conform/data/fnmatch.h-data: Likewise.
6521         * conform/data/ftw.h-data: Likewise.
6522         * conform/data/glob.h-data: Likewise.
6523         * conform/data/grp.h-data: Likewise.
6524         * conform/data/iconv.h-data: Likewise.
6525         * conform/data/inttypes.h-data: Likewise.
6526         * conform/data/langinfo.h-data: Likewise.
6527         * conform/data/libgen.h-data: Likewise.
6528         * conform/data/limits.h-data: Likewise.
6529         * conform/data/locale.h-data: Likewise.
6530         * conform/data/math.h-data: Likewise.
6531         * conform/data/monetary.h-data: Likewise.
6532         * conform/data/mqueue.h-data: Likewise.
6533         * conform/data/ndbm.h-data: Likewise.
6534         * conform/data/net/if.h-data: Likewise.
6535         * conform/data/netdb.h-data: Likewise.
6536         * conform/data/netinet/in.h-data: Likewise.
6537         * conform/data/nl_types.h-data: Likewise.
6538         * conform/data/poll.h-data: Likewise.
6539         * conform/data/pthread.h-data: Likewise.
6540         * conform/data/pwd.h-data: Likewise.
6541         * conform/data/regex.h-data: Likewise.
6542         * conform/data/sched.h-data: Likewise.
6543         * conform/data/search.h-data: Likewise.
6544         * conform/data/semaphore.h-data: Likewise.
6545         * conform/data/setjmp.h-data: Likewise.
6546         * conform/data/signal.h-data: Likewise.
6547         * conform/data/spawn.h-data: Likewise.
6548         * conform/data/stdarg.h-data: Likewise.
6549         * conform/data/stdio.h-data: Likewise.
6550         * conform/data/stdlib.h-data: Likewise.
6551         * conform/data/string.h-data: Likewise.
6552         * conform/data/strings.h-data: Likewise.
6553         * conform/data/stropts.h-data: Likewise.
6554         * conform/data/sys/ipc.h-data: Likewise.
6555         * conform/data/sys/mman.h-data: Likewise.
6556         * conform/data/sys/msg.h-data: Likewise.
6557         * conform/data/sys/resource.h-data: Likewise.
6558         * conform/data/sys/select.h-data: Likewise.
6559         * conform/data/sys/sem.h-data: Likewise.
6560         * conform/data/sys/shm.h-data: Likewise.
6561         * conform/data/sys/socket.h-data: Likewise.
6562         * conform/data/sys/stat.h-data: Likewise.
6563         * conform/data/sys/statvfs.h-data: Likewise.
6564         * conform/data/sys/time.h-data: Likewise.
6565         * conform/data/sys/timeb.h-data: Likewise.
6566         * conform/data/sys/times.h-data: Likewise.
6567         * conform/data/sys/types.h-data: Likewise.
6568         * conform/data/sys/uio.h-data: Likewise.
6569         * conform/data/sys/un.h-data: Likewise.
6570         * conform/data/sys/utsname.h-data: Likewise.
6571         * conform/data/sys/wait.h-data: Likewise.
6572         * conform/data/syslog.h-data: Likewise.
6573         * conform/data/tar.h-data: Likewise.
6574         * conform/data/termios.h-data: Likewise.
6575         * conform/data/utime.h-data: Likewise.
6576         * conform/data/utmpx.h-data: Likewise.
6577         * conform/data/varargs.h-data: Likewise.
6578         * conform/data/wchar.h-data: Likewise.
6579         * conform/data/wctype.h-data: Likewise.
6580         * conform/data/wordexp.h-data: Likewise.
6581
6582         * include/stropts.h: New file.
6583         * include/uchar.h: New file.
6584         * include/aio.h: Changes to allow conformtest.pl to use the headers.
6585         * include/assert.h: Likewise.
6586         * include/ctype.h: Likewise.
6587         * include/dirent.h: Likewise.
6588         * include/dlfcn.h: Likewise.
6589         * include/fcntl.h: Likewise.
6590         * include/fnmatch.h: Likewise.
6591         * include/glob.h: Likewise.
6592         * include/grp.h: Likewise.
6593         * include/libio.h: Likewise.
6594         * include/locale.h: Likewise.
6595         * include/math.h: Likewise.
6596         * include/net/if.h: Likewise.
6597         * include/netdb.h: Likewise.
6598         * include/netinet/in.h: Likewise.
6599         * include/pthread.h: Likewise.
6600         * include/pwd.h: Likewise.
6601         * include/regex.h: Likewise.
6602         * include/sched.h: Likewise.
6603         * include/search.h: Likewise.
6604         * include/setjmp.h: Likewise.
6605         * include/signal.h: Likewise.
6606         * include/stdio.h: Likewise.
6607         * include/stdlib.h: Likewise.
6608         * include/string.h: Likewise.
6609         * include/sys/cdefs.h: Likewise.
6610         * include/sys/mman.h: Likewise.
6611         * include/sys/msg.h: Likewise.
6612         * include/sys/resource.h: Likewise.
6613         * include/sys/select.h: Likewise.
6614         * include/sys/socket.h: Likewise.
6615         * include/sys/stat.h: Likewise.
6616         * include/sys/statvfs.h: Likewise.
6617         * include/sys/time.h: Likewise.
6618         * include/sys/times.h: Likewise.
6619         * include/sys/uio.h: Likewise.
6620         * include/sys/utsname.h: Likewise.
6621         * include/sys/wait.h: Likewise.
6622         * include/termios.h: Likewise.
6623         * include/time.h: Likewise.
6624         * include/ulimit.h: Likewise.
6625         * include/unistd.h: Likewise.
6626         * include/utime.h: Likewise.
6627         * include/wchar.h: Likewise.
6628         * include/wctype.h: Likewise.
6629         * include/wordexp.h: Likewise.
6630
6631         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
6632
6633         * time/time.h: TIME_UTC must be a macro.
6634         Make timespec_get available for ISO C11 only as well.
6635
6636 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
6637
6638         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
6639         Reported by Peng Haitao <penght@cn.fujitsu.com>.
6640
6641 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6642
6643         * configure.in: Use -o not -a in test for unsupported multi-arch.
6644
6645 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6646
6647         * manual/texinfo.tex: Update to version 2012-01-19.16.
6648
6649 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6650
6651         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
6652
6653 2012-02-24  Roland McGrath  <roland@hack.frob.com>
6654
6655         [BZ #13738]
6656         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
6657         * manual/fdl-1.3.texi: New file.
6658         * manual/fdl-1.1.texi: File removed.
6659
6660         [BZ #13738]
6661         * manual/libc.texinfo (FDL_VERSION): New @set.
6662         Use it for mention of FDL in cover text.
6663         (Documentation License): Use it in @include file name.
6664
6665 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6666             Roland McGrath  <roland@hack.frob.com>
6667
6668         [BZ #5461]
6669         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
6670         not LONG_LONG_MAX and LONG_LONG_MIN.
6671         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
6672         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
6673         name.
6674         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
6675
6676 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6677
6678         [BZ #2547]
6679         [BZ #11365]
6680         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
6681         manipulate bits before adding and subtracting TWO23[sx].
6682         * math/libm-test.inc (nearbyint_test): Add more tests.
6683
6684 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6685
6686         [BZ #2548]
6687         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
6688         bits before adding and subtracting TWO23[sx].
6689         * math/libm-test.inc (rint_test): Add more tests.
6690         (rint_test_tonearest): Likewise.
6691         (rint_test_towardzero): Likewise.
6692         (rint_test_downward): Likewise.
6693         (rint_test_upward: Likewise.
6694
6695 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6696
6697         [BZ #10110]
6698         * include/stdc-predef.h: New file.  Extracted from features.h.
6699         * include/features.h: Include stdc-predef.h.
6700         * Makefile (headers): Add stdc-predef.h.
6701         * CONFORMANCE (Compiler limitations): Update.
6702
6703 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6704
6705         * manual/libc.texinfo (VERSION, UPDATED): Revert.
6706
6707 2012-02-21  David S. Miller  <davem@davemloft.net>
6708
6709         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
6710         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6711
6712 2012-02-20  David S. Miller  <davem@davemloft.net>
6713
6714         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
6715         using a normal save/restore sequence, rather than allocating a
6716         dummy stack frame just to store a frame pointer and restore.
6717         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6718
6719 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6720
6721         * manual/install.texi: Fix stray word in line-wrapped comment.
6722
6723 2012-02-20  David S. Miller  <davem@davemloft.net>
6724
6725         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
6726         both binutils and gcc support GOTDATA.
6727
6728         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
6729         "rd %pc" in the PIC register setup sequences.
6730
6731         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
6732         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
6733         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6734         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6735         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6736         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6737         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6738         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6739         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6740         (SYSCALL_ERROR_HANDLER): Likewise.
6741         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6742         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6743         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6744         (SYSCALL_ERROR_HANDLER): Likewise.
6745
6746         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
6747         (HAVE_GCC_GOTDATA): New.
6748         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
6749         relocation support in both binutils and gcc.
6750         * sysdeps/sparc/elf/configure: Regenerate.
6751
6752         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
6753         * sysdeps/sparc/sparc32/elf/configure: Delete.
6754         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
6755         * sysdeps/sparc/sparc64/elf/configure: Delete.
6756         * sysdeps/sparc/elf/configure.in: New file.
6757         * sysdeps/sparc/elf/configure: Generate.
6758
6759         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
6760         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
6761         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6762         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
6763         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
6764
6765 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6766
6767         * manual/install.texi: Do not mention specific glibc version
6768         numbers.
6769         * manual/libc.texinfo (VERSION, UPDATED): Update.
6770         (@copying): Use @copyright{} and range of years.
6771
6772 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6773
6774         [BZ #13695]
6775         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
6776         [crti.S not in sysdirs] (generated): Do not append.
6777         [crti.S not in sysdirs] (omit-deps): Likewise.
6778         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
6779         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
6780         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
6781         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
6782         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
6783         Likewise.
6784         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
6785         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
6786         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
6787         * csu/defs.awk: Remove file.
6788         * sysdeps/generic/initfini.c: Likewise.
6789         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
6790         variable.
6791         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
6792         Likewise.
6793
6794 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6795
6796         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
6797         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
6798         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
6799         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
6800         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6801         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
6802         <bits/epoll.h>.
6803         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
6804         (__EPOLL_PACKED): Define to empty if not defined by
6805         <bits/epoll.h>.
6806         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
6807         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6808         bits/epoll.h.
6809
6810 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6811
6812         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
6813         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
6814         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
6815         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
6816         <bits/timerfd.h>.
6817         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
6818         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6819         bits/timerfd.h.
6820
6821 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6822
6823         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
6824         in C locale.
6825         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6826         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6827         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
6828         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6829
6830 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
6831
6832         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6833         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6834
6835 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
6836
6837         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
6838         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
6839         defined.
6840         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
6841         Likewise.
6842         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
6843         entry for 2.16.
6844
6845 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
6846
6847         * math/w_acos.c: Use non-signaling floating-point comparisons.
6848         * math/w_acosf.c: Likewise.
6849         * math/w_acosh.c: Likewise.
6850         * math/w_acoshf.c: Likewise.
6851         * math/w_acoshl.c: Likewise.
6852         * math/w_acosl.c: Likewise.
6853         * math/w_asin.c: Likewise.
6854         * math/w_asinf.c: Likewise.
6855         * math/w_asinl.c: Likewise.
6856         * math/w_atanh.c: Likewise.
6857         * math/w_atanhf.c: Likewise.
6858         * math/w_atanhl.c: Likewise.
6859         * math/w_exp2.c: Likewise.
6860         * math/w_exp2f.c: Likewise.
6861         * math/w_exp2l.c: Likewise.
6862         * math/w_j0.c: Likewise.
6863         * math/w_j0f.c: Likewise.
6864         * math/w_j0l.c: Likewise.
6865         * math/w_j1.c: Likewise.
6866         * math/w_j1f.c: Likewise.
6867         * math/w_j1l.c: Likewise.
6868         * math/w_jn.c: Likewise.
6869         * math/w_jnf.c: Likewise.
6870         * math/w_log.c: Likewise.
6871         * math/w_log10.c: Likewise.
6872         * math/w_log10f.c: Likewise.
6873         * math/w_log10l.c: Likewise.
6874         * math/w_log2.c: Likewise.
6875         * math/w_log2f.c: Likewise.
6876         * math/w_log2l.c: Likewise.
6877         * math/w_logf.c: Likewise.
6878         * math/w_logl.c: Likewise.
6879         * math/w_sqrt.c: Likewise.
6880         * math/w_sqrtf.c: Likewise.
6881         * math/w_sqrtl.c: Likewise.
6882         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6883         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
6884         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6885         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6886         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6887
6888 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6889
6890         [BZ #9739]
6891         * manual/string.texi (strnlen): Use correct parameter name in
6892         equivalent expression.
6893
6894 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6895
6896         [BZ #11174]
6897         * manual/users.texi (seteuid): Consistently use neweuid for
6898         argument name.
6899
6900 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6901
6902         [BZ #13704]
6903         * manual/nss.texi (Services in the NSS configuration): Correct
6904         list of services in example configuration file.
6905
6906 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
6907
6908         [BZ #11322]
6909         * manual/arith.texi: Remove statements about negative zero
6910         behaving identically to zero.
6911
6912 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6913
6914         [BZ #5993]
6915         * manual/install.texi: Do not document upgrading from libc5.
6916
6917 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6918
6919         [BZ #4596]
6920         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
6921
6922 2012-02-18  David S. Miller  <davem@davemloft.net>
6923
6924         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
6925         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
6926         %o7 across the call.
6927         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
6928         instead.
6929         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
6930         SETUP_PIC_REG_LEAF.
6931         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6932         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
6933         * sysdeps/sparc/crtn.S: Likewise.
6934
6935 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
6936
6937         * aout/Makefile: Remove.
6938
6939 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
6940
6941         [BZ #13058]
6942         * manual/examples/argp-ex1.c (main): Format definition in GNU
6943         style.
6944         * manual/examples/argp-ex2.c (main): Likewise.
6945         * manual/examples/argp-ex3.c (main): Likewise.
6946         * manual/examples/argp-ex4.c (main): Likewise.
6947         * manual/examples/longopt.c (main): Use new-style prototype
6948         definition.
6949         * manual/examples/strncat.c (main): Specify return type and use
6950         (void) for arguments.
6951         * manual/examples/subopt.c (main): Use char **argv argument.
6952
6953 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6954
6955         [BZ #5077]
6956         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
6957         rounding modes.
6958
6959 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
6960
6961         [BZ #6907]
6962         * manual/string.texi (strchr): Change when strchrnul is
6963         recommended.
6964
6965 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
6966
6967         [BZ #174]
6968         * manual/locale.texi (setlocale): Document LOCPATH.
6969
6970 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6971
6972         [BZ #10210]
6973         * manual/process.texi (execle): Move @dots{} before last argument.
6974
6975 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
6976
6977         [BZ #12047]
6978         * manual/charset.texi (Generic Charset Conversion): Fix typo
6979         (LC_TYPE -> LC_CTYPE).
6980
6981 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
6982
6983         [BZ #5805]
6984         * manual/arith.texi (scalbn): Use @var{} on parameter names.
6985         (scalbnf): Likewise.
6986         (scalbnl): Likewise.
6987         (scalbln): Likewise.
6988         (scalblnf): Likewise.
6989         (scalblnl): Likewise.
6990         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
6991         (vwarnx): Likewise.
6992         (verr): Likewise.
6993         (verrx): Likewise.
6994         * manual/filesys.texi (telldir): Use braces around return type.
6995         * manual/llio.texi (mmap): Add space after comma.
6996         (mmap64): Likewise.
6997         * manual/math.texi (jn): Use @var{} on parameter names.
6998         (jnf): Likewise.
6999         (jnl): Likewise.
7000         (yn): Likewise.
7001         (ynf): Likewise.
7002         (ynl): Likewise.
7003         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
7004         line.
7005         * manual/resource.texi (ulimit): Use @dots{} instead of literal
7006         "...".
7007         (sched_get_priority_min): Remove semicolon on @deftypefun line.
7008         (sched_get_priority_max): Likewise.
7009         * manual/signal.texi (sigvec): Add space after comma.
7010         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
7011         names.
7012         (if_indextoname): Likewise.
7013         (if_freenameindex): Likewise.
7014         (sendto): Use ',' instead of '.' in prototype.
7015         * manual/startup.texi (syscall): Use @dots{} instead of literal
7016         "...".
7017         * manual/stdio.texi (__fpending): Separate initial words of
7018         paragraph from @deftypefun line.
7019         * manual/syslog.texi (syslog): Use @dots{} instead of literal
7020         "...".
7021         (vsyslog): Use @var{} on parameter names.
7022         * manual/terminal.texi (stty): Use @var{} on parameter names.
7023         * manual/users.texi (getutmp): Use @var{} on parameter names.
7024         (getutmpx): Likewise.
7025
7026 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7027
7028         [BZ #6884]
7029         * manual/stdio.texi (fopen): Fix typos in description of
7030         ",ccs=STRING".
7031
7032 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
7033
7034         [BZ #4026]
7035         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
7036         get clock_id definition.
7037
7038 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
7039
7040         [BZ #4822]
7041         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
7042         (madvise): Cast every argument to void on its own.
7043
7044 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7045
7046         [BZ #9902]
7047         * manual/startup.texi (Exit Status): Fix typo.
7048
7049 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7050
7051         [BZ #10140]
7052         * manual/examples/argp-ex1.c: Include <stdlib.h>.
7053         * manual/examples/argp-ex2.c: Likewise.
7054         * manual/examples/argp-ex3.c: Likewise.
7055
7056 2012-02-16  Richard Henderson  <rth@redhat.com>
7057
7058         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
7059         * sysdeps/s390/s390-32/initfini.c: Remove.
7060         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
7061         * sysdeps/s390/s390-64/initfini.c: Remove.
7062
7063 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7064
7065         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
7066         compiler output for sysdeps/generic/initfini.c.
7067         * sysdeps/sh/elf/initfini.c: Remove file.
7068
7069 2012-02-16  David S. Miller  <davem@davemloft.net>
7070
7071         [BZ #11494]
7072         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
7073
7074         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
7075         * sysdeps/sparc/crti.S: New file.
7076         * sysdeps/sparc/crtn.S: New file.
7077         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
7078         * sysdeps/sparc/sparc64/Makefile: Likewise.
7079
7080 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
7081
7082         [BZ #3335]
7083         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
7084
7085 2012-02-15  Roland McGrath  <roland@hack.frob.com>
7086
7087         [BZ #4822]
7088         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
7089
7090         * mach/devstream.c (cookie_io_functions_t): Macro removed.
7091         (write, read, close): Likewise.
7092         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7093
7094 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
7095
7096         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
7097         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
7098         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
7099         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
7100         <bits/signalfd.h>.
7101         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
7102         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7103         bits/signalfd.h.
7104
7105 2012-02-14  Marek Polacek  <polacek@redhat.com>
7106
7107         * sysdeps/x86_64/crti.S: New file.
7108         * sysdeps/x86_64/crtn.S: New file.
7109         * sysdeps/x86_64/elf/initfini.c: Remove file.
7110
7111 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7112
7113         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
7114         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
7115         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
7116         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
7117         <bits/inotify.h>.
7118         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
7119         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7120         bits/inotify.h.
7121
7122 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7123
7124         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
7125         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
7126         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
7127         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
7128         <bits/eventfd.h>.
7129         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
7130         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7131         bits/eventfd.h.
7132
7133 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
7134
7135         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
7136         __feraiseexcept instead of feraiseexcept.
7137
7138         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
7139         nanosleep invocations.
7140         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
7141         strings, and add error checking for a nanosleep invocations.
7142
7143 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7144
7145         Replace FSF snail mail address with URLs, as per GNU coding standards.
7146         Most of the snail mail addresses were wrong anyway, and omitting
7147         them makes the source code easier to maintain.  Almost all of the
7148         changes are to license notices and to locale LC_IDENTIFICATION
7149         addresses, except for this one:
7150         * manual/libc.texinfo: In "Published by", give the FSF's URL,
7151         not its snail mail address.
7152
7153 2012-02-09  Richard Henderson  <rth@twiddle.net>
7154
7155         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
7156         of kernel-features.h.
7157
7158         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
7159
7160 2012-02-08  Marek Polacek  <polacek@redhat.com>
7161
7162         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
7163         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
7164         * sysdeps/gnu/_G_config.h: Likewise.
7165         * sysdeps/generic/_G_config.h: Likewise.
7166
7167 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
7168
7169         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
7170         tests.
7171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7172
7173         * sysdeps/powerpc/powerpc32/crti.S: New file.
7174         * sysdeps/powerpc/powerpc32/crtn.S: New file.
7175         * sysdeps/powerpc/powerpc64/crti.S: New file.
7176         * sysdeps/powerpc/powerpc64/crtn.S: New file.
7177
7178         * Makeconfig (have-initfini): Don't set.
7179         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
7180         * configure.in (nopic_initfini): Don't substitute.
7181         * config.h.in (HAVE_INITFINI): Don't #undef.
7182         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
7183         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
7184
7185 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
7186
7187         Support crti.S and crtn.S provided directly by architectures.
7188         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
7189         [crti.S in sysdirs] (omit-deps): Likewise.
7190         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
7191         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
7192         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
7193         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
7194         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
7195         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
7196         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
7197         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
7198         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
7199         compiler output for sysdeps/generic/initfini.c.
7200         * sysdeps/i386/elf/Makefile: Remove file.
7201         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
7202
7203 2012-02-07  Marek Polacek  <polacek@redhat.com>
7204
7205         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
7206         * sysdeps/gnu/_G_config.h: Likewise.
7207         * sysdeps/mach/hurd/_G_config.h: Likewise.
7208
7209 2012-02-07  Marek Polacek  <polacek@redhat.com>
7210
7211         * math/Makefile (tests): Add tst-CMPLX2.
7212         * math/tst-CMPLX2.c: New file.
7213
7214 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
7215
7216         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7217
7218         * math/libm-test.inc (jn_test): Add missing L suffix.
7219
7220 2012-02-06  Marek Polacek  <polacek@redhat.com>
7221
7222         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
7223         * sysdeps/i386/fpu/e_powf.S: Likewise.
7224         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7225         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7226         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7227         * sysdeps/i386/fpu/e_pow.S: Likewise.
7228         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
7229         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7230         * sysdeps/i386/fpu/s_expm1.S: Likewise.
7231         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
7232         * sysdeps/i386/fpu/e_log2.S: Likewise.
7233         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7234         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7235         * sysdeps/i386/fpu/e_powl.S: Likewise.
7236         * sysdeps/i386/fpu/s_log1p.S: Likewise.
7237         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7238         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
7239         * sysdeps/i386/fpu/e_logl.S: Likewise.
7240         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
7241         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
7242         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
7243         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
7244         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7245         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7246         * sysdeps/i386/fpu/e_log.S: Likewise.
7247         * sysdeps/i386/fpu/s_cexp.S: Likewise.
7248         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7249         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
7250         * sysdeps/i386/fpu/e_logf.S: Likewise.
7251         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7252         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7253         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
7254         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
7255         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7256         * sysdeps/i386/fpu/e_log10.S: Likewise.
7257         * sysdeps/i386/fpu/s_frexp.S: Likewise.
7258         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7259         * sysdeps/i386/fpu/s_asinh.S: Likewise.
7260         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
7261         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7262         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
7263         * sysdeps/i386/asm-syntax.h: Likewise.
7264         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7265         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7266         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7267         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
7268         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
7269         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7270         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
7271         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
7272         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7273         * sysdeps/powerpc/sysdep.h: Likewise.
7274         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7275         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7276
7277 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7278
7279         [BZ #411]
7280         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
7281
7282 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7283
7284         * sysdeps/i386/sysdep.h: Include <features.h>.
7285         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
7286         version.
7287
7288 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
7289
7290         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
7291         Define.
7292         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
7293         LOAD_PIC_REG_STR.
7294
7295 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7296
7297         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
7298         (SETUP_PIC_REG): Use GET_PC_THUNK.
7299         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
7300         macro.
7301
7302 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7303
7304         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
7305         for non-PIC compilation.
7306         (SETUP_PIC_REG): Add .p2align directive.
7307         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
7308         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
7309         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7310         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7311         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
7312         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7313         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
7314         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
7315         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7316         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7317         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7318         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7319         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7320         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7321         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7322         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7323         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7324         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7325         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7326         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7327         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7328         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7329         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7330         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7331         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
7332         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
7333         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7334         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7335         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7336         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7337         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7338         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7339         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7340         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7341         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7342         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7343         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7344         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7345         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7346         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7347         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7348
7349 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7350
7351         * math/tst-CMPLX.c: Include <stdio.h>.
7352
7353 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
7354
7355         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
7356         float.
7357         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7358         * sysdeps/sparc/bits/mathdef.h: Likewise.
7359
7360 2012-01-31  Marek Polacek  <polacek@redhat.com>
7361
7362         * libio/libio.h: Don't define _PARAMS.
7363         * locale/programs/config.h: Don't define PARAMS.
7364         * stdlib/strtol_l.c: Likewise.
7365         (__strtol_l): Remove PARAMS from the prototype.
7366
7367 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
7368
7369         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
7370         names.  Just use the correct names.  Remove unnecessary wrapper
7371         functions.
7372         * malloc/arena.c: Likewise.
7373         * malloc/hooks.c: Likewise.
7374
7375         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
7376         ARENA_TEST says not to.  Simplify test for creation of a new arena.
7377         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
7378
7379 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
7380
7381         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
7382         into tail calls.
7383         (update_get_addr): New function.
7384         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
7385         GET_ADDR_MODULE parameter.
7386
7387 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7388
7389         * crypt/cert.c: Remove __STDC__ conditionals.
7390         * crypt/crypt-entry.c: Likewise.
7391         * crypt/crypt_util.c: Likewise.
7392         * libio/filedoalloc.c: Likewise.
7393         * libio/fileops.c: Likewise.
7394         * libio/genops.c: Likewise.
7395         * libio/iofclose.c: Likewise.
7396         * libio/iofdopen.c: Likewise.
7397         * libio/iofopen.c: Likewise.
7398         * libio/iofopen64.c: Likewise.
7399         * libio/iogetdelim.c: Likewise.
7400         * libio/iopopen.c: Likewise.
7401         * libio/obprintf.c: Likewise.
7402         * libio/oldfileops.c: Likewise.
7403         * libio/oldiofclose.c: Likewise.
7404         * libio/oldiofdopen.c: Likewise.
7405         * libio/oldiofopen.c: Likewise.
7406         * libio/oldiopopen.c: Likewise.
7407         * libio/wfiledoalloc.c: Likewise.
7408         * libio/wgenops.c: Likewise.
7409         * locale/programs/xmalloc.c: Likewise.
7410         * misc/syslog.c: Likewise.
7411         * stdio-common/xbug.c: Likewise.
7412         * string/memchr.c: Likewise.
7413         * string/memcmp.c: Likewise.
7414         * string/memrchr.c: Likewise.
7415         * string/rawmemchr.c: Likewise.
7416         * sysdeps/posix/getcwd.c: Likewise.
7417         * time/strftime_l.c: Likewise.
7418
7419 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7420
7421         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
7422         * config.make.in (config-cflags-sse2avx): Define.
7423         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
7424         Fix typo.
7425
7426 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
7427
7428         * scripts/config.guess: Update from upstream config git repository.
7429         * scripts/config.sub: Likewise.
7430
7431 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
7432
7433         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
7434         (EM_NUM): Update.
7435         (R_TILEPRO_*, R_TILEGX_*): New macros.
7436
7437         * scripts/firstversions.awk: Fix bug in version range handling.
7438
7439         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
7440
7441         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
7442
7443         * include/sys/epoll.h: New file.
7444         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
7445         libc_hidden_def.
7446
7447 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
7448
7449         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
7450         Avoid unnecessary __WORDSIZE == 64 test.
7451         (fmaxf): Use VEX format if possible.
7452         (fmax): Likewise.
7453         (fminf): Likewise.
7454         (fmin): Likewise.
7455
7456         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
7457         * math/math_private.h: Remove libc_fegetround* and
7458         libc_fesetround*.
7459         * sysdeps/i386/configure.in: Check for -msse2avx.
7460         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
7461         also if SSE2AVX is defined.
7462         Remove libc_fegetround* and libc_fesetround*.
7463         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
7464         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
7465         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
7466         of HAS_YMM_USABLE.
7467         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7468         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7469         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7470         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7471         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7472
7473         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
7474
7475 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7476
7477         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
7478         size is not set.
7479         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7480
7481 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
7482
7483         [BZ #13618]
7484         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
7485         relocation.
7486         * Makeconfig (libm): Define.
7487         * elf/Makefile: Add rules to build and run tst-relsort1.
7488         * elf/tst-relsort1.c: New file.
7489         * elf/tst-relsort1mod1.c: New file.
7490         * elf/tst-relsort1mod2.c: New file.
7491
7492 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
7493
7494         * math/s_ldexp.c: Remove __STDC__ conditionals.
7495         * math/s_ldexpf.c: Likewise.
7496         * math/s_ldexpl.c: Likewise.
7497         * math/s_nextafter.c: Likewise.
7498         * math/s_nexttowardf.c: Likewise.
7499         * math/s_significand.c: Likewise.
7500         * math/s_significandf.c: Likewise.
7501         * math/s_significandl.c: Likewise.
7502         * math/w_jnl.c: Likewise.
7503         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7504         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7505         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7506         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7507         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7508         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7509         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
7510         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7511         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7512         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7513         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7514         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7515         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7516         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7517         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7518         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7519         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7520         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7521         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7522         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7523         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7524         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7525         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7526         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7527         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7528         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7529         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7530         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7531         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7532         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7533         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7534         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7535         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7536         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7537         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7538         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7539         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7540         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7541         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7542         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7543         * sysdeps/ieee754/k_standard.c: Likewise.
7544         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7545         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7546         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7547         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7548         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7549         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7550         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7551         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7552         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7553         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7554         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7555         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7556         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7557         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7558         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7559         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7560         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7561         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7562         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7563         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7564         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7565         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7566         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7567         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7568         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7569         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7570         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7571         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7572         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7573         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7574         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7575         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7576         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7577         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7578         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7579         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7580         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7581         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7582         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7583         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7584         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7585         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7586         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7587         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7588         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7589         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
7590         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7591         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7592         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7593         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7594         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7595         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7596         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7597         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7598         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7599         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7600         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7601         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7602         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7603         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7604         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7605         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7606         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7607         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7608         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7609         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7610         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7611         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7612         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7613         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7614         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7615         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7616         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7617         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7618         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7619         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7620         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7621         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7622         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7623         * sysdeps/ieee754/s_matherr.c: Likewise.
7624         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7625         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7626         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7627         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7628
7629 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7630
7631         * crypt/md5.h: Remove __STDC__ conditionals.
7632         * libio/libioP.h: Likewise.
7633         * locale/programs/config.h: Likewise.
7634         * sysdeps/generic/sysdep.h: Likewise.
7635         * sysdeps/i386/asm-syntax.h: Likewise.
7636         * sysdeps/s390/asm-syntax.h: Likewise.
7637         * sysdeps/unix/sysdep.h: Likewise.
7638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7640
7641 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7642
7643         * libio/libio.h: Remove __STDC__ conditionals.
7644         * malloc/obstack.h: Likewise.
7645         * math/complex.h: Likewise.
7646         * math/math.h: Likewise.
7647         * sysdeps/generic/_G_config.h: Likewise.
7648         * sysdeps/gnu/_G_config.h: Likewise.
7649         * sysdeps/mach/hurd/_G_config.h: Likewise.
7650         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7651         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7652         * sysdeps/sparc/bits/mathdef.h: Likewise.
7653
7654 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
7655
7656         [BZ #13583]
7657         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
7658         Clean up HAS_* macros.
7659         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
7660         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
7661         possible.
7662         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
7663         HAS_AVX.
7664         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7665         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7666         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7667         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7668         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7669
7670 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
7671
7672         * elf/tst-unique3.cc (gets): Remove declaration.
7673         * elf/tst-unique3lib.cc (gets): Likewise.
7674         * elf/tst-unique3lib2.cc (gets): Likewise.
7675         * elf/tst-unique4.cc (gets): Likewise.
7676
7677 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
7678
7679         * include/stdio.h: Add C++ protection.  Add gets declarations and
7680         definitions.
7681         * debug/tst-chk1.c: Don't declare gets here.
7682         * stdio-common/tst-gets.c: Likewise.
7683
7684 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7685
7686         * posix/glob: Remove directory.
7687
7688 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7689
7690         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
7691
7692 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
7693
7694         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
7695         of the non-standard EPFNOSUPPORT.
7696
7697 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7698
7699         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
7700         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
7701         ANYWHERE set to 1 only on KERN_NO_SPACE error.
7702
7703 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
7704
7705         * wcsmbs/uchar.h: Test __STDC_VERSION__.
7706
7707 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
7708
7709         * nscd/aicache.c (addhstaiX): Do not cache negative results of
7710         transient errors.
7711         * nscd/grpcache.c (cache_addgr): Likewise.
7712         * nscd/hstcache.c (cache_addhst): Likewise.
7713         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7714         * nscd/pwdcache.c (cache_addpw): Likewise.
7715         * nscd/servicescache.c (cache_addserv): Likewise.
7716
7717 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
7718
7719         * malloc/malloc.c: Various cleanups.
7720         * malloc/hooks.c: Likewise.
7721
7722         * stdlib/Makefile (tests): Add bug-fmtmsg1.
7723         * stdlib/bug-fmtmsg1.c: New file.
7724
7725         * stdlib/fmtmsg.c (init): Add missing unlock.
7726         Patch by Peng Haitao <penght@cn.fujitsu.com>.
7727
7728 2012-01-12  Marek Polacek  <polacek@redhat.com>
7729
7730         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
7731         and _GNU_SOURCE.
7732
7733 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7734
7735         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
7736         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
7737         macro to ensure uniqueness of label name.
7738         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7739         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7740
7741 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
7742
7743         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
7744
7745         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
7746         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7747         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7748         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
7749
7750 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
7751
7752         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
7753
7754         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
7755         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7756         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7757
7758         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
7759
7760         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
7761         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7762         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7763         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
7764
7765         * math/bits/math-finite.h: Add ldexp support.
7766
7767 2012-01-10  Marek Polacek  <polacek@redhat.com>
7768
7769         * locale/programs/localedef.h (show_archive_content): Add noreturn
7770         attribute.
7771
7772 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
7773
7774         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
7775
7776 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7777
7778         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
7779
7780         * io/Makefile (headers): Add bits/poll2.h.
7781
7782 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
7783
7784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
7785         typo #include statement.
7786
7787 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7788
7789         * include/sys/cdefs.h: Define __attribute_alloc_size.
7790         * catgets/gencat.c: Add alloc_size attribute and apply consistently
7791         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
7792         * elf/pldd.c: Likewise.
7793         * iconv/iconv_charmap.c: Likewise.
7794         * iconv/iconvconfig.c: Likewise.
7795         * iconv/strtab.c: Likewise.
7796         * locale/programs/locale.c: Likewise.
7797         * locale/programs/localedef.h: Likewise.
7798         * locale/programs/simple-hash.c: Likewise.
7799         * nscd/nscd.h: Likewise.
7800         * nss/makedb.c: Likewise.
7801         * sysdeps/generic/ldconfig.h: Likewise.
7802         * locale/programs/localedef.c: Remove xmalloc prototype.
7803         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
7804
7805 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7806
7807         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
7808         appropriate.
7809
7810 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7811
7812         * math/Makefile (tests): Add tst-CMPLX.
7813         * math/tst-CMPLX.c: New file.
7814
7815         * math/complex.h (CMPLXL): Fix typo.
7816
7817         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
7818         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
7819         GLIBC_2.16.
7820         * debug/tst-chk1.c: Add poll and ppoll tests.
7821         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
7822         * include/sys/poll.h: Add hidden proto for ppoll.
7823         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
7824         * sysdeps/mach/hurd/ppoll.c: Likewise.
7825         * io/ppoll.c: Likewise.
7826         * debug/poll_chk.c: New file.
7827         * debug/ppoll_chk.c: New file.
7828         * include/bits/poll2.h: New file.
7829         * io/bits/poll2.h: New file.
7830
7831         [BZ #1350]
7832         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
7833
7834         * configure.in: static is always set to yes.  Remove.
7835         * config.make.in: Don't set build-static.
7836         * Makeconfig: Remove use of build-static.
7837         * dlfcn/Makefile: Likewise.
7838         * elf/Makefile: Likewise.
7839         * math/Makefile: Likewise.
7840         * misc/Makefile: Likewise.
7841         * nptl/Makefile: Likewise.
7842         * sysdeps/mach/hurd/Makefile: Likewise.
7843
7844         * configure.in: PWD_P is not used anymore.
7845         * config.make.in: Remove PWD_P entry.
7846
7847         * configure.in: Remove last remnants of RANLIB.
7848         No need to check for signed size_t anymore.
7849         Don't set libc_commonpagesize and libc_relro_required here for Alpha
7850         and IA-64.
7851         Remove __builtin_expect test because we require at least gcc 3.4.
7852         * aclocal.m4: Likewise.
7853
7854         * wcsmbs/mbrtoc16.c: Implement using towc function.
7855         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
7856         * wcsmbs/wcsmbsload.c: Likewise.
7857         * iconv/gconv_simple.c: Likewise.
7858         * iconv/gconv_int.h: Likewise.
7859         * iconv/gconv_builtin.h: Likewise.
7860         * iconv/iconv_prog.c: Remove CHAR16 handling.
7861
7862         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
7863
7864         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
7865
7866         * configure.in: Remove --with-elf and --enable-bounded options.
7867         Dont set base_machine for ia64.  More non-ELF conditions removed.
7868         Remove testing and setting of leading underscore information.
7869         * config.make.in (build-bounded): Set to no.
7870         * config.h.in: Remove NO_UNDERSCORES entry.
7871         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
7872         them.
7873         * csu/start.c: Remove !NO_UNDERSCORE code.
7874         * locale/localeinfo.h: Likewise.
7875         * sysdeps/generic/machine-gmon.h: Likewise.
7876         * sysdeps/generic/sysdep.h: Likewise.
7877         * sysdeps/i386/sysdep.h: Likewise.
7878         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7879         * sysdeps/mach/sysdep.h: Likewise.
7880         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7881         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7882         * sysdeps/sh/sysdep.h: Likewise.
7883         * sysdeps/sparc/sparc32/alloca.S: Likewise.
7884         * sysdeps/unix/i386/sysdep.S: Likewise.
7885         * sysdeps/unix/sparc/start.c: Likewise.
7886         * sysdeps/unix/sparc/sysdep.S: Likewise.
7887         * sysdeps/unix/sparc/sysdep.h: Likewise.
7888         * sysdeps/unix/start.c: Likewise.
7889         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7890         * sysdeps/x86_64/sysdep.h: Likewise.
7891
7892 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
7893
7894         [BZ #13553]
7895         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
7896         for non-gcc.
7897         * argp/argp-fmtstream.h: Use const instead __const.
7898         * argp/argp.h: Likewise.
7899         * assert/assert.h: Likewise.
7900         * bits/fenv.h: Likewise.
7901         * bits/sched.h: Likewise.
7902         * bits/sigset.h: Likewise.
7903         * bits/sigthread.h: Likewise.
7904         * catgets/nl_types.h: Likewise.
7905         * conform/data/pthread.h-data: Likewise.
7906         * crypt/crypt-private.h: Likewise.
7907         * crypt/crypt.h: Likewise.
7908         * crypt/crypt_util.c: Likewise.
7909         * ctype/ctype.h: Likewise.
7910         * debug/execinfo.h: Likewise.
7911         * debug/mbsnrtowcs_chk.c: Likewise.
7912         * debug/mbsrtowcs_chk.c: Likewise.
7913         * debug/wcsnrtombs_chk.c: Likewise.
7914         * debug/wcsrtombs_chk.c: Likewise.
7915         * debug/wcstombs_chk.c: Likewise.
7916         * dirent/dirent.h: Likewise.
7917         * dlfcn/dlfcn.h: Likewise.
7918         * elf/neededtest4.c: Likewise.
7919         * grp/grp.h: Likewise.
7920         * gshadow/gshadow.h: Likewise.
7921         * iconv/gconv.h: Likewise.
7922         * iconv/gconv_int.h: Likewise.
7923         * iconv/gconv_simple.c: Likewise.
7924         * iconv/iconv.h: Likewise.
7925         * iconv/loop.c: Likewise.
7926         * iconv/skeleton.c: Likewise.
7927         * include/aio.h: Likewise.
7928         * include/aliases.h: Likewise.
7929         * include/argz.h: Likewise.
7930         * include/arpa/inet.h: Likewise.
7931         * include/assert.h: Likewise.
7932         * include/dirent.h: Likewise.
7933         * include/dlfcn.h: Likewise.
7934         * include/execinfo.h: Likewise.
7935         * include/fcntl.h: Likewise.
7936         * include/fenv.h: Likewise.
7937         * include/glob.h: Likewise.
7938         * include/grp.h: Likewise.
7939         * include/libintl.h: Likewise.
7940         * include/mntent.h: Likewise.
7941         * include/netdb.h: Likewise.
7942         * include/pwd.h: Likewise.
7943         * include/rpc/netdb.h: Likewise.
7944         * include/sched.h: Likewise.
7945         * include/search.h: Likewise.
7946         * include/shadow.h: Likewise.
7947         * include/signal.h: Likewise.
7948         * include/stdio.h: Likewise.
7949         * include/stdlib.h: Likewise.
7950         * include/string.h: Likewise.
7951         * include/sys/socket.h: Likewise.
7952         * include/sys/stat.h: Likewise.
7953         * include/sys/statfs.h: Likewise.
7954         * include/sys/statvfs.h: Likewise.
7955         * include/sys/syslog.h: Likewise.
7956         * include/sys/time.h: Likewise.
7957         * include/sys/uio.h: Likewise.
7958         * include/time.h: Likewise.
7959         * include/unistd.h: Likewise.
7960         * include/utmp.h: Likewise.
7961         * include/wchar.h: Likewise.
7962         * include/wctype.h: Likewise.
7963         * inet/aliases.h: Likewise.
7964         * inet/arpa/inet.h: Likewise.
7965         * inet/netinet/ether.h: Likewise.
7966         * inet/netinet/in.h: Likewise.
7967         * intl/libintl.h: Likewise.
7968         * io/bits/fcntl2.h: Likewise.
7969         * io/fcntl.h: Likewise.
7970         * io/ftw.h: Likewise.
7971         * io/sys/poll.h: Likewise.
7972         * io/sys/stat.h: Likewise.
7973         * io/sys/statfs.h: Likewise.
7974         * io/sys/statvfs.h: Likewise.
7975         * io/utime.h: Likewise.
7976         * libio/bits/stdio.h: Likewise.
7977         * libio/bits/stdio2.h: Likewise.
7978         * libio/libio.h: Likewise.
7979         * libio/libioP.h: Likewise.
7980         * libio/stdio.h: Likewise.
7981         * locale/lc-ctype.c: Likewise.
7982         * locale/locale.h: Likewise.
7983         * login/utmp.h: Likewise.
7984         * malloc/arena.c: Likewise.
7985         * malloc/malloc.c: Likewise.
7986         * malloc/malloc.h: Likewise.
7987         * malloc/mcheck.c: Likewise.
7988         * malloc/mtrace.c: Likewise.
7989         * math/bits/mathcalls.h: Likewise.
7990         * math/fenv.h: Likewise.
7991         * math/math_private.h: Likewise.
7992         * misc/bits/error.h: Likewise.
7993         * misc/bits/syslog.h: Likewise.
7994         * misc/err.h: Likewise.
7995         * misc/error.h: Likewise.
7996         * misc/fstab.h: Likewise.
7997         * misc/mntent.h: Likewise.
7998         * misc/regexp.h: Likewise.
7999         * misc/search.h: Likewise.
8000         * misc/sgtty.h: Likewise.
8001         * misc/sys/mman.h: Likewise.
8002         * misc/sys/syslog.h: Likewise.
8003         * misc/sys/uio.h: Likewise.
8004         * misc/sys/xattr.h: Likewise.
8005         * misc/ttyent.h: Likewise.
8006         * nis/rpcsvc/ypclnt.h: Likewise.
8007         * nss/nss.h: Likewise.
8008         * posix/bits/unistd.h: Likewise.
8009         * posix/fnmatch.h: Likewise.
8010         * posix/glob.h: Likewise.
8011         * posix/sched.h: Likewise.
8012         * posix/spawn.h: Likewise.
8013         * posix/sys/wait.h: Likewise.
8014         * posix/unistd.h: Likewise.
8015         * posix/wordexp.h: Likewise.
8016         * pwd/pwd.h: Likewise.
8017         * resolv/netdb.h: Likewise.
8018         * resource/sys/resource.h: Likewise.
8019         * rt/aio.h: Likewise.
8020         * rt/bits/mqueue2.h: Likewise.
8021         * rt/mqueue.h: Likewise.
8022         * shadow/shadow.h: Likewise.
8023         * signal/signal.h: Likewise.
8024         * socket/send.c: Likewise.
8025         * socket/sendto.c: Likewise.
8026         * socket/sys/socket.h: Likewise.
8027         * stdio-common/printf.h: Likewise.
8028         * stdlib/bits/stdlib.h: Likewise.
8029         * stdlib/fmtmsg.h: Likewise.
8030         * stdlib/monetary.h: Likewise.
8031         * stdlib/stdlib.h: Likewise.
8032         * stdlib/ucontext.h: Likewise.
8033         * streams/stropts.h: Likewise.
8034         * string/argz.h: Likewise.
8035         * string/bits/string2.h: Likewise.
8036         * string/string.h: Likewise.
8037         * string/strings.h: Likewise.
8038         * sunrpc/rpc/auth.h: Likewise.
8039         * sunrpc/rpc/auth_des.h: Likewise.
8040         * sunrpc/rpc/clnt.h: Likewise.
8041         * sunrpc/rpc/netdb.h: Likewise.
8042         * sunrpc/rpc/pmap_clnt.h: Likewise.
8043         * sunrpc/rpc/xdr.h: Likewise.
8044         * sysdeps/generic/inttypes.h: Likewise.
8045         * sysdeps/generic/net/if.h: Likewise.
8046         * sysdeps/generic/sys/swap.h: Likewise.
8047         * sysdeps/gnu/net/if.h: Likewise.
8048         * sysdeps/gnu/utmpx.h: Likewise.
8049         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
8050         * sysdeps/i386/i486/bits/string.h: Likewise.
8051         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
8052         * sysdeps/s390/bits/string.h: Likewise.
8053         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
8054         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
8055         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8056         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
8057         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8058         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8059         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8060         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
8061         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
8062         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
8063         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
8064         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8065         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
8066         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8067         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8068         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
8069         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
8070         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8071         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
8072         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
8073         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8074         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
8075         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
8076         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
8077         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
8078         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
8079         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
8080         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8081         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
8082         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
8083         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
8084         * sysvipc/sys/ipc.h: Likewise.
8085         * sysvipc/sys/msg.h: Likewise.
8086         * sysvipc/sys/sem.h: Likewise.
8087         * sysvipc/sys/shm.h: Likewise.
8088         * termios/termios.h: Likewise.
8089         * time/sys/time.h: Likewise.
8090         * time/time.h: Likewise.
8091         * wcsmbs/bits/wchar2.h: Likewise.
8092         * wcsmbs/uchar.h: Likewise.
8093         * wcsmbs/wchar.h: Likewise.
8094         * wctype/wctype.h: Likewise.
8095
8096         [BZ #13551]
8097         * Makeconfig: Remove all but ELF support including AIX support.
8098         * Makerules: Likewise.
8099         * config.h.in: Likewise.
8100         * config.make.in: Likewise.
8101         * configure: Likewise.
8102         * configure.in: Likewise.
8103         * csu/Makefile: Likewise.
8104         * csu/version.c: Likewise.
8105         * debug/Makefile: Likewise.
8106         * dlfcn/Makefile: Likewise.
8107         * elf/Makefile: Likewise.
8108         * extra-lib.mk: Likewise.
8109         * iconv/Makefile: Likewise.
8110         * include/libc-symbols.h: Likewise.
8111         * include/shlib-compat.h: Likewise.
8112         * resolv/Makefile: Likewise.
8113         * resolv/res_libc.c: Likewise.
8114         * rt/Makefile: Likewise.
8115         * sysdeps/i386/asm-syntax.h: Likewise.
8116         * sysdeps/i386/sysdep.h: Likewise.
8117         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8118         * sysdeps/mach/sysdep.h: Likewise.
8119         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
8120         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
8121         * sysdeps/s390/asm-syntax.h: Likewise.
8122         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8123         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8124         * sysdeps/sh/sysdep.h: Likewise.
8125         * sysdeps/unix/sparc/sysdep.h: Likewise.
8126         * sysdeps/wordsize-32/divdi3.c: Likewise.
8127         * sysdeps/x86_64/sysdep.h: Likewise.
8128
8129         * argp/Versions: Remove _argp_unlock_xxx.
8130
8131         [BZ #13559]
8132         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
8133         * abilist/libBrokenLocale.abilist: Likewise.
8134         * abilist/libanl.abilist: Likewise.
8135         * abilist/libc.abilist: Likewise.
8136         * abilist/libcrypt.abilist: Likewise.
8137         * abilist/libdl.abilist: Likewise.
8138         * abilist/libm.abilist: Likewise.
8139         * abilist/libnsl.abilist: Likewise.
8140         * abilist/libpthread.abilist: Likewise.
8141         * abilist/libresolv.abilist: Likewise.
8142         * abilist/librt.abilist: Likewise.
8143         * abilist/libthread_db.abilist: Likewise.
8144         * abilist/libutil.abilist: Likewise.
8145         * abilist/libnss_db.abilist: New file.
8146
8147         * scripts/abilist.awk: Add support for indirect functions.
8148
8149         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
8150
8151         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
8152
8153         * shlib-versions: Remove entries for ports architectures.
8154
8155         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
8156         files in ports.
8157         * elf/stackguard-macros.h: Remove support for IA-64.
8158         * elf/tst-auditmod1.c: Likewise.
8159         * sysdeps/generic/ldsodefs.h: Likewise.
8160
8161         * sysdeps/unix/sysv/linux/configure.in: Ports should define
8162         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
8163         configure files.
8164
8165         [BZ #13552]
8166         * configure.in: Remove --enable-omitfp support.
8167         * FAQ.in: Adjust.
8168         * config.make.in: Likewise.
8169         * Makeconfig: Likewise.
8170         * manual/install.texi: Likewise.
8171
8172         In case anyone cares, the IA-64 architecture could move to ports.
8173         * sysdeps/ia64/*: Removed.
8174         * sysdeps/unix/sysv/linux/ia64/*: Removed.
8175         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
8176
8177         [BZ #13555]
8178         * configure.in: Remove entries for unsupported architectures.
8179
8180         [BZ #13533]
8181         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
8182         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
8183         routines.
8184         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
8185         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
8186         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
8187         fall back to using wcrtomb.
8188         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
8189         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
8190         renaming.
8191         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
8192         * wcsmbs/tst-c16c32-1.c: New file.
8193
8194         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
8195         local variable.
8196
8197         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
8198
8199         * elf/tst-unique3.cc: Add explicit declaration of gets.
8200         * elf/tst-unique3lib.cc: Likewise.
8201         * elf/tst-unique3lib2.cc: Likewise.
8202         * elf/tst-unique4.cc: Likewise.
8203
8204         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
8205
8206 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
8207
8208         [BZ #13566]
8209         * assert/assert.h (static_assert): Don't define for C++.
8210         * libio/stdio.h (gets): Do declare for C++ <= C++11.
8211         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
8212
8213 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
8214
8215         * iconv/loop.c (single loop): Fix assertion in storing of
8216         remaining bytes.
8217
8218         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
8219
8220 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
8221
8222         * posix/getconf.c: Update copyright year.
8223         * nss/getent.c: Likewise.
8224         * nss/makedb.c: Likewise.
8225         * iconv/iconvconfig.c: Likewise.
8226         * iconv/iconv_prog.c: Likewise.
8227         * elf/ldconfig.c: Likewise.
8228         * elf/pldd.c: Likewise.
8229         * elf/sotruss.ksh: Likewise.
8230         * catgets/gencat.c: Likewise.
8231         * csu/version.c: Likewise.
8232         * elf/ldd.bash.in: Likewise.
8233         * elf/sprof.c (print_version): Likewise.
8234         * locale/programs/locale.c: Likewise.
8235         * locale/programs/localedef.c: Likewise.
8236         * login/programs/pt_chown.c: Likewise.
8237         * nscd/nscd.c (print_version): Likewise.
8238         * debug/xtrace.sh: Likewise.
8239         * malloc/memusage.sh: Likewise.
8240         * malloc/mtrace.pl: Likewise.
8241         * debug/catchsegv.sh: Likewise.
8242
8243 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
8244
8245         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
8246         pure attribute.
8247
8248 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
8249
8250         [BZ #13533]
8251         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
8252         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
8253         transformations.
8254         * iconv/gconv_int.h: Likewise.
8255         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
8256         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
8257         from libc for GLIBC_2.16.
8258         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
8259         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
8260         * wcsmbs/uchar.h: Really define mbstate_t.
8261         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
8262         * wcsmbs/c16rtomb.c: New file.
8263         * wcsmbs/mbrtoc16.c: New file.
8264         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
8265         for C/POSIX locale.
8266         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
8267         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
8268
8269         * wcsmbs/wchar.h: Add missing __restrict.
8270
8271 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8272
8273         [BZ #13532]
8274         * time/Makefile (routines): Add timespec_get.
8275         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
8276         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
8277         timespec for ISO C11.
8278         * time/timespec_get.c: New file.
8279         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
8280         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
8281
8282         [BZ #13531]
8283         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
8284         * stdlib/stdlib.h: Declare aligned_alloc.
8285         * Versions.def: Add GLIBC_2.16 for libc.
8286         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
8287
8288         [BZ 13527]
8289         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
8290         ISO C11.
8291
8292         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
8293         code.
8294
8295         [BZ #13528]
8296         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
8297
8298         [BZ #13529]
8299         * assert/assert.h (static_assert): Define.
8300
8301         * version.h: Update for 2.16 development version.
8302
8303         [BZ #13526]
8304         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
8305         _ISOC11_SOURCE.
8306
8307         * version.h (RELEASE): Bump for 2.15 release.
8308         * include/features.h (__GLIBC_MINOR__): Bump to 15.
8309
8310         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
8311         Patch by Marek Polacek <mpolacek@redhat.com>.
8312
8313         * bits/byteswap.h: Protect long long constants with __extension__.
8314         * sysdeps/i386/bits/byteswap.h: Likewise.
8315         * sysdeps/ia64/bits/byteswap.h: Likewise.
8316         * sysdeps/s390/bits/byteswap.h: Likewise.
8317         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8318
8319 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8320
8321         [BZ #13540]
8322         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
8323         destination buffer.
8324         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
8325
8326 2011-12-23  Marek Polacek  <polacek@redhat.com>
8327
8328         * elf/dl-addr.c (determine_info): Add inline keyword.
8329         * elf/tst-auditmod4b.c (check_avx): Likewise.
8330         * elf/tst-auditmod6b.c (check_avx): Likewise.
8331         * elf/tst-auditmod6c.c (check_avx): Likewise.
8332         * elf/tst-auditmod7b.c (check_avx): Likewise.
8333
8334 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8335
8336         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
8337         !__SSE_MATH__.
8338
8339 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8340
8341         [BZ #13540]
8342         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
8343         processing for last bytes.
8344
8345 2011-08-06  Bruno Haible  <bruno@clisp.org>
8346
8347         [BZ #13061]
8348         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
8349         U+0385, not to U+1FEE.
8350
8351         [BZ #13062]
8352         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
8353         entry for U+00A5 U+0301.
8354
8355 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8356
8357         [BZ #13166]
8358         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
8359         buffer for the output is too small.
8360
8361         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
8362         optimization.
8363
8364         [BZ #13185]
8365         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
8366         SSE flags if possible.
8367
8368 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8369
8370         [BZ #13540]
8371         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
8372         processing for last bytes.
8373
8374 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
8375
8376         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
8377         (syscall-list-default-options, syscall-list-default-condition)
8378         (syscall-list-includes): Define.
8379         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
8380         list of ABIs and options and #if conditions for each ABI.  Do not
8381         handle common syscalls between ABIs specially.
8382         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
8383         Remove.
8384         (syscall-list-variants, syscall-list-32bit-options)
8385         (syscall-list-32bit-condition, syscall-list-64bit-options)
8386         (syscall-list-64bit-condition): Define.
8387         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
8388         (syscall-list-variants, syscall-list-32bit-options)
8389         (syscall-list-32bit-condition, syscall-list-64bit-options)
8390         (syscall-list-64bit-condition): Define.
8391         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
8392         Remove.
8393         (syscall-list-variants, syscall-list-32bit-options)
8394         (syscall-list-32bit-condition, syscall-list-64bit-options)
8395         (syscall-list-64bit-condition): Define.
8396         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
8397         Remove.
8398         (syscall-list-variants, syscall-list-32bit-options)
8399         (syscall-list-32bit-condition, syscall-list-64bit-options)
8400         (syscall-list-64bit-condition): Define.
8401
8402 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8403
8404         * locale/iso-639.def: Add brx entry.
8405
8406         [BZ #13328]
8407         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
8408         Proposed by Mariusz_Cukr <marcukr@op.pl>.
8409
8410         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
8411         __feraiseexcept_renamed.
8412
8413 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8414
8415         [BZ #13538]
8416         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
8417         EPOLLET with unsigned values.
8418         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8419         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8420
8421         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
8422         to large cancellation.
8423         * math/s_cacoshf.c: Likewise.
8424         * math/s_cacoshl.c: Likewise.
8425
8426 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
8427
8428         [BZ #13305]
8429         [BZ #12786]
8430         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
8431         * math/s_cacoshf.c: Likewise.
8432         * math/s_cacoshl.c: Likewise.
8433
8434 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8435
8436         [BZ #13439]
8437         * iconv/gconv.h: Define __GCONV_SWAP.
8438         * iconvdata/unicode.c: The swap bit must be stored in __flags.
8439         * iconvdata/utf-16.c: Likewise.
8440         * iconvdata/utf-32.c: Likewise.
8441
8442 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
8443
8444         [BZ #13524]
8445         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
8446         numerator after shifting it by one limb.
8447
8448 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
8449
8450         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
8451         under [__USE_EXTERN_INLINES].
8452
8453 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8454
8455         [BZ #13446]
8456         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
8457
8458 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8459
8460         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
8461         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
8462         optimized code.
8463         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
8464         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
8465         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
8466         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
8467         for strncasecmp/strncasecmp_l compilation.
8468         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
8469         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
8470
8471 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
8472
8473         [BZ #13484]
8474         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
8475         of __asm__.
8476
8477 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8478
8479         [BZ #13506]
8480         * time/tzfile.c (__tzfile_read): Check values from file header.
8481
8482 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8483
8484         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
8485         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
8486         * powerpc/powerpc32/dl-start.S: Likewise.
8487         * powerpc/powerpc32/elf/start.S: Likewise.
8488         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8489         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
8490         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
8491         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
8492         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8493         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
8494         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
8495         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
8496         * powerpc/powerpc32/fpu/s_round.S: Likewise.
8497         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8498         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8499         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8500         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
8501         * powerpc/powerpc32/memset.S: Likewise.
8502         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8503         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8504         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8505         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8506         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8507         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
8508         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
8509         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
8510         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
8511         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
8512         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
8513         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8514         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8515
8516 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8517
8518         * math/libm-test.inc: Added more nearbyint tests.
8519         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
8520         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
8521         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
8522         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
8523
8524 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
8525
8526         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
8527         FD_CLOEXEC.
8528
8529 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8530
8531         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
8532         Add wcscpy-ssse3 wcscpy-c.
8533         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
8534         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
8535         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
8536         * sysdeps/x86_64/wcschr.S: New file.
8537         * sysdeps/x86_64/wcsrchr.S: New file.
8538         * string/test-strcmp.c: Remove checking of wcscmp function for
8539         wrong alignments.
8540         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
8541         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
8542         wcsrchr-sse2 wcsrchr-c.
8543         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
8544         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
8545         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
8546         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
8547         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
8548         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
8549         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
8550         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
8551         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
8552         * wcsmbc/wcschr.c (WCSCHR): New macro.
8553
8554 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8555
8556         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
8557         * wcsmbs/test-wcsrchr.c: New file.
8558         * string/test-strrchr.c: Add wcsrchr support.
8559         (WIDE): New macro.
8560         * wcsmbs/test-wcscpy.c: New file.
8561         * string/test-strcpy.c: Add wcscpy support.
8562         (WIDE): New macro.
8563
8564 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
8565
8566         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
8567         the inner loop.
8568
8569 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
8570
8571         [BZ #13472]
8572         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
8573
8574 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
8575
8576         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
8577         Minor optimizations.
8578
8579         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
8580         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
8581         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8582
8583 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
8584
8585         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
8586         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
8587         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
8588         for gcc to avoid warnings.
8589         * inet/Makefile (tests): Add tst-checks.
8590         * inet/tst-checks.c: New file.
8591
8592         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
8593         warning.
8594
8595         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
8596         __wmemcmp_sse2.
8597
8598         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
8599         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
8600
8601         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
8602
8603 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
8604
8605         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
8606         problem.
8607
8608         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
8609
8610 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
8611
8612         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
8613         conditional on GCC version.
8614         (__arch_compare_and_exchange_val_8_acq)
8615         (__arch_compare_and_exchange_val_16_acq)
8616         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
8617         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
8618         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
8619
8620 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
8621
8622         * sysdeps/sh/backtrace.c: New file.
8623
8624 2011-12-02  Andreas Schwab  <schwab@redhat.com>
8625
8626         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
8627         parenthesis.
8628
8629 2011-12-01  Andreas Schwab  <schwab@redhat.com>
8630
8631         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
8632         falling back to utime.
8633
8634 2011-11-30  Andreas Schwab  <schwab@redhat.com>
8635
8636         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
8637         expectations for float.
8638
8639 2011-11-29  Andreas Schwab  <schwab@redhat.com>
8640
8641         * locale/weight.h (findidx): Add parameter len.
8642         * locale/weightwc.h (findidx): Likewise.
8643         * posix/fnmatch_loop.c (FCT): Adjust caller.
8644         * posix/regcomp.c (build_equiv_class): Likewise.
8645         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
8646         * posix/regexec.c (check_node_accept_bytes): Likewise.
8647         * string/strcoll_l.c (STRCOLL): Likewise.
8648         * string/strxfrm_l.c (STRXFRM): Likewise.
8649
8650 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
8651
8652         * Makefile.in: Remove CVSOPT handling.
8653         * configure.in: Remove use of AC_REVISION.
8654         * iconvdata/Makefile (distribute): No need to filter out CVS.
8655         * scripts/list-sources.sh: Remove CVS, subversion and monotone
8656         handling.
8657
8658 2011-11-16  Andreas Schwab  <schwab@redhat.com>
8659
8660         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
8661         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
8662         [USE_AS_STRNCASECMP_L]: Likewise.
8663         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
8664         NO_TLS_DIRECT_SEG_REFS.
8665         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
8666         Fix argument offsets for non-PIC.
8667         [USE_AS_STRNCASECMP_L]: Likewise.
8668         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
8669         NO_TLS_DIRECT_SEG_REFS.
8670
8671 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8672
8673         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
8674         O_CLOEXEC.
8675         * locale/loadlocale.c (_nl_load_locale): Likewise.
8676
8677 2011-11-15  Andreas Schwab  <schwab@redhat.com>
8678
8679         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
8680         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
8681         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
8682         (SYSCALL_GETTIME): Set errno on error.
8683
8684         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
8685         count references to noai6ai_cached.
8686
8687 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8688
8689         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
8690
8691         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
8692         FD_CLOEXEC for /proc/self/maps.
8693
8694         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
8695         FD_CLOEXEC for /proc/meminfo.
8696
8697         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
8698         gai.conf.
8699
8700         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
8701         FD_CLOEXEC for given file.
8702
8703         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
8704
8705         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
8706         FD_CLOEXEC for /etc/hosts.
8707         (_gethtent): Likewise.
8708
8709         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
8710
8711         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
8712         cancellation and set FD_CLOEXEC for /etc/netgroup.
8713
8714         * nss/nss_files/files-key.c (search): Don't allow cancellation when
8715         reading /etc/publickey.
8716
8717         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
8718         allow cancellation when reading /etc/group.
8719
8720         * nss/nss_files/files-alias.c (internal_setent): Don't allow
8721         cancellation.
8722         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
8723
8724         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
8725         when using data file.
8726
8727         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
8728
8729         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
8730         (write_nis_obj): Use "c" and "e" in fopen.
8731
8732         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
8733
8734         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
8735
8736         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
8737
8738         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
8739
8740         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
8741         locale.alias.
8742
8743         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
8744
8745         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
8746
8747         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
8748
8749         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
8750         file parsing and set FD_CLOEXEC.
8751
8752 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8753
8754         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
8755
8756 2011-11-14  Andreas Schwab  <schwab@redhat.com>
8757
8758         * malloc/arena.c (arena_get2): Don't call reused_arena when
8759         _int_new_arena failed.
8760
8761 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8762
8763         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
8764         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
8765         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
8766         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8767         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8768         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
8769         to compile strcasecmp and strncasecmp.
8770         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
8771         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
8772
8773         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
8774
8775 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
8776
8777         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
8778         locale-defines.sym to gen-as-const-headers.
8779         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
8780         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
8781         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
8782         to compile strcasecmp and strncasecmp.
8783         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
8784         strcasecmp_l and strncasecmp_l.
8785         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
8786         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
8787         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
8788         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
8789         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
8790         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
8791         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
8792         * sysdeps/i386/i686/multiarch/strncase.S: New file.
8793         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
8794         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
8795         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
8796
8797 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
8798
8799         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
8800         result of SYSDEP_GETTIME_CPU to retval.
8801         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
8802         parameter list to macro.  Remove trailing semicolon.  Adjust users.
8803
8804         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
8805         variable.
8806
8807         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
8808         mantissa words.
8809         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8810
8811         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
8812         from unused variable.
8813
8814         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
8815         DWARF definitions.
8816         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
8817         for assembling.
8818
8819         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
8820         over namespaces.
8821
8822         * sunrpc/rpc_prot.c (rejected): Fix case value.
8823
8824         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
8825         unsigned long long int to avoid warnings in shift.
8826
8827         * posix/regex_internal.c (re_string_reconstruct): Actually use result
8828         of use of trans.
8829         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
8830         variable tmp.
8831
8832         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
8833         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
8834         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
8835
8836         * nis/nis_table.c (nis_list): Use variable of correct type for
8837         result of __follow_path call.
8838
8839 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8840
8841         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
8842         of math functions ceil, trunc, floor, round, and sqrt, when
8843         avaliable on the platform.
8844         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
8845         name clash.
8846         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8847         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8848         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8849
8850 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
8851
8852         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
8853         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8854
8855 2011-11-11  Roland McGrath  <roland@hack.frob.com>
8856
8857         * include/unistd.h: Fix __readlink return type.
8858         Reported by Chris Metcalf <cmetcalf@tilera.com>.
8859
8860 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
8861
8862         * stdlib/ucontext.h: Undo last change for makecontext.
8863
8864 2011-11-11  Andreas Schwab  <schwab@redhat.com>
8865
8866         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
8867
8868         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
8869         * setjmp/setjmp.h: Mark functions as non-leaf.
8870         * setjmp/bits/setjmp2.h: Likewise.
8871         * stdlib/ucontext.h: Likewise.
8872
8873 2011-11-10  Andreas Schwab  <schwab@redhat.com>
8874
8875         * malloc/arena.c (_int_new_arena): Don't increment narenas.
8876         (reused_arena): Don't check arena limit.
8877         (arena_get2): Atomically check arena limit.
8878
8879 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
8880
8881         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
8882         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
8883
8884         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
8885         instructions.
8886
8887 2011-11-07  Andreas Schwab  <schwab@redhat.com>
8888
8889         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
8890         handler when locking.
8891
8892         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8893         Fix size of allocated buffer.
8894
8895 2011-11-04  Andreas Schwab  <schwab@redhat.com>
8896
8897         [BZ #10103]
8898         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
8899         declarations for long double functions.
8900         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
8901
8902         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
8903
8904 2011-11-03  Andreas Schwab  <schwab@redhat.com>
8905
8906         * nscd/nscd.c (main): Don't start AVC thread until credentials are
8907         installed.
8908
8909         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
8910         is disabled.
8911
8912 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8913
8914         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
8915
8916 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8917
8918         * include/alloca.h (stackinfo_alloca_round): Define.
8919         (extend_alloca): Use it.
8920         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
8921         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
8922         here.
8923
8924         * scripts/check-local-headers.sh: Ignore libaudit.h.
8925
8926         * nscd/Makefile (extra-objs): Make recursively expanded.
8927
8928 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
8929
8930         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
8931         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
8932
8933         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
8934         * posix/tst-rfc3484-2.c: Likewise.
8935         * posix/tst-rfc3484-3.c: Likewise.
8936
8937         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8938         process_vm_writev.
8939         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
8940         process_vm_writev.
8941         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
8942         process_vm_writev from libc using GLIBC_2.15 version.
8943
8944         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
8945
8946 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
8947
8948         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
8949         stack usage.
8950
8951 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
8952
8953         [BZ #13367]
8954         * nss/getent.c (initgroups_keys): Show error message in case no group
8955         names are given.
8956
8957         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
8958         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
8959         __bump_nl_timestamp.
8960         * nscd/connections (nscd_init): When host database is served open
8961         netlink socket and request notification about configuration changes.
8962         (main_loop_poll): Track netlink file descriptor and bump timestamp
8963         in case data becomes available.
8964         (main_loop_epoll): Likewise.
8965         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
8966         (database_pers_head): Add extra_data fileds.
8967         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
8968         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
8969         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
8970         Adjust caller.
8971         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
8972         in6ai data, call __free_in6ai.
8973         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
8974         Add -DHAVE_NETLINK.
8975         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
8976         interface information.  Reuse previous data if netlink timestamp
8977         is not changed.
8978         (__bump_nl_timestamp): New function.
8979         (__free_in6ai): New function.
8980
8981 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
8982
8983         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
8984         close_not_cancel_no_status here.
8985         (__check_pf): Reorganize code a bit to not call close twice if OOM.
8986
8987 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8988
8989         [BZ #13276]
8990         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
8991         return value.
8992
8993         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
8994         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
8995         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
8996
8997 2011-07-03  Andreas Jaeger  <aj@suse.de>
8998
8999         [BZ #10709]
9000         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
9001         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
9002         * math/libm-test.inc (sin_test): Add test case.
9003
9004 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
9005
9006         [BZ #13337]
9007         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
9008         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9009
9010         * elf/chroot_canon.c (chroot_canon): Cleanups.
9011
9012         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
9013
9014         [BZ #13335]
9015         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
9016         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9017
9018         * string/test-strchr.c: Make usable for strchrnul testing.
9019         * string/test-strchrnul.c: New file.
9020         * string/Makefile (strop-tests): Add strchrnul.
9021
9022         * po/it.po: Update from translation team.
9023         * po/es.po: Likewise.
9024
9025 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
9026
9027         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
9028         the three constants needed as parameters.  Drop the others.
9029         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
9030         __m128i_strloadu_tolower.
9031         Create and initialize variable zero and use it in all the places
9032         where _mm_setzero_si128 was used.
9033
9034         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
9035         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
9036         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
9037         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
9038         anymore.
9039         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
9040         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
9041         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
9042         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
9043         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
9044         __mpranred, __mptan.
9045         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
9046         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
9047         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
9048         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
9049         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
9050         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
9051         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
9052         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
9053         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
9054
9055 2011-10-28  Andreas Schwab  <schwab@redhat.com>
9056
9057         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
9058         redefine if SHARED.
9059         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
9060
9061         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
9062         wide char related routines to wcsmbs subdir.
9063
9064 2011-10-27  Andreas Schwab  <schwab@redhat.com>
9065
9066         [BZ #13344]
9067         * misc/sys/cdefs.h (__THROWNL): Define.
9068         * posix/unistd.h: Use __THREADNL instead of __THREAD
9069         for memory synchronization functions.
9070
9071 2011-10-26  Roland McGrath  <roland@hack.frob.com>
9072
9073         [BZ #13349]
9074         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
9075         doesn't exist.
9076         * manual/stdio.texi (Obstack Streams): Node removed.
9077
9078 2011-10-26  Andreas Schwab  <schwab@redhat.com>
9079
9080         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
9081         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9082         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9083
9084         * math/math_private.h (math_force_eval): Allow non-addressable
9085         arguments.
9086         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
9087
9088 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9089
9090         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
9091         file is not needed.
9092
9093         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
9094         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9095         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9096         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9097         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9098         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9099         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9100         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
9101         Add AVX variants.
9102         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
9103         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
9104         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
9105         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
9106         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
9107         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
9108         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
9109         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
9110         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
9111         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
9112         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
9113         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
9114         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
9115         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
9116         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
9117         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
9118         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
9119         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
9120         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
9121
9122         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
9123         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
9124
9125         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
9126         place.  Use VEX encoding when compiling for AVX.
9127
9128 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9129
9130         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
9131         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9132
9133         * string/test-strchr.c (do_test): Don't generate NUL bytes.
9134
9135 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9136
9137         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
9138         useless if() expression.
9139         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9140         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9141         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9142         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9143         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9144         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9145         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9146         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9147         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9148         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9149         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9150         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9151         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9152         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9153         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9154         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9155         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9156         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9157         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9158
9159         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
9160
9161 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9162
9163         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
9164         condition.
9165         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9166
9167 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9168
9169         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
9170         .text section.  Avoid duplicate constants.
9171         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9172         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9173         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9174         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9175         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9176         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9177         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9178         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9179         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
9180         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
9181         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
9182         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9183         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
9184         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
9185         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
9186         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
9187         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
9188         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
9189         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9190         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9191         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9192         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9193         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9194         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
9195         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
9196         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
9197         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
9198         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
9199         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
9200         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
9201         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
9202         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
9203         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9204         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
9205         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
9206         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
9207         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
9208         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
9209         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
9210         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
9211         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
9212         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
9213         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
9214         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
9215         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
9216
9217 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
9218
9219         * sysdeps/x86_64/dla.h: Move to ...
9220         * sysdeps/x86_64/fpu/dla.h: ...here.
9221         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
9222         situations.  Use __builtin_fma only for gcc 4.6 and up.
9223
9224         * config.make.in: Add have-mfma4 entry.
9225         * configure.in: Substitute libc_cv_cc_fma4.
9226         * math/Makefile (dbl-only-routines): Add sincostab.
9227         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
9228         Use __sincostab not sincos.
9229         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
9230         name is a macro.
9231         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9232         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9233         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9234         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
9235         using __copysign.
9236         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
9237         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
9238         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
9239         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
9240         and __inv.
9241         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
9242         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
9243         __copysign.
9244         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
9245         define aliases when function name is a macro.
9246         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
9247         sysdeps/ieee754/dbl-64/sincos.tbl.
9248         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
9249         fma4-enabled routines.
9250         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
9251         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
9252         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
9253         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
9254         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
9255         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
9256         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
9257         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
9258         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
9259         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
9260         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
9261         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
9262         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
9263         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
9264         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
9265         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
9266         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
9267         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
9268         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
9269         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
9270         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
9271         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
9272         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
9273         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
9274         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
9275         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
9276         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
9277         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
9278         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
9279         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
9280
9281         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
9282         rename.
9283         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9284         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9285         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9286         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9287         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9288         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9289         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9290         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9291
9292 2011-10-24  Andreas Schwab  <schwab@redhat.com>
9293
9294         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
9295
9296 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9297
9298         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
9299
9300         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
9301         prediction.
9302         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
9303
9304         * string/strnlen.c: Don't define STRNLEN, reverse logic.
9305         Remove unused variable magic_bits.
9306         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
9307
9308         * string/strnlen.c: Define and use STRNLEN macro.
9309         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
9310         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
9311         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
9312         * wcsmbs/wcslen.c: Define and use WCSLEN.
9313         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
9314         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
9315         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
9316         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
9317         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
9318         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
9319         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9320
9321 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9322
9323         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9324         strnlen-sse2-no-bsf.
9325         Rename strlen-no-bsf to strlen-sse2-no-bsf.
9326         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
9327         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
9328         Add strnlen support.
9329         (USE_AS_STRNLEN): New macro.
9330         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
9331         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
9332         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
9333         * sysdeps/x86_64/wcslen.S: New file.
9334
9335 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9336
9337         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9338         XMM-moves are used for copying on small sizes.
9339
9340 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9341
9342         * wcsmbs/Makefile (strop-tests): Add wcschr.
9343         * wcsmbs/test-wcschr.c: New file.
9344         * string/test-strchr.c: Update.
9345         Add wcschr support.
9346         (WIDE): New macro.
9347
9348 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9349
9350         * wcsmbs/Makefile (strop-tests): Add wcslen.
9351         * wcsmbs/test-wcslen.c: New file.
9352         * string/test-strlen.c: Update.
9353         Add wcslen support.
9354         (WIDE): New macro.
9355
9356 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9357
9358         * po/it.po: Update from translation team.
9359
9360 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9361
9362         * sysdeps/x86_64/wcscmp.S: Update.
9363         Fix wrong comparison semantics.
9364         wcscmp shall use signed comparison not unsigned.
9365         Don't use substraction to avoid overflow bug.
9366         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
9367         * wcsmbc/wcscmp.c: Likewise.
9368         * string/test-strcmp.c: Likewise.
9369         Add new tests to check cases with negative values.
9370
9371 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9372
9373         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
9374         * sysdeps/x86_64/dla.h: ...here.  New file.
9375         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
9376         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9377         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9378         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9379         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9380         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9381         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9382         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9383         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9384
9385 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9386
9387         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
9388         __ynl_finite aliases.
9389
9390 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9391
9392         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9393
9394         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
9395         define DLA_FMA.
9396         [DLA_FMA] (EMULV): Use DLA_FMA.
9397         [DLA_FMA] (MUL12): Use EMULV.
9398         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
9399         that are not needed.
9400         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9401         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9402         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9403         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9404         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9405         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9406         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9407
9408 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
9409
9410         * math/s_nan.c: Undef __nan.
9411         * math/s_nanf.c: Undef __nanf.
9412         * math/s_nanl.c: Undef __nanl.
9413         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
9414         "math_private.h".
9415
9416 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9417
9418         * math/s_catan.c: Add branch predictions.
9419         * math/s_catanf.c: Likewise.
9420         * math/s_catanh.c: Likewise.
9421         * math/s_catanhf.c: Likewise.
9422         * math/s_catanhl.c: Likewise.
9423         * math/s_catanl.c: Likewise.
9424         * math/s_cexp.c: Likewise.
9425         * math/s_cexpf.c: Likewise.
9426         * math/s_cexpl.c: Likewise.
9427         * math/s_clog.c: Likewise.
9428         * math/s_clog10.c: Likewise.
9429         * math/s_clog10f.c: Likewise.
9430         * math/s_clog10l.c: Likewise.
9431         * math/s_clogf.c: Likewise.
9432         * math/s_clogl.c: Likewise.
9433         * math/s_csqrt.c: Likewise.
9434         * math/s_csqrtf.c: Likewise.
9435         * math/s_csqrtl.c: Likewise.
9436         * math/s_ctanf.c: Likewise.
9437         * math/s_ctanh.c: Likewise.
9438         * math/s_ctanhf.c: Likewise.
9439         * math/s_ctanhl.c: Likewise.
9440         * math/s_ctanl.c: Likewise.
9441
9442         * math/math_private.h: Define __nan, __nanf, __nanl.
9443         * math/s_cacosh.c: Include <math_private.h>.
9444         * math/s_cacoshl.c: Likewise.
9445         * math/s_casinh.c: Likewise.
9446         * math/s_casinhf.c: Likewise.
9447         * math/s_casinhl.c: Likewise.
9448         * math/s_ccos.c: Rely entire on ccosh.
9449         * math/s_ccosf.c: Rely entire on ccoshf.
9450         * math/s_ccosl.c: Rely entirely on ccoshl.
9451         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
9452         Remove tests for FE_INVALID.
9453         * math/s_ccoshf.c: Likewise.
9454         * math/s_ccoshl.c: Likewise.
9455         * math/s_csin.c: Likewise.
9456         * math/s_csinf.c: Likewise.
9457         * math/s_csinh.c Likewise.
9458         * math/s_csinhf.c: Likewise.
9459         * math/s_csinhl.c: Likewise.
9460         * math/s_csinl.c: Likewise.
9461         * math/s_ctan.c: Likewise.
9462         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
9463         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
9464         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
9465
9466 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
9467
9468         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
9469         compilation problems.
9470
9471         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
9472         __builtin_expect.
9473
9474 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
9475
9476         * sysdeps/i386/configure.in: Test for -mfma4 option.
9477         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
9478         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
9479         COMMON_CPUID_INDEX_80000001.
9480         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
9481         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
9482         use it if FMA3 is not supported.
9483         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
9484
9485         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
9486         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
9487
9488 2011-10-20  Andreas Schwab  <schwab@redhat.com>
9489
9490         [BZ #12892]
9491         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
9492         it would create a cycle with a link time dependency.
9493
9494 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
9495
9496         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
9497         instruction.
9498         * string/Makefile (strop-tests): Add rawmemchr.
9499         * string/test-rawmemchr.c: New file.
9500
9501         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
9502         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
9503         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
9504         when compiling str{,n}casecmp and when AVX is available.  Hook up
9505         new optimized code in initializers.
9506
9507 2011-10-19  Andreas Schwab  <schwab@redhat.com>
9508
9509         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
9510         __feraiseexcept instead of feraiseexcept.
9511
9512 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
9513
9514         * math/math_private.h: Define defaults for libc_fetestexcept and
9515         libc_feupdateenv.
9516         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
9517         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9518         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9519         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9520         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9521         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9522         libc_fetestexcept and libc_feupdateenv.
9523
9524         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
9525         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
9526         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
9527         * sysdeps/x86_64/fpu/math_private.h: Define special version of
9528         libc_feholdexcept_setround.
9529
9530         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
9531         Add s_nearbyint-c and s_nearbyintf-c.
9532         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
9533         nearbyintf inlines.
9534         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
9535         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
9536         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
9537         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
9538
9539         * math/math_private.h: Define defaults for libc_fegetround,
9540         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
9541         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
9542         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
9543         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
9544         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
9545         standard functions.
9546         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9547         Remove comments and hacks for old compiler versions.
9548         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9549         libc_fegetround, libc_fesetround, libc_feholdexcept, and
9550         libc_feholdexceptl.
9551
9552 2011-10-18  Andreas Schwab  <schwab@redhat.com>
9553
9554         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
9555         (__feraiseexcept_renamed): Add __NTH.
9556         (feraiseexcept): Add __NTH.  Rename local variables to fix
9557         namespace violations.
9558
9559 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
9560
9561         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
9562
9563         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
9564
9565         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
9566         recently added interfaces.
9567         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9568
9569         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
9570         about macro parameter expansion.
9571
9572         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
9573         __NO_MATH_INLINES is defined.  Cleanups.
9574
9575         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
9576         and __floorf is target has SSE4.1.
9577         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
9578         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
9579         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
9580         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
9581
9582         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
9583         name.
9584         (floorf): Likewise.
9585
9586         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
9587
9588 2011-10-17  Andreas Schwab  <schwab@redhat.com>
9589
9590         * misc/sys/cdefs.h: Fix last change.
9591
9592         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
9593         database lookup.
9594
9595 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
9596
9597         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
9598
9599         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
9600         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9601         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9602         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9603         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9604         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9605         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9606         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9607         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9608         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
9609         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
9610         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
9611         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
9612         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
9613         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
9614         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
9615         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
9616         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
9617         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
9618         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
9619         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
9620         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
9621
9622         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
9623         ceil, ceilf, floor, floorf.
9624
9625         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
9626         Perform IRELATIVE relocations last.
9627
9628         * elf/do-rel.h: Add another parameter nrelative, replacing the
9629         local variable with the same name.  Change name of the function
9630         to end in Rel or Rela (uppercase).
9631         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
9632         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
9633         elf_dynamic_do_##reloc function.
9634
9635 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9636
9637         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
9638         is sufficient, at least on modern CPUs.
9639
9640         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
9641
9642         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
9643         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
9644
9645         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
9646         __expl_finite.
9647         * math/bits/math-finite.h: Add entries for exp.
9648         * math/e_expl.c: Add __*_finite alias.
9649         * sysdeps/i386/fpu/e_exp.S: Likewise.
9650         * sysdeps/i386/fpu/e_expf.S: Likewise.
9651         * sysdeps/i386/fpu/e_expl.c: Likewise.
9652         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9653         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9654         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9655         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9656         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
9657         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9658         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9659
9660         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
9661         is sufficient, at least on modern CPUs.
9662
9663         * ctype/ctype-info.c (__ctype_init): Define.
9664         * include/ctype.h (__ctype_init): Declare.
9665         (__ctype_b_loc): The variable is always initialized.
9666         (__ctype_toupper_loc): Likewise.
9667         (__ctype_tolower_loc): Likewise.
9668         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
9669         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
9670
9671 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
9672
9673         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
9674
9675         * configure.in: Also look in $cxxmachine/include for C++ system
9676         headers.
9677
9678 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9679
9680         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
9681         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
9682         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
9683         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
9684         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
9685         (USE_AS_WMEMCMP): New macro.
9686         Fixing indents.
9687         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
9688         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
9689         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
9690         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
9691         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9692         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
9693         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
9694         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
9695         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
9696         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
9697         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
9698         (USE_AS_WMEMCMP): New macro.
9699         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
9700         * sysdeps/string/test-memcmp.c: Update.
9701         Fix simple_wmemcmp.
9702         Add new tests.
9703         * wcsmbs/wmemcmp.c: Update.
9704         (WMEMCMP): New macro.
9705         Fix overflow bug.
9706
9707 2011-10-12  Andreas Jaeger  <aj@suse.de>
9708
9709         [BZ #13268]
9710         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
9711
9712 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9713
9714         * libio/iofwide.c (do_length): Avoid warning.
9715
9716         * ctype/ctype.h (__isctype_f): Add missing __THROW.
9717
9718 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
9719
9720         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
9721
9722         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
9723         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
9724         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
9725         * sysdeps/i386/i686/fpu/e_log.S: New file.
9726         * sysdeps/i386/i686/fpu/e_logf.S: New file.
9727         * sysdeps/i386/i686/fpu/e_logl.S: New file.
9728
9729         * ctype/ctype.h: Add support for inlined isXXX functions when
9730         compiling C++ code.
9731
9732 2011-10-14  Andreas Schwab  <schwab@redhat.com>
9733
9734         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9735
9736         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
9737
9738 2011-10-13  Roland McGrath  <roland@hack.frob.com>
9739
9740         [BZ #13291]
9741         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
9742
9743 2011-10-13  Andreas Schwab  <schwab@redhat.com>
9744
9745         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
9746         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
9747         feraiseexcept.
9748
9749         * sysdeps/x86_64/memrchr.S: Check for zero size.
9750
9751         * string/stratcliff.c: Add memrchr tests.
9752
9753 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9754
9755         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9756         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
9757         rawmemchr-sse2 rawmemchr-sse2-bsf.
9758         * sysdeps/i386/i686/multiarch/memchr.S: New file.
9759         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
9760         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9761         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
9762         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
9763         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
9764         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
9765         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
9766         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
9767         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
9768         * string/memrchr.c (MEMRCHR): New macro.
9769
9770 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
9771
9772         Add integration with gcc's -ffinite-math-only and optimize wrapper
9773         functions in libm.
9774         * Versions.def: Define GLIBC_2.15 version for libm.
9775         * math/Makefile (headers): Add bits/math-finite.h.
9776         * math/bits/math-finite.h: New file.
9777         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
9778         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
9779         * math/e_acoshl.c: Add __*_finite alias.
9780         * math/e_acosl.c: Likewise.
9781         * math/e_asinl.c: Likewise.
9782         * math/e_atan2l.c: Likewise.
9783         * math/e_atanhl.c: Likewise.
9784         * math/e_coshl.c: Likewise.
9785         * math/e_exp10.c: Likewise.
9786         * math/e_exp10f.c: Likewise.
9787         * math/e_exp10l.c: Likewise.
9788         * math/e_exp2l.c: Likewise.
9789         * math/e_fmodl.c: Likewise.
9790         * math/e_gammal_r.c: Likewise.
9791         * math/e_hypotl.c: Likewise.
9792         * math/e_j0l.c: Likewise.
9793         * math/e_j1l.c: Likewise.
9794         * math/e_jnl.c: Likewise.
9795         * math/e_lgammal_r.c: Likewise.
9796         * math/e_log10l.c: Likewise.
9797         * math/e_log2l.c: Likewise.
9798         * math/e_logl.c: Likewise.
9799         * math/e_powl.c: Likewise.
9800         * math/e_sinhl.c: Likewise.
9801         * math/e_sqrtl.c: Likewise.
9802         * math/e_scalb.c: Completely rewritten and optimized.
9803         * math/e_scalbf.c: Likewise.
9804         * math/e_scalbl.c: Likewise.
9805         * math/w_acos.c: Likewise.
9806         * math/w_acosf.c: Likewise.
9807         * math/w_acosl.c: Likewise.
9808         * math/w_acosh.c: Likewise.
9809         * math/w_acoshf.c: Likewise.
9810         * math/w_acoshl.c: Likewise.
9811         * math/w_asin.c: Likewise.
9812         * math/w_asinf.c: Likewise.
9813         * math/w_asinl.c: Likewise.
9814         * math/w_atan2.c: Likewise.
9815         * math/w_atan2f.c: Likewise.
9816         * math/w_atan2l.c: Likewise.
9817         * math/w_atanh.c: Likewise.
9818         * math/w_atanhf.c: Likewise.
9819         * math/w_atanhl.c: Likewise.
9820         * math/w_exp10.c: Likewise.
9821         * math/w_exp10f.c: Likewise.
9822         * math/w_exp10l.c: Likewise.
9823         * math/w_fmod.c: Likewise.
9824         * math/w_fmodf.c: Likewise.
9825         * math/w_fmodl.c: Likewise.
9826         * math/w_j0.c: Likewise.
9827         * math/w_j0f.c: Likewise.
9828         * math/w_j0l.c: Likewise.
9829         * math/w_j1.c: Likewise.
9830         * math/w_j1f.c: Likewise.
9831         * math/w_j1l.c: Likewise.
9832         * math/w_jn.c: Likewise.
9833         * math/w_jnf.c: Likewise.
9834         * math/w_log.c: Likewise.
9835         * math/w_logf.c: Likewise.
9836         * math/w_logl.c: Likewise.
9837         * math/w_log10.c: Likewise.
9838         * math/w_log10f.c: Likewise.
9839         * math/w_log10l.c: Likewise.
9840         * math/w_log2.c: Likewise.
9841         * math/w_log2f.c: Likewise.
9842         * math/w_log2l.c: Likewise.
9843         * math/w_pow.c: Likewise.
9844         * math/w_powf.c: Likewise.
9845         * math/w_powl.c: Likewise.
9846         * math/w_remainder.c: Likewise.
9847         * math/w_remainderf.c: Likewise.
9848         * math/w_remainderl.c: Likewise.
9849         * math/w_scalb.c: Likewise.
9850         * math/w_scalbf.c: Likewise.
9851         * math/w_scalbl.c: Likewise.
9852         * math/w_sqrt.c: Likewise.
9853         * math/w_sqrtf.c: Likewise.
9854         * math/w_sqrtl.c: Likewise.
9855         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
9856         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
9857         used.
9858         * math/math_private.h: Declare __kernel_standard_f.
9859         * math/w_cosh.c: Remove cruft and optimize a bit.
9860         * math/w_coshf.c: Likewise.
9861         * math/w_coshl.c: Likewise.
9862         * math/w_exp2.c: Likewise.
9863         * math/w_exp2f.c: Likewise.
9864         * math/w_exp2l.c: Likewise.
9865         * math/w_hypot.c: Likewise.
9866         * math/w_hypotf.c: Likewise.
9867         * math/w_hypotl.c: Likewise.
9868         * math/w_lgamma.c: Likewise.
9869         * math/w_lgamma_r.c: Likewise.
9870         * math/w_lgammaf.c: Likewise.
9871         * math/w_lgammaf_r.c: Likewise.
9872         * math/w_lgammal.c: Likewise.
9873         * math/w_lgammal_r.c: Likewise.
9874         * math/w_sinh.c: Likewise.
9875         * math/w_sinhf.c: Likewise.
9876         * math/w_sinhl.c: Likewise.
9877         * math/w_tgamma.c: Likewise.
9878         * math/w_tgammaf.c: Likewise.
9879         * math/w_tgammal.c: Likewise.
9880         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9881         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9882         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
9883         Minor optimizations.  Pretty printing.  Remove cruft.
9884         * sysdeps/i386/fpu/e_acosf.S: Likewise.
9885         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9886         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9887         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9888         * sysdeps/i386/fpu/e_acosl.c: Likewise.
9889         * sysdeps/i386/fpu/e_asin.S: Likewise.
9890         * sysdeps/i386/fpu/e_asinf.S: Likewise.
9891         * sysdeps/i386/fpu/e_atan2.S: Likewise.
9892         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
9893         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
9894         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9895         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9896         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9897         * sysdeps/i386/fpu/e_exp10.S: Likewise.
9898         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
9899         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
9900         * sysdeps/i386/fpu/e_exp2.S: Likewise.
9901         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
9902         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
9903         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9904         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
9905         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9906         * sysdeps/i386/fpu/e_hypot.S: Likewise.
9907         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
9908         * sysdeps/i386/fpu/e_log.S: Likewise.
9909         * sysdeps/i386/fpu/e_log10.S: Likewise.
9910         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9911         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9912         * sysdeps/i386/fpu/e_log2.S: Likewise.
9913         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9914         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9915         * sysdeps/i386/fpu/e_logf.S: Likewise.
9916         * sysdeps/i386/fpu/e_logl.S: Likewise.
9917         * sysdeps/i386/fpu/e_pow.S: Likewise.
9918         * sysdeps/i386/fpu/e_powf.S: Likewise.
9919         * sysdeps/i386/fpu/e_powl.S: Likewise.
9920         * sysdeps/i386/fpu/e_remainder.S: Likewise.
9921         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
9922         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
9923         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9924         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9925         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9926         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
9927         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
9928         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
9929         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9930         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9931         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9932         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9933         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9934         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9935         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9936         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9937         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9938         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9939         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9940         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9941         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9942         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9943         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9944         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9945         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9946         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9947         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9948         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9949         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9950         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9951         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9952         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9953         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9954         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9955         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9956         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9957         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9958         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9959         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9960         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9961         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9962         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9963         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9964         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9965         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9966         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9967         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9968         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9969         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9970         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9971         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9972         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9973         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9974         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9975         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9976         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9977         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9978         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9979         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9980         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9981         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9982         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9983         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9984         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9985         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9986         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9987         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9988         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9989         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9990         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9991         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9992         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9993         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9994         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9995         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9996         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9997         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9998         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9999         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10000         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10001         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10002         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10003         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10004         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10005         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
10006         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10007         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10008         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10009         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10010         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10011         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10012         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10013         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10014         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10015         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10016         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10017         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10018         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10019         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10020         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10021         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10022         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10023         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10024         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10025         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10026         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
10027         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
10028         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
10029         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
10030         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
10031         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
10032         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
10033         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10034         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10035         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10036         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10037         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
10038         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10039         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
10040         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
10041         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
10042         (__isnanf): Likewise.
10043         (__isinf_ns): Likewise.
10044         (__isinf_nsf): Likewise.
10045         (__finite): Likewise.
10046         (__finitef): Likewise.
10047         (__ieee754_sqrt): Define as macro.
10048         (__ieee754_sqrtf): Define as macro.
10049         (__ieee754_sqrtl): Define as macro.
10050         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
10051         inlined copy.
10052         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
10053         __FINITE_MATH_ONLY__ consistent.
10054         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
10055
10056 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
10057
10058         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
10059         of rawmemchr.
10060
10061         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
10062
10063 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
10064
10065         * po/ja.po: Update from translation team.
10066
10067 2011-10-08  Roland McGrath  <roland@hack.frob.com>
10068
10069         * locale/programs/locarchive.c (prepare_address_space): New function.
10070         (create_archive, enlarge_archive, open_archive): Use it.
10071
10072         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
10073         inside [SHARED], where it is used.
10074
10075         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
10076
10077         * nss/getent.c (netgroup_keys): Remove unused variable.
10078         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10079
10080 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
10081
10082         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
10083         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
10084         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
10085         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
10086         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
10087         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
10088         * math/Makefile (libm-calls): Add s_isinf_ns.
10089         * math/divtc3.c: Use __isinf_nsl instead of isinf.
10090         * math/multc3.c: Likewise.
10091         * math/s_casin.c: Likewise.
10092         * math/s_casinf.c: Likewise.
10093         * math/s_casinl.c: Likewise.
10094         * math/s_ccos.c: Likewise.
10095         * math/s_ccosf.c: Likewise.
10096         * math/s_ccosl.c: Likewise.
10097         * math/s_ctan.c: Likewise.
10098         * math/s_ctanf.c: Likewise.
10099         * math/s_ctanh.c: Likewise.
10100         * math/s_ctanhf.c: Likewise.
10101         * math/s_ctanhl.c: Likewise.
10102         * math/s_ctanl.c: Likewise.
10103         * math/w_fmod.c: Likewise.
10104         * math/w_fmodf.c: Likewise.
10105         * math/w_fmodl.c: Likewise.
10106         * math/w_remainder.c: Likewise.
10107         * math/w_remainderf.c: Likewise.
10108         * math/w_remainderl.c: Likewise.
10109         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
10110         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
10111         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
10112         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
10113         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
10114         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
10115         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
10116         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
10117
10118         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
10119         of the number.
10120         * stdio-common/printf_fphex.c: Likewise.
10121         * stdio-common/printf_size.c: Likewise.
10122
10123         * math/e_exp10.c: Include math_private.h using <...> not "...".
10124         * math/e_exp10f.c: Likewise.
10125         * math/e_exp10l.c: Likewise.
10126         * math/e_exp2l.c: Likewise.
10127         * math/e_j0l.c: Likewise.
10128         * math/e_j1l.c: Likewise.
10129         * math/e_jnl.c: Likewise.
10130         * math/e_lgammal_r.c: Likewise.
10131         * math/e_rem_pio2l.c: Likewise.
10132         * math/e_scalb.c: Likewise.
10133         * math/e_scalbf.c: Likewise.
10134         * math/e_scalbl.c: Likewise.
10135         * math/k_cosl.c: Likewise.
10136         * math/k_sinl.c: Likewise.
10137         * math/k_tanl.c: Likewise.
10138         * math/s_cacoshf.c: Likewise.
10139         * math/s_catan.c: Likewise.
10140         * math/s_catanf.c: Likewise.
10141         * math/s_catanh.c: Likewise.
10142         * math/s_catanhf.c: Likewise.
10143         * math/s_catanhl.c: Likewise.
10144         * math/s_catanl.c: Likewise.
10145         * math/s_ccosh.c: Likewise.
10146         * math/s_ccoshf.c: Likewise.
10147         * math/s_ccoshl.c: Likewise.
10148         * math/s_cexp.c: Likewise.
10149         * math/s_cexpf.c: Likewise.
10150         * math/s_cexpl.c: Likewise.
10151         * math/s_clog.c: Likewise.
10152         * math/s_clog10.c: Likewise.
10153         * math/s_clog10f.c: Likewise.
10154         * math/s_clog10l.c: Likewise.
10155         * math/s_clogf.c: Likewise.
10156         * math/s_clogl.c: Likewise.
10157         * math/s_csin.c: Likewise.
10158         * math/s_csinf.c: Likewise.
10159         * math/s_csinh.c: Likewise.
10160         * math/s_csinhf.c: Likewise.
10161         * math/s_csinhl.c: Likewise.
10162         * math/s_csinl.c: Likewise.
10163         * math/s_csqrt.c: Likewise.
10164         * math/s_csqrtf.c: Likewise.
10165         * math/s_csqrtl.c: Likewise.
10166         * math/s_ctan.c: Likewise.
10167         * math/s_ctanf.c: Likewise.
10168         * math/s_ctanh.c: Likewise.
10169         * math/s_ctanhf.c: Likewise.
10170         * math/s_ctanhl.c: Likewise.
10171         * math/s_ctanl.c: Likewise.
10172         * math/s_ldexp.c: Likewise.
10173         * math/s_ldexpf.c: Likewise.
10174         * math/s_ldexpl.c: Likewise.
10175         * math/s_significand.c: Likewise.
10176         * math/s_significandf.c: Likewise.
10177         * math/s_significandl.c: Likewise.
10178         * math/w_acos.c: Likewise.
10179         * math/w_acosf.c: Likewise.
10180         * math/w_acosh.c: Likewise.
10181         * math/w_acoshf.c: Likewise.
10182         * math/w_acoshl.c: Likewise.
10183         * math/w_acosl.c: Likewise.
10184         * math/w_asin.c: Likewise.
10185         * math/w_asinf.c: Likewise.
10186         * math/w_asinl.c: Likewise.
10187         * math/w_atan2.c: Likewise.
10188         * math/w_atan2f.c: Likewise.
10189         * math/w_atan2l.c: Likewise.
10190         * math/w_atanh.c: Likewise.
10191         * math/w_atanhf.c: Likewise.
10192         * math/w_atanhl.c: Likewise.
10193         * math/w_cosh.c: Likewise.
10194         * math/w_coshf.c: Likewise.
10195         * math/w_coshl.c: Likewise.
10196         * math/w_dremf.c: Likewise.
10197         * math/w_exp10.c: Likewise.
10198         * math/w_exp10f.c: Likewise.
10199         * math/w_exp10l.c: Likewise.
10200         * math/w_exp2.c: Likewise.
10201         * math/w_exp2f.c: Likewise.
10202         * math/w_fmod.c: Likewise.
10203         * math/w_fmodf.c: Likewise.
10204         * math/w_fmodl.c: Likewise.
10205         * math/w_hypot.c: Likewise.
10206         * math/w_hypotf.c: Likewise.
10207         * math/w_hypotl.c: Likewise.
10208         * math/w_j0.c: Likewise.
10209         * math/w_j0f.c: Likewise.
10210         * math/w_j0l.c: Likewise.
10211         * math/w_j1.c: Likewise.
10212         * math/w_j1f.c: Likewise.
10213         * math/w_j1l.c: Likewise.
10214         * math/w_jn.c: Likewise.
10215         * math/w_jnf.c: Likewise.
10216         * math/w_jnl.c: Likewise.
10217         * math/w_lgamma.c: Likewise.
10218         * math/w_lgamma_r.c: Likewise.
10219         * math/w_lgammaf.c: Likewise.
10220         * math/w_lgammaf_r.c: Likewise.
10221         * math/w_lgammal.c: Likewise.
10222         * math/w_lgammal_r.c: Likewise.
10223         * math/w_log.c: Likewise.
10224         * math/w_log10.c: Likewise.
10225         * math/w_log10f.c: Likewise.
10226         * math/w_log10l.c: Likewise.
10227         * math/w_log2.c: Likewise.
10228         * math/w_log2f.c: Likewise.
10229         * math/w_log2l.c: Likewise.
10230         * math/w_logf.c: Likewise.
10231         * math/w_logl.c: Likewise.
10232         * math/w_pow.c: Likewise.
10233         * math/w_powf.c: Likewise.
10234         * math/w_powl.c: Likewise.
10235         * math/w_remainder.c: Likewise.
10236         * math/w_remainderf.c: Likewise.
10237         * math/w_remainderl.c: Likewise.
10238         * math/w_scalb.c: Likewise.
10239         * math/w_scalbf.c: Likewise.
10240         * math/w_scalbl.c: Likewise.
10241         * math/w_sinh.c: Likewise.
10242         * math/w_sinhf.c: Likewise.
10243         * math/w_sinhl.c: Likewise.
10244         * math/w_sqrt.c: Likewise.
10245         * math/w_sqrtf.c: Likewise.
10246         * math/w_sqrtl.c: Likewise.
10247         * math/w_tgamma.c: Likewise.
10248         * math/w_tgammaf.c: Likewise.
10249         * math/w_tgammal.c: Likewise.
10250
10251         * po/ja.po: Update from translation team.
10252
10253 2011-09-29  Andreas Jaeger  <aj@suse.de>
10254
10255         [BZ #13179]
10256         * sunrpc/netname.c (netname2host): Fix logic.
10257
10258         [BZ #6779]
10259         [BZ #6783]
10260         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
10261         correctly.
10262         * math/w_remainder.c (__remainder): Likewise.
10263         * math/w_remainderf.c (__remainderf): Likewise.
10264         * math/libm-test.inc (remainder_test): Add test cases.
10265
10266 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10267
10268         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
10269         sdiv_qrnnd.
10270
10271 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10272
10273         * string/test-memcmp.c: Avoid unncessary #defines.
10274         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10275
10276 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10277
10278         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
10279         Use new sse2 version for core i3 - i7 as it's faster
10280         than sse42 version.
10281         (bit_Prefer_PMINUB_for_stringop): New.
10282         * sysdeps/x86_64/rawmemchr.S: Update.
10283         Replace with faster SSE2 version.
10284         * sysdeps/x86_64/memrchr.S: New file.
10285         * sysdeps/x86_64/memchr.S: Update.
10286         Replace with faster SSE2 version.
10287
10288 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
10289
10290         * elf/dl-load.c (lose): Add cast to avoid warning.
10291
10292 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10293
10294         * po/ca.po: Update from translation team.
10295
10296         * inet/getnetgrent_r.c: Hook up nscd.
10297         * nscd/Makefile (routines): Add nscd_netgroup.
10298         (nscd-modules): Add netgroupcache.
10299         (CFLAGS-netgroupcache.c): Define.
10300         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
10301         (cache_search): Add const to second parameter.
10302         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
10303         INNETGR.
10304         (dbs): Add netgrdb entry.
10305         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
10306         (verify_persistent_db): Handle netgrdb.
10307         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
10308         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
10309         GETFDNETGR.
10310         (netgroup_response_header): Define.
10311         (innetgroup_response_header): Define.
10312         (datahead): Add netgroup_response_header and innetgroup_response_header
10313         elements.
10314         * nscd/nscd.conf: Add entries for netgroup cache.
10315         * nscd/nscd.h (dbtype): Add netgrdb.
10316         (_PATH_NSCD_NETGROUP_DB): Define.
10317         (netgroup_iov_disabled): Declare.
10318         (xmalloc, xcalloc, xrealloc): Move declarations here.
10319         (cache_search): Adjust prototype.
10320         Add netgroup-related prototypes.
10321         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
10322         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
10323         (__nscd_innetgr): Declare.
10324         * nscd/selinux.c (perms): Use access_vector_t as element type and
10325         add netgroup-related initializers.
10326         * nscd/netgroupcache.c: New file.
10327         * nscd/nscd_netgroup.c: New file.
10328         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
10329         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
10330         For four parameters use innetgr.
10331         * nss/nss_files/files-init.c: Add definition and callback for netgr.
10332         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
10333         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
10334         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
10335
10336         * nscd/connections.c (register_traced_file): Don't register file
10337         for disabled databases.
10338
10339 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
10340
10341         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
10342
10343         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
10344         from tree and freeing node.
10345
10346 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
10347
10348         * nss/nsswitch.c (__nss_database_lookup): Handle
10349         nss_parse_service_list out of memory case.
10350
10351 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
10352
10353         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
10354         out of memory case.
10355
10356 2011-10-04  Andreas Schwab  <schwab@redhat.com>
10357
10358         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
10359         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
10360         pass it down.
10361         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
10362         elf_machine_rela, elf_machine_lazy_rel.
10363         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
10364         (ELF_DYNAMIC_DO_REL): Likewise.
10365         (ELF_DYNAMIC_DO_RELA): Likewise.
10366         (ELF_DYNAMIC_RELOCATE): Likewise.
10367         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
10368         to ELF_DYNAMIC_DO_REL.
10369         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
10370         (dl_main): In trace mode always set __RTLD_NOIFUNC.
10371         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
10372         elf_machine_rela.
10373         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
10374         skip_ifunc, don't call ifunc function if non-zero.
10375         (elf_machine_rela): Likewise.
10376         (elf_machine_lazy_rel): Likewise.
10377         (elf_machine_lazy_rela): Likewise.
10378         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
10379         (elf_machine_lazy_rel): Likewise.
10380         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10381         Likewise.
10382         (elf_machine_lazy_rel): Likewise.
10383         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10384         Likewise.
10385         (elf_machine_lazy_rel): Likewise.
10386         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
10387         (elf_machine_lazy_rel): Likewise.
10388         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
10389         (elf_machine_lazy_rel): Likewise.
10390         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10391         (elf_machine_lazy_rel): Likewise.
10392         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10393         (elf_machine_lazy_rel): Likewise.
10394         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10395         (elf_machine_lazy_rel): Likewise.
10396         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10397         (elf_machine_lazy_rel): Likewise.
10398
10399 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
10400
10401         * nss/nss_files/files-init.c (_nss_files_init): Use static
10402         initialization for all the *_traced_file variables.
10403
10404 2011-09-28  Andreas Schwab  <schwab@redhat.com>
10405
10406         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10407
10408 2011-09-27  Roland McGrath  <roland@hack.frob.com>
10409
10410         [BZ #13226]
10411         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
10412
10413 2011-09-27  Andreas Schwab  <schwab@redhat.com>
10414
10415         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10416         Reread the line before reparsing it.
10417
10418 2011-09-26  Andreas Schwab  <schwab@redhat.com>
10419
10420         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
10421
10422 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
10423             Maxim Kuvyrkov  <maxim@codesourcery.com>
10424             Joseph Myers  <joseph@codesourcery.com>
10425
10426         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
10427         if needed for __stack_chk_guard.
10428
10429 2011-09-19  Roland McGrath  <roland@hack.frob.com>
10430
10431         * sysdeps/posix/spawni.c (script_execute): Always define it.
10432         It will be optimized away if unused.
10433         (maybe_script_execute): New function.
10434         (__spawni): Call it.
10435
10436         * Makerules: Don't include tls.make.
10437         (config-tls): Always set to thread.
10438         * tls.make.c: File removed.
10439
10440 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
10441
10442         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
10443         * config.make.in (CPPFLAGS-config): New substituted variable.
10444
10445 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10446
10447         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
10448
10449         [BZ #13192]
10450         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
10451         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
10452
10453 2011-09-15  Roland McGrath  <roland@hack.frob.com>
10454
10455         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
10456         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
10457         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10458         (CALL_FAIL): Likewise.
10459         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
10460         (CALL_FAIL): Macro removed.
10461         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
10462
10463 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10464
10465         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
10466         for __FINITE_MATH_ONLY__ == 1.
10467
10468 2011-09-15  Andreas Schwab  <schwab@redhat.com>
10469
10470         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
10471         __ieee754_sqrt instead of sqrt.
10472         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
10473         __ieee754_sqrtf instead of sqrtf.
10474         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
10475         __floorf instead of floorf.
10476         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
10477         __floorf, __truncf instead of floorf, truncf.
10478
10479 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
10480
10481         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
10482
10483         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
10484         __extern_always_inline.
10485         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
10486         32-bit.
10487
10488 2011-09-14  Andreas Schwab  <schwab@redhat.com>
10489
10490         * elf/rtld.c (dl_main): Also relocate in dependency order when
10491         doing symbol dependency testing.
10492
10493 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
10494
10495         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10496         Always define `refsym'.
10497
10498 2011-09-13  Andreas Schwab  <schwab@redhat.com>
10499
10500         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
10501         (__FD_ELT): Renamed from __FDELT.
10502         * misc/bits/select2.h (__FD_ELT): Likewise.
10503         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
10504         __FD_MASK instead of __FDELT, __FDMASK.
10505         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10506         Likewise.
10507         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10508         Likewise.
10509
10510         * elf/Makefile (gen-ldd): Fix pattern.
10511
10512         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
10513         (init_tls): Likewise.
10514
10515 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
10516
10517         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
10518
10519 2011-09-12  Andreas Schwab  <schwab@redhat.com>
10520
10521         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
10522         `struct cmsghdr *' instead of `void *'.
10523         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
10524         Likewise.
10525
10526 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
10527
10528         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
10529         if non-absolute.
10530         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
10531         ldd_rewrite_script.
10532
10533 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
10534
10535         * configure.in: Remove --with-tls option.
10536         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
10537         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
10538         out in case it is missing.
10539         * sysdeps/ia64/elf/configure.in: Likewise.
10540         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
10541         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
10542         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
10543         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10544         * sysdeps/sh/elf/configure.in: Likewise.
10545         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
10546         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10547         * sysdeps/x86_64/elf/configure.in: Likewise.
10548         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
10549         * sysdeps/mach/hurd/tls.h: Likewise.
10550
10551         [BZ #13067]
10552         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
10553
10554         [BZ #13090]
10555         * configure.in: Fix use of AC_INIT.
10556
10557         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
10558
10559 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
10560
10561         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
10562         __set_errno.
10563         * malloc/hooks.c: Likewise.
10564
10565         [BZ #11929]
10566         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
10567         variables statically.
10568         (narenas): Initialize.
10569         (list_lock): Initialize.
10570         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
10571         initializtion of main_arena and list_lock.  Small cleanups.
10572         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
10573         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
10574         Add initializers to main_arena and mp_.
10575         (malloc_state): Remove pagesize member.  Change all users to use
10576         GLRO(dl_pagesize).
10577
10578         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
10579         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
10580         is always initialized.
10581
10582         * malloc/malloc.c: Removed unused configurations and dead code.
10583         * malloc/arena.c: Likewise.
10584         * malloc/hooks.c: Likewise.
10585         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
10586
10587         * include/tls.h: Removed.  USE___THREAD must always be defined.
10588         * bits/libc-tsd.h: Don't handle !USE___THREAD.
10589         * elf/dl-libc.c: Likewise.
10590         * elf/dl-tsd.c: Likewise.
10591         * include/errno.h: Likewise.
10592         * include/netdb.h: Likewise.
10593         * include/resolv.h: Likewise.
10594         * inet/herrno-loc.c: Likewise.
10595         * inet/herrno.c: Likewise.
10596         * malloc/arena.c: Likewise.
10597         * malloc/hooks.c: Likewise.
10598         * malloc/malloc.c: Likewise.
10599         * resolv/res-state.c: Likewise.
10600         * resolv/res_libc.c: Likewise.
10601         * sysdeps/i386/dl-machine.h: Likewise.
10602         * sysdeps/ia64/dl-machine.h: Likewise.
10603         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10604         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10605         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10606         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10607         * sysdeps/sh/dl-machine.h: Likewise.
10608         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10609         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10610         * sysdeps/unix/i386/sysdep.S: Likewise.
10611         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10612         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10613         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10614         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10615         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10616         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10617         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10618         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10619         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10620         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10621         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10622         * sysdeps/x86_64/dl-machine.h: Likewise.
10623         * tls.make.c: Likewise.
10624
10625         * configure.in: Remove --with-__thread option.  Make tests for
10626         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
10627         tls_model attribute fail if no support is available.  Remove
10628         USE_IN_LIBIO.
10629         * Makeconfig: Adjust for dropped configure option.  All features are
10630         now mandatory.
10631         * Makerules: Likewise.
10632         * Versions.def: Likewise.
10633         * argp/argp-fmtstream.c: Likewise.
10634         * argp/argp-fmtstream.h: Likewise.
10635         * argp/argp-help.c: Likewise.
10636         * assert/assert.c: Likewise.
10637         * config.h.in: Likewise.
10638         * config.make.in: Likewise.
10639         * configure: Likewise.
10640         * configure.in: Likewise.
10641         * csu/Versions: Likewise.
10642         * csu/init.c: Likewise.
10643         * elf/tst-audit2.c: Likewise.
10644         * elf/tst-tls10.c: Likewise.
10645         * elf/tst-tls10.h: Likewise.
10646         * elf/tst-tls11.c: Likewise.
10647         * elf/tst-tls12.c: Likewise.
10648         * elf/tst-tls14.c: Likewise.
10649         * elf/tst-tlsmod11.c: Likewise.
10650         * elf/tst-tlsmod12.c: Likewise.
10651         * elf/tst-tlsmod13.c: Likewise.
10652         * elf/tst-tlsmod13a.c: Likewise.
10653         * elf/tst-tlsmod14a.c: Likewise.
10654         * elf/tst-tlsmod15b.c: Likewise.
10655         * elf/tst-tlsmod16a.c: Likewise.
10656         * elf/tst-tlsmod16b.c: Likewise.
10657         * elf/tst-tlsmod7.c: Likewise.
10658         * elf/tst-tlsmod8.c: Likewise.
10659         * elf/tst-tlsmod9.c: Likewise.
10660         * gmon/gmon.c: Likewise.
10661         * grp/fgetgrent_r.c: Likewise.
10662         * grp/putgrent.c: Likewise.
10663         * hurd/fopenport.c: Likewise.
10664         * include/libc-symbols.h: Likewise.
10665         * include/tls.h: Likewise.
10666         * intl/gettextP.h: Likewise.
10667         * intl/loadinfo.h: Likewise.
10668         * locale/global-locale.c: Likewise.
10669         * locale/localeinfo.h: Likewise.
10670         * mach/devstream.c: Likewise.
10671         * malloc/arena.c: Likewise.
10672         * malloc/set-freeres.c: Likewise.
10673         * misc/err.c: Likewise.
10674         * misc/getttyent.c: Likewise.
10675         * misc/mntent_r.c: Likewise.
10676         * posix/getopt.c: Likewise.
10677         * posix/wordexp.c: Likewise.
10678         * pwd/fgetpwent_r.c: Likewise.
10679         * resolv/Versions: Likewise.
10680         * resolv/res_hconf.c: Likewise.
10681         * shadow/fgetspent_r.c: Likewise.
10682         * shadow/putspent.c: Likewise.
10683         * stdio-common/printf_fphex.c: Likewise.
10684         * stdio-common/tmpfile.c: Likewise.
10685         * stdlib/abort.c: Likewise.
10686         * stdlib/fmtmsg.c: Likewise.
10687         * sunrpc/auth_unix.c: Likewise.
10688         * sunrpc/clnt_perr.c: Likewise.
10689         * sunrpc/clnt_tcp.c: Likewise.
10690         * sunrpc/clnt_udp.c: Likewise.
10691         * sunrpc/clnt_unix.c: Likewise.
10692         * sunrpc/openchild.c: Likewise.
10693         * sunrpc/svc_simple.c: Likewise.
10694         * sunrpc/svc_tcp.c: Likewise.
10695         * sunrpc/svc_udp.c: Likewise.
10696         * sunrpc/svc_unix.c: Likewise.
10697         * sunrpc/xdr.c: Likewise.
10698         * sunrpc/xdr_array.c: Likewise.
10699         * sunrpc/xdr_rec.c: Likewise.
10700         * sunrpc/xdr_ref.c: Likewise.
10701         * sunrpc/xdr_stdio.c: Likewise.
10702
10703 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10704
10705         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10706
10707 2011-07-03  Andreas Jaeger  <aj@suse.de>
10708
10709         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
10710         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
10711         regenerate with gen-libm-tests.pl.
10712
10713 2010-05-12  Petr Baudis  <pasky@suse.cz>
10714
10715         [BZ #11589]
10716         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
10717         around j0() zero points by switching to j1().
10718         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10719         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10720         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10721         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10722
10723 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10724
10725         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
10726         instead of 0.
10727         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
10728         instead of 0.                              .
10729         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10730         Patch in part by Pavel Roskin <proski@gnu.org>.
10731
10732         [BZ #13138]
10733         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
10734         realloc.
10735         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
10736         Free memory block if necessary.
10737
10738         [BZ #12847]
10739         * libio/genops.c (INTDEF): For string streams the _lock pointer can
10740         be NULL.  Don't lock in this case.
10741
10742 2011-09-09  Roland McGrath  <roland@hack.frob.com>
10743
10744         * elf/elf.h (ELFOSABI_GNU): New macro.
10745         (ELFOSABI_LINUX): Define to that.
10746
10747 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
10748
10749         * string/strncat.c (strncat): Undef the symbol in case it has been
10750         defined in bits/string.h.
10751
10752 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10753
10754         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
10755
10756         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
10757         link map.
10758
10759 2011-08-17  Andreas Jaeger  <aj@suse.de>
10760
10761         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
10762
10763 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10764             Ian Lance Taylor  <iant@google.com>
10765
10766         * math/libm-test.inc (lround_test): New testcase.
10767         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
10768
10769 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
10770
10771         * Makefile: Remove support for automatic cvs check-ins.
10772         * Makerules: Likewise.
10773         * config.make.in: Likewise.
10774         * configure.in: Likewise.
10775         * intl/Makefile: Likewise.
10776         * locale/Makefile: Likewise.
10777         * po/Makefile: Likewise.
10778         * posix/Makefile: Likewise.
10779         * sysdeps/gnu/Makefile: Likewise.
10780         * sysdeps/mach/hurd/Makefile: Likewise.
10781         * sysdeps/sparc/sparc32/Makefile: Likewise.
10782
10783         [BZ #13118]
10784         * posix/Makefile (bug-regex32-ENV): Define.
10785         Patch by John Stanley <jpsinthemix@verizon.net>.
10786
10787         * misc/Makefile (headers): Add bits/select2.h.
10788         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
10789         * misc/bits/select2.h: New file.
10790         * include/bits/select2.h: New file.
10791         * debug/Makefile (routines): Add fdelt_chk.
10792         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
10793         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
10794         FD_ISSET.
10795         * debug/fdelt_chk.c: New file.
10796
10797         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
10798         * wcsmbs/test-wmemcmp.c: Likewise.
10799         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
10800         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
10801
10802 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10803
10804         * string/Makefile (strop-tests): Add memcmp.
10805         * string/test-wmemcmp.c: New file.
10806         * string/test-memcmp.c: Add wmemcmp support.
10807
10808 2011-09-08  Roland McGrath  <roland@hack.frob.com>
10809
10810         [BZ #13153]
10811         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
10812         2011-07-19 change.
10813
10814         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
10815         garbage value in a __mach_port_mod_refs call in the cases of the
10816         task-self and thread-self ports.
10817
10818 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10819
10820         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
10821
10822 2011-09-08  Andreas Schwab  <schwab@redhat.com>
10823
10824         * elf/dl-load.c (lose): Check for non-null L.
10825
10826 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10827
10828         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
10829
10830         * elf/dl-libc.c (dlerror_run): Pass back error code from
10831         dl_catch_error.
10832
10833         [BZ #13123]
10834         * elf/dl-load.c (lose): Free l_origin if it is valid.
10835
10836         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
10837         names.
10838         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
10839         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10840         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10841         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10842         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
10843         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
10844
10845 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10846
10847         * sysdeps/powerpc/fpu/e_hypot.c: New file.
10848         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
10849         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
10850         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
10851         * sysdeps/powerpc/fpu/k_cosf.c: New file.
10852         * sysdeps/powerpc/fpu/k_sinf.c: New file.
10853         * sysdeps/powerpc/fpu/s_cosf.c: New file.
10854         * sysdeps/powerpc/fpu/s_sinf.c: New file.
10855         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
10856         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
10857
10858 2011-08-15  Alan Modra  <amodra@gmail.com>
10859
10860         [BZ #13092]
10861         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
10862         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
10863         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
10864         ppc_mcount to static-only-routines.
10865         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
10866         __mcount_internal.
10867         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
10868         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
10869
10870 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
10871
10872         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
10873         for finite and infinity parameters.
10874
10875 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10876
10877         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
10878         and add nop instructions for throughput optimization.
10879         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10880
10881 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
10882
10883         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
10884         aligned copy for power7 with vector-scalar instructions.
10885         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
10886
10887 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
10888
10889         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
10890         AVX check.
10891
10892 2011-09-07  Andreas Schwab  <schwab@redhat.com>
10893
10894         [BZ #13144]
10895         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
10896         last change.
10897
10898 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10899
10900         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10901         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
10902         syscall wrapper around clock_gettime in __vdso_clock_gettime.
10903         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
10904         clock_gettime.
10905
10906 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10907
10908         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
10909         Forgot to demangle the pointer.
10910
10911         * sysdeps/i386/sysdep.h: Define atom_text_section.
10912         * sysdeps/x86_64/sysdep.h: Likewise.
10913         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
10914         section with atom_text_section.
10915         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10916         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10917         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
10918         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
10919         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
10920
10921         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
10922         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
10923         already be defined.  Change to take two parameters and don't assign
10924         result to variable.  Adjust all users.
10925         Define INTERNAL_GETTIME if not already defined.
10926         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
10927         call.
10928         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
10929         HAVE_CLOCK_GETTIME_VSYSCALL.
10930         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
10931
10932         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
10933         gettimeofday vsyscall, just use time.
10934
10935 2011-09-06  Andreas Schwab  <schwab@redhat.com>
10936
10937         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
10938         <errno.h>.
10939
10940 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10941
10942         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
10943         syscall on x86-64.
10944         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
10945         syscall.
10946         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
10947         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
10948         syscall if possible.
10949
10950 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10951
10952         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
10953         e_ident.  Don't pass to find_mapsXX.
10954         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
10955
10956 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10957
10958         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10959         strchr-sse2-no-bsf strrchr-sse2-no-bsf
10960         * sysdeps/x86_64/multiarch/strchr.S: Update.
10961         Check bit_slow_BSF bit.
10962         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
10963         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
10964         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
10965
10966 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10967
10968         [BZ #13134]
10969         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
10970         before glibc 2.15.
10971         (tryshell): Define.
10972         (__spawni): Change last parameter to be flag.  Test
10973         SPAWN_XFLAGS_USE_PATH flag to use path or not.
10974         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
10975         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
10976         * posix/spawni.c: Likewise.
10977         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
10978         * posix/spawnp.c: Likewise.  Change normal version to use
10979         SPAWN_XFLAGS_USE_PATH.
10980         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
10981         SPAWN_XFLAGS_TRY_SHELL.
10982
10983         [BZ #13150]
10984         * posix/glob.h: Remove gcc 1.x support.
10985
10986         [BZ #13068]
10987         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
10988
10989 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10990
10991         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10992         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
10993         strrchr-sse2-bsf
10994         * sysdeps/i386/i686/multiarch/strchr.S: New file.
10995         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
10996         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
10997         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
10998         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
10999         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
11000
11001 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11002
11003         * sysdeps/x86_64/wcscmp.S: New file.
11004
11005         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
11006         wcscmp-c wcscmp-sse2
11007         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
11008         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
11009         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
11010         * wcsmbs/wcscmp.c: Allow renaming.
11011
11012 2011-09-05  David S. Miller  <davem@davemloft.net>
11013
11014         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
11015         stack slot, rather than the struct return pointer slot.
11016         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
11017         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
11018         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
11019         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
11020
11021 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11022
11023         * po/ja.po: Update from translation team.
11024
11025         [BZ #13144]
11026         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
11027         kernel in 64-bit binaries.
11028
11029 2011-09-01  David S. Miller  <davem@davemloft.net>
11030
11031         * elf/elf.h (HWCAP_SPARC_*): Move to..
11032         * sysdeps/sparc/sysdep.h: this new file and add new values.
11033         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
11034         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
11035         _DL_HWCAP_COUNT to 24.
11036         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
11037         entries.
11038         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
11039         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
11040         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
11041         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
11042         instead of magic constants.
11043         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11044
11045 2011-08-31  David S. Miller  <davem@davemloft.net>
11046
11047         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
11048         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
11049         Reimplement to do errno handling inline.
11050         (SYSCALL_ERROR_HANDLER): New macro.
11051         (__SYSCALL_STRING): Do not do errno handling in asm.
11052         (__CLONE_SYSCALL_STRING): Delete.
11053         (__INTERNAL_SYSCALL_STRING): Delete.
11054         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
11055         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
11056         (PSEUDO): Reimplement to do errno handling inline.
11057         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
11058         (SYSCALL_ERROR_HANDLER): New macro.
11059         (__SYSCALL_STRING): Do not do errno handling in asm.
11060         (__CLONE_SYSCALL_STRING): Delete.
11061         (__INTERNAL_SYSCALL_STRING): Delete.
11062         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
11063         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
11064         i386.
11065         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
11066         (inline_syscall*): Add 'err' argument.
11067         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
11068         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
11069         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
11070         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
11071
11072         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
11073         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
11074
11075 2011-08-30  Andreas Schwab  <schwab@redhat.com>
11076
11077         * elf/rtld.c (dl_main): Relocate objects in dependency order.
11078
11079 2011-08-29  Jiri Olsa <jolsa@redhat.com>
11080
11081         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
11082         directive.
11083
11084 2011-08-24  David S. Miller  <davem@davemloft.net>
11085
11086         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
11087
11088 2011-08-24  Andreas Schwab  <schwab@redhat.com>
11089
11090         * elf/Makefile: Add rules to build and run unload8 test.
11091         * elf/unload8.c: New file.
11092         * elf/unload8mod1.c: New file.
11093         * elf/unload8mod1x.c: New file.
11094         * elf/unload8mod2.c: New file.
11095         * elf/unload8mod3.c: New file.
11096
11097         * elf/dl-close.c (_dl_close_worker): Reset private search list if
11098         it wasn't used.
11099
11100 2011-08-23  David S. Miller  <davem@davemloft.net>
11101
11102         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
11103         subtract stack bias.
11104         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
11105         %sp not %fp in calculations.
11106         (_JMPBUF_UNWINDS_ADJ): Likewise.
11107
11108         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
11109         (aio_suspend): Call it to force an exception region around the
11110         AIO_MISC_WAIT() invocation.
11111
11112 2011-08-23  Andreas Schwab  <schwab@redhat.com>
11113
11114         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
11115         backslash.
11116
11117 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
11118
11119         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
11120         protection macro.
11121         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
11122         and <dl-machine.h>.
11123         (Elf64_FuncDesc): Remove.
11124
11125 2011-08-22  David S. Miller  <davem@davemloft.net>
11126
11127         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
11128         sigaltstack check, add missing cfi directives.
11129         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
11130         missing cfi directives, and sigaltstack handling.
11131
11132 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11133
11134         [BZ #11724]
11135         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
11136         object is seen twice.
11137         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11138
11139         * elf/Makefile (distribute): Add tst-initorder2.c.
11140         (tests): Add tst-initorder2.
11141         (modules-names): Add tst-initorder2a tst-initorder2b
11142         tst-initorder2c tst-initorder2d.  Add rules to build them.
11143         ($(objpfx)tst-initorder2.out): New rule.
11144         * elf/tst-initorder2.c: New file.
11145         * elf/tst-initorder2.exp: New file.
11146
11147 2011-08-22  Andreas Schwab  <schwab@redhat.com>
11148
11149         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
11150
11151         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
11152         dependencies back to end of function.
11153
11154         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11155         $(elfobjdir)/ld.so.
11156
11157 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
11158
11159         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
11160         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
11161         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11162         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11163         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
11164         of __vdso_gettimeofday.
11165         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
11166         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
11167         attribute_hidden.
11168         (_libc_vdso_platform_setup): Remove initialization of
11169         __vdso_gettimeofday and __vdso_time.
11170
11171 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11172
11173         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
11174         and fgetc_unlocked.
11175         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
11176         getc_unlocked.
11177
11178         * elf/dl-open.c (add_to_global): Report additions to the global scope
11179         for LD_DEBUG=scopes.
11180         (dl_open_worker): Also print scope of newly loaded dependencies.
11181         (_dl_show_scope): Indicate if there is no scope.
11182
11183         [BZ #13114]
11184         * stdio-common/Makefile (tests): Add bug24.
11185         * stdio-common/bug24.c: New file.
11186
11187 2011-08-19  Andreas Jaeger  <aj@suse.de>
11188
11189         [BZ #13114]
11190         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
11191         non-existant file when using close-on-exec mode.
11192
11193 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11194
11195         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
11196         the very first instruction.
11197
11198         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
11199         the CFI state in the end.
11200         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
11201         inclusion of dl-trampoline.h.
11202         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
11203
11204 2011-08-19  Andreas Schwab  <schwab@redhat.com>
11205
11206         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
11207         expectations for long double.
11208
11209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
11210         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
11211
11212 2011-08-14  David S. Miller  <davem@davemloft.net>
11213
11214         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
11215         artificual limit depends upon the system page size.
11216
11217 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11218
11219         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
11220         * resolv/Makefile: Define CFLAGS-libresolv.
11221
11222 2011-08-17  Andreas Schwab  <schwab@redhat.com>
11223
11224         * nss/makedb.c (compute_tables): Make variables used in nested
11225         function static.
11226
11227 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11228
11229         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
11230         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
11231         if buffer was too small.
11232
11233         * elf/pldd.c (main): Attach to all threads in the process.
11234         Rewrite /proc handling to use *at functions.
11235
11236 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
11237
11238         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
11239         specifies first scope to show.
11240         (dl_open_worker): Update callers.  Move printing scope of new
11241         object to before the relocation.
11242         * elf/rtld.c (dl_main): Update _dl_show_scope call.
11243         * sysdeps/generic/ldsodefs.h: Update declaration.
11244
11245         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
11246         string for the scope number.
11247
11248 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
11249
11250         * nscd/servicescache.c (cache_addserv): Make sure written is always
11251         initialized.
11252
11253 2011-08-14  Roland McGrath  <roland@hack.frob.com>
11254
11255         * sysdeps/i386/i486/bits/atomic.h
11256         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
11257         statement expression, so as to suppress "set but not used" warning.
11258         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
11259
11260         * string/strncat.c (STRNCAT): Use prototype definition.
11261
11262         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
11263         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
11264         -Iprograms here.
11265         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
11266         (localedef-modules): Add localedef.
11267         (locale-modules): Add locale.
11268
11269         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
11270         * elf/rtld.c (dl_main): Invert order of assignment in last change,
11271         to avoid a warning.
11272
11273 2011-08-14  David S. Miller  <davem@davemloft.net>
11274
11275         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
11276         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
11277
11278 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
11279
11280         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
11281         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
11282         * elf/rtld.c (dl_main): Set l_name of vDSO.
11283         Call _dl_show_scope when DL_DEBUG_SCOPES.
11284         (process_dl_debug): Recognize scopes flag and also set it for all.
11285         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
11286         Declare _dl_show_scope.
11287
11288         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
11289         (do_dlopen): Pass caller_dlopen to dl_open.
11290         (__libc_dlopen_mode): Initialize caller_dlopen.
11291
11292         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
11293         of libc.  Make tolower call locale-independent.  Optimize a bit by
11294         using isdigit instead of isalnum.
11295         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
11296
11297 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
11298
11299         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
11300         was a dependency or dynamically loaded.
11301
11302 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
11303
11304         * intl/l10nflist.c: Allow architecture-specific pop function.
11305         * sysdeps/x86_64/l10nflist.c: New file.
11306
11307         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
11308         classification.
11309
11310 2011-08-10  Andreas Schwab  <schwab@redhat.com>
11311
11312         * include/dirent.h: Add libc_hidden_proto for scandirat and
11313         scandirat64.  Don't declare __scandirat64.
11314         * dirent/scandirat.c: Add libc_hidden_def.
11315         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
11316         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
11317
11318 2011-08-10  David S. Miller  <davem@davemloft.net>
11319
11320         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
11321         enum.
11322         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11323         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11324         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11325
11326 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
11327
11328         * Versions.def [libc]: Add GLIBC_2.15.
11329         * dirent/Makefile (routines): Add scandirat and scandirat64.
11330         * dirent/Versions [libc]: Export scandirat and scandirat64 for
11331         GLIBC_2.15.
11332         * dirent/dirent.h: Declare scandirat and scandirat64.
11333         * dirent/scandirat.c: New file.
11334         * dirent/scandirat64.c: New file.
11335         * sysdeps/wordsize-64/scandirat.c: New file.
11336         * sysdeps/wordsize-64/scandirat64.c: New file.
11337         * dirent/opendir.c: Define opendirat.
11338         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
11339         using scandirat.
11340         * dirent/scandir64.c: Adjust for scandir.c change.
11341         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
11342         __scandirat64, and __scandir_cancel_handler.
11343         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
11344         additional parameter and use openat instead of open (outside of ld.so).
11345         Add new __opendir as wrapper around __opendirat.
11346         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
11347         here without requiring old scandirat implementation.
11348
11349 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
11350
11351         * dirent/scandir.c (cancel_handler): Renamed to
11352         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
11353         defined.  Adjust users.
11354         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
11355         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
11356
11357 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
11358
11359         * string/test-string.h (IMPL): Use __STRING to expand name and then
11360         stringify it.
11361
11362         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
11363         of cleanups.
11364
11365 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11366
11367         * string/Makefile: Update.
11368         (strop-tests): Append strncat.
11369         * string/test-wcscmp.c: New file.
11370         New comprehensive test for wcscmp.
11371         * string/test-strcmp.c: Update.
11372         (WIDE): New define.
11373
11374 2011-07-22  Andreas Schwab  <schwab@redhat.com>
11375
11376         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
11377         line.
11378
11379 2011-07-26  Andreas Schwab  <schwab@redhat.com>
11380
11381         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11382         encoding to ACE if AI_IDN.
11383
11384 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
11385
11386         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
11387         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
11388
11389 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11390
11391         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
11392         Fix overflow bug in strncat.
11393         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
11394
11395         * string/test-strncat.c: Update.
11396         Add new tests for checking overflow bugs.
11397
11398 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11399
11400         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11401         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
11402         * sysdeps/i386/i686/multiarch/strcat.S: New file.
11403         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
11404         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
11405         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
11406         * sysdeps/i386/i686/multiarch/strncat.S: New file.
11407         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
11408         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
11409
11410         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
11411         (USE_AS_STRCAT): Define.
11412         Add strcat and strncat support.
11413         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11414
11415 2011-07-25  Andreas Schwab  <schwab@redhat.com>
11416
11417         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
11418         __n bigger than INT_MAX+1.
11419         (__strncmp_g): Likewise.
11420
11421 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
11422
11423         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
11424         * libio/stido.h: Likewise.
11425
11426         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
11427         (AF_NFC): Define.
11428         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
11429         (AF_NFC): Define.
11430
11431         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
11432         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11433         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11434         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11435         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11436
11437         [BZ #13021]
11438         * scripts/test-installation.pl: Don't expect libnss_test1 to be
11439         installed.
11440
11441         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
11442         typo.
11443         (_dl_x86_64_save_sse): Likewise.
11444
11445 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
11446
11447         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
11448         OSXSAVE.
11449         (_dl_x86_64_save_sse): Likewise.
11450
11451         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
11452
11453         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
11454
11455 2011-07-21  Andreas Schwab  <schwab@redhat.com>
11456
11457         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
11458         change.
11459         (_dl_x86_64_save_sse): Use correct AVX check.
11460
11461 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11462
11463         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
11464         bug in strncpy/strncat.
11465         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
11466
11467 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
11468
11469         * string/tester.c (test_strcat): Add tests for different alignments
11470         of source and destination.
11471         (test_strncat): Likewise.
11472
11473 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11474
11475         [BZ #12852]
11476         * posix/glob.c (glob): Check passed in values before using them in
11477         expressions to avoid some overflows.
11478         (glob_in_dir): Likewise.
11479
11480         [BZ #13007]
11481         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
11482         check for AVX enablement so that we don't crash with old kernels and
11483         new hardware.
11484         * elf/tst-audit4.c: Add same checks here.
11485         * elf/tst-audit6.c: Likewise.
11486
11487         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
11488
11489 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
11490
11491         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
11492
11493 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11494
11495         * po/cs.po: Update from translation team.
11496         * po/bg.po: Likewise.
11497
11498 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
11499
11500         * misc/sys/cdefs.h: Add support for const attribute.
11501         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
11502         to gnu_dev_{major,minor,makedev} functions.
11503
11504 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
11505
11506         * intl/dcigettext.c (get_output_charset): Add missing bracket.
11507
11508 2011-07-20  Andreas Schwab  <schwab@redhat.com>
11509
11510         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
11511         strlen results.
11512
11513 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11514
11515         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
11516         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
11517         register in order to avoid conflicts with the soft frame pointer
11518         being held in r11 when necessary.
11519         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11520         (INTERNAL_VSYSCALL_NCS): Likewise.
11521
11522 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
11523
11524         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
11525         * elf/dl-fini.c (_dl_fini): Adjust caller.
11526         * elf/dl-close.c (_dl_close_worker): Likewise.
11527         * sysdeps/generic/ldsodefs.h: Adjust declaration.
11528
11529 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11530
11531         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
11532         "aux_cache->nlibs < 0".
11533
11534         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
11535         in the reload-count case.
11536
11537 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11538
11539         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11540         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
11541         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
11542         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
11543         * sysdeps/x86_64/multiarch/strcat.S: New file.
11544         * sysdeps/x86_64/multiarch/strncat.S: New file.
11545         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
11546         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
11547         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
11548         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
11549         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
11550         (USE_AS_STRCAT): Define.
11551         Add strcat and strncat support.
11552         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11553         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
11554         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
11555         * string/strncat.c: Update.
11556         (USE_AS_STRNCAT): Define.
11557         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11558         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
11559         and i7.
11560         * sysdeps/x86_64/multiarch/init-arch.h
11561         (bit_Prefer_PMINUB_for_stringop): New.
11562         (index_Prefer_PMINUB_for_stringop): Likewise.
11563         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
11564         bit_Prefer_PMINUB_for_stringop.
11565
11566 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11567
11568         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
11569         buffer64.
11570         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
11571         of casting of buffer.
11572         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
11573         buffer32 and buffer64.
11574         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
11575         writes instead of casting of buffer.
11576         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
11577         buffer32.
11578         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
11579         casting of buffer.
11580
11581 2011-07-19  Andreas Schwab  <schwab@redhat.com>
11582
11583         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
11584
11585 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11586
11587         * nscd/nscd.c (termination_handler): Don't do anything for a database
11588         if it has not yet been initialized.
11589
11590 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11591
11592         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11593
11594 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11595
11596         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11597
11598 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11599
11600         * po/nl.po: Update from translation team.
11601         * po/sv.po: Likewise.
11602
11603 2011-07-16  Roland McGrath  <roland@hack.frob.com>
11604
11605         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
11606         now disallowed by GCC.
11607
11608         * configure.in (use-default-link): Default to yes if a test -shared
11609         link meets our qualifications.
11610         * configure: Regenerated.
11611
11612         * config.make.in (output-format): New variable.
11613         * configure.in: Check for ld --print-output-format support.
11614         * configure: Regenerated.
11615         * Makerules ($(common-objpfx)format.lds)
11616         [$(output-format) != unknown]: Just use $(output-format),
11617         instead of the linker-script munging.
11618
11619 2011-07-14  Roland McGrath  <roland@hack.frob.com>
11620
11621         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
11622         of $(common-objpfx)shlib.lds.
11623         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
11624
11625         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
11626         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
11627
11628         * configure.in (-z relro check): Adjust test code to add a large
11629         writable data section after it.
11630         * configure: Regenerated.
11631
11632 2011-07-11  Roland McGrath  <roland@hack.frob.com>
11633
11634         * configure.in (-z relro check): Fix test code to make the variable
11635         truly const.
11636         * configure: Regenerated.
11637
11638 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
11639
11640         * nscd/nscd.h (struct traced_file): Define.
11641         (struct database_dyn): Remove inotify_descr, reset_res, and filename
11642         elements.  Add traced_files.
11643         (inotify_fd): Declare.
11644         (register_traced_file): Declare.
11645         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
11646         (inotify_fd): Export.
11647         (resolv_conf_descr): Remove.
11648         (nscd_init): Move inotify descriptor creation to main.
11649         Don't register files for notification here.
11650         (register_traced_file): New function.
11651         (invalidate_cache): Don't use reset_res to determine whether to call
11652         res_init, go through the list of registered files.
11653         (main_loop_poll): The inotify descriptors are now stored in the
11654         structures for the traced files.
11655         (main_loop_epoll): Likewise
11656         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
11657         to __nss_disable_nscd.
11658         * nscd/cache.c (prune_cache): There is no single inotify descriptor
11659         for a database anymore.  Check the records for all the registered
11660         files instead.
11661         * nss/Makefile (libnss_files-routines): Add files-init.
11662         (libnss_db-routines): Add db-init.
11663         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
11664         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
11665         * nss/nss_db/db-init.c: New file.
11666         * nss/nss_files/files-init.c: New file.
11667         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
11668         __nss_lookup_function.
11669         (__nss_lookup_function): Call nss_load_library.
11670         (nss_load_all_libraries): New function.
11671         (__nss_disable_nscd): Take parameter with callback function for files
11672         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
11673         used for the cached services.
11674         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
11675         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
11676         options for features to all the files in nscd.
11677
11678         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
11679
11680 2011-07-10  Roland McGrath  <roland@hack.frob.com>
11681
11682         * csu/elf-init.c (__libc_csu_init): Comment typo.
11683
11684 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
11685
11686         * po/pl.po: Update from translation team.
11687         * po/ja.po: Likewise.
11688         * po/ru.po: Likewise.
11689         * po/ko.po: Likewise.
11690         * po/fr.po: Likewise.
11691
11692 2011-07-09  Roland McGrath  <roland@hack.frob.com>
11693
11694         * configure.in (.ctors/.dtors header and trailer check):
11695         Use an empirical test on a built program.
11696         * configure: Regenerated.
11697
11698         * configure.in (-z relro check): Use an empirical test on a built DSO.
11699         Detect, but do not require, on ia64.
11700         * configure: Regenerated.
11701
11702         * configure.in (READELF): Find it with AC_CHECK_TOOL.
11703         Update tests that use readelf to use $READELF instead.
11704         * configure: Regenerated.
11705
11706 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
11707
11708         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
11709         if the result is not used.
11710
11711 2011-07-05  Andreas Jaeger  <aj@suse.de>
11712
11713         [BZ#9696]
11714         * stdlib/tst-strtod.c: Add testcase.
11715
11716 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11717
11718         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
11719         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
11720         The latter has a higher limit.  Take additional parameter to pass to
11721         the new function.
11722         (__pathconf): Pass file to __statfs_link_max.
11723         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
11724         __statfs_link_max.
11725         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
11726         __statfs_link_max.
11727
11728         [BZ #12868]
11729         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
11730         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11731         Handle Lustre.
11732         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
11733         (__statfs_filesize_max): Likewise.
11734         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
11735
11736 2011-07-05  Andreas Jaeger  <aj@suse.de>
11737
11738         * resolv/res_comp.c (dn_skipname): Remove unused variable.
11739
11740 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
11741
11742         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
11743         `status' variable.
11744         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
11745         Likewise.
11746
11747 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11748
11749         * Makefile (strop-tests): Add strncat.
11750         * string/test-strncat.c: New file.
11751
11752 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
11753
11754         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
11755
11756 2011-06-21  Andreas Jaeger  <aj@suse.de>
11757
11758         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
11759         Copy rule from iconvdata/Makefile.
11760
11761 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11762
11763         [BZ #12922]
11764         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
11765         but no long options are defined, just return 'W'.
11766
11767 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
11768
11769         [BZ #9696]
11770         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
11771
11772 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11773
11774         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
11775         netgroups to read.
11776         (innetgr): Likewise.
11777
11778 2011-07-05  Roland McGrath  <roland@hack.frob.com>
11779
11780         * config.make.in (install_root): Default to $(DESTDIR).
11781
11782 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
11783
11784         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
11785
11786 2011-07-02  Roland McGrath  <roland@hack.frob.com>
11787
11788         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
11789
11790         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
11791         containing directory rather than embedding absolute directory names.
11792
11793         * scripts/check-local-headers.sh: Rewritten using awk.
11794         Match by word, not by line.  Print error messages for matches.
11795         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
11796
11797         * Makerules [shlib-lds-flags empty]:
11798         ($(common-objpfx)libc_pic.opts): New target.
11799         ($(common-objpfx)libc_pic.os.clean): New target.
11800         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
11801
11802         * config.make.in (OBJCOPY): New variable.
11803         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
11804         * configure: Regenerated.
11805
11806         * config.make.in (use-default-link): New variable.
11807         * configure.in (use_default_link): Grok --with-default-link to set it.
11808         * configure: Regenerated.
11809         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
11810         (shlib-lds, shlib-lds-flags): Define to empty.
11811
11812         * Makerules (shlib-lds): New variable.
11813         (shlib-lds-flags): New variable.
11814         (build-shlib, build-moduile, build-module-asneeded): Use it.
11815         ($(common-objpfx)libc.so): Use $(shlib-lds).
11816         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
11817         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
11818
11819         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
11820         DT_FLAGS/DT_FLAGS_1 with zero flags.
11821
11822         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
11823         linker script munging.
11824
11825 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
11826
11827         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
11828         as 128-bit value.
11829         * crypt/sha512.c (sha512_process_block): Perform total addition using
11830         128-bit if possible.
11831         (__sha512_finish_ctx): Likewise.
11832         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
11833         as 64-bit value.
11834         * crypt/sha256.c (SWAP64): Define.
11835         (sha256_process_block): Perform total addition using 64-bit if
11836         possible.
11837         (__sha256_finish_ctx): Likewise.
11838
11839 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
11840
11841         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
11842         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11843         * nscd/hstcache.c (cache_addhst): Likewise.
11844         * nscd/grpcache.c (cache_addgr): Likewise.
11845         * nscd/aicache.c (addhstaiX): Likewise
11846         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
11847
11848 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
11849
11850         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
11851         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11852         * nscd/hstcache.c (cache_addhst): Likewise.
11853         * nscd/grpcache.c (cache_addgr): Likewise.
11854         * nscd/aicache.c (addhstaiX): Likewise
11855
11856 2011-07-01  Andreas Schwab  <schwab@redhat.com>
11857
11858         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
11859         domain only when needed.
11860
11861 2011-06-30  Andreas Schwab  <schwab@redhat.com>
11862
11863         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
11864         is always restored.
11865
11866 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
11867
11868         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
11869         are re-adding the entry.
11870         * nscd/servicescache.c (cache_addserv): Likewise.
11871
11872 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
11873
11874         * sysdeps/generic/dl-irel.h: fix protection against multiple
11875         inclusions.
11876         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
11877
11878 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
11879
11880         [BZ #12935]
11881         * malloc/memusage.sh: Fix quoting in message.
11882         * debug/xtrace.sh: Likewise.
11883
11884         * configure.in: Remove support for --experimental-malloc option, make
11885         it the default.
11886         * config.make.in: Likewise.
11887         * malloc/Makefile: Likewise.
11888
11889 2011-06-27  Andreas Schwab  <schwab@redhat.com>
11890
11891         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
11892         two-byte characters.
11893
11894 2011-06-27  Roland McGrath  <roland@hack.frob.com>
11895
11896         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
11897         AC_CACHE_CHECK invocation.
11898         * configure: Regenerated.
11899
11900         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
11901
11902 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
11903
11904         [BZ #12350]
11905         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
11906         bit from old_res_options.
11907
11908         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
11909
11910         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
11911         value type for setfct.
11912
11913 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11914
11915         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11916         __gettimeofday instead of gettimeofday.
11917
11918 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
11919
11920         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
11921
11922 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11923
11924         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
11925
11926         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
11927         info.
11928
11929 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11930
11931         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11932         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11933         strcpy-sse2-unaligned strncpy-sse2-unaligned
11934         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
11935         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
11936         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
11937         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
11938         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
11939         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
11940         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
11941         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
11942         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
11943         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
11944         (STRCPY): Support SSE2 and SSSE3 versions.
11945
11946 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
11947
11948         [BZ #12874]
11949         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
11950         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
11951         kernels which artificially limit size of requests.
11952
11953 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11954
11955         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11956         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11957         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
11958         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
11959         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
11960         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
11961         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
11962         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
11963         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
11964         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
11965         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
11966         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
11967         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
11968         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
11969         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
11970         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11971         Enable unaligned load optimization for Intel Core i3, i5 and i7
11972         processors.
11973         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
11974         Define.
11975         (index_Fast_Unaligned_Load): Define.
11976         (HAS_FAST_UNALIGNED_LOAD): Define.
11977
11978 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
11979
11980         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
11981
11982 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11983
11984         [BZ #12907]
11985         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
11986         until it is clear that the information is realy needed.
11987         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
11988
11989 2011-06-22  Andreas Schwab  <schwab@redhat.com>
11990
11991         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
11992
11993 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11994
11995         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11996         /sys/devices/system/cpu/online if it is usable.
11997
11998         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
11999         reading the information from the /proc filesystem to once a second.
12000
12001 2011-06-21  Andreas Jaeger  <aj@suse.de>
12002
12003         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
12004         NULL after inclusion of kernel headers.
12005
12006 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
12007
12008         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
12009         calls to internal_setent.
12010
12011         [BZ #12885]
12012         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
12013         addresses using gethostbyname4_r ignore IPv4 addresses.
12014
12015         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
12016         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
12017
12018         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
12019
12020 2011-06-20  David S. Miller  <davem@davemloft.net>
12021
12022         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
12023         inclusions.
12024         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
12025
12026         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
12027         (elf_irel): Use it.
12028         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
12029         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
12030         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
12031         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
12032         * sysdeps/x86_64/dl-irel.h: Likewise.
12033
12034         * elf/dl-runtime.c: Use elf_ifunc_invoke.
12035         * elf/dl-sym.c: Likewise.
12036
12037 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12038
12039         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
12040         need to dereference resplen2.
12041
12042 2011-06-14  Andreas Schwab  <schwab@redhat.com>
12043
12044         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
12045
12046 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12047
12048         * Makeconfig: Define vardbdir and inst_vardbdir.
12049         * nss/Makefile: Add rules to install db-Makefile.
12050
12051         * nss/nss_db/db-XXX.c: Cleanup.
12052
12053         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
12054         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
12055         GLIBC_PRIVATE.
12056         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
12057         * nss/makedb.c: Implement -g option to specify that value strings
12058         are generated and should not be added to table iterated over for
12059         get*ent calls.
12060         * nss/nss_db/db-initgroups.c: New file.
12061
12062         * nss/getent.c: Add support for initgroups lookups through getgrouplist
12063         interface.
12064
12065         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
12066         (internal_getgrouplist): Adjust to name change.
12067         Update use_initgroups_entry if this is not the first call.
12068         * nss/databases.def: Add initgroups entry.
12069
12070         * nss/makedb.c (compute_tables): Check result of multiple hash table
12071         sizes to minimize maximum chain length.
12072
12073 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
12074
12075         * Versions.def: Add entry for libnss_db.
12076         * shlib-versions: Likewise.
12077         * nss/Makefile: Add rules to build libnss_db.
12078         * nss/Versions: Add libnss_db information.  Organize libnss_files
12079         entries better.
12080         * nss/db-Makefile: Add gshadow support.  Change rules for the new
12081         makedb progra.  Some minor improvements to generate smaller files.
12082         * nss/nss_db/nss_db.h: Move NSS database header data structures to
12083         here from...
12084         * nss/makedb.c: ...here.
12085         Improve database format to be smaller and require less memory at
12086         runtime.
12087         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
12088         db anymore.
12089         * nss/nss_db/db-netgrp.c: Likewise.
12090         * nss/nss_db/db-open.c: Likewise.
12091         * nss/nss_files/flies-XXX.x: Adjust comments.
12092         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
12093         * nss/nss_files/files-grp.c: Likewise.
12094         * nss/nss_files/files-hosts.c: Likewise.
12095         * nss/nss_files/files-network.c: Likewise.
12096         * nss/nss_files/files-proto.c: Likewise.
12097         * nss/nss_files/files-pwd.c: Likewise.
12098         * nss/nss_files/files-rpc.c: Likewise.
12099         * nss/nss_files/files-service.c: Likewise.
12100         * nss/nss_files/files-sgrp.c: Likewise.
12101         * nss/nss_files/files-spwd.c: Likewise.
12102         * nss/nss_db/db-alias.c: Removed.
12103         * nss/nss_db/dummy-db.h: Removed.
12104
12105 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
12106
12107         * nss/makedb.c: Rewritten to not use database library.
12108         * nss/Makefile: Update to build new makedb program.
12109
12110 2011-06-14  Andreas Jaeger  <aj@suse.de>
12111
12112         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
12113         memset declaration.
12114
12115 2011-06-10  Andreas Schwab  <schwab@redhat.com>
12116
12117         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
12118         tmpbuf.
12119
12120 2011-06-10  Roland McGrath  <roland@hack.frob.com>
12121
12122         * Makerules (shlib.lds): Fail if the linker script comes out empty.
12123         * elf/Makefile ($(objpfx)ld.so): Likewise.
12124
12125         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
12126         Don't list ld.so twice in dependencies.
12127
12128         * posix/bug-regex31.c: Include <stdlib.h>.
12129
12130         * nscd/hstcache.c (cache_addhst): Remove unused variable.
12131
12132         * nis/nss_compat/compat-spwd.c
12133         (getspent_next_nss_netgr): Remove unused variable.
12134         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
12135
12136         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
12137         nonmembers" output to use the right array.
12138
12139         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
12140
12141         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
12142
12143         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
12144         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
12145         * catgets/gencat.c (read_input_file): Likewise.
12146         * locale/programs/locarchive.c (enlarge_archive): Likewise.
12147
12148         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
12149         variable definition inside #if's controlling its use.
12150
12151         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
12152
12153         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
12154
12155         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
12156
12157         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
12158         unreachable code.
12159
12160         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
12161
12162         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
12163         * configure: Regenerated.
12164
12165         * Makerules: Revert last change.
12166         * elf/Makefile: Likewise.
12167
12168 2011-06-09  Roland McGrath  <roland@hack.frob.com>
12169
12170         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
12171         * elf/Makefile ($(objpfx)librtld.os): Likewise.
12172         (reloc-link): Likewise.
12173
12174 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
12175
12176         * elf/Makefile: Add rules to build pldd.
12177         * elf/pldd.c: New file.
12178         * elf/pldd-xx.c: New file.
12179
12180 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
12181
12182         * version.h: Update for 2.15 development version.
12183
12184 2011-06-07  David S. Miller  <davem@davemloft.net>
12185
12186         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
12187         ifuncs.
12188         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
12189         elf_machine_lazy_rel): Likewise.
12190         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
12191         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
12192         elf_machine_lazy_rel): Likewise.
12193         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
12194         dl_hwcap via passed in argument.
12195         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
12196         Likewise.
12197
12198 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12199
12200         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
12201
12202 2011-06-06  Roland McGrath  <roland@hack.frob.com>
12203
12204         [BZ #12849]
12205         * manual/fdl-1.1.texi: New file, verbatim from:
12206         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
12207         * manual/lgpl-2.1.texi: New file, verbatim from:
12208         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
12209         * manual/Makefile (licenses): New variable, list those new file names.
12210         (texis): Use it.
12211         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
12212
12213         * manual/fdl.texi: File removed.
12214         * manual/lesser.texi: File removed.
12215         * manual/libc.texinfo (Copying, Documentation License):
12216         Use new @include file names, put @appendix directive before @include.
12217
12218 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
12219
12220         [BZ #12841]
12221         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
12222         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
12223         (mq_open): Add __NTH.
12224
12225 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12226
12227         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12228         Assume Intel Core i3/i5/i7 processor if AVX is available.
12229
12230 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12231
12232         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12233         typo.
12234
12235 2011-05-31  Andreas Schwab  <schwab@redhat.com>
12236
12237         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
12238         memory.  Use alloca_account.  Fix memory leak when retrying.
12239
12240 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12241
12242         * version.h (RELEASE): Bump for 2.14 release.
12243         * include/features.h (__GLIBC_MINOR__): Bump to 14.
12244
12245         * config.make.in (RANLIB): Remove entry.
12246
12247 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
12248
12249         * po/Makefile (po-sed-cmd): Add ksh to extensions.
12250         (libc.pot): Work around missing support for .ksh extension in xgettext.
12251
12252         [BZ #12684]
12253         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
12254         if both request failed.
12255         (send_dg): In case of server errors clear resplen or *resplen2.
12256
12257         [BZ #12454]
12258         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
12259         when there are multiple maps.
12260         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
12261         (_dl_fini): Remove test here.
12262
12263         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
12264
12265 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
12266
12267         [BZ #12350]
12268         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
12269         bit from old_res_options.
12270         (gaih_inet): Likewise.
12271
12272         [BZ #11099]
12273         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
12274         as signed.
12275
12276         * resolv/res_init.c (res_setoptions): Make the code more compact.
12277
12278         [BZ #11558]
12279         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
12280         set RES_USEVC.
12281
12282         [BZ #11634]
12283         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
12284
12285         * malloc/malloc.h: Mark malloc hook variables as deprecated.
12286
12287         [BZ #11781]
12288         * malloc/malloc.h: Declare malloc hook variables as volatile.
12289
12290         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
12291         in last patch.
12292
12293         [BZ #11799]
12294         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
12295         raise in the comment.
12296         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12297         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12298         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
12299
12300 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
12301
12302         [BZ #12811]
12303         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
12304         grow the buffers more if it already has to be sufficient.
12305         (build_wcs_upper_buffer): Likewise.
12306         * posix/regexec.c (check_matching): Likewise.
12307         (clean_state_log_if_needed): Likewise.
12308         (extend_buffers): Don't enlarge buffers beyond size of the input
12309         buffer.
12310         Patches mostly by Emil Wojak <emil@wojak.eu>.
12311         * posix/bug-regex32.c: New file.
12312         * posix/Makefile (tests): Add bug-regex32.
12313
12314         * locale/findlocale.c (_nl_find_locale): Return right away if
12315         _nl_explode_name failed.
12316         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12317
12318         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
12319
12320         * debug/xtrace.sh: Unify messages.
12321         * malloc/memusage.sh: Likewise.
12322
12323         [BZ #12813]
12324         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
12325         time symbol from vDSO.  Substitute with vsyscall if not available.
12326         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
12327         __vdso_time.
12328
12329         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
12330         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
12331         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
12332         Add sendmmsg and internal_sendmmsg.
12333         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
12334         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
12335         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
12336
12337         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
12338         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
12339         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
12340
12341 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
12342
12343         [BZ #12813]
12344         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
12345         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
12346         available.
12347         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
12348         __vdso_getcpu.
12349
12350         [BZ #12814]
12351         * iconvdata/Makefile (tests): Add bug-iconv9.
12352         * iconvdata/bug-iconv9.c: New file.
12353
12354 2011-05-27  Andreas Schwab  <schwab@redhat.com>
12355
12356         [BZ #12814]
12357         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
12358
12359 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12360
12361         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12362         (struct user_regs_struct): Change intcs field back to cs.
12363
12364 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
12365
12366         * po/ja.po: Update from translation team.
12367
12368 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
12369
12370         [BZ #12795]
12371         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
12372         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
12373
12374 2011-05-20  Andreas Schwab  <schwab@redhat.com>
12375
12376         * stdlib/longlong.h: Update from GCC.
12377
12378 2011-05-23  Andreas Schwab  <schwab@redhat.com>
12379
12380         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
12381         parameter name.
12382         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
12383         Add parameter name.
12384         (__sysconf): Pass it down.
12385
12386 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
12387
12388         [BZ #12671]
12389         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
12390         some situations.
12391         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12392         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
12393         add in in __libc_use_alloca calls.  Adjust callers.
12394         (glob): Use malloc in some situations.
12395
12396         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
12397         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
12398         pltexit.
12399
12400 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
12401
12402         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
12403         and CLOCK_BOOTTIME_ALARM.
12404
12405         [BZ #12782]
12406         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
12407         is returned.
12408
12409         * string/_strerror.c (__strerror_r): Print negative errors as signed
12410         numbers.
12411
12412         [BZ #12777]
12413         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
12414         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
12415         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
12416
12417         * configure.in: Fix typo in redirection and correct removal of test
12418         files in two cases.
12419
12420         [BZ #12788]
12421         * locale/setlocale.c (new_composite_name): Fix test to check for
12422         identical name of all categories.
12423
12424         [BZ #12792]
12425         * libio/filedoalloc.c (local_isatty): New function.
12426         (_IO_file_doallocate): Use local_isatty.
12427         * stdio-common/perror.c (perror): In case a new stream is used
12428         forward the stream error.
12429         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
12430         error flag.
12431
12432 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
12433
12434         [BZ #11869]
12435         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
12436         alloca.
12437         * include/alloca.h (extend_alloca_account): Define.
12438
12439         [BZ #11857]
12440         * posix/regex.h: Fix comments with documentation of user-accessible
12441         fields after compilation and describe correct free'ing of pattern
12442         after re_compile_pattern.
12443         Patch by Reuben Thomas <rrt@sc3d.org>.
12444
12445 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
12446
12447         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
12448         and -mno-altivec to prevent the compiler from using Altivec and/or
12449         VSX instructions when the corresponding registers are not available.
12450
12451 2011-05-19  Andreas Schwab  <schwab@redhat.com>
12452
12453         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
12454
12455 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
12456
12457         * libio/freopen.c (freopen): Use __dup2, not dup2.
12458         * libio/freopen64.c (freopen64): Likewise.
12459
12460 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12461
12462         [BZ #12775]
12463         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
12464         * math/Makefile (tests): Add test-powl.
12465         (CFLAGS-test-powl.c): Define.
12466         * math/test-powl.c: New file.
12467
12468 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12469
12470         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
12471
12472 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
12473
12474         [BZ #11837]
12475         * iconvdata/gb18030.c: Update to GB18020-2005.
12476
12477 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
12478
12479         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
12480         RE_SYNTAX_POSIX_AWK): Update to match recent development.
12481         Patch by Aharon Robbins <arnold@skeeve.com>.
12482
12483         [BZ #11892]
12484         * stdlib/putenv.c (putenv): Don't always create copy of the variable
12485         on the stack.
12486
12487         [BZ #11895]
12488         * misc/pselect.c (__pselect): Handle timeout value errors hidden
12489         through underflows.
12490
12491         [BZ #12766]
12492         * misc/error.c (error_at_line): Ensure file_name and old_file_name
12493         point to strings before performing equality test for error_one_per_line
12494         mode.
12495
12496         [BZ #11697]
12497         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
12498
12499         [BZ #11820]
12500         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12501         (struct user_fpregs_struct): Avoid __uint*_t types.
12502
12503         [BZ #6420]
12504         * malloc/mtrace.c (tr_where): Add additional parameter to point to
12505         symbol info.  Use it instead of calling _dl_addr locally.
12506         (lock_and_info): New function.
12507         (tr_freehook): Call lock_and_info and pass symbol info as additional
12508         parameter to tr_where.
12509         (tr_mallochook): Likewise.
12510         (tr_reallochook): Likewise.
12511         (tr_memalignhook): Likewise.
12512
12513         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
12514         used and couldn't be at all thread-safe.
12515
12516 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
12517
12518         * libio/freopen.c (freopen): Don't close old file descriptor
12519         before the new one is opened.  Instead dup the new file descriptor
12520         to the old one after the new stream is created.
12521         * libio/freopen64.c (freopen64): Likewise.
12522         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
12523         * libio/fileops.c (_IO_new_file_close_it): Handle new
12524         _IO_FLAGS2_NOCLOSE flag.
12525         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
12526         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
12527         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
12528         _IO_FLAGS2_NOCLOSE flag.
12529         * include/unistd.h: Add hidden_proto for dup3.
12530         Define __have_dup3.
12531         * io/dup3.c: Define hidden symbol.
12532         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
12533
12534         [BZ #7101]
12535         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
12536         when an incomplete long option is used.
12537         * posix/tst-getopt_long1.c: New file.
12538         * posix/Makefile (tests): Add tst-getopt_long1.
12539
12540         [BZ #10138]
12541         * scripts/config.guess: Update from autoconf-2.68.
12542         * scripts/config.sub: Likewise.
12543
12544         [BZ #10157]
12545         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
12546         tests into ...
12547         (has_cpuclock): ...this.  New function.
12548         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
12549         macro here based on has_cpuclock code.
12550
12551         [BZ #10149]
12552         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12553         First byte (not low byte) is now always NUL.
12554         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
12555
12556         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12557         Use non-cancelable interfaces.
12558
12559         [BZ #9809]
12560         * locale/iso-639.def: Add entry for Sorani.
12561
12562         [BZ #11901]
12563         * include/stdlib.h: Move include protection to the right place.
12564         Define abort_msg_s.  Declare __abort_msg with it.
12565         * stdlib/abort.c (__abort_msg): Adjust type.
12566         * assert/assert.c (__assert_fail_base): New function.  Majority
12567         of code from __assert_fail.  Allocate memory for __abort_msg with
12568         mmap.
12569         (__assert_fail): Now call __assert_fail_base.
12570         * assert/assert-perr.c: Remove bulk of implementation.  Use
12571         __assert_fail_base.
12572         * include/assert.hL Declare __assert_fail_base.
12573         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
12574         mmap.
12575         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
12576
12577 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
12578
12579         [BZ #11952]
12580         [BZ #12453]
12581         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
12582         until all modules are registered in the DTV.
12583         * elf/Makefile: Add rules to build and run tst-tls19.
12584         * elf/tst-tls19.c: New file.
12585         * elf/tst-tls19mod1.c: New file.
12586         * elf/tst-tls19mod2.c: New file.
12587         * elf/tst-tls19mod3.c: New file.
12588         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
12589
12590         [BZ #12083]
12591         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
12592         correctly.
12593
12594         [BZ #12601]
12595         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
12596         two-byte sequence errors.
12597         * iconvdata/Makefile (tests): Add bug-iconv8.
12598         * iconvdata/bug-iconv8.c: New file.
12599
12600         [BZ #12626]
12601         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
12602         buf2 definition.
12603
12604         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
12605
12606         [BZ #12432]
12607         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
12608         (dummy_getcfa): New function.
12609         (init): Get _Unwind_GetCFA address, use dummy if not found.
12610         (backtrace_helper): In recursion check, also check whether CFA changes.
12611         (__backtrace): Completely initialize arg.
12612
12613         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
12614         storing incomplete byte sequence in state object.  Avoid testing for
12615         guaranteed too small input if we know there is enough data available.
12616
12617 2011-05-11  Andreas Schwab  <schwab@redhat.com>
12618
12619         * Makeconfig (+link-pie): Indent.
12620         * Rules (binaries-pie): Define if $(have-fpie) and
12621         $(build-shared).
12622         (binaries-shared): Also filter out $(binaries-pie).
12623         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
12624         * nscd/Makefile (others-pie): Add nscd.
12625         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
12626         ($(objpfx)nscd): Remove command override.
12627         * login/Makefile (others-pie): Add pt_chown.
12628         ($(objpfx)pt_chown): Remove command override.
12629         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
12630         remove command overrides.
12631
12632 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
12633
12634         * libio/tst_putwc.c: Fix error messages.
12635
12636         [BZ #12724]
12637         * libio/fileops.c (_IO_new_file_close_it): Always flush when
12638         currently writing and seek to current position when not.
12639         * libio/Makefile (tests): Add bug-fclose1.
12640         * libio/bug-fclose1.c: New file.
12641
12642 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
12643
12644         [BZ #12511]
12645         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
12646         don't set DF_1_NODELETE here.
12647         (do_lookup_x): When entering new entry test for copy relocation
12648         and if necessary set DF_1_NODELETE flag.
12649         * elf/tst-unique4.cc: New file.
12650         * elf/tst-unique4.h: New file.
12651         * elf/tst-unique4lib.cc: New file.
12652         * elf/Makefile: Add rules to build and run tst-unique4.
12653         Patch by Piotr Bury <pbury@goahead.com>.
12654
12655 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12656
12657         [BZ #12052]
12658         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
12659
12660         [BZ #12625]
12661         * misc/mntent_r.c (addmntent): Flush the stream after the output
12662
12663         [BZ #12393]
12664         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
12665         (is_trusted_path_normalize): Skip initial colon.  Append slash
12666         to empty buffer.  Duplicate is_trusted_path code but allow
12667         constructed patch to be prefix.
12668         (is_dst): Allow $ORIGIN followed by /.
12669         (_dl_dst_substitute): Correct clearing of check_for_trusted.
12670         Correct testing of result of is_trusted_path_normalize
12671         (decompose_rpath): Fix warning.
12672
12673 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
12674
12675         [BZ #11257]
12676         * grp/initgroups.c (internal_getgrouplist): When we found the service
12677         list through the initgroups entry in nsswitch.conf do not always
12678         continue on a successful lookup.  Don't always use the
12679         __nss_group_database value if it is set.
12680         * nss/nsswitch.conf (initgroups): Change action for successful db
12681         lookup to continue for compatibility.
12682
12683 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
12684
12685         [BZ #11532]
12686         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
12687         and CP774 modules.
12688         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
12689         and CP774 modules.
12690         * iconvdata/tst-tables.sh: Likewise.
12691         * iconvdata/cp770.c: New file.
12692         * iconvdata/cp771.c: New file.
12693         * iconvdata/cp772.c: New file.
12694         * iconvdata/cp773.c: New file.
12695         * iconvdata/cp774.c: New file.
12696         * iconvdata/testdata/CP770: New file.
12697         * iconvdata/testdata/CP770..UTF8: New file.
12698         * iconvdata/testdata/CP771: New file.
12699         * iconvdata/testdata/CP771..UTF8: New file.
12700         * iconvdata/testdata/CP772: New file.
12701         * iconvdata/testdata/CP772..UTF8: New file.
12702         * iconvdata/testdata/CP773: New file.
12703         * iconvdata/testdata/CP773..UTF8: New file.
12704         * iconvdata/testdata/CP774: New file.
12705         * iconvdata/testdata/CP774..UTF8: New file.
12706
12707         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
12708         END CHARMAP line.
12709         * iconvdata/gen-8bit-gap.sh: Likewise.
12710         * iconvdata/gen-8bit.sh: Likewise.
12711
12712         * locale/iso-639.def: Add ary entry.
12713
12714         [BZ #11258]
12715         * locale/C-translit.h.in: Add U20A1 transliteration.
12716
12717         [BZ #12178]
12718         * locale/iso-639.def: Add wae entry.
12719         Patch by Kevin Bortis <bortis@translate-wae.ch>.
12720
12721         [BZ #12545]
12722         * locale/programs/localedef.c (construct_output_path): Use ssize_t
12723         for n.
12724
12725         [BZ #12711]
12726         * locale/C-translit.h.in: Add entry for U20B9.
12727         Patch by pravin.d.s@gmail.com.
12728
12729 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
12730
12731         [BZ #12713]
12732         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
12733         ENAMETOOLONG use generic getcwd.
12734         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
12735         in rtld.  Use *stat64.
12736         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
12737         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
12738         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
12739         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
12740         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
12741         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
12742         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
12743         __fstatat64 macros.
12744         * include/dirent.h: Add libc_hidden_proto for rewinddir.
12745         * dirent/rewinddir.c: Add libc_hidden_def.
12746         * sysdeps/mach/hurd/rewinddir.c: Likewise.
12747         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
12748
12749         * include/dirent.h (__alloc_dir): Add flags parameter.
12750         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
12751         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
12752         __alloc_dir.
12753         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
12754         from fdopendir if O_CLOEXEC is already set.
12755
12756 2011-03-15  Alan Modra  <amodra@gmail.com>
12757
12758         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
12759         l_tls_firstbyte_offset non-zero.  Save padding offset in
12760         l_tls_firstbyte_offset for later use.
12761         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
12762         freeing static tls block.
12763
12764 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
12765
12766         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
12767         where #ifdef was intended.  The intent is to prevent ARG_MAX from
12768         being defined by the kernel headers.
12769
12770 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
12771
12772         [BZ #12734]
12773         * resolv/resolv.h: Define RES_NOTLDQUERY.
12774         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
12775         no-tld-query and set RES_NOTLDQUERY.
12776         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
12777         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
12778         modern BIND to search name as TLD unless forbidden.
12779
12780 2011-05-07  Petr Baudis  <pasky@suse.cz>
12781             Ulrich Drepper  <drepper@gmail.com>
12782
12783         [BZ #12393]
12784         * elf/dl-load.c (fillin_rpath): Move trusted path check...
12785         (is_trusted_path): ...to here.
12786         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
12787         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
12788         using is_trusted_path_normalize() in setuid scripts.
12789
12790 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12791
12792         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
12793         __BEGIN/__END_DECLS.
12794
12795 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
12796
12797         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
12798         NSS_STATUS_NOTFOUND if no record was found.
12799
12800 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12801
12802         * sunrpc/Makefile (headers): Add rpc/netdb.h.
12803         (headers-not-in-tirpc): Remove rpc/netdb.h
12804         * resolv/netdb.h: Revert last change.
12805
12806 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12807
12808         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
12809         circular dependency between libgcc.a and libc.a.
12810
12811 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12812
12813         * resolv/netdb.h: Don't include <rpc/netdb.h>.
12814         * nis/Makefile: Don't install rpcsvc/*.
12815         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
12816         instead of <rpc/types.h>.
12817         (MAXHOSTNAMELEN): Define.
12818
12819 2011-05-03  Andreas Schwab  <schwab@redhat.com>
12820
12821         * elf/ldconfig.c (add_dir): Don't crash on empty path.
12822
12823 2011-04-28  Maciej Babinski  <mbabinski@google.com>
12824
12825         [BZ #12714]
12826         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
12827         gethostbyname4_r when IPv6 results are possible.
12828
12829 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
12830
12831         [BZ #12723]
12832         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
12833         _PC_PIPE_BUF handling.
12834
12835 2011-04-30  Bruno Haible  <bruno@clisp.org>
12836
12837         [BZ #12717]
12838         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
12839         * resolv/netdb.h (getnameinfo): Change type of flags parameter
12840         to 'int'.
12841         * inet/getnameinfo.c (getnameinfo): Likewise.
12842
12843 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
12844
12845         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
12846         to groups setting in database lookup.
12847         * nss/nsswitch.conf: Add initgroups entry.
12848
12849 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
12850
12851         [BZ #12685]
12852         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
12853         mode string.
12854         Patch by Eric Blake <eblake@redhat.com>.
12855
12856 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
12857
12858         * sunrpc/Makefile (need-export-routines): Add svc_run.
12859         (routines): Remove svc_run.
12860         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
12861         * sunrpc/clnt_perr.c (clnt_perrno): Export.
12862         * sunrpc/svc_run.c (svc_run): Likewise.
12863         * sunrpc/svc_udp.c (svcudp_create): Likewise.
12864
12865 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
12866
12867         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
12868         problem in reallocation in last patch.
12869
12870 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
12871
12872         * sunrpc/Makefile: Move inclusion of Rules.
12873
12874 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12875
12876         * nss/nss_files/files-initgroups.c: New file.
12877         * nss/Makefile (libnss_files-routines): Add files-initgroups.
12878         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
12879         _nss_files_initgroups_dyn.
12880
12881 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
12882
12883         * elf/elf.h (R_ARM_IRELATIVE): Define.
12884
12885 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12886
12887         * po/ru.po: Update from translation team.
12888
12889 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12890
12891         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
12892         dependencies.
12893
12894 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
12895
12896         [BZ #12653]
12897         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
12898         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
12899         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12900         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12901         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12902
12903 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
12904
12905         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
12906         differing bytes.
12907         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12908         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12909         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12910
12911 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12912
12913         [BZ #12420]
12914         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
12915         storing it.
12916         * stdlib/bug-getcontext.c: New file.
12917         * stdlib/Makefile: Add rules to build and run bug-getcontext.
12918
12919 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12920
12921         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
12922         instructions into .machine "z9-109".
12923         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
12924         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
12925
12926 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12927
12928         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
12929         between environment variables and auxiliary vector.
12930
12931 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
12932
12933         * Makefile: Add rules to build linkobj/libc.so.
12934         * include/libc-symbols.h: Define libc_hidden_nolink.
12935         * include/rpc/auth.h: Mark functions which are to be hidden.
12936         * include/rpc/auth_des.h: Likewise.
12937         * include/rpc/auth_unix.h: Likewise.
12938         * include/rpc/clnt.h: Likewise.
12939         * include/rpc/des_crypt.h: Likewise.
12940         * include/rpc/key_prot.h: Likewise.
12941         * include/rpc/pmap_clnt.h: Likewise.
12942         * include/rpc/pmap_prot.h: Likewise.
12943         * include/rpc/pmap_rmt.h: Likewise.
12944         * include/rpc/rpc_msg.h: Likewise.
12945         * include/rpc/svc.h: Likewise.
12946         * include/rpc/svc_auth.h: Likewise.
12947         * include/rpc/xdr.h: Likewise.
12948         * nis/Makefile: Link all DSOs against linkobj/libc.so.
12949         * nss/Makefile: Likewise.
12950         * sunrpc/Makefile: Don't install headers.  Build library with normal
12951         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
12952         * sunrpc/auth_des.c: Hide exported symbols by default, export some
12953         for the compat linking library.  Remove use of INTDEF/INTUSE.
12954         * sunrpc/auth_none.c: Likewise.
12955         * sunrpc/auth_unix.c: Likewise.
12956         * sunrpc/authdes_prot.c: Likewise.
12957         * sunrpc/authuxprot.c: Likewise.
12958         * sunrpc/clnt_gen.c: Likewise.
12959         * sunrpc/clnt_perr.c: Likewise.
12960         * sunrpc/clnt_raw.c: Likewise.
12961         * sunrpc/clnt_simp.c: Likewise.
12962         * sunrpc/clnt_tcp.c: Likewise.
12963         * sunrpc/clnt_udp.c: Likewise.
12964         * sunrpc/clnt_unix.c: Likewise.
12965         * sunrpc/des_crypt.c: Likewise.
12966         * sunrpc/des_soft.c: Likewise.
12967         * sunrpc/get_myaddr.c: Likewise.
12968         * sunrpc/key_call.c: Likewise.
12969         * sunrpc/key_prot.c: Likewise.
12970         * sunrpc/netname.c: Likewise.
12971         * sunrpc/pm_getmaps.c: Likewise.
12972         * sunrpc/pm_getport.c: Likewise.
12973         * sunrpc/pmap_clnt.c: Likewise.
12974         * sunrpc/pmap_prot.c: Likewise.
12975         * sunrpc/pmap_prot2.c: Likewise.
12976         * sunrpc/pmap_rmt.c: Likewise.
12977         * sunrpc/publickey.c: Likewise.
12978         * sunrpc/rpc_cmsg.c: Likewise.
12979         * sunrpc/rpc_common.c: Likewise.
12980         * sunrpc/rpc_dtable.c: Likewise.
12981         * sunrpc/rpc_prot.c: Likewise.
12982         * sunrpc/rpc_thread.c: Likewise.
12983         * sunrpc/rtime.c: Likewise.
12984         * sunrpc/svc.c: Likewise.
12985         * sunrpc/svc_auth.c: Likewise.
12986         * sunrpc/svc_authux.c: Likewise.
12987         * sunrpc/svc_raw.c: Likewise.
12988         * sunrpc/svc_run.c: Likewise.
12989         * sunrpc/svc_simple.c: Likewise.
12990         * sunrpc/svc_tcp.c: Likewise.
12991         * sunrpc/svc_udp.c: Likewise.
12992         * sunrpc/svc_unix.c: Likewise.
12993         * sunrpc/svcauth_des.c: Likewise.
12994         * sunrpc/xcrypt.c: Likewise.
12995         * sunrpc/xdr.c: Likewise.
12996         * sunrpc/xdr_array.c: Likewise.
12997         * sunrpc/xdr_float.c: Likewise.
12998         * sunrpc/xdr_intXX_t.c: Likewise.
12999         * sunrpc/xdr_mem.c: Likewise.
13000         * sunrpc/xdr_rec.c: Likewise.
13001         * sunrpc/xdr_ref.c: Likewise.
13002         * sunrpc/xdr_sizeof.c: Likewise.
13003         * sunrpc/xdr_stdio.c: Likewise.
13004
13005 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
13006
13007         [BZ #12650]
13008         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
13009         * sysdeps/ia64/dl-tls.h: Likewise.
13010         * sysdeps/powerpc/dl-tls.h: Likewise.
13011         * sysdeps/s390/dl-tls.h: Likewise.
13012         * sysdeps/sh/dl-tls.h: Likewise.
13013         * sysdeps/sparc/dl-tls.h: Likewise.
13014         * sysdeps/x86_64/dl-tls.h: Likewise.
13015         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
13016
13017 2011-03-14  Andreas Schwab  <schwab@redhat.com>
13018
13019         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
13020         rpath element also skip the following colon.
13021         (expand_dynamic_string_token): Add is_path parameter and pass
13022         down to DL_DST_REQUIRED and _dl_dst_substitute.
13023         (decompose_rpath): Call expand_dynamic_string_token with
13024         non-zero is_path.  Ignore empty rpaths.
13025         (_dl_map_object_from_fd): Call expand_dynamic_string_token
13026         with zero is_path.
13027
13028 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
13029
13030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13031         Make cancelable.
13032
13033 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
13034
13035         [BZ #12655]
13036         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
13037         Patch by Filipe David Manana <fdmanana@apache.org>.
13038
13039 2011-04-07  Andreas Schwab  <schwab@redhat.com>
13040
13041         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
13042         Maintain aligned stack.
13043         (CHECK_RSP): Remove unused macro.
13044
13045 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
13046
13047         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
13048         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
13049
13050 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
13051
13052         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
13053
13054         * include/features.h: Mention __USE_XOPEN2K8 in comment.
13055
13056 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
13057
13058         [BZ #12518]
13059         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
13060         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
13061         * sysdeps/x86_64/memmove.c: New file.
13062         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
13063         (memcpy): Renamed to ...
13064         (__new_memcpy): This.
13065         (memcpy): Provide GLIBC_2_14 memcpy.
13066         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
13067         (memcpy): Provide GLIBC_2_2_5 memcpy.
13068
13069 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13070
13071         [BZ #12631]
13072         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
13073
13074 2011-03-30  Andreas Schwab  <schwab@redhat.com>
13075
13076         * misc/syncfs.c: New file.
13077         * misc/Makefile (routines): Add syncfs.
13078         * posix/unistd.h: Declare syncfs.
13079         * sysdeps/unix/syscalls.list: Add syncfs.
13080
13081 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13082
13083         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
13084         open_by_handle_at.
13085         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13086         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13087         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13088         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13089         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13090         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
13091         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13092
13093 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13094
13095         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
13096         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13097         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13098         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13099         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13100         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13101         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13102
13103         * io/Makefile: Compile fallocate.c, fallocate64.c, and
13104         sync_file_range.c with -fexceptions.
13105         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
13106         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
13107         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
13108         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
13109         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13110         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13111         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
13112         sync_file_range as cancellation point
13113         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
13114         now a wrapper around __call_sync_file_range with cancellation handling.
13115         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
13116         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
13117         function name to __call_sync_file_range.
13118         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
13119         Add call_sync_file_range.
13120
13121 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13122
13123         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13124         bits/timex.h.
13125
13126 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13127
13128         * iconv/iconv.h: Fix typo in comment.
13129         * io/fcntl.h: Likewise.
13130         * libio/stdio.h: Likewise.
13131         * posix/spawn.h: Likewise.
13132         * posix/unistd.h: Likewise.
13133         * stdlib/stdlib.h: Likewise.
13134         * time/time.h: Likewise.
13135         * wcsmbs/wchar.h: Likewise.
13136
13137         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
13138         open_by_handle): Add.
13139         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
13140         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
13141         Augment a few comments.
13142         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13143         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13144         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13145         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13146         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13147         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
13148         open_by_handle.
13149
13150         * io/fcntl.h (AT_EMPTY_PATH): Define.
13151
13152 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
13153
13154         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
13155         * sysdeps/unix/sysv/linux/bits/time.h: New file.
13156         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
13157         to...
13158         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
13159         * Versions.def: Add GLIBC_2.14.
13160         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
13161         Export.
13162
13163 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
13164
13165         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
13166         round counter.
13167         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13168
13169 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13170
13171         [BZ #12597]
13172         * string/test-strncmp.c (do_page_test): New function.
13173         (check2): Likewise.
13174         (test_main): Call check2.
13175         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
13176
13177 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
13178
13179         [BZ #12587]
13180         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13181         Handle cache information in CPU leaf 4.
13182         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13183
13184 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
13185
13186         [BZ #12583]
13187         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
13188         character representation.
13189         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
13190
13191 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
13192
13193         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
13194         END(__isnan) to END(__isnanf) to match function entry point/label
13195         EALIGN(__isnanf,...).
13196
13197 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
13198
13199         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
13200
13201 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
13202
13203         [BZ #12510]
13204         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
13205         copy from the symbol referenced in the relocation to initialize the
13206         used variable.
13207         Patch by Piotr Bury <pbury@goahead.com>.
13208         * elf/Makefile: Add rules to build and tst-unique3.
13209         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
13210         * elf/tst-unique3.cc: New file.
13211         * elf/tst-unique3.h: New file.
13212         * elf/tst-unique3lib.cc: New file.
13213         * elf/tst-unique3lib2.cc: New file.
13214
13215         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
13216
13217 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
13218
13219         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
13220         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
13221         to _start.
13222
13223 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
13224
13225         * elf/dl-load.c (_dl_map_object): If we are looking for the first
13226         to-be-loaded object along a path to loader is ld.so.
13227
13228 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13229             Ulrich Drepper  <drepper@gmail.com>
13230
13231         * sysdeps/x86_64/memset.S: After aligning destination, code
13232         branches to different locations depending on the value of
13233         misalignment, when multiarch is enabled. Fix this.
13234
13235 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13236
13237         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
13238         Set _x86_64_preferred_memory_instruction for AMD processsors.
13239         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13240         Set bit_Prefer_SSE_for_memop for AMD processors.
13241
13242 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
13243
13244         * libio/fmemopen.c (fmemopen): Optimize a bit.
13245
13246 2011-03-03  Andreas Schwab  <schwab@redhat.com>
13247
13248         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
13249
13250 2011-03-03  Roland McGrath  <roland@redhat.com>
13251
13252         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
13253
13254 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
13255
13256         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
13257         __bzero_ultra1 instead of __memset_ultra1.
13258
13259 2011-02-23  Andreas Schwab  <schwab@redhat.com>
13260             Ulrich Drepper  <drepper@gmail.com>
13261
13262         [BZ #12509]
13263         * include/link.h (struct link_map): Add l_orig_initfini.
13264         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
13265         returning unsuccessfully.
13266         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
13267         close of a file loaded at startup, restore the original l_initfini
13268         list.
13269         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
13270         list, store the pointer.
13271         * elf/Makefile ($(objpfx)noload-mem): New rule.
13272         (noload-ENV): Define.
13273         (tests): Add $(objpfx)noload-mem.
13274         * elf/noload.c: Include <memcheck.h>.
13275         (main): Call mtrace.  Close all opened handles.
13276
13277 2011-02-17  Andreas Schwab  <schwab@redhat.com>
13278
13279         [BZ #12454]
13280         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
13281         dependencies are missing.
13282
13283 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13284
13285         Fix __if_freereq crash: Unlike the generic version which uses free,
13286         Hurd needs munmap.
13287         * sysdeps/mach/hurd/ifreq.h: New file.
13288
13289 2011-01-27  Petr Baudis  <pasky@suse.cz>
13290             Ulrich Drepper  <drepper@gmail.com>
13291
13292         [BZ 12445]#
13293         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
13294         to extend_alloca().
13295         * stdio-common/bug23.c: New file.
13296         * stdio-common/Makefile (tests): Add bug23.
13297
13298 2010-09-28  Andreas Schwab  <schwab@redhat.com>
13299             Ulrich Drepper  <drepper@gmail.com>
13300
13301         [BZ #12489]
13302         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
13303         before performing relro protection.  At old place add assertion
13304         to make sure nothing changed.
13305
13306 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
13307             Glauber de Oliveira Costa  <glommer@gmail.com>
13308
13309         * elf/elf.h: Add new ARM TLS relocs.
13310
13311 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
13312
13313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13314         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
13315         cast from r3.
13316         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
13317         'tests' variable.
13318         * sysdeps/wordsize-64/tst-writev.c: New file.
13319
13320 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
13321
13322         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
13323         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
13324         insns in _dl_start to prevent a TOC reference before relocs are
13325         resolved.
13326
13327 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
13328
13329         [BZ #12469]
13330         * Makeconfig: Remove RANLIB definition.
13331         * Makerules: Don't use RANLIB.
13332         * aclocal.m4: Remove ranlib test.
13333         * configure.in: No need to check for ranlib.
13334         * elf/rtld-Rules: Don't use RANLIB.
13335
13336 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13337
13338         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
13339         protection macro.
13340         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
13341         inclusion protection macro.
13342
13343         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
13344         SIGRTMIN and SIGRTMAX and print information in that case only when
13345         SIGRTMIN is defined.
13346
13347 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13348
13349         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
13350         arginfo fn returning -1.
13351
13352         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
13353         and thousands string is zero terminated.
13354
13355 2011-02-03  Andreas Schwab  <schwab@redhat.com>
13356
13357         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
13358         sysdeps/unix/sysv/linux/bits/socket.h.
13359
13360 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13361
13362         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
13363         (__CPU_COUNT): Remove old macros.
13364         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
13365         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
13366         (__CPU_ALLOC, __CPU_FREE): Add macros.
13367         (__sched_cpualloc, __sched_cpufree): Add declarations.
13368
13369 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
13370
13371         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
13372         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
13373         * nscd/aicache.c (addhstaiX): Return timeout of added value.
13374         (readdhstai): Return value of addhstaiX call.
13375         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
13376         (addgrbyX): Return value returned by cache_addgr.
13377         (readdgrbyname): Return value returned by addgrbyX.
13378         (readdgrbygid): Likewise.
13379         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
13380         (addpwbyX): Return value returned by cache_addpw.
13381         (readdpwbyname): Return value returned by addhstbyX.
13382         (readdpwbyuid): Likewise.
13383         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
13384         (addservbyX): Return value returned by cache_addserv.
13385         (readdservbyname): Return value returned by addservbyX:
13386         (readdservbyport): Likewise.
13387         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
13388         (addhstbyX): Return value returned by cache_addhst.
13389         (readdhstbyname): Return value returned by addhstbyX.
13390         (readdhstbyaddr): Likewise.
13391         (readdhstbynamev6): Likewise.
13392         (readdhstbyaddrv6): Likewise.
13393         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
13394         (readdinitgroups): Return value returned by addinitgroupsX.
13395         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
13396         (prune_cache): Keep track of timeout value of re-added entries.
13397         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
13398         * nscd/nscd.h: Adjust prototypes of readd* functions.
13399
13400 2011-02-04  Roland McGrath  <roland@redhat.com>
13401
13402         * nis/nis_server.c (nis_servstate): Use the right name for 0.
13403         (nis_stats): Likewise.
13404         * nis/nis_modify.c (nis_modify): Likewise.
13405         * nis/nis_remove.c (nis_remove): Likewise.
13406         * nis/nis_add.c (nis_add): Likewise.
13407
13408         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
13409
13410         * posix/fnmatch_loop.c: Add some consts.
13411
13412         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
13413
13414 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
13415
13416         [BZ #12460]
13417         * config.make.in (config-cflags-novzeroupper): Define.
13418         * configure.in: Substitute libc_cv_cc_novzeroupper.
13419         * elf/Makefile (AVX-CFLAGS): Define.
13420         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
13421         (CFLAGS-tst-auditmod4a.c): Likewise.
13422         (CFLAGS-tst-auditmod4b.c): Likewise.
13423         (CFLAGS-tst-auditmod6b.c): Likewise.
13424         (CFLAGS-tst-auditmod6c.c): Likewise.
13425         (CFLAGS-tst-auditmod7b.c): Likewise.
13426         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
13427
13428 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
13429
13430         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
13431         function to the callback.
13432         Patch partly by Jiri Olsa <jolsa@redhat.com>.
13433
13434 2011-02-02  Andreas Schwab  <schwab@redhat.com>
13435
13436         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
13437         of errno.
13438
13439 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
13440
13441         [BZ #11724]
13442         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
13443         of constructors.
13444         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
13445         of destructors.
13446         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
13447
13448         [BZ #11724]
13449         * elf/Makefile: Add rules to build and run new test.
13450         * elf/tst-initorder.c: New file.
13451         * elf/tst-initorder.exp: New file.
13452         * elf/tst-initordera1.c: New file.
13453         * elf/tst-initordera2.c: New file.
13454         * elf/tst-initordera3.c: New file.
13455         * elf/tst-initordera4.c: New file.
13456         * elf/tst-initorderb1.c: New file.
13457         * elf/tst-initorderb2.c: New file.
13458         * elf/tst-order-a1.c: New file.
13459         * elf/tst-order-a2.c: New file.
13460         * elf/tst-order-a3.c: New file.
13461         * elf/tst-order-a4.c: New file.
13462         * elf/tst-order-b1.c: New file.
13463         * elf/tst-order-b2.c: New file.
13464         * elf/tst-order-main.c: New file.
13465         New test case by George Gensure <werkt0@gmail.com>.
13466
13467 2010-10-01  Andreas Schwab  <schwab@redhat.com>
13468
13469         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13470         decoding ACE if AI_CANONIDN.
13471
13472 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
13473
13474         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
13475
13476 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
13477
13478         * version.h (RELEASE): Bump for 2.13 release.
13479         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
13480
13481         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
13482
13483         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
13484         MADV_NOHUGEPAGE.
13485         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
13486         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
13487         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13488         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13489         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13490         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13491
13492         * posix/getconf.c: Update copyright year.
13493         * catgets/gencat.c: Likewise.
13494         * csu/version.c: Likewise.
13495         * debug/catchsegv.sh: Likewise.
13496         * debug/xtrace.sh: Likewise.
13497         * elf/ldconfig.c: Likewise.
13498         * elf/ldd.bash.in: Likewise.
13499         * elf/sprof.c (print_version): Likewise.
13500         * iconv/iconv_prog.c: Likewise.
13501         * iconv/iconvconfig.c: Likewise.
13502         * locale/programs/locale.c: Likewise.
13503         * locale/programs/localedef.c: Likewise.
13504         * malloc/memusage.sh: Likewise.
13505         * malloc/mtrace.pl: Likewise.
13506         * nscd/nscd.c (print_version): Likewise.
13507         * nss/getent.c: Likewise.
13508
13509         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
13510         PF_CAIF, and PF_ALG.
13511         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13512
13513 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
13514
13515         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
13516         (modules-names): Use them.
13517         (ifunc-test-modules, ifunc-pie-tests): Define.
13518         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
13519         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
13520         (test-extras): Likewise.
13521         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
13522         $(compile-command.c).
13523         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
13524         (all-built-dso): Define.
13525         (check-textrel.out, check-execstack.out): Depend on it.
13526
13527         * configure.in: Don't override --enable-multi-arch.
13528
13529 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
13530
13531         [BZ #6812]
13532         * nscd/hstcache.c (tryagain): Define.
13533         (cache_addhst): Return tryagain not notfound for temporary errors.
13534         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
13535         failed.
13536
13537 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
13538
13539         [BZ #10563]
13540         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
13541         to make the syscall.
13542         * sysdeps/unix/sysv/linux/setgroups.c: New file.
13543
13544         [BZ #12378]
13545         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
13546         and fall back to matching as normal character if the string ends before
13547         the matching ']' is found.  This is what POSIX requires.
13548         * posix/testfnm.c: Adjust test result.
13549         * posix/globtest.sh: Adjust test result.  Add new test.
13550         * posix/tst-fnmatch.input: Likewise.
13551         * posix/tst-fnmatch2.c: Add new test.
13552
13553 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
13554
13555         * elf/Makefile (check-execstack): Revert last change.  Depend on
13556         check-execstack.h.
13557         (check-execstack.h): New target.
13558         (generated): Add check-execstack.h.
13559         * elf/check-execstack.c: Include "check-execstack.h".
13560         (main): Revert last change.
13561         (handle_file): Return zero if GNU_STACK is absent and
13562         DEFAULT_STACK_PERMS doesn't include PF_X.
13563
13564 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
13565
13566         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
13567         in child fails because the descriptor is already closed.
13568         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
13569         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
13570         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
13571
13572         [BZ #12397]
13573         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
13574         syscall.
13575
13576         [BZ #10484]
13577         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
13578         temporary buffer used to handle multi lookups locally.
13579         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
13580
13581 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13582
13583         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
13584         loader is ld.so.
13585
13586 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
13587
13588         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
13589         alignment for SSE2.
13590
13591 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13592
13593         [BZ #12394]
13594         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
13595         characters.  When rounding increased number of integer digits recompute
13596         number of groups.
13597         * stdio-common/tst-grouping.c: New file.
13598         * stdio-common/Makefile: Add rules to build and run tst-grouping.
13599
13600 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
13601
13602         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
13603         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
13604
13605         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
13606         void.
13607         * bits/select.h: Likewise.
13608
13609 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
13610
13611         * po/ja.po: Update from translation team.
13612
13613 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
13614
13615         [BZ #11155]
13616         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
13617         implementation just like for lxstat, fxstatat, et al.
13618
13619 2010-12-27  Jim Meyering  <meyering@redhat.com>
13620
13621         [BZ #12348]
13622         * posix/regexec.c (build_trtable): Return failure indication upon
13623         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13624
13625 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
13626
13627         [BZ #12201]
13628         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
13629         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
13630         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
13631         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
13632
13633         [BZ #12207]
13634         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
13635
13636         [BZ #12204]
13637         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
13638         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
13639
13640 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13641
13642         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
13643         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
13644         script has SORT_BY_INIT_PRIORITY.
13645         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
13646         NO_CTORS_DTORS_SECTIONS is defined.
13647         * elf/soinit.c: Likewise.
13648         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
13649         NO_CTORS_DTORS_SECTIONS is defined.
13650         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
13651         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
13652         * sysdeps/sh/init-first.c: Likewise.
13653         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
13654
13655 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
13656
13657         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
13658         always use the slow path.
13659
13660 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
13661
13662         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
13663         similar rule which adds the sysdep directories to the header search in
13664         order to pick up the correct platform stackinfo.h.
13665         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
13666         perform test if it is, otherwise return successfully without testing.
13667         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
13668         DEFAULT_STACK_PERMS define in stackinfo.h.
13669         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
13670         defined in stackinfo.h.
13671         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
13672         DEFAULT_STACK_PERMS defined in stackinfo.h.
13673         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
13674         * sysdeps/ia64/stackinfo.h: Likewise.
13675         * sysdeps/s390/stackinfo.h: Likewise.
13676         * sysdeps/sh/stackinfo.h: Likewise.
13677         * sysdeps/sparc/stackinfo.h: Likewise.
13678         * sysdeps/x86_64/stackinfo.h: Likewise.
13679         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
13680         PF_X for powerpc64.  Retain PF_X for powerpc32.
13681
13682 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
13683
13684         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
13685         accurately.
13686         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
13687         GETDENTS_64BIT_ALIGNED.
13688
13689 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
13690
13691         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
13692
13693 2010-12-10  Andreas Schwab  <schwab@redhat.com>
13694
13695         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
13696         _GNU_SOURCE.
13697
13698         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
13699         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
13700         Remove __restrict.
13701         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
13702         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
13703
13704 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
13705
13706         [BZ #11655]
13707         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
13708         are initialized.
13709
13710 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
13711
13712         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
13713
13714 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
13715
13716         * po/it.po: Update from translation team.
13717
13718 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13719
13720         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
13721         unused codes.
13722
13723 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
13724
13725         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
13726
13727 2010-11-24  Andreas Schwab  <schwab@redhat.com>
13728
13729         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
13730         specially.
13731         (gaih_getanswer_slice): Likewise.
13732
13733 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
13734
13735         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
13736
13737 2010-05-31  Petr Baudis  <pasky@suse.cz>
13738
13739         [BZ #11149]
13740         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
13741         silently even in the chroot mode.
13742
13743 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
13744
13745         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
13746         last patch a bit.  Pretty printing
13747
13748 2010-05-31  Petr Baudis <pasky@suse.cz>
13749
13750         [BZ #10085]
13751         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
13752         initialization of skip_initgroups_dyn.
13753
13754 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
13755
13756         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
13757         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13758
13759 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
13760
13761         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
13762
13763 2010-11-11  Andreas Schwab  <schwab@redhat.com>
13764
13765         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
13766         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
13767         (tst-fnmatch-ENV): Set MALLOC_TRACE.
13768         ($(objpfx)tst-fnmatch-mem): New rule.
13769         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
13770         * posix/tst-fnmatch.c (main): Call mtrace.
13771
13772 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
13773
13774         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13775         Support Intel processor model 6 and model 0x2c.
13776
13777 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
13778
13779         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
13780           signed comparison.
13781
13782 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
13783
13784         [BZ #12205]
13785         * string/test-strncasecmp.c (check_result): New function.
13786         (do_one_test): Use it.
13787         (check1): New function.
13788         (test_main): Use it.
13789         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
13790         Support strcasecmp and strncasecmp.
13791
13792 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
13793
13794         [BZ #12194]
13795         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
13796         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13797
13798 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13799
13800         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
13801         IFUNC support.
13802         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13803         memset-x86-64.
13804         * sysdeps/x86_64/multiarch/bzero.S: New file.
13805         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
13806         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
13807         * sysdeps/x86_64/multiarch/memset.S: New file.
13808         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
13809         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13810         Set bit_Prefer_SSE_for_memop for Intel processors.
13811         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
13812         Define.
13813         (index_Prefer_SSE_for_memop): Define.
13814         (HAS_PREFER_SSE_FOR_MEMOP): Define.
13815
13816 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
13817
13818         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
13819         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
13820
13821 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
13822
13823         [BZ #12191]
13824         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13825         (__x86_64_raw_data_cache_size_half): Likewise.
13826         (__x86_64_raw_shared_cache_size): Likewise.
13827         (__x86_64_raw_shared_cache_size_half): Likewise.
13828
13829         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13830         (__x86_64_raw_data_cache_size_half): Likewise.
13831         (__x86_64_raw_shared_cache_size): Likewise.
13832         (__x86_64_raw_shared_cache_size_half): Likewise.
13833         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
13834         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
13835         and __x86_64_raw_shared_cache_size_half.  Round
13836         __x86_64_data_cache_size_half, __x86_64_data_cache_size
13837         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
13838         to multiple of 256 bytes.
13839
13840 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
13841
13842         [BZ #12167]
13843         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
13844         of inacessible symlinks.  Verify result of symlink before returning it.
13845         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
13846         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
13847
13848 2010-10-28  Erich Ritz  <erichritz@gmail.com>
13849
13850         * math/math.h (isinf): Fix typo in comment.
13851
13852 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
13853
13854         * po/da.po: Update from translation team.
13855
13856 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
13857
13858         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
13859         is added to the list.
13860
13861 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13862             Ulrich Drepper  <drepper@gmail.com>
13863
13864         * elf/dl-object.c (_dl_new_object): Don't append the new object to
13865         the global list here.  Move code to...
13866         (_dl_add_to_namespace_list): ...here.  New function.
13867         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
13868         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
13869         * elf/dl-load.c (lose): Don't remove the element from the list.
13870         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
13871         (_dl_map_object): Likewise.
13872
13873 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
13874
13875         [BZ #12159]
13876         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
13877         into all bytes of SSE register.
13878         Patch by Richard Li <richardpku@gmail.com>.
13879
13880 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
13881
13882         [BZ #12140]
13883         * malloc/malloc.c (_int_free): Fill correct number of bytes when
13884         perturbing.
13885
13886 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
13887
13888         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
13889         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
13890         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
13891         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
13893         submachine.
13894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13895
13896 2010-10-22  Andreas Schwab  <schwab@redhat.com>
13897
13898         * include/dlfcn.h (__RTLD_SECURE): Define.
13899         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
13900         mode & __RTLD_SECURE instead.
13901         (open_path): Rename preloaded parameter to secure.
13902         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
13903         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
13904         * elf/dl-deps.c (openaux): Likewise.
13905         * elf/rtld.c (struct map_args): Remove is_preloaded.
13906         (map_doit): Don't use it.
13907         (dl_main): Likewise.
13908         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
13909         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
13910
13911 2010-09-09  Andreas Schwab  <schwab@redhat.com>
13912
13913         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
13914         (sysd-rules-targets): Remove duplicates.
13915         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
13916         rtld-%.$o dependency.
13917
13918 2010-10-18  Andreas Schwab  <schwab@redhat.com>
13919
13920         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
13921         _dl_map_object do it.
13922
13923 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
13924
13925         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
13926         fast fma builtins, define the macros in the C99 standard.
13927         (FP_FAST_FMAF): Likewise.
13928         (FP_FAST_FMAL): Likewise.
13929         * sysdeps/x86_64/bits/mathdef.h: Likewise.
13930
13931         * bits/mathdef.h: Update copyright year.
13932         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13933
13934 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13935
13936         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
13937         builtins, define the macros in the C99 standard.
13938         (FP_FAST_FMAF): Likewise.
13939         (FP_FAST_FMAL): Likewise.
13940         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
13941         multiply/add.
13942         (FP_FAST_FMAF): Likewise.
13943
13944 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
13945
13946         [BZ #3268]
13947         * math/libm-test.inc (fma_test): Some new testcases.
13948         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
13949         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
13950         y and infinite z.  Do multiplication by C already in long double.
13951         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
13952         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
13953         y and infinite z.  Do bitwise or of inexact bit into u.d.
13954         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
13955         * sysdeps/i386/fpu/s_fmaf.S: Removed.
13956         * sysdeps/i386/fpu/s_fma.S: Removed.
13957         * sysdeps/i386/fpu/s_fmal.S: Removed.
13958
13959 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
13960
13961         [BZ #3268]
13962         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
13963         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
13964         computation is not scheduled after fetestexcept.  Fix value
13965         of minimum denormal long double.
13966
13967 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
13968
13969         [BZ #3268]
13970         * math/libm-test.inc (fma_test): Add some more tests.
13971         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
13972         correctly.
13973
13974 2010-10-15  Andreas Schwab  <schwab@redhat.com>
13975
13976         * scripts/data/localplt-s390-linux-gnu.data: New file.
13977         * scripts/data/localplt-s390x-linux-gnu.data: New file.
13978
13979 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
13980
13981         [BZ #3268]
13982         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
13983         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
13984         instead of dbl-64.
13985         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
13986         inlines.
13987         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
13988         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
13989         if one of x and y is very large and the other is subnormal.
13990         * sysdeps/s390/fpu/s_fmaf.c: New file.
13991         * sysdeps/s390/fpu/s_fma.c: New file.
13992         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
13993         * sysdeps/powerpc/fpu/s_fma.S: New file.
13994         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
13995         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
13996         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
13997
13998 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
13999
14000         [BZ #3268]
14001         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
14002         fma tests.
14003         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
14004         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
14005         * sysdeps/i386/i686/multiarch/s_fma.c: Include
14006         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
14007         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
14008         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
14009         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
14010
14011 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
14012
14013         [BZ #12078]
14014         * posix/regcomp.c (parse_branch): One more memory leak plugged.
14015         * posix/bug-regex31.input: Add test case.
14016
14017 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14018
14019         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
14020         * posix/bug-regex31.input: New file.
14021
14022         [BZ #12078]
14023         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
14024         (parse_sub_exp): Fix last change, use postorder.
14025
14026         * posix/bug-regex31.c: New file.
14027         * posix/Makefile: Add rules to build and run bug-regex31.
14028
14029         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
14030
14031         [BZ #12078]
14032         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
14033
14034         [BZ #12108]
14035         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
14036         to have entries in sys_siglist.
14037
14038         [BZ #12093]
14039         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
14040         be NULL.
14041
14042 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
14043
14044         [BZ #3268]
14045         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
14046         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
14047         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14048         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
14049         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14050         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
14051         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
14052         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
14053         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
14054         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
14055         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
14056         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
14057         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
14058         * math/ftestexcept.c (fetestexcept): Likewise.
14059         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
14060         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
14061         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
14062         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
14063         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
14064         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
14065         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14066
14067 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14068
14069         [BZ #12107]
14070         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
14071         newline.
14072
14073 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
14074
14075         * string/bug-strstr1.c: New file.
14076         * string/Makefile: Add rules to build and run bug-strstr1.
14077
14078 2010-10-05  Eric Blake  <eblake@redhat.com>
14079
14080         [BZ #12092]
14081         * string/str-two-way.h (two_way_long_needle): Always clear memory
14082         when skipping input due to the shift table.
14083
14084 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
14085
14086         [BZ #12005]
14087         * malloc/mcheck.c: Handle large requests.
14088
14089         [BZ #12077]
14090         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
14091         for strncmp and strncasecmp.
14092         * string/stratcliff.c: Add tests for strcmp and strncmp.
14093         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
14094
14095 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14096
14097         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
14098         __set_fpscr.
14099
14100 2010-09-30  Andreas Jaeger  <aj@suse.de>
14101
14102         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
14103         (CGROUP_SUPER_MAGIC): Define.
14104         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14105         Handle btrfs and cgroup file systems.
14106         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
14107         Likewise.
14108
14109 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
14110
14111         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
14112         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
14113
14114 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14115
14116         [BZ #12067]
14117         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
14118         trying to locate the ELF header.
14119
14120 2010-09-27  Andreas Schwab  <schwab@redhat.com>
14121
14122         [BZ #11611]
14123         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
14124         Mask out sign-bit copies when constructing f_fsid.
14125
14126 2010-09-24  Petr Baudis <pasky@suse.cz>
14127
14128         * debug/stack_chk_fail_local.c: Add missing licence exception.
14129         * debug/warning-nop.c: Likewise.
14130
14131 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
14132
14133         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
14134         implementing getdents64 using getdents syscall, set d_type if
14135         __ASSUME_GETDENTS32_D_TYPE.
14136
14137 2010-09-16  Andreas Schwab  <schwab@redhat.com>
14138
14139         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
14140         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
14141
14142 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
14143
14144         [BZ #12037]
14145         * posix/unistd.h: Undo change of feature selection for ftruncate from
14146         2010-01-11.
14147
14148 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
14149
14150         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
14151         detection.
14152
14153 2010-09-20  Andreas Schwab  <schwab@redhat.com>
14154
14155         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
14156         fanotify_mark.
14157         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14158
14159 2010-09-14  Andreas Schwab  <schwab@redhat.com>
14160
14161         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
14162         variables after CHECK_SP call.
14163         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
14164
14165 2010-09-13  Andreas Schwab  <schwab@redhat.com>
14166             Ulrich Drepper  <drepper@redhat.com>
14167
14168         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
14169         re-relocationg ld.so.
14170         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
14171         _dl_init_paths call.
14172         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
14173         here anymore.
14174
14175 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
14176
14177         * resolv/res_init.c (__res_vinit): Count the default server we added.
14178
14179 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
14180             Ulrich Drepper  <drepper@redhat.com>
14181
14182         [BZ #11968]
14183         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14184         (____longjmp_chk): Use %ebx for saving value across system call.
14185         Add unwind info.
14186
14187 2010-09-06  Andreas Schwab  <schwab@redhat.com>
14188
14189         * manual/Makefile: Don't mix pattern rules with normal rules.
14190
14191 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14192
14193         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
14194         operation.
14195         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
14196         * libio/iofopncook.c (_IO_cookie_init): Likewise.
14197         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
14198         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
14199         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14200         Likewise.
14201
14202 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
14203
14204         [BZ #11979]
14205         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
14206         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
14207
14208 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
14209
14210         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
14211         * sysdeps/x86_64/addmul_1.S: Likewise.
14212         * sysdeps/x86_64/lshift.S: Likewise.
14213         * sysdeps/x86_64/mul_1.S: Likewise.
14214         * sysdeps/x86_64/rshift.S: Likewise.
14215         * sysdeps/x86_64/sub_n.S: Likewise.
14216         * sysdeps/x86_64/submul_1.S: Likewise.
14217
14218 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14219
14220         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
14221         Define __sched_param instead of SCHED_* and sched_param when
14222         <bits/sched.h> is included with __need_schedparam defined.
14223         * bits/sched.h [__need_schedparam]
14224         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
14225         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
14226         (__defined_schedparam): Define to 1.
14227         (__sched_param): New structure, identical to sched_param.
14228         (__need_schedparam): Undefine.
14229
14230 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
14231
14232         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
14233         (epoll_create1): Declare.
14234
14235         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
14236
14237 2010-08-31  Andreas Schwab  <schwab@redhat.com>
14238
14239         [BZ #7066]
14240         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
14241         shifting retval into place.
14242
14243 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
14244
14245         * nis/rpcsvc/nis.h: Update copyright notice.
14246         * nis/rpcsvc/nis.x: Likewise.
14247         * nis/rpcsvc/nis_callback.h: Likewise.
14248         * nis/rpcsvc/nis_callback.x: Likewise.
14249         * nis/rpcsvc/nis_object.x: Likewise.
14250         * nis/rpcsvc/nis_tags.h: Likewise.
14251         * nis/rpcsvc/yp.h: Likewise.
14252         * nis/rpcsvc/yp.x: Likewise.
14253         * nis/rpcsvc/ypupd.h: Likewise.
14254         * nis/yp_xdr.c: Likewise.
14255         * nis/ypupdate_xdr.c: Likewise.
14256
14257         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
14258         mainly the body of pmap_getport.  Add parameters to specify timeouts.
14259         (pmap_getport): Use __libc_rpc_getport.
14260         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
14261         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
14262         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
14263
14264 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
14265
14266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
14267         fanotify_mark.
14268
14269 2010-08-27  Roland McGrath  <roland@redhat.com>
14270
14271         * sysdeps/i386/i686/multiarch/Makefile
14272         (CFLAGS-varshift.c): New variable.
14273
14274 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
14275
14276         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
14277         * sysdeps/i386/i686/multiarch/varshift.c: New file.
14278
14279         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
14280
14281         * sysdeps/x86_64/strlen.S: Minimal code improvement.
14282
14283 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
14284
14285         * sysdeps/x86_64/strlen.S: Unroll the loop.
14286         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14287         strlen-sse2 strlen-sse2-bsf.
14288         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
14289         __strlen_no_bsf if bit_Slow_BSF is set.
14290         (__strlen_sse42): Removed.
14291         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
14292         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
14293
14294 2010-08-25  Roland McGrath  <roland@redhat.com>
14295
14296         * sysdeps/x86_64/multiarch/varshift.S: File removed.
14297         * sysdeps/x86_64/multiarch/varshift.c: New file.
14298         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
14299         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
14300         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
14301         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14302
14303 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
14304
14305         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14306         strlen-sse2 strlen-sse2-bsf.
14307         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
14308         __strlen_sse2_bsf if bit_Slow_BSF is unset.
14309         (__strlen_sse2): Removed.
14310         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
14311         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
14312         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14313         bit_Slow_BSF for Atom.
14314         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
14315         (index_Slow_BSF): Define.
14316         (HAS_SLOW_BSF): Define.
14317
14318 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
14319
14320         [BZ #10851]
14321         * resolv/res_init.c (__res_vinit): When no server address at all
14322         is given default to loopback.
14323
14324 2010-08-24  Roland McGrath  <roland@redhat.com>
14325
14326         * configure.in: Remove config-name.h generation.
14327         * configure: Regenerated.
14328         * config-name.in: File removed.
14329         * scripts/config-uname.sh: New file.
14330         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
14331         ($(objdir)config-name.h): New target.
14332
14333         * sunrpc/rpc_parse.h: Avoid nested comment.
14334
14335 2010-08-24  Richard Henderson  <rth@redhat.com>
14336             Ulrich Drepper  <drepper@redhat.com>
14337             H.J. Lu  <hongjiu.lu@intel.com>
14338
14339         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
14340         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
14341         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
14342         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
14343         _mm_alignr_epi8 with _mm_loadu_si128.
14344         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
14345         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
14346         (__m128i_shift_right): Removed.
14347         * sysdeps/i386/i686/multiarch/varshift.h: New file.
14348         * sysdeps/i386/i686/multiarch/varshift.S: New file.
14349         * sysdeps/x86_64/multiarch/varshift.h: New file.
14350         * sysdeps/x86_64/multiarch/varshift.S: New file.
14351
14352 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
14353
14354         * configure.in: Move assembler checks to before sysdep dir checking.
14355
14356 2010-08-20  Petr Baudis  <pasky@suse.cz>
14357
14358         * LICENSES: Sync the sunrpc license.
14359
14360 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
14361
14362         * sunrpc/auth_des.c: Update copyright notice once again.
14363         * sunrpc/auth_none.c: Likewise.
14364         * sunrpc/auth_unix.c: Likewise.
14365         * sunrpc/authdes_prot.c: Likewise.
14366         * sunrpc/authuxprot.c: Likewise.
14367         * sunrpc/bindrsvprt.c: Likewise.
14368         * sunrpc/clnt_gen.c: Likewise.
14369         * sunrpc/clnt_perr.c: Likewise.
14370         * sunrpc/clnt_raw.c: Likewise.
14371         * sunrpc/clnt_simp.c: Likewise.
14372         * sunrpc/clnt_tcp.c: Likewise.
14373         * sunrpc/clnt_udp.c: Likewise.
14374         * sunrpc/clnt_unix.c: Likewise.
14375         * sunrpc/des_crypt.c: Likewise.
14376         * sunrpc/des_soft.c: Likewise.
14377         * sunrpc/get_myaddr.c: Likewise.
14378         * sunrpc/getrpcport.c: Likewise.
14379         * sunrpc/key_call.c: Likewise.
14380         * sunrpc/key_prot.c: Likewise.
14381         * sunrpc/openchild.c: Likewise.
14382         * sunrpc/pm_getmaps.c: Likewise.
14383         * sunrpc/pm_getport.c: Likewise.
14384         * sunrpc/pmap_clnt.c: Likewise.
14385         * sunrpc/pmap_prot.c: Likewise.
14386         * sunrpc/pmap_prot2.c: Likewise.
14387         * sunrpc/pmap_rmt.c: Likewise.
14388         * sunrpc/rpc/auth.h: Likewise.
14389         * sunrpc/rpc/auth_unix.h: Likewise.
14390         * sunrpc/rpc/clnt.h: Likewise.
14391         * sunrpc/rpc/des_crypt.h: Likewise.
14392         * sunrpc/rpc/key_prot.h: Likewise.
14393         * sunrpc/rpc/netdb.h: Likewise.
14394         * sunrpc/rpc/pmap_clnt.h: Likewise.
14395         * sunrpc/rpc/pmap_prot.h: Likewise.
14396         * sunrpc/rpc/pmap_rmt.h: Likewise.
14397         * sunrpc/rpc/rpc.h: Likewise.
14398         * sunrpc/rpc/rpc_des.h: Likewise.
14399         * sunrpc/rpc/rpc_msg.h: Likewise.
14400         * sunrpc/rpc/svc.h: Likewise.
14401         * sunrpc/rpc/svc_auth.h: Likewise.
14402         * sunrpc/rpc/types.h: Likewise.
14403         * sunrpc/rpc/xdr.h: Likewise.
14404         * sunrpc/rpc_clntout.c: Likewise.
14405         * sunrpc/rpc_cmsg.c: Likewise.
14406         * sunrpc/rpc_common.c: Likewise.
14407         * sunrpc/rpc_cout.c: Likewise.
14408         * sunrpc/rpc_dtable.c: Likewise.
14409         * sunrpc/rpc_hout.c: Likewise.
14410         * sunrpc/rpc_main.c: Likewise.
14411         * sunrpc/rpc_parse.c: Likewise.
14412         * sunrpc/rpc_parse.h: Likewise.
14413         * sunrpc/rpc_prot.c: Likewise.
14414         * sunrpc/rpc_sample.c: Likewise.
14415         * sunrpc/rpc_scan.c: Likewise.
14416         * sunrpc/rpc_scan.h: Likewise.
14417         * sunrpc/rpc_svcout.c: Likewise.
14418         * sunrpc/rpc_tblout.c: Likewise.
14419         * sunrpc/rpc_util.c: Likewise.
14420         * sunrpc/rpc_util.h: Likewise.
14421         * sunrpc/rpcinfo.c: Likewise.
14422         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
14423         * sunrpc/rpcsvc/key_prot.x: Likewise.
14424         * sunrpc/rpcsvc/klm_prot.x: Likewise.
14425         * sunrpc/rpcsvc/mount.x: Likewise.
14426         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
14427         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
14428         * sunrpc/rpcsvc/rex.x: Likewise.
14429         * sunrpc/rpcsvc/rstat.x: Likewise.
14430         * sunrpc/rpcsvc/rusers.x: Likewise.
14431         * sunrpc/rpcsvc/sm_inter.x: Likewise.
14432         * sunrpc/rpcsvc/spray.x: Likewise.
14433         * sunrpc/rpcsvc/yppasswd.x: Likewise.
14434         * sunrpc/rtime.c: Likewise.
14435         * sunrpc/svc.c: Likewise.
14436         * sunrpc/svc_auth.c: Likewise.
14437         * sunrpc/svc_authux.c: Likewise.
14438         * sunrpc/svc_raw.c: Likewise.
14439         * sunrpc/svc_run.c: Likewise.
14440         * sunrpc/svc_simple.c: Likewise.
14441         * sunrpc/svc_tcp.c: Likewise.
14442         * sunrpc/svc_udp.c: Likewise.
14443         * sunrpc/svc_unix.c: Likewise.
14444         * sunrpc/svcauth_des.c: Likewise.
14445         * sunrpc/xcrypt.c: Likewise.
14446         * sunrpc/xdr.c: Likewise.
14447         * sunrpc/xdr_array.c: Likewise.
14448         * sunrpc/xdr_float.c: Likewise.
14449         * sunrpc/xdr_mem.c: Likewise.
14450         * sunrpc/xdr_rec.c: Likewise.
14451         * sunrpc/xdr_ref.c: Likewise.
14452         * sunrpc/xdr_sizeof.c: Likewise.
14453         * sunrpc/xdr_stdio.c: Likewise.
14454
14455         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
14456         handling.
14457
14458 2010-08-19  Andreas Schwab  <schwab@redhat.com>
14459
14460         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
14461
14462 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
14463
14464         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
14465         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
14466         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
14467         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
14468         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
14469         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
14470         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
14471         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
14472         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
14473         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
14474         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
14475         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
14476         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
14477         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
14478
14479 2010-07-26  Anton Blanchard  <anton@samba.org>
14480
14481         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
14482         * malloc/arena.c (heap_trim): Likewise.
14483
14484 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
14485
14486         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
14487         here.  Not...
14488         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
14489         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
14490
14491 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14492
14493         * sysdeps/i386/elf/Makefile: New file.
14494
14495 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14496
14497         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
14498         from fanotify_init.
14499         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
14500         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14501
14502 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
14503
14504         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
14505         of strncasecmp_l.
14506         * sysdeps/multiarch/strcmp.S: Likewise.
14507
14508 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
14509
14510         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14511         strncase_l-nonascii.
14512         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14513         Add strncase_l-ssse3.
14514         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
14515         * sysdeps/x86_64/strcmp.S: Likewise.
14516         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
14517         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
14518         * sysdeps/x86_64/strncase.S: New file.
14519         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
14520         * sysdeps/x86_64/strncase_l.S: New file.
14521         * string/Makefile (strop-tests): Add strncasecmp.
14522         * string/test-strncasecmp.c: New file.
14523
14524         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
14525         warning.
14526
14527         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
14528         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
14529
14530 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14531
14532         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
14533
14534 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
14535
14536         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
14537         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
14538         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
14539
14540 2010-05-01  Alan Modra  <amodra@gmail.com>
14541
14542         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
14543         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
14544         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
14545         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
14546         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
14547         tidying.  Don't tail-call __sigjmp_save for static lib.
14548         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
14549         save location.
14550         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
14551         (CALL_MCOUNT): Add eh info, and nop after bl.
14552         (TAIL_CALL_SYSCALL_ERROR): New macro.
14553         (PSEUDO_RET): Use it.
14554         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
14555         Correct save location of integer regs and cr.
14556         (_dl_profile_resolve): Correct cr save location.  Delete nops
14557         after bl when SHARED.  Reduce cfi size a little by better
14558         placement of cfi directives.
14559         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
14560         make a stack frame.  Instead use parm save area as a temp.
14561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
14562         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
14563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
14564         Don't make a stack frame for parent, use parm save area.
14565         Increase child stack frame to 112 bytes.  Don't save unused reg,
14566         and adjust reg usage.  Set up cfi on error recovery and
14567         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
14568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14569         (__makecontext): Add dummy nop after jump to exit.
14570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
14571         Use correct parm save area and cr save, reduce stack frame.
14572         Correct cfi for possible PSEUDO_RET frame setup.
14573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
14574         Branch to local label emitted by PSEUDO_RET rather than
14575         __syscall_error.
14576
14577 2010-08-12  Andreas Schwab  <schwab@redhat.com>
14578
14579         [BZ #11904]
14580         * locale/programs/locale.c (print_assignment): New function.
14581         (show_locale_vars): Use it.
14582
14583 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
14584
14585         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
14586         field.
14587         (struct statfs64): Likewise.
14588         (_STATFS_F_FLAGS): Define.
14589         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
14590         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14591         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
14592         (ST_VALID): Define locally.
14593         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
14594         __statvfs_getflags, use the provided value.
14595         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14596         __ASSUME_STATFS_F_FLAGS.
14597
14598         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
14599
14600         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
14601         Add sys/fanotify.h.
14602         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
14603         fanotify_mask for GLIBC_2.13.
14604         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
14605         fanotify_init and fanotify_mark.
14606         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14607         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
14608
14609         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
14610         Add prlimit.
14611         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
14612         prlimit64 for GLIBC_2.13.
14613         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
14614         prlimit64.
14615         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
14616         syscall.
14617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14618         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14619         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
14620         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
14621         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
14622         add prlimit alias.
14623         * sysdeps/unix/sysv/linux/prlimit.c: New file.
14624
14625         [BZ #11903]
14626         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
14627         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
14628
14629         * nss/Makefile: Add rules to build and run tst-nss-test1.
14630         * shlib-versions: Add entry for libnss_test1.
14631         * nss/nss_test1.c: New file.
14632         * nss/tst-nss-test1.c: New file.
14633
14634         * nss/nsswitch.c (__nss_database_custom): Define new variable.
14635         (__nss_configure_lookup): Set appropriate entry in
14636         __nss_configure_lookup to true.
14637         * nss/nsswitch.h: Define enum with indeces of databases in
14638         databases and __nss_database_custom arrays.  Declare
14639         __nss_database_custom.
14640         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
14641         to avoid using nscd when custom rules are installed.
14642         * nss/getXXbyYY_r.c: Likewise.
14643         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14644
14645         * nss/nss_files/files-parse.c: Whitespace fixes.
14646
14647 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
14648
14649         [BZ #11883]
14650         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
14651         * posix/fnmatch_loop.c: Likewise.
14652
14653 2010-07-17  Andi Kleen  <ak@linux.intel.com>
14654
14655         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
14656         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
14657         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
14658         * Versions.def [GLIBC_2.13]: Add.
14659
14660 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
14661
14662         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14663         Also fail if tpwd after pwuid call is NULL.
14664
14665 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14666
14667         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
14668         when converting to ms.
14669
14670 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14671
14672         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
14673         EOPNOTSUPP errors with ENOTTY.
14674         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
14675         EOPNOTSUPP errors with ENOTTY.
14676
14677 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
14678
14679         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14680         Add strcasecmp_l-ssse3.
14681         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
14682         strcasecmp.
14683         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
14684         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
14685         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
14686
14687 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
14688
14689         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
14690
14691         * string/Makefile (strop-tests): Add strcasecmp.
14692         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14693         strcasecmp_l-nonascii.
14694         (gen-as-const-headers): Add locale-defines.sym.
14695         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
14696         * sysdeps/x86_64/strcasecmp.S: New file.
14697         * sysdeps/x86_64/strcasecmp_l.S: New file.
14698         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
14699         * sysdeps/x86_64/locale-defines.sym: New file.
14700         * string/test-strcasecmp.c: New file.
14701
14702         * string/test-strcasestr.c: Test both ends of the range of characters.
14703         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
14704
14705 2010-07-29  Roland McGrath  <roland@redhat.com>
14706
14707         [BZ #11856]
14708         * manual/locale.texi (Yes-or-No Questions): Fix example code.
14709
14710 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
14711
14712         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
14713         for ld.so.
14714
14715 2010-07-27  Andreas Schwab  <schwab@redhat.com>
14716
14717         * manual/memory.texi (Malloc Tunable Parameters): Document
14718         M_PERTURB.
14719
14720 2010-07-26  Roland McGrath  <roland@redhat.com>
14721
14722         [BZ #11840]
14723         * configure.in (-fgnu89-inline check): Set and substitute
14724         gnu89_inline, not libc_cv_gnu89_inline.
14725         * configure: Regenerated.
14726         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
14727
14728 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
14729
14730         * string/test-strnlen.c: New file.
14731         * string/Makefile (strop-tests): Add strnlen.
14732         * string/tester.c (test_strnlen): Add a few more test cases.
14733         * string/tst-strlen.c: Better error reporting.
14734
14735         * sysdeps/x86_64/strnlen.S: New file.
14736
14737 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
14738
14739         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
14740         lower-latency instructions.
14741
14742 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
14743
14744         * string/test-strcasestr.c: New file.
14745         * string/test-strstr.c: New file.
14746         * string/Makefile (strop-tests): Add strstr and strcasestr.
14747         * string/str-two-way.h: Don't undefine MAX.
14748         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14749
14750 2010-07-21  Andreas Schwab  <schwab@redhat.com>
14751
14752         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14753         strcasestr-nonascii.
14754         (CFLAGS-strcasestr-nonascii.c): Define.
14755         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
14756         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
14757         Remove unused attribute.
14758
14759 2010-07-20  Roland McGrath  <roland@redhat.com>
14760
14761         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
14762         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
14763         ld.so.cache was broken.  With it, there is no way to disable dsocaps
14764         like LD_HWCAP_MASK can disable hwcaps.
14765
14766 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14767
14768         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
14769
14770 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
14771
14772         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
14773         call in strcasestr.
14774         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
14775         __strcasestr_sse42_nonascii.
14776         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
14777         strcasestr-nonascii.c.
14778         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
14779
14780 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
14781
14782         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
14783         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
14784         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
14785         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
14786
14787 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
14788
14789         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
14790         fcntl.
14791
14792 2010-07-06  Andreas Schwab  <schwab@redhat.com>
14793
14794         [BZ #11577]
14795         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
14796         dl_signal_cerror.
14797
14798 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
14799
14800         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
14801         _PC_PIPE_BUF using F_GETPIPE_SZ.
14802
14803 2010-07-05  Roland McGrath  <roland@redhat.com>
14804
14805         * manual/arith.texi (Rounding Functions): Fix rint description
14806         implicit in round description.
14807
14808 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
14809
14810         * elf/Makefile: Fix linking for a few tests to make recent linker
14811         happy.
14812
14813 2010-06-30  Andreas Schwab  <schwab@redhat.com>
14814
14815         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14816         $(common-objpfx)libc_nonshared.a.
14817
14818 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
14819
14820         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
14821         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
14822         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14823         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14824         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
14825         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
14826         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14827         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
14829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
14830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
14831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
14833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
14835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
14836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
14837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
14838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
14840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
14842         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
14843         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
14844         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
14845         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
14846         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
14847         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
14848         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
14849         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
14850         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
14851         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
14852         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
14853         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
14854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
14855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
14856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
14857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
14858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
14859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
14860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
14861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
14862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
14863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
14864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
14865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
14866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
14867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
14868
14869 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14870
14871         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
14872         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
14873         * string/memmove.c (memmove): Renamed to ...
14874         (MEMMOVE): ...this.  Default to memmove.
14875         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
14876         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
14877         (END_CHK): Define.
14878         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14879         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
14880         mempcpy-ssse3-back memmove-ssse3-back.
14881         * sysdeps/x86_64/multiarch/bcopy.S: New file .
14882         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
14883         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
14884         * sysdeps/x86_64/multiarch/memcpy.S: New file.
14885         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
14886         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
14887         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
14888         * sysdeps/x86_64/multiarch/memmove.c: New file.
14889         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
14890         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
14891         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
14892         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
14893         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
14894         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
14895         Define.
14896         (index_Fast_Copy_Backward): Define.
14897         (HAS_ARCH_FEATURE): Define.
14898         (HAS_FAST_REP_STRING): Define.
14899         (HAS_FAST_COPY_BACKWARD): Define.
14900
14901 2010-06-21  Andreas Schwab  <schwab@redhat.com>
14902
14903         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14904         Restore proper fallback handling.
14905
14906 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
14907
14908         [BZ #11701]
14909         * posix/group_member.c (__group_member): Correct checking loop.
14910
14911         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
14912         OOM in getpwuid_r correctly.  Return error number when the caller
14913         should return, otherwise -1.
14914         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
14915         call returning > 0 value.
14916         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
14917
14918 2010-06-07  Andreas Schwab  <schwab@redhat.com>
14919
14920         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
14921         libc_nonshared.a from targets in modules-names.
14922
14923 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
14924
14925         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
14926         requires it.
14927
14928 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
14929
14930         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
14931         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
14932         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
14933         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
14934
14935 2010-06-02  Andreas Schwab  <schwab@redhat.com>
14936
14937         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
14938
14939 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
14940
14941         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
14942         and F_GETPIPE_SZ.
14943         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14944         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14945         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14946         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14947         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14948         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
14949
14950 2010-06-14  Roland McGrath  <roland@redhat.com>
14951
14952         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
14953
14954 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
14955
14956         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
14957         __REDIRECT followed by __THROW.
14958         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
14959         * posix/getopt.h (getopt): Likewise.
14960
14961 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14962
14963         * hurd/lookup-at.c (__file_name_lookup_at): Accept
14964         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
14965         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
14966         in AT_FLAGS.
14967         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
14968         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
14969
14970 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
14971
14972         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
14973
14974 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14975
14976         [BZ #11640]
14977         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14978         Properly check family and model.
14979
14980 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
14981
14982         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
14983
14984 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
14985
14986         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
14987
14988 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
14989
14990         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
14991         symbol reference.
14992
14993 2010-05-19  Andreas Schwab  <schwab@redhat.com>
14994
14995         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
14996         symbol reference.
14997
14998 2010-05-21  Andreas Schwab  <schwab@redhat.com>
14999
15000         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
15001         and internal_recvmmsg.
15002         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
15003         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
15004         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
15005         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
15006
15007         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
15008         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
15009         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
15010
15011 2010-05-20  Andreas Schwab  <schwab@redhat.com>
15012
15013         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
15014
15015 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
15016
15017         POWER7 optimizations.
15018         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
15019         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
15020
15021 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
15022
15023         * version.h: Update for 2.13 development version.
15024
15025 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
15026
15027         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
15028         exceptions.  Return 0.
15029
15030 2010-05-07  Roland McGrath  <roland@redhat.com>
15031
15032         * elf/ldconfig.c (main): Add a const.
15033
15034 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
15035
15036         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
15037         (args_options): Add no-idn option.
15038         (ahosts_keys_int): Add idn_flags to ai_flags.
15039         (parse_option): Handle 'i' option to clear idn_flags.
15040
15041         * malloc/malloc.c (_int_free): Possible race in the most recently
15042         added check.  Only act on the data if no current modification
15043         happened.
15044
15045 See ChangeLog.17 for earlier changes.