7b4157079fa2dacfeca0ff53cbf6b4b9a361ab24
[jlayton/glibc.git] / ChangeLog
1 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4         Add arch_prctl.
5         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6
7         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
9         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
10         New macro.
11         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
12         (INTERNAL_SYSCALL_TYPES): Likewise.
13         (LOAD_ARGS_TYPES_[1-6]): Likewise.
14         (LOAD_REGS_TYPES_[1-6]): Likewise.
15         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
16         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
17
18 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19
20         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
21         copysignl for GLIBC_2_0.
22         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
24         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
25         logbl for GLIBC_2_0.
26         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
27         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
28
29 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
30
31         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
32         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
33
34         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
35         Use "neg %eax".
36
37         * time/mktime.c: Update copyright years.
38
39 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
40
41         mktime: merge comment-quoting-style change from gnulib
42         * time/mktime.c: Quote 'like this' in comments.
43         The GNU coding standards suggest that we no longer quote `like this',
44         as "`" and "'" are typically rendered asymmetrically nowadays.
45         The typical gnulib style is to quote 'like this' when quoting
46         code, and "like this" when quoting English.
47
48         * time/mktime.c (compile-command): Add "-I.".
49
50         mktime: merge mktime-internal.h change from gnulib
51         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
52
53         mktime: merge time_r change from gnulib
54         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
55
56         mktime: merge DEBUG change from gnulib
57         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
58         case system <time.h> has a #define.
59
60         mktime: merge <sys/types.h> change from gnulib
61         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62         since <time.t> is now guaranteed to define time_t.
63
64         mktime: merge HAVE_CONFIG_H change from gnulib
65         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
66
67 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68
69         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
70         Use "neg %eax".
71
72         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
73         __rlim_t cast.
74         (struct rusage): Use anonymous union to pad each field to
75         __syscall_slong_t.
76
77 2012-05-21  David S. Miller  <davem@davemloft.net>
78
79         * Makefules (o-iterator): Remove .s cases.
80         (compile-command.s): Delete.
81         (COMPILE.s): Delete.
82         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
83
84 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
85
86         * configure.in (libc_cv_predef_stack_protector): Only consider
87         "foobar" and "__stack_chk_fail" lines in libc_undefs.
88         * configure: Regenerated.
89
90 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
91
92         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
93         New macro.  Use R*LP on int and pointer.
94         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
95         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
96         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
97         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
98
99         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
100         [__WORDSIZE_TIME64_COMPAT32] instead of
101         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
102         (struct utmp): Likewise.
103         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
104         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
105         Renamed to ...
106         (__WORDSIZE_TIME64_COMPAT32): This.
107         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
108         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
109         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
110         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
111         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
112         (__WORDSIZE_TIME64_COMPAT32): New macro.
113
114 2012-05-21  Andreas Jaeger  <aj@suse.de>
115
116         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
117         only if [SHARED]. Add prototype for __wcschr_ia32.
118
119 2012-05-21  Roland McGrath  <roland@hack.frob.com>
120
121         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
122         of %rbp unmolested in the jmp_buf while mangling the low bits.
123         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
124         unmolested high bits of %rbp while demangling the low bits.
125         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
126
127 2012-05-21  Andreas Jaeger  <aj@suse.de>
128
129         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
130         * sunrpc/svc_simple.c: Use it for registerrpc.
131         * sunrpc/xcrypt.c: Use it for passwd2des.
132
133         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
134
135 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
136
137         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
138         Don't define if [__SYSCALL_WORDSIZE != 32].
139         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
140         New macro.
141
142 2012-05-21  Bruno Haible  <bruno@clisp.org>
143             Andreas Jaeger  <aj@suse.de>
144
145         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
146         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
147         inptr and inend for must_buffer_ch.
148         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
149         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
150         * stdio-common/Makefile (tests): Remove bug15.
151         (bug15-ENV): Remove macro.
152         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
153         anymore.
154
155 2012-05-19  Andreas Jaeger  <aj@suse.de>
156             Roland McGrath  <roland@hack.frob.com>
157
158         * manual/contrib.texi: Completely rewritten. It contains now an
159         alphabetical list of contributors and their contributions.
160
161 2012-05-21  Richard Henderson  <rth@twiddle.net>
162
163         * misc/getauxval.c (__getauxval): Use unsigned long int.
164         * misc/sys/auxv.h: Include <sys/cdefs.h>.
165         (getauxval): Use unsigned long int.
166
167 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
168
169         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
170
171 2012-05-21  Roland McGrath  <roland@hack.frob.com>
172
173         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
174         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
175         __alignof__ (long double).
176
177 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
178
179         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
180
181 2012-05-20  Richard Henderson  <rth@twiddle.net>
182
183         * misc/getauxval.c: New file.
184         * misc/sys/auxv.h: New file.
185         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
186         (routines): Add getauxval.
187         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
188         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
189         * elf/dl-sysdep.c (_dl_auxv): Remove.
190         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
191         * elf/dl-support.c (_dl_auxv): New variable.
192         (_dl_aux_init): Initialize it.
193         * manual/startup.texi (Auxiliary Vector): New node.
194         * sysdeps/generic/bits/hwcap.h: New file.
195         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
196         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
197         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
198         * sysdeps/sparc/sysdep.h: ... here.  Include it.
199         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
200         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
202         Update.
203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
204         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
205         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
206         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
207         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
208         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
209         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
210         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
211
212 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
213
214         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
215
216 2012-05-19  David S. Miller  <davem@davemloft.net>
217
218         * sysdeps/sparc/fpu/libm-test-ulps: Update.
219
220 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
221
222         [BZ #14123]
223         * math/s_ccosh.c: Include <float.h>
224         (__ccosh): Avoid internal overflow calculating sinh and cosh
225         values before multiplying by sin and cos values.
226         * math/s_ccoshf.c: Likewise.
227         * math/s_ccoshl.c: Likewise.
228         * math/s_csin.c: Likewise.
229         * math/s_csinf.c: Likewise.
230         * math/s_csinl.c: Likewise.
231         * math/s_csinh.c: Likewise.
232         * math/s_csinhf.c: Likewise.
233         * math/s_csinhl.c: Likewise.
234         * math/libm-test.inc (ccos_test): Add more tests.
235         (ccosh_test): Likewise.
236         (csin_test): Likewise.
237         (csinh_test): Likewise.
238         * sysdeps/i386/fpu/libm-test-ulps: Update.
239         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
240
241 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
242
243         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
244         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
245
246         * sysdeps/x86_64/x32/_itoa.h: Add comment.
247
248 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
249
250         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
251         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
252         * sysdeps/powerpc/soft-fp/Versions: Likewise.
253         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
254         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
255         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
256         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
257         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
258         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
259         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
260         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
261         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
262         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
263         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
264         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
265         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
266         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
267         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
268         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
269         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
270         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
271         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
272         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
273         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
274         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
275         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
276         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
277         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
278         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
279         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
280         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
281
282 2012-05-18  Andreas Jaeger  <aj@suse.de>
283
284         * csu/.gitignore: Delete.
285
286 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
287
288         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
289         (timex): Use __syscall_slong_t.
290
291 2012-05-18  Andreas Jaeger  <aj@suse.de>
292             Carlos O'Donell  <carlos_odonell@mentor.com>
293
294         * manual/install.texi (Configuring and compiling): Update
295         description about files modified in the source directory.
296         * INSTALL: Regenerated.
297
298 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
299
300         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
301         value.  Use "or" to set return value to -1.
302         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
303         negate return value.
304
305 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
306
307         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
308         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
309         failure if the compiler has Graphite support disabled.
310         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
311         Likewise.
312         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
313         CFLAGS-memmove.c): Likewise.
314         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
315         Likewise.
316
317 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
318
319         * sysdeps/x86_64/x32/_itoa.h: New file.
320
321         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
322         getdents system call only if kernel and user dirents have the
323         same d_ino and d_off.
324
325         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
326         LLONG_MAX != LONG_MAX.
327         (_itoa_word): Use _ITOA_WORD_TYPE on value.
328         (_fitoa_word): Likewise.
329
330         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
331         years.
332         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
333         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
334         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
335
336         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
337         include <bits/wordsize.h>.  Check __x86_64__ instead of
338         __WORDSIZE.
339         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
340         if __x86_64__ is defined.  Use anonymous union on fpstate.
341
342         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
343         anonymous union.
344
345 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
346
347         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
348         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
349         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
350         Refer to _rtld_local_ro instead of _rtld_global_ro.
351         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
352         Likewise.
353         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
354         Likewise.
355         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
356         Likewise.
357         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
358         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
359         of _rtld_global, and rtld_progname instead of _dl_argv[0].
360
361         * sysdeps/powerpc/powerpc32/dl-machine.c
362         (__elf_machine_runtime_setup) [PROF]: Don't reference
363         _dl_prof_resolve.
364
365 2012-05-18  Andreas Jaeger  <aj@suse.de>
366
367         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
368         function only available for GCCs before 3.4 since GCC 3.4
369         introduced a builtin.
370         (lrint): Likewise.
371         (llrintf): Likewise.
372         (llrint): Likewise.
373         (fmaxf): Likewise.
374         (fmax): Likewise.
375         (fminf): Likewise.
376         (fmin): Likewise.
377         (rint): Likewise.
378         (rintf): Likewise.
379         (nearbyint): Likewise.
380         (nearbyintf): Likewise.
381         (ceil): Likewise.
382         (ceilf): Likewise.
383         (floor): Likewise.
384         (floorf): Likewise.
385
386 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
387
388         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
389         on both fields and cast pointer to __syscall_ulong_t.
390
391         * bits/types.h (__fsword_t): New type.
392         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
393         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
394         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
395         (__FSWORD_T_TYPE): Likewise.
396         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
397         (__FSWORD_T_TYPE): Likewise.
398         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
399         (__FSWORD_T_TYPE): Likewise.
400         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
401         (__FSWORD_T_TYPE): Likewise.
402         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
403         __SWORD_TYPE with __fsword_t.
404         (statfs64): Likewise.
405
406 2012-05-17  David S. Miller  <davem@davemloft.net>
407
408         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
409
410 2012-05-17  Andreas Jaeger  <aj@suse.de>
411
412         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
413         warning.
414
415 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
416
417         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
418
419 2012-05-17  Andreas Jaeger  <aj@suse.de>
420
421         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
422         when it is used.
423
424 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
425
426         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
427
428 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
429
430         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
431         * sysdeps/x86_64/tst-mallocalign1.c: New file.
432
433 2012-05-17  Andreas Jaeger  <aj@suse.de>
434             Carlos O'Donell  <carlos_odonell@mentor.com>
435
436         [BZ #14059]
437         * sysdeps/x86_64/multiarch/init-arch.h
438         (bit_YMM_Usable): Rename to...
439         (bit_AVX_Usable): ... this.
440         (bit_FMA4_Usable): New macro.
441         (bit_XMM_state): New macro.
442         (bit_YMM_state): New macro.
443         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
444         [__ASSEMBLER__] (index_AVX_Usable): ... this.
445         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
446         (CPUID_OSXSAVE): New macro.
447         (CPUID_AVX): New macro.
448         (CPUID_FMA4): New macro.
449         (index_YMM_Usable): Rename to...
450         (index_AVX_Usable): ... this.
451         (HAS_AVX): Use HAS_ARCH_FEATURE.
452         (HAS_FMA4): Likewise.
453         (HAS_YMM_USABLE): Remove.
454         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
455         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
456         are present.
457         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
458         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
459         * sysdeps/x86_64/multiarch/Makefile: Likewise.
460         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
461         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
462
463 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
464
465         * math/libm-test.c: Support platforms without multiple rounding modes.
466         * math/bug-nextafter.c: Support platforms without FP exceptions.
467         * math/bug-nexttoward.c: Likewise.
468         * math/test-fenv.c: Likewise.
469         * math/test-misc.c: Likewise.
470         * stdlib/bug-getcontext.c: Likewise.
471
472 2012-05-17  Andreas Jaeger  <aj@suse.de>
473
474         * manual/examples/search.c (critter_cmp): Change signature to
475         avoid warnings.
476         * manual/string.texi (Collation Functions): Likewise.
477
478 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
479
480         * bits/types.h: Fold copyright years.
481         * bits/typesizes.h: Likewise.
482         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
483         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
484         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
485         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
486         * time/time.h: Likewise.
487
488 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
489
490         [BZ #208]
491         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
492         in instead of returning them.  Return void.
493         (__libc_mallinfo): Accumulate over all arenas.
494         (__malloc_stats): Adjust for change in int_mallinfo interface.
495
496 2012-05-16  Roland McGrath  <roland@hack.frob.com>
497
498         [BZ #10375]
499         * configure.in (NM): Add AC_CHECK_TOOL for it.
500         (libc_extra_cflags): New substituted variable.
501         Check for -fstack-protector being used implicitly.
502         * configure: Regenerated.
503         * config.make.in (config-extra-cflags): New variable,
504         gets @libc_extra_cflags@.
505         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
506
507         [BZ #10375]
508         * configure.in: Check for _FORTIFY_SOURCE being predefined.
509         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
510         * configure: Regenerated.
511         * config.make.in (CPPUNDEFS): New substituted variable.
512         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
513         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
514         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
515
516 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
517
518         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
519         (mq_attr): Use __syscall_slong_t.
520
521 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
522
523         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
524         Check __x86_64__ instead of __WORDSIZE.
525         (_STAT_VER_LINUX): Likewise.
526         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
527         __syscall_ulong_t and __syscall_slong_t.
528         (stat64): Likewise.
529
530 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
531
532         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
533
534 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
535
536         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
537
538 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
539
540         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
541         __syscall_ulong_t.
542
543         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
544         include <bits/wordsize.h>.  Check __x86_64__ instead of
545         __WORDSIZE.
546         (greg_t): Use "__extension__ long long int" if __x86_64__ is
547         defined.
548         (mcontext_t): Replace "unsigned long" with "unsigned long long".
549
550         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
551         include <bits/wordsize.h>.  Check __x86_64__ instead of
552         __WORDSIZE.
553         (user_regs_struct): Use "__extension__ unsigned long long"
554         instead of "unsigned long" if __x86_64__ is defined.
555         (user): Likewise.  Pad after pointer field if __ILP32__ is
556         defined.
557
558 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
559
560         * configure.in (makeinfo): Require version 4.5 or later.  Allow
561         versions 5 to 9.
562         * configure: Regenerated.
563         * manual/install.texi (texinfo): Increase version requirement to
564         4.5 or later.
565         * INSTALL: Regenerated.
566
567         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
568
569 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
570
571         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
572
573         * sysdeps/x86_64/x32/ffs.c: New file.
574
575         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
576         __syscall_ulong_t.
577         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
578         defined.  Use __syscall_ulong_t.
579         (shminfo): Use __syscall_ulong_t.
580         (shm_info): Likewise.
581
582         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
583         __syscall_ulong_t.
584
585         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
586         <bits/wordsize.h>.
587         (msgqnum_t): Use __syscall_ulong_t.
588         (msglen_t): Likewise.
589         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
590         __syscall_ulong_t.
591
592         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
593         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
594
595         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
596
597         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
598         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
599
600         * sysvipc/sys/msg.h (msgbuf): Replace long int with
601         __syscall_slong_t.
602
603         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
604         include <bits/wordsize.h>.  Check __x86_64__ instead of
605         __WORDSIZE.
606
607         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
608         "unsigned long long int" if __x86_64__ is defined.
609         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
610
611         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
612         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
613         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
614
615         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
616         <stdint.h>.
617         (GET_PC): Cast to uintptr_t first.
618         (GET_FRAME): Likewise.
619         (GET_STACK): Likewise.
620
621         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
622         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
623         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
624         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
625         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
626         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
627         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
628         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
629         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
630         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
631         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
632         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
633         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
634         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
635         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
636         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
637         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
638         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
639         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
640         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
641         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
642         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
643         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
644         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
645         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
646         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
647         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
648         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
649         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
650
651 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
652
653         * Makerules (+depfiles): Also collect depfiles from .oS in
654         $(extra-objs).
655         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
656         .oS, $(libnldbl-routines)).
657
658         * Makerules (native-compile-mkdep-flags): Define.
659         * sunrpc/Makefile (extra-objs): Add $(addprefix
660         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
661         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
662         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
663         calling $(make-target-directory).
664
665 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
666
667         * bits/types.h (__snseconds_t): Removed.
668         * time/time.h (struct timespec): Replace __snseconds_t with
669         __syscall_slong_t.
670         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
671         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
672         Likewise.
673         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
674         (__SNSECONDS_T_TYPE): Likewise.
675         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
676         (__SNSECONDS_T_TYPE): Likewise.
677         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
678         (__SNSECONDS_T_TYPE): Likewise.
679
680 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
681
682         * sysdeps/mach/hurd/bits/typesizes.h
683         (__SYSCALL_SLONG_TYPE): New macro.
684         (__SYSCALL_ULONG_TYPE): Likewise.
685
686 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
687
688         * bits/types.h (__syscall_slong_t): New type.
689         (__syscall_ulong_t): Likewise.
690
691         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
692         (__SYSCALL_ULONG_TYPE): Likewise.
693         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
694         (__SYSCALL_SLONG_TYPE): Likewise.
695         (__SYSCALL_ULONG_TYPE): Likewise.
696         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
697         (__SYSCALL_SLONG_TYPE): Likewise.
698         (__SYSCALL_ULONG_TYPE): Likewise.
699         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
700         (__SYSCALL_SLONG_TYPE): Likewise.
701         (__SYSCALL_ULONG_TYPE): Likewise.
702
703 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
704
705         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
706         Add sigaltstack-offsets.sym.
707         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
708         <sigaltstack-offsets.h>.
709         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
710         longjmp_msg pointer.
711         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
712         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
713         signal stack.
714         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
715
716 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
717
718         * elf/stackguard-macros.h: Remove file.
719         * sysdeps/generic/stackguard-macros.h: New file.
720         * sysdeps/i386/stackguard-macros.h: Likewise.
721         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
722         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
723         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
724         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
725         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
726         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
727         * sysdeps/x86_64/stackguard-macros.h: Likewise.
728         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
729         <elf/stackguard-macros.h>.
730
731         [BZ #14109]
732         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
733         __aligned__ in attribute.
734         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
735         (gregset_t): Likewise.
736
737 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
738
739         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
740         * sysdeps/x86_64/64/Implies-after: Here.  New file.
741         * sysdeps/x86_64/x32/Implies-after: New file.
742
743 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
744
745         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
746         and access return value for _dl_profile_fixup.  Use R10_LP to
747         load frame size.
748
749 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
750
751         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
752
753 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
754
755         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
756         * sysdeps/x86_64/x32/sysdep.h: New file.
757
758 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
759
760         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
761         * sysdeps/x86_64/setjmp.S: Likewise.
762
763 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
764
765         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
766         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
767         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
768         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
769         remove unused global constant.
770
771 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
772
773         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
774         include of <not-cancel.h>.
775
776 2012-05-15  Roland McGrath  <roland@hack.frob.com>
777
778         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
779
780 2012-05-15  Jeff Law  <law@redhat.com>
781             Andreas Jaeger  <aj@suse.de>
782
783         [BZ #13594]
784         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
785         out from...
786         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
787         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
788         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
789         code changing __hst_map_handle.map.
790
791 2012-05-15  Roland McGrath  <roland@hack.frob.com>
792
793         * configure.in (sysnames): Look for Implies-before and Implies-after
794         files.
795         * configure: Regenerated.
796
797 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
798
799         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
800         8-byte data alignment with LP_SIZE alignment.
801
802 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
803
804         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
805         into R10_LP.
806
807 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
808
809         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
810
811 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
812
813         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
814         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
815         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
816         Likewise.
817         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
818
819 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
820
821         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
822         (stackinfo_sub_sp): Likewise.
823
824 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
825
826         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
827         RAX_LP.
828
829 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
830
831         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
832         into R*_LP.
833
834 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
835
836         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
837         sizes into R*_LP.
838
839 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
840
841         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
842
843 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
844
845         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
846         into R11_LP and load __x86_64_shared_cache_size_half into
847         R8_LP.
848
849 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
850
851         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
852         R8_LP.
853
854 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
855
856         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
857         logb for POWER7.
858         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
859         logbf for POWER7.
860         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
861         logbl for POWER7.
862         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
863         powerpc32/power7/fpu/s_logb.c via #include.
864         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
865         powerpc32/power7/fpu/s_logbf.c via #include.
866         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
867         powerpc32/power7/fpu/s_logbl.c via #include.
868
869 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
870
871         * README.libm: Remove file.
872
873 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
874
875         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
876         count for x32.  Use R*_LP and omit operand-size suffix.
877
878 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
879
880         * shlib-versions: Move x86_64-.*-linux.* entries to ...
881         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
882         * sysdeps/x86_64/x32/shlib-versions: New file.
883
884 2012-05-14  Roland McGrath  <roland@hack.frob.com>
885
886         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
887         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
888         Use _dl_fatal_printf instead.
889
890 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
891
892         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
893         set if not set by the user.  Do not allow for being unset.
894         * sysdeps/unix/sysv/linux/configure: Regenerated.
895
896 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
897
898         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
899         the `q' suffix from lea and replace .quad with ASM_ADDR.
900
901 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
902
903         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
904         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
905         instead of $17.
906         (PTR_DEMANGLE): Likewise.
907
908 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
909
910         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
911         (LP_OP): Likewise.
912         (ASM_ADDR): Likewise.
913         (RAX_LP): Likewise.
914         (RBP_LP): Likewise.
915         (RBX_LP): Likewise.
916         (RCX_LP): Likewise.
917         (RDI_LP): Likewise.
918         (RSI_LP): Likewise.
919         (RSP_LP): Likewise.
920         (R8_LP): Likewise.
921         (R9_LP): Likewise.
922         (R10_LP): Likewise.
923         (R10_LP): Likewise.
924         (R11_LP): Likewise.
925         (R12_LP): Likewise.
926         (R13_LP): Likewise.
927         (R14_LP): Likewise.
928         (R15_LP): Likewise.
929
930 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
931
932         * sysdeps/x86_64/x32/dl-machine.h: New file.
933
934 2012-05-14  Andreas Jaeger  <aj@suse.de>
935
936         * manual/Makefile (subdir): Remove export of subdir.
937         (all): Remove target.
938         (.PHONY): Remove all from list.
939         (mkinstalldirs): Remove.
940         (.PHONY): Remove installdirs from list.
941         ($(inst_infodir)/libc.info): Use make-target-directory.
942         (installdirs): Remove.
943         (subdir_%): Remove.
944         (glibc-targets): Remove.
945         (lib): Remove.
946         (stubs): Remove.
947         ($(objpfx)stubs ../po/manual.pot): Remove.
948         ($(objpfx)stamp%): Remove.
949         (make-target-directory): Remove.
950         (subdir_install): Remove.
951         (routines): Remove.
952         (aux): Remove.
953         (sources): Remove.
954         (objects): Remove.
955         (headers): Remove.
956
957         [BZ #13750]
958         * manual/.gitignore: Remove, it's not needed anymore.
959         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
960         all files in it.
961         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
962         directory.
963         (texis): Renamed to $(objpfx)texis.
964         (texis-path): New, contains path to generated files.
965         (chapters.%): Use texis-path for complete path, add extra argument
966         libc-texinfo.sh.
967         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
968         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
969         (summary,texi, stamp-summary): Use complete path of
970         files. Generate files in build dir.
971         (dir-add.texi): Build in build dir.
972         (libm-err.texi,stamp-libm-err): Likewise.
973         (version.texi, stamp-version): Likewise.
974         (.%c.texi): Likewise.
975         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
976         (mostlyclean): Remove target.
977         (realclean): Remove target.
978         (generated): Add new variable with contents from mostlyclean and
979         realclean, remove entries duplicated in common-mostlyclean, add
980         stamp-libm-err and stamp-version.
981         (generated-dirs): Add libc directory.
982         ($(inst_infodir)/libc.info): Install files from build dir.
983
984         * manual/install.texi (Configuring and compiling): Adjust since
985         the info files are not part of the tar ball anymore.
986
987 2012-05-14  Andreas Jaeger  <aj@suse.de>
988
989         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
990         variable.
991
992 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
993
994         [BZ #13717]
995         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
996         to 2.2.0 where earlier.
997         * sysdeps/unix/sysv/linux/configure: Regenerated.
998         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
999         Remove conditional code.
1000         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
1001         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
1002         Remove conditional code.
1003         [!__NR_lchown]: Likewise.
1004         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1005         [__NR_lchown]: Likewise.
1006         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
1007         comment referencing __ASSUME_LCHOWN_SYSCALL.
1008         * sysdeps/unix/sysv/linux/i386/sigaction.c
1009         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1010         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1011         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
1012         Remove conditional code.
1013         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
1014         (__protocol_available): Remove #if 0 code.
1015         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
1016         conditional code.
1017         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
1018         * sysdeps/unix/sysv/linux/kernel-features.h
1019         (__ASSUME_GETCWD_SYSCALL): Don't define.
1020         (__ASSUME_REALTIME_SIGNALS): Likewise.
1021         (__ASSUME_PREAD_SYSCALL): Likewise.
1022         (__ASSUME_PWRITE_SYSCALL): Likewise.
1023         (__ASSUME_POLL_SYSCALL): Likewise.
1024         (__ASSUME_LCHOWN_SYSCALL): Likewise.
1025         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
1026         non-SPARC.
1027         (__ASSUME_SIOCGIFNAME): Don't define.
1028         (__ASSUME_MSG_NOSIGNAL): Likewise.
1029         (__ASSUME_SENDFILE): Define unconditionally.
1030         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
1031         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
1032         conditional code.
1033         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
1034         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
1035         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1036         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1037         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
1038         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1039         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
1041         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1042         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
1044         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1045         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
1047         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1048         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
1050         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1051         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
1053         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1054         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
1056         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1057         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
1059         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1060         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
1062         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1063         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1064         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
1065         Remove conditional code.
1066         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1067         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1068         Remove conditional code.
1069         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1070         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
1071         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
1072         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1073         Remove conditional code.
1074         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1075         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
1076         Remove conditional code.
1077         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1078         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
1079         Remove conditional code.
1080         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1081         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1082         Remove conditional code.
1083         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1084         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1085         Remove conditional code.
1086         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1087         * sysdeps/unix/sysv/linux/sh/pwrite64.c
1088         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1089         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1090         * sysdeps/unix/sysv/linux/sigaction.c
1091         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1092         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1093         * sysdeps/unix/sysv/linux/sigpending.c
1094         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1095         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1096         * sysdeps/unix/sysv/linux/sigprocmask.c
1097         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1098         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1099         * sysdeps/unix/sysv/linux/sigsuspend.c
1100         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1101         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1102         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1103         (__libc_missing_rt_sigs): Remove.
1104         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
1105         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
1106         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
1107         Remove conditional code.
1108         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
1109         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
1110         return 1.
1111         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
1112         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
1113         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
1114         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
1115
1116 2012-05-14  Andreas Jaeger  <aj@suse.de>
1117
1118         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
1119         it's not used in glibc.
1120         (__coshm1): Likewise.
1121         (__acosh1p): Likewise.
1122         (__sgn): Likewise.
1123
1124         * manual/string.texi (Copying and Concatenation): Add missing
1125         variable in concat example.
1126         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
1127
1128 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1129
1130         [BZ #14103]
1131         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
1132         __builtin_clzl with __builtin_clzll.
1133
1134 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1135
1136         [BZ #14104]
1137         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
1138         libc_freeres_ptr.
1139
1140 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1141
1142         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
1143         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
1144         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
1145         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
1146
1147 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
1148
1149         * NEWS: Update ia64 info.
1150
1151 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
1152
1153         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
1154         used as bcopy.
1155
1156 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1157
1158         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
1159         * sysdeps/unix/syscalls.list (dup3): Likewise.
1160         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
1161         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
1162
1163 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1164
1165         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
1166         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
1167
1168 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1169
1170         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
1171         thread pointer.
1172         (TLS_IE): Use mov/add instead of movq/addq to load thread
1173         pointer.
1174         (TLS_GD_PREFIX): New.
1175         (TLS_GD): Use it.
1176
1177 2012-05-11  David S. Miller  <davem@davemloft.net>
1178
1179         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
1180         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
1181         (_FPU_SETCW): Likewise.
1182
1183 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1184
1185         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
1186         is 32-byte aligned.
1187
1188 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
1189
1190         [BZ #11837]
1191         * iconvdata/gb18030.c: Update tables.
1192         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
1193         characters specially.
1194         (BODY for TO_LOOP): Add encoding of missing ranges.
1195
1196 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
1197
1198         [BZ #13673]
1199         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
1200         * sysdeps/mach/hurd/dup3.c: Likewise.
1201         * sysdeps/mach/hurd/readlinkat.c: Likewise.
1202         * sysdeps/powerpc/memmove.c:: Likewise.
1203
1204 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1205
1206         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
1207         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
1208
1209 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1210
1211         * elf/elf.h (R_X86_64_RELATIVE64): New.
1212         (R_X86_64_NUM): Updated.
1213         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1214         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
1215         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
1216         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
1217         tst-quad1pie tst-quad2pie
1218         (modules-names): Add tst-quadmod1 tst-quadmod2.
1219         ($(objpfx)tst-quad1): New dependency.
1220         ($(objpfx)tst-quad2): Likewise.
1221         ($(objpfx)tst-quad1pie): Likewise.
1222         ($(objpfx)tst-quad2pie): Likewise.
1223         * sysdeps/x86_64/tst-quad1.c: New file.
1224         * sysdeps/x86_64/tst-quad1pie.c: New file.
1225         * sysdeps/x86_64/tst-quad2.c: Likewise.
1226         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
1227         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
1228         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
1229         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
1230         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
1231
1232 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1233
1234         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
1235         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
1236         * streams/stropts.h (t_scalar_t): Define type.
1237
1238         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
1239         (_PATH_PRESERVE): Set to "/var/lib".
1240         (_PATH_RWHODIR): Set to "/var/spool/rwho".
1241
1242         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
1243         instead of int.
1244
1245         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
1246         if __dir_mkfile succeeded.
1247
1248         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
1249         checking for _hurd_dtablesize.  Unlock it right after having
1250         finished _hurd_dtable allocation.
1251
1252 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1253
1254         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
1255         * sysdeps/mach/hurd/configure: Regenerated.
1256         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
1257         special-casing to...
1258         * sysdeps/gnu/configure.in: ... this new file.
1259         * sysdeps/unix/sysv/linux/configure: Regenerated.
1260         * sysdeps/gnu/configure: New generated file.
1261
1262         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
1263         for Linux: use nsec instead of usec, as well as:
1264         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
1265         members of type struct timespec.
1266         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
1267         New macros.
1268         (struct stat64): Likewise.
1269         (_STATBUF_ST_NSEC): New macro.
1270         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
1271
1272         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1273         __strtoul_internal rather than strtoul.
1274
1275 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1276
1277         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
1278         and reject them.
1279
1280 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1281
1282         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
1283         which preserves existing values.
1284         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
1285
1286 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1287
1288         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
1289         TIMEOUT values.  Return EINVAL for NFDS values either negative or
1290         greater than FD_SETSIZE.
1291
1292 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1293
1294         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
1295         allocated, call __vm_protect to finish enabling the existing space, and
1296         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
1297         allocate the remainder.
1298
1299 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1300
1301         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
1302         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
1303
1304 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1305
1306         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
1307         sysdeps/mach/hurd/readlink.c.
1308
1309         * posix/tst-sysconf.c (posix_options): Only use
1310         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
1311         _POSIX_SYNCHRONIZED_IO when they are defined
1312         * sysdeps/mach/hurd/bits/posix_opt.h:
1313         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
1314         (_XOPEN_REALTIME): Undefine macro.
1315         (_XOPEN_REALTIME_THREADS): Undefine macro.
1316         (_XOPEN_SHM): Undefine macro.
1317         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
1318         macro to -1.
1319         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
1320         macro to -1.
1321         (_POSIX_ASYNC_IO): Undefine macro.
1322         (_POSIX_PRIORITIZED_IO): Undefine macro.
1323         (_POSIX_SPIN_LOCKS): Define macro to -1.
1324
1325         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
1326         SA_NODEFER, SA_RESETHAND.
1327         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
1328         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
1329         F_DUPFD_CLOEXEC.
1330
1331 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1332
1333         * elf/Makefile (pldd-modules): Define unconditionally.
1334
1335 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1336
1337         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
1338
1339 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1340
1341         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1342         Return ENOENT when name is empty.
1343         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
1344
1345 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1346
1347         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
1348
1349         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
1350
1351 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1352
1353         Fix mlock in all cases except non-readable pages.
1354         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
1355         instead of VM_PROT_ALL as parameter to __vm_wire function.
1356
1357         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
1358         (__mkdir): When path is `/', just fail with EEXIST.
1359         * sysdeps/mach/hurd/mkdirat.c: Likewise.
1360
1361 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1362
1363         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
1364         <sys/uio.h> (for writev).
1365         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
1366         and <sys/param.h> (for MIN).
1367
1368 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1369
1370         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
1371         REQUESTED_TIME.  Properly set the remaining time and return EINTR
1372         if interrupted.
1373
1374 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1375
1376         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
1377         Depend on against $(link-rpcuserlibs).
1378
1379 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1380
1381         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
1382         (__libc_stack_end): Do not use attribute_relro.
1383         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
1384         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
1385         to libthread-provided value.
1386         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
1387         attribute_relro.
1388
1389 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1390
1391         [BZ #3748]
1392         * bits/libc-lock.h (__libc_once_get): New macro.
1393         * sysdeps/mach/bits/libc-lock.h: Likewise.
1394         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1395         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
1396         instead of using implementation details.
1397
1398         * libio/fileops.c: Unconditionally include <kernel-features.h>.
1399         * libio/freopen.c: Likewise.
1400         * libio/freopen64.c: Likewise.
1401         * misc/syslog.c: Likewise.
1402         * nscd/connections.c: Likewise.
1403         * nscd/netgroupcache.c: Likewise.
1404         * sysdeps/posix/getcwd.c: Likewise.
1405
1406 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1407
1408         * math/w_ilogbf.c: Add #include <limits.h>.
1409
1410 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1411
1412         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
1413         path instead of returning without unlocking.
1414
1415         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
1416         immediate-write ioctls.
1417         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
1418
1419 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1420
1421         * sysdeps/mach/hurd/i386/init-first.c (init): Use
1422         __builtin_frame_address instead of making assumptions about the
1423         location of the return address relative to DATA.  Force early load of
1424         the return address.
1425         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
1426         __builtin_frame_address.
1427
1428         dup3 for GNU Hurd.
1429         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
1430         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
1431         implement dup3 and do some further code clean-ups.
1432         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
1433         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
1434
1435 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1436
1437         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
1438
1439         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
1440         HURD_CRITICAL_END around holding _hurd_dtable_lock.
1441         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
1442         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
1443         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
1444         d->port.lock.
1445
1446         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
1447         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
1448         when handler == SIG_ERR, not when handler != SIG_ERR.
1449
1450 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1451
1452         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
1453         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
1454         definitions.
1455
1456         accept4 for GNU Hurd.
1457         * include/sys/socket.h (__libc_accept4): New prototype.
1458         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
1459         to implement __libc_accept4.
1460         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
1461         __libc_accept4.
1462         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
1463
1464         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
1465         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
1466         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
1467         signal-defines.sym.
1468
1469 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1470
1471         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
1472
1473 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1474
1475         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
1476         assertion on O_CLOEXEC flag.
1477         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
1478         * hurd/intern-fd.c: Likewise.
1479         * hurd/port2fd.c: Likewise.
1480
1481 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1482
1483         [BZ #3906]
1484         * bits/in.h (IPV6_PKTINFO): Define new macro.
1485         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
1486
1487 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1488
1489         [BZ #13954]
1490         [BZ #13955]
1491         [BZ #13956]
1492         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
1493         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1494         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
1495         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1496         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1497         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1498         * math/libm-test.inc (logb_test) : Additional logb tests.
1499
1500 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
1501             Andreas Jaeger  <aj@suse.de>
1502
1503         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
1504         * configure: Regenerated.
1505         * config.h.in (LINK_OBSOLETE_RPC): New macro.
1506         * config.make.in (link-obsolete-rpc): New substituted variable.
1507         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
1508         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
1509         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1510         (shared-only-routines): Don't set it under [link-obsolete-rpc],
1511         so that libc.a contains the symbols.
1512         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1513         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
1514         * sunrpc/auth_none.c: Likewise.
1515         * sunrpc/auth_unix.c: Likewise.
1516         * sunrpc/authdes_prot.c: Likewise.
1517         * sunrpc/authuxprot.c: Likewise.
1518         * sunrpc/clnt_gen.c: Likewise.
1519         * sunrpc/clnt_perr.c: Likewise.
1520         * sunrpc/clnt_raw.c: Likewise.
1521         * sunrpc/clnt_simp.c: Likewise.
1522         * sunrpc/clnt_tcp.c: Likewise.
1523         * sunrpc/clnt_udp.c: Likewise.
1524         * sunrpc/clnt_unix.c: Likewise.
1525         * sunrpc/des_crypt.c: Likewise.
1526         * sunrpc/des_soft.c: Likewise.
1527         * sunrpc/get_myaddr.c: Likewise.
1528         * sunrpc/key_call.c: Likewise.
1529         * sunrpc/key_prot.c: Likewise.
1530         * sunrpc/netname.c: Likewise.
1531         * sunrpc/pm_getmaps.c: Likewise.
1532         * sunrpc/pm_getport.c: Likewise.
1533         * sunrpc/pmap_clnt.c: Likewise.
1534         * sunrpc/pmap_prot.c: Likewise.
1535         * sunrpc/pmap_prot2.c: Likewise.
1536         * sunrpc/pmap_rmt.c: Likewise.
1537         * sunrpc/publickey.c: Likewise.
1538         * sunrpc/rpc_cmsg.c: Likewise.
1539         * sunrpc/rpc_common.c: Likewise.
1540         * sunrpc/rpc_dtable.c: Likewise.
1541         * sunrpc/rpc_prot.c: Likewise.
1542         * sunrpc/rpc_thread.c: Likewise.
1543         * sunrpc/rtime.c: Likewise.
1544         * sunrpc/svc.c: Likewise.
1545         * sunrpc/svc_auth.c: Likewise.
1546         * sunrpc/svc_raw.c: Likewise.
1547         * sunrpc/svc_run.c: Likewise.
1548         * sunrpc/svc_tcp.c: Likewise.
1549         * sunrpc/svc_udp.c: Likewise.
1550         * sunrpc/svc_unix.c: Likewise.
1551         * sunrpc/svcauth_des.c: Likewise.
1552         * sunrpc/xcrypt.c: Likewise.
1553         * sunrpc/xdr.c: Likewise.
1554         * sunrpc/xdr_array.c: Likewise.
1555         * sunrpc/xdr_float.c: Likewise.
1556         * sunrpc/xdr_intXX_t.c: Likewise.
1557         * sunrpc/xdr_mem.c: Likewise.
1558         * sunrpc/xdr_rec.c: Likewise.
1559         * sunrpc/xdr_ref.c: Likewise.
1560         * sunrpc/xdr_sizeof.c: Likewise.
1561         * sunrpc/xdr_stdio.c: Likewise.
1562
1563 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1564
1565         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
1566         change.  Update copyright years.
1567
1568 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1569
1570         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
1571
1572 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
1573             Joseph Myers  <joseph@codesourcery.com>
1574             Paul Pluzhnikov  <ppluzhnikov@google.com>
1575
1576         [BZ #14012]
1577         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
1578         requiring rpcgen.
1579         [cross-compiling] (extra-libs): Likewise.
1580         [cross-compiling] (extra-libs-others): Likewise.
1581         [cross-compiling] (librpcsvc-routines): Likewise.
1582         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
1583         [cross-compiling] (omit-deps): Likewise.
1584         (sunrpc-CPPFLAGS): New variable.
1585         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
1586         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
1587         (cross-rpcgen-objs): New variable.
1588         (extra-objs): Append $(cross-rpcgen-objs).
1589         ($(cross-rpcgen-objs)): New rule.
1590         ($(objpfx)cross-rpcgen): Likewise.
1591         (rpcgen-cmd): Define to use $(built-program-file).  Expand
1592         comment.
1593         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
1594         ($(objpfx)x%.stmp): Likewise.
1595         * sunrpc/proto.h [IS_IN_build] (_): Define.
1596         [IS_IN_build] (_libc_intl_domainname): Likewise.
1597
1598 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1599
1600         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
1601         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
1602         and R_X86_64_TPOFF64.
1603
1604 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1605
1606         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
1607         sysdeps/unix/sysv/syscalls.list.
1608         (stime): Likewise.
1609         (utime): Likewise.
1610         * sysdeps/unix/sysv/syscalls.list: Remove file.
1611
1612 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1613
1614         [BZ #3440]
1615         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
1616         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
1617         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
1618         (__LC_IDENTIFICATION): Make these macros useful in #if
1619         expressions, as required by C99.
1620
1621 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
1622
1623         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
1624         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
1625         after this.
1626
1627 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1628
1629         * stdlib/longlong.h: Updated from GCC.
1630
1631 2012-05-09  Andreas Jaeger  <aj@suse.de>
1632
1633         * nscd/nscd.c (run_modes): Make named enum, reorder so that
1634         default is first entry.
1635         (run_mode): Set type.
1636         (main): Remove informal message about syslog.
1637         (options): Fix typo.
1638
1639         [BZ #14053]
1640         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
1641         to asm.
1642         (lrint): Likewise.
1643         (llrintf): Likewise.
1644         (llrint): Likewise.
1645         (rint): Likewise.
1646         (rintf): Likewise.
1647         (nearbyint): Likewise.
1648         (nearbyintf): Likewise.
1649
1650 2012-05-09  Andreas Jaeger  <aj@suse.de>
1651             Pedro Alves  <palves@redhat.com>
1652
1653         * nscd/nscd.c (run_mode): Use enum.
1654         (main): Cleanup coding style issue.
1655
1656 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
1657             Andreas Jaeger  <aj@suse.de>
1658
1659         * nscd/nscd.c (go_background): Replaced with...
1660         (run_mode): ... this.
1661         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
1662         (options): Add -F --foreground.
1663         (main): Implement it.
1664         (parse_opt): Parse it.
1665
1666 2012-05-09  Andreas Jaeger  <aj@suse.de>
1667
1668         [BZ #14083]
1669         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
1670         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
1671         -Wconversion warning.
1672         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
1673         Likewise.
1674
1675 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
1676
1677         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
1678         == 0.
1679         (LC_ALL): Use macro-int-constant.
1680         (LC_COLLATE): Likewise.
1681         (LC_CTYPE): Likewise.
1682         (LC_MESSAGES): Likewise.
1683         (LC_MONETARY): Likewise.
1684         (LC_NUMERIC): Likewise.
1685         (LC_TIME): Likewise.
1686         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
1687         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1688         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1689         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
1690         Specify type.
1691         [C99-based standards] (float_t): Expect type.
1692         [C99-based standards] (double_t): Expect type.
1693         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
1694         type.
1695         [C99-based standards] (HUGE_VALL): Likewise.
1696         [C99-based standards] (INFINITY): Likewise.
1697         [C99-based standards] (NAN): Likewise.
1698         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
1699         [C99-based standards] (FP_NAN): Likewise.
1700         [C99-based standards] (FP_NORMAL): Likewise.
1701         [C99-based standards] (FP_SUBNORMAL): Likewise.
1702         [C99-based standards] (FP_ZERO): Likewise.
1703         [C99-based standards] (FP_FAST_FMA): Use
1704         optional-macro-int-constant.  Specify type.  Require == 1.
1705         [C99-based standards] (FP_FAST_FMAF): Likewise.
1706         [C99-based standards] (FP_FAST_FMAL): Likewise.
1707         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
1708         [C99-based standards] (FP_ILOGBNAN): Likewise.
1709         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
1710         Specify type.
1711         [C99-based standards] (MATH_ERREXCEPT): Likewise.
1712         [C99-based standards] (math_errhandling): Specify type.
1713         [ISO99 || ISO11] (signgam): Do not allow.
1714         [non-C99-based standards] (copysignf): Do not allow.
1715         [non-C99-based standards] (exp2f): Likewise.
1716         [non-C99-based standards] (log2f): Likewise.
1717         [non-C99-based standards] (modff): Allow.
1718         [non-C99-based standards] (erff): Do not allow.
1719         [non-C99-based standards] (erfcf): Likewise.
1720         [non-C99-based standards] (gammaf): Likewise.
1721         [non-C99-based standards] (hypotf): Likewise.
1722         [non-C99-based standards] (j0f): Likewise.
1723         [non-C99-based standards] (j1f): Likewise.
1724         [non-C99-based standards] (jnf): Likewise.
1725         [non-C99-based standards] (lgammaf): Likewise.
1726         [non-C99-based standards] (tgammaf): Likewise.
1727         [non-C99-based standards] (y0f): Likewise.
1728         [non-C99-based standards] (y1f): Likewise.
1729         [non-C99-based standards] (ynf): Likewise.
1730         [non-C99-based standards] (isnanf): Likewise.
1731         [non-C99-based standards] (acoshf): Likewise.
1732         [non-C99-based standards] (asinhf): Likewise.
1733         [non-C99-based standards] (atanhf): Likewise.
1734         [non-C99-based standards] (cbrtf): Likewise.
1735         [non-C99-based standards] (expm1f): Likewise.
1736         [non-C99-based standards] (ilogbf): Likewise.
1737         [non-C99-based standards] (log1pf): Likewise.
1738         [non-C99-based standards] (logbf): Likewise.
1739         [non-C99-based standards] (nextafterf): Likewise.
1740         [non-C99-based standards] (remainderf): Likewise.
1741         [non-C99-based standards] (rintf): Likewise.
1742         [non-C99-based standards] (scalbf): Likewise.
1743         [non-C99-based standards] (copysignl): Likewise.
1744         [non-C99-based standards] (exp2l): Likewise.
1745         [non-C99-based standards] (log2l): Likewise.
1746         [non-C99-based standards] (modfl): Allow.
1747         [non-C99-based standards] (erfl): Do not allow.
1748         [non-C99-based standards] (erfcl): Likewise.
1749         [non-C99-based standards] (gammal): Likewise.
1750         [non-C99-based standards] (hypotl): Likewise.
1751         [non-C99-based standards] (j0l): Likewise.
1752         [non-C99-based standards] (j1l): Likewise.
1753         [non-C99-based standards] (jnl): Likewise.
1754         [non-C99-based standards] (lgammal): Likewise.
1755         [non-C99-based standards] (tgammal): Likewise.
1756         [non-C99-based standards] (y0l): Likewise.
1757         [non-C99-based standards] (y1l): Likewise.
1758         [non-C99-based standards] (ynl): Likewise.
1759         [non-C99-based standards] (isnanl): Likewise.
1760         [non-C99-based standards] (acoshl): Likewise.
1761         [non-C99-based standards] (asinhl): Likewise.
1762         [non-C99-based standards] (atanhl): Likewise.
1763         [non-C99-based standards] (cbrtl): Likewise.
1764         [non-C99-based standards] (expm1l): Likewise.
1765         [non-C99-based standards] (ilogbl): Likewise.
1766         [non-C99-based standards] (log1pl): Likewise.
1767         [non-C99-based standards] (logbl): Likewise.
1768         [non-C99-based standards] (nextafterl): Likewise.
1769         [non-C99-based standards] (remainderl): Likewise.
1770         [non-C99-based standards] (rintl): Likewise.
1771         [non-C99-based standards] (scalbl): Likewise.
1772         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1773         [non-C99-based standards] (FP_*): Do not allow.
1774         [C99-based standards] (FP_*): Change to
1775         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1776         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1777         allow.
1778         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
1779         (SIG_ERR): Likewise.
1780         [X/Open-based standards] (SIG_HOLD): Likewise.
1781         (SIG_IGN): Likewise.
1782         (SIGABRT): Use macro-int-constant.  Specify type.  Require
1783         positive value.
1784         (SIGFPE): Likewise.
1785         (SIGILL): Likewise.
1786         (SIGINT): Likewise.
1787         (SIGSEGV): Likewise.
1788         (SIGTER): Likewise.
1789         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
1790         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
1791         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
1792         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
1793         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
1794         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
1795         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
1796         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
1797         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
1798         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
1799         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
1800         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
1801         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
1802         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
1803         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
1804         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
1805         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
1806         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
1807         [X/Open-based standards] (SIGTRAP): Likewise.
1808         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
1809         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
1810         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
1811         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
1812         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1813         allow.
1814
1815 2012-05-08  Ian Wienand  <ianw@vmware.com>
1816
1817         [BZ #14080]
1818         * time/tzset.c (__tzset_parse_tz): Update default rules for
1819         daylight time changes in the Energy Policy Act of 2005.
1820
1821 2012-05-09  Andreas Jaeger  <aj@suse.de>
1822
1823         [BZ #13983]
1824         * elf/ldconfig.c (parse_conf): Change string to make clear that
1825         ldconfig only issued a warning if ld.so.conf does not exist.
1826
1827 2012-05-08  David S. Miller  <davem@davemloft.net>
1828
1829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
1830         movxtod instead of popping the value on the stack.
1831
1832         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1833
1834 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
1835
1836         * config.h.in: Add HAVE_ARM_PCS_VFP.
1837
1838 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
1839
1840         [BZ #13979]
1841         * include/features.h: Warn if user requests __FORTIFY_SOURCE
1842         checking but the checks are disabled for any reason.
1843
1844 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1845
1846         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
1847         and ELF64_R_TYPE with ELFW(R_TYPE).
1848
1849 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
1850
1851         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
1852         (ulimit): Likewise.
1853
1854         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
1855         (settimeofday): Likewise.
1856
1857 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
1858
1859         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
1860         a struct th_u2 inside the union, and move tu_block/tu_code into
1861         a new th_u3 union of tu_block/tu_code inside of that.  Move
1862         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
1863         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
1864         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
1865         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
1866         (th_stuff): Change to th_u1.tu_stuff.
1867         (th_data): Define.
1868         (th_msg): Change to th_u1.th_u2.tu_data.
1869
1870 2012-05-07  David S. Miller  <davem@davemloft.net>
1871
1872         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1873
1874         [BZ #14074]
1875         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
1876         (SETUP_PIC_REG): Use it.
1877         (SETUP_PIC_REG_LEAF): Use it.
1878
1879 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
1880
1881         [BZ #13885]
1882         [BZ #13923]
1883         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1884         USE_AS_EXPM1L.
1885         (EXPL_FINITE): Likewise.
1886         (FLDLOG): Likewise.
1887         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1888         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1889         e_expl.S.
1890         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1891         USE_AS_EXPM1L.
1892         (EXPL_FINITE): Likewise.
1893         (FLDLOG): Likewise.
1894         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1895         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1896         e_expl.S.
1897         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
1898         test of -max_value argument for long double.
1899         * sysdeps/i386/fpu/libm-test-ulps: Update.
1900         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1901
1902 2012-05-06  David S. Miller  <davem@davemloft.net>
1903
1904         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
1905         quad soft-float symbols whose references which are compiler
1906         generated.
1907         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
1908
1909 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
1910
1911         [BZ #13884]
1912         [BZ #13914]
1913         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1914         USE_AS_EXP10L.
1915         (EXPL_FINITE): Likewise.
1916         (FLDLOG): Likewise.
1917         (c0): Likewise.
1918         (c1): Likewise.
1919         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1920         Adjust comments for base varying.
1921         (__expl_finite): Change alias to EXPL_FINITE.
1922         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
1923         e_expl.S.
1924         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
1925         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1926         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1927         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
1928         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1929         USE_AS_EXP10L.
1930         (EXPL_FINITE): Likewise.
1931         (FLDLOG): Likewise.
1932         (c0): Likewise.
1933         (c1): Likewise.
1934         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1935         Adjust comments for base varying.
1936         (__expl_finite): Change alias to EXPL_FINITE.
1937         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
1938         tests for bugs.
1939         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1940
1941         [BZ #14064]
1942         * math/libm-test.inc (check_float_internal): Correct ulp
1943         calculation for subnormal expected results.
1944
1945 2012-05-06  Andreas Jaeger  <aj@suse.de>
1946
1947         * Makeconfig (+math-flags): New, set to -frounding-math.
1948         (+cflags): Add +math-flags so that all of glibc gets compiled with
1949         it.
1950
1951         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
1952
1953 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
1954
1955         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
1956         Disable one test.
1957
1958         [BZ #13787]
1959         [BZ #13922]
1960         [BZ #14036]
1961         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
1962         (__ieee754_expl): Allow for and saturate large arguments.
1963         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
1964         (u_threshold): Likewise.
1965         (__exp): Call __ieee754_exp before checking for overflow and
1966         underflow.
1967         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
1968         (u_threshold): Likewise.
1969         (__expf): Call __ieee754_expf before checking for overflow and
1970         underflow.
1971         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
1972         (u_threshold): Likewise.
1973         (__expl): Call __ieee754_expl before checking for overflow and
1974         underflow.
1975         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
1976         (__ieee754_expl): Allow for and saturate large arguments.
1977         * math/libm-test.inc (exp_test): Add another test.  Do not allow
1978         missing overflow exception on overflow.
1979         (expm1_test): Do not allow missing overflow exception on overflow.
1980
1981         * sysdeps/i386/fpu/e_expl.c: Move to ...
1982         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
1983         rather than using inline asm.
1984         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
1985         * sysdeps/x86_64/fpu/e_expl.S: Copy from
1986         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
1987
1988         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
1989         (nice): Likewise.
1990         (poll): Likewise.
1991         (signal): Likewise.
1992         (time): Likewise.
1993         (times): Likewise.
1994
1995 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1996
1997         * sysdeps/unix/syscalls.list (adjtime): Add entry from
1998         sysdeps/unix/common/syscalls.list.
1999         (fchmod): Likewise.
2000         (fchown): Likewise.
2001         (ftruncate): Likewise.
2002         (getrusage): Likewise.
2003         (gettimeofday): Likewise.
2004         (setpgid): Likewise.
2005         (setregid): Likewise.
2006         (setreuid): Likewise.
2007         (sigaction): Likewise.
2008         (truncate): Likewise.
2009         (vhangup): Likewise.
2010         * sysdeps/unix/common/syscalls.list: Remove file.
2011         * sysdeps/unix/bsd/Implies: Don't include unix/common.
2012         * sysdeps/unix/sysv/linux/Implies: Likewise.
2013
2014 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2015
2016         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
2017         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
2018         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
2019         Moved to ...
2020         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2021         Here.
2022         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
2023         to ...
2024         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
2025         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
2026         to ...
2027         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
2028         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
2029         to ...
2030         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
2031         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
2032         to ...
2033         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
2034         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
2035         to ...
2036         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
2037         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
2038         to ...
2039         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
2040         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
2041         to ...
2042         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
2043         Here.
2044         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
2045         to ...
2046         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
2047         Here.
2048         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
2049         to ...
2050         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
2051         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
2052         Moved to ...
2053         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
2054         Here.
2055         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
2056         to ...
2057         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
2058
2059 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2060
2061         * sysdeps/unix/common/bits/dirent.h: Remove file.
2062         * sysdeps/unix/common/bits/fcntl.h: Likewise.
2063
2064         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
2065         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
2066         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
2067         * sysdeps/unix/bsd/isatty.c: Likewise.
2068         * sysdeps/unix/bsd/tcdrain.c: Likewise.
2069         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
2070         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
2071
2072 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2073
2074         [BZ #13563]
2075         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
2076         long double comparison inaccuracies.
2077         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
2078         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2079
2080 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
2081
2082         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
2083         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
2084
2085 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2086
2087         [BZ #14049]
2088         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
2089         nonzero digits before rounding a hex value.
2090         * stdlib/tst-strtod.c (tests): Add another test.
2091
2092 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2093
2094         * sysdeps/s390/fpu/libm-test-ulps: Update.
2095
2096 2012-05-03  Andreas Jaeger  <aj@suse.de>
2097
2098         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
2099         does not get optimized out.
2100         (malloc_opt_barrier): New.
2101
2102 2012-05-03  Andreas Jaeger  <aj@suse.de>
2103             Roland McGrath  <roland@hack.frob.com>
2104
2105         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
2106         intermediate file deletion.
2107         (generated): Add .symlist files.
2108
2109 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
2110
2111         [BZ #13775]
2112         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
2113         Redirect under this condition.
2114         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2115         [__USE_GNU] (__dprintf_chk): Not under this condition.
2116         [__USE_GNU] (__vdprintf_chk): Likewise.
2117         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
2118         under this condition.
2119         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2120         [__USE_XOPEN2K8] (dprintf): Define under this condition.
2121         [__USE_XOPEN2K8] (vdprintf): Likewise.
2122         [__USE_GNU] (__dprintf_chk): Not under this condition.
2123         [__USE_GNU] (__vdprintf_chk): Likewise.
2124         [__USE_GNU] (dprintf): Likewise.
2125         [__USE_GNU] (vdprintf): Likewise.
2126
2127 2012-05-03  Roland McGrath  <roland@hack.frob.com>
2128
2129         * elf/Makefile (common-generated): Set this instead of generated for
2130         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
2131         $(all-built-dso)-derived lists.
2132
2133 2012-05-03  Andreas Jaeger  <aj@suse.de>
2134
2135         * sysdeps/i386/fpu/libm-test-ulps: Update.
2136
2137         * FAQ: Removed.
2138         * FAQ.in: Likewise.
2139         * scripts/gen-FAQ.pl: Likewise.
2140         * manual/install.texi (Installation): Point to online location of
2141         FAQ.
2142         * Makefile (files-for-dist): Remove FAQ.
2143         (FAQ): Remove.
2144
2145 2012-05-02  Allan McRae  <allan@archlinux.org>
2146
2147         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
2148         (LDFLAGS-reldepmod5.so): Likewise.
2149         (LDFLAGS-reldep6mod1.so): Likewise.
2150         (LDFLAGS-reldep6mod4.so): Likewise.
2151         (LDFLAGS-reldep8mod3.so): Likewise.
2152         (LDFLAGS-unload4mod1.so): Likewise.
2153         (LDFLAGS-unload4mod2.so): Likewise.
2154         (LDFLAGS-tst-initorder): Likewise.
2155         (LDFLAGS-tst-initordera2.so): Likewise.
2156         (LDFLAGS-tst-initordera3.so): Likewise.
2157         (LDFLAGS-tst-initordera4.so): Likewise.
2158         (LDFLAGS-tst-initorderb2.so): Likewise.
2159         (LDFLAGS-noload): Likewise.
2160         (LDFLAGS-next): Likewise.
2161         (LDFLAGS-order2mod1.so): Likewise.
2162         (LDFLAGS-order2mod2.so): Likewise.
2163         (LDFLAGS-tst-initorder2): Likewise.
2164         (LDFLAGS-tst-initorder2a.so): Likewise.
2165         (LDFLAGS-tst-initorder2b.so): Likewise.
2166         (LDFLAGS-tst-initorder2c.so): Likewise.
2167         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
2168
2169 2012-05-02  David S. Miller  <davem@davemloft.net>
2170
2171         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2172
2173 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
2174
2175         [BZ #14055]
2176         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
2177
2178 2012-05-02  Andreas Jaeger  <aj@suse.de>
2179
2180         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
2181         since we manipulate rounding mode.
2182         (CPPFLAGS-test-idouble.c): Likewise.
2183         (CPPFLAGS-test-ifloat.c): Likewise.
2184         (CFLAGS-test-ldouble.c): Likewise.
2185         (CFLAGS-test-double.c): Likewise.
2186         (CFLAGS-test-float.c): Likewise.
2187         (CFLAGS-test-misc.c): Likewise.
2188         (CFLAGS-test-test-fenv.c): Likewise.
2189
2190 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2191
2192         [BZ #2550]
2193         [BZ #2570]
2194         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
2195         comparisons to determine direction to adjust input.
2196
2197 2012-05-01  Roland McGrath  <roland@hack.frob.com>
2198
2199         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
2200         output to the target.
2201
2202         * scripts/localplt.awk: New file.
2203         * elf/Makefile ($(objpfx)check-localplt): Target removed.
2204         (check-localplt-CFLAGS): Variable removed.
2205         ($(all-built-dso:=.jmprel)): New static pattern rule.
2206         (generated): Add those targets.
2207         (localplt-built-dso): New variable.
2208         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
2209
2210         * elf/check-localplt.c: File removed.
2211
2212         * scripts/check-execstack.awk: New file.
2213         * elf/Makefile ($(objpfx)check-execstack): Target removed.
2214         (check-execstack-CFLAGS): Variable removed.
2215         ($(objpfx)check-execstack.h): Target removed.
2216         ($(objpfx)execstack-default): New target.
2217         (generated): Add that instead of check-execstack.h.
2218         ($(all-built-dso:=.phdr)): New static pattern rule.
2219         (generated): Add those targets.
2220         * elf/check-execstack.c: File removed.
2221
2222         * scripts/check-textrel.awk: New file.
2223         * elf/Makefile ($(objpfx)check-textrel): Target removed.
2224         (check-textrel-CFLAGS): Variable removed.
2225         (all-built-dso): Use := to define.o
2226         ($(all-built-dso:=.dyn)): New static pattern rule.
2227         (generated): Add those targets.
2228         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
2229         * config.make.in (READELF): New substituted variable.
2230         * elf/check-textrel.c: File removed.
2231
2232 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2233
2234         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2235         allow.
2236         * conform/data/ctype.h-data [C99-based standards] (isblank):
2237         Expect function.
2238         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
2239         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
2240         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2241         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
2242         Specify type.  Require positive value.
2243         (EILSEQ): Likewise.
2244         (ERANGE): Likewise.
2245         [ISO || POSIX] (EILSEQ): Do not expect.
2246         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
2247         Specify type.  Require positive value.
2248         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
2249         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
2250         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
2251         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
2252         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
2253         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
2254         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
2255         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
2256         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
2257         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
2258         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
2259         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
2260         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
2261         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
2262         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
2263         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
2264         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
2265         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
2266         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
2267         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
2268         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
2269         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
2270         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
2271         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
2272         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
2273         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
2274         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
2275         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
2276         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
2277         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
2278         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
2279         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
2280         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
2281         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
2282         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
2283         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
2284         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
2285         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
2286         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
2287         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
2288         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
2289         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
2290         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
2291         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
2292         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
2293         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
2294         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
2295         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
2296         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
2297         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
2298         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
2299         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
2300         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
2301         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
2302         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
2303         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
2304         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
2305         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
2306         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
2307         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
2308         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
2309         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
2310         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
2311         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
2312         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
2313         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
2314         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
2315         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
2316         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
2317         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
2318         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
2319         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
2320         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
2321         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
2322         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
2323         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
2324         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
2325         Require >= 2.
2326         (FLT_ROUNDS): Expect as macro, not constant.
2327         (FLT_MANT_DIG): Use macro-int-constant.
2328         (DBL_MANT_DIG): Likewise.
2329         (LDBL_MANT_DIG): Likewise.
2330         (FLT_DIG): Likewise.
2331         (DBL_DIG): Likewise.
2332         (LDBL_DIG): Likewise.
2333         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
2334         (DBL_MIN_EXP): Likewise.
2335         (LDBL_MIN_EXP): Likewise.
2336         (FLT_MAX_EXP): Use macro-int-constant.
2337         (DBL_MAX_EXP): Likewise.
2338         (LDBL_MAX_EXP): Likewise.
2339         (FLT_MAX_10_EXP): Likewise.
2340         (DBL_MAX_10_EXP): Likewise.
2341         (LDBL_MAX_10_EXP): Likewise.
2342         (FLT_MAX): Use macro-constant.
2343         (DBL_MAX): Likewise.
2344         (LDBL_MAX): Likewise.
2345         (FLT_EPSILON): Use macro-constant.  Give upper bound.
2346         (DBL_EPSILON): Likewise.
2347         (LDBL_EPSILON): Likewise.
2348         (FLT_MIN): Likewise.
2349         (DBL_MIN): Likewise.
2350         (LDBL_MIN): Likewise.
2351         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
2352         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
2353         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
2354         [ISO11] (FLT_HAS_SUBNORM): Likewise.
2355         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
2356         [ISO11] (DBL_DECIMAL_DIG): Likewise.
2357         [ISO11] (FLT_DECIMAL_DIG): Likewise.
2358         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
2359         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
2360         [ISO11] (FLT_TRUE_MIN): Likewise.
2361         [ISO11] (LDBL_TRUE_MIN): Likewise.
2362         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2363         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
2364         (SCHAR_MIN): Use macro-int-constant.  Specify type.
2365         (SCHAR_MAX): Likewise.
2366         (UCHAR_MAX): Likewise.
2367         (CHAR_MIN): Likewise.
2368         (CHAR_MAX): Likewise.
2369         (MB_LEN_MAX): Use macro-int-constant.
2370         (SHRT_MIN): Use macro-int-constant.  Specify type.
2371         (SHRT_MAX): Likewise.
2372         (USHRT_MAX): Likewise.
2373         (INT_MAX): Likewise.
2374         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
2375         bound negative.
2376         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2377         bound with "U".
2378         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2379         bound with "L".
2380         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
2381         bound negative.  Suffix upper bound with "L".
2382         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2383         bound with "UL".
2384         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
2385         Specify type.
2386         [C99-based standards] (LLONG_MAX): Likewise.
2387         [C99-based standards] (ULLONG_MAX): Likewise.
2388         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
2389         == 0.
2390         [ISO11] (max_align_t): Require type.
2391         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2392
2393         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
2394         from $CFLAGS, without defining away __attribute__ calls.
2395         (checknamespace): Use $CFLAGS_namespace.
2396
2397         * conform/conformtest.pl (@keywords): Only include C99 keywords
2398         for standards based on C99 or C11.
2399
2400         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
2401         Disable tests.
2402         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
2403         UNIX98]: Likewise.
2404
2405         * conform/conformtest.pl: Handle "macro-int-constant" and test for
2406         usability of symbols in #if.
2407
2408         * conform/conformtest.pl: If macro or constant types start
2409         "promoted:", expect the symbol to be of the following type
2410         promoted by the integer promotions.
2411
2412         * conform/conformtest.pl: Parse all "constant" and "macro" lines
2413         in one place.  Also handle "macro-constant".
2414
2415         * conform/conformtest.pl: Only accept expected macro values with
2416         "==".  Parse all "macro" lines in one place.
2417         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
2418
2419         * conform/conformtest.pl: Handle braced types on "constant" lines
2420         instead of handling "typed-constant".
2421         * conform/data/signal.h-data: Use "constant" instead of
2422         "typed-constant".
2423
2424         * conform/conformtest.pl: Handle "optional-" at start of lines in
2425         one place rather than duplicating several cases.  Handle each
2426         format of "macro" line with initial "optional-".
2427
2428         * conform/conformtest.pl: Only accept expected constant or
2429         optional-constant values with "==".  Parse all "constant" lines in
2430         one place.  Parse all "optional-constant" lines in one place.
2431         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
2432         * conform/data/fmtmsg.h-data: Likewise.
2433         * conform/data/netinet/in.h-data: Likewise.
2434         * conform/data/tar.h-data: Likewise.
2435         * conform/data/limits.h-data: Use "==" form on "constant" and
2436         "optional-constant" lines.
2437
2438         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
2439         Use -std=c99 for XOPEN2K.
2440         (@knownproblems): Remove.
2441         (newtoken): Don't check %isknown.
2442
2443         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
2444         Do not expect macro.
2445         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
2446         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
2447         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
2448         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
2449         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
2450         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
2451         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
2452         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
2453         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
2454         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
2455         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
2456         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
2457         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
2458         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
2459         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
2460         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
2461         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
2462         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
2463         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
2464         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
2465         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
2466         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
2467         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
2468         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
2469         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
2470         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
2471         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
2472         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
2473         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
2474         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
2475         [XPG3] (acosh): Likewise.
2476         [XPG3] (asinh): Likewise.
2477         [XPG3] (atanh): Likewise.
2478         [XPG3] (cbrt): Likewise.
2479         [XPG3] (expm1): Likewise.
2480         [XPG3] (ilogb): Likewise.
2481         [XPG3] (log1p): Likewise.
2482         [XPG3] (logb): Likewise.
2483         [XPG3] (nextafter): Likewise.
2484         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
2485         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
2486         [XPG3] (remainder): Likewise.
2487         [XPG3] (rint): Likewise.
2488         [XPG3 || XPG4 || UNIX98] (round): Likewise.
2489         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
2490         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
2491         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
2492         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
2493         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
2494         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
2495         [UNIX98 || XOPEN2K] (scalb): Expect.
2496         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
2497         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
2498         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
2499         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
2500         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
2501         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
2502         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
2503         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
2504         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
2505         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
2506         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
2507         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
2508         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
2509         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
2510         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
2511         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
2512         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
2513         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
2514         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
2515         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
2516         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
2517         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
2518         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
2519         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
2520         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
2521         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
2522         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
2523         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
2524         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
2525         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
2526         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
2527         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
2528         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
2529         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
2530         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
2531         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
2532         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
2533         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
2534         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
2535         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
2536         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
2537         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
2538         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
2539         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
2540         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
2541         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
2542         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
2543         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
2544         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
2545         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
2546         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
2547         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
2548         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
2549         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
2550         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
2551         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
2552         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
2553         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
2554         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
2555         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
2556         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
2557         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
2558         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
2559         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
2560         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
2561         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
2562         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
2563         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
2564         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
2565         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
2566         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
2567         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
2568         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
2569         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
2570         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
2571         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
2572         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
2573         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
2574         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
2575         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
2576         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
2577         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
2578         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
2579         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
2580         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
2581         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
2582         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
2583         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
2584         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
2585         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
2586         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
2587         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
2588         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
2589         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
2590         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
2591         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
2592         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
2593         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
2594         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
2595         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
2596         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
2597         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
2598         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
2599         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
2600         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
2601         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
2602         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
2603         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
2604         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
2605         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
2606         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
2607         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
2608         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
2609         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
2610         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
2611         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
2612         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
2613         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
2614         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
2615         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
2616         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
2617         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
2618         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
2619         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
2620         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
2621         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
2622         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
2623         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
2624         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
2625         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
2626         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
2627         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
2628         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
2629         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
2630         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
2631         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
2632         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
2633
2634         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
2635         _XOPEN_SOURCE_EXTENDED for XPG4.
2636
2637         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
2638
2639         * Makeconfig (localtime): Remove variable.
2640         (inst_localtime-file): Likewise.
2641
2642 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2643
2644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
2645         Update.
2646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2647         Update.
2648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
2649         Update.
2650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2651         Update.
2652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
2653         Update.
2654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
2655         Update.
2656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2657         Update.
2658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
2659         Update.
2660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2661         Update.
2662
2663 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2664
2665         [BZ #2550]
2666         [BZ #2570]
2667         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
2668         comparisons to determine direction to adjust input.
2669         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2670         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
2671         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
2672         Likewise.
2673         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
2674         Likewise.
2675         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2676         Likewise.
2677         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2678         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
2679         Likewise.
2680         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
2681         Likewise.
2682         * math/libm-test.inc (nexttoward_test): Add more tests.
2683
2684 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2685
2686         [BZ #14040]
2687         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
2688         in version GLIBC_2.1, not GLIBC_2.0.
2689         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
2690         Likewise.
2691
2692 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
2693
2694         [BZ #13942]
2695         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
2696         (1 - x) * (1 + x).
2697         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2698         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
2699         * math/libm-test.inc (acos_test): Add more tests.
2700         (asin_test): Likewise.
2701         * sysdeps/i386/fpu/libm-test-ulps: Update.
2702         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2703
2704         [BZ #14034]
2705         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
2706         of square root.
2707         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
2708         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2709         * math/libm-test.inc (acos_test_tonearest): New function.
2710         (acos_test_towardzero): Likewise.
2711         (acos_test_downward): Likewise.
2712         (acos_test_upward): Likewise.
2713         (asin_test_tonearest): Likewise.
2714         (asin_test_towardzero): Likewise.
2715         (asin_test_downward): Likewise.
2716         (asin_test_upward): Likewise.
2717         (main): Call the new functions.
2718         * sysdeps/i386/fpu/libm-test-ulps: Update.
2719         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2720
2721         [BZ #13884]
2722         [BZ #13924]
2723         * math/e_exp10.c: Include <float.h>.
2724         (__ieee754_exp10): Handle underflow here rather than multiplying
2725         large negative argument by M_LN10.
2726         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
2727         of __ieee754_expf.
2728         * math/e_exp10l.c: Include <float.h>.
2729         (__ieee754_exp10l): Handle underflow here rather than multiplying
2730         large negative argument by M_LN10l.
2731         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
2732         spurious overflow exception on underflow.
2733
2734 2012-04-29  Marek Polacek  <polacek@redhat.com>
2735
2736         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
2737         (__fortify_function): New macro.
2738         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
2739         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
2740         __extern_always_inline.
2741         * libio/bits/stdio2.h: Likewise.
2742         * libio/bits/stdio.h: Likewise.
2743         * string/string.h: Likewise.
2744         * string/bits/string3.h: Likewise.
2745         * include/stdio.h: Likewise.
2746         * stdlib/bits/stdlib.h: Likewise.
2747         * stdlib/stdlib.h: Likewise.
2748         * rt/bits/mqueue2.h: Likewise.
2749         * rt/mqueue.h: Likewise.
2750         * posix/bits/unistd.h: Likewise.
2751         * posix/unistd.h: Likewise.
2752         * io/bits/poll2.h: Likewise.
2753         * io/bits/fcntl2.h: Likewise.
2754         * io/fcntl.h: Likewise.
2755         * io/sys/poll.h: Likewise.
2756         * misc/bits/syslog.h: Likewise.
2757         * misc/bits/syslog-ldbl.h: Likewise.
2758         * misc/sys/syslog.h: Likewise.
2759         * socket/bits/socket2.h: Likewise.
2760         * socket/sys/socket.h: Likewise.
2761         * debug/tst-chk1.c: Likewise.
2762         * wcsmbs/bits/wchar2.h: Likewise.
2763         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2764         * wcsmbs/wchar.h: Likewise.
2765
2766 2012-04-29  Andreas Jaeger  <aj@suse.de>
2767
2768         * Makerules (tests): Remove enable-check-abi protection.
2769         (check-abi-warn): Remove.
2770         (check-abi-%): Remove check-abi-warn usage.
2771
2772         * configure.in: Remove check-abi configure option.
2773         * configure: Regenerated.
2774         * config.make.in (enable-check-abi): Remove.
2775
2776 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2777
2778         [BZ #14033]
2779         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
2780         double functions to double *_finite functions.
2781
2782         [BZ #13941]
2783         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
2784         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
2785         LDBL_MIN_EXP.
2786         * stdio-common/Makefile (tests): Add tst-sprintf3.
2787         * stdio-common/tst-sprintf3.c: New file.
2788
2789         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
2790         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
2791
2792 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2793
2794         * conform/conformtest.pl: Remove duplicate typed-constant
2795         handling.
2796
2797 2012-04-28  David S. Miller  <davem@davemloft.net>
2798
2799         * Makerules (%.abilist): Add vpath on sysdep_dirs.
2800         (check-abi-%): Remove AWK script prerequisite and explicit
2801         abilist directory.
2802         (check-abi): Rewrite to just diff the symlist with the abilist.
2803         (config-tls, config-abi-config): Delete, no longer used.
2804         (update-abi-%): Remove AWK script and explicit abilist directory.
2805         (update-abi): Rewrite to simply compare and conditionally copy the
2806         symlist and the sysdep abilist file.  Remove update-abi-config
2807         checks.
2808         * abilist/ld.abilist: Remove.
2809         * abilist/libBrokenLocale.abilist: Remove.
2810         * abilist/libanl.abilist: Remove.
2811         * abilist/libcrypt.abilist: Remove.
2812         * abilist/libdl.abilist: Remove.
2813         * abilist/librt.abilist: Remove.
2814         * abilist/libthread_db.abilist: Remove.
2815         * abilist/libutil.abilist: Remove.
2816         * scripts/extract-abilist.awk: Remove.
2817         * scripts/merge-abilist.awk: Remove.
2818         * sysdeps/generic/libcidn.abilist: New file.
2819         * sysdeps/generic/libnss_compat.abilist: New file.
2820         * sysdeps/generic/libnss_db.abilist: New file.
2821         * sysdeps/generic/libnss_dns.abilist: New file.
2822         * sysdeps/generic/libnss_files.abilist: New file.
2823         * sysdeps/generic/libnss_hesiod.abilist: New file.
2824         * sysdeps/generic/libnss_nis.abilist: New file.
2825         * sysdeps/generic/libnss_nisplus.abilist: New file.
2826         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
2827         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
2828         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
2829         file.
2830         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
2831         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
2832         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
2833         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
2834         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
2835         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
2836         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
2837         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
2838         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
2839         file.
2840         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
2841         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
2842         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
2843         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
2844         file.
2845         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
2846         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
2847         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
2848         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
2849         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
2850         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
2851         file.
2852         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
2853         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
2854         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
2855         file.
2856         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
2857         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
2858         New file.
2859         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
2860         New file.
2861         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
2862         New file.
2863         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
2864         New file.
2865         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
2866         New file.
2867         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
2868         New file.
2869         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
2870         New file.
2871         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
2872         New file.
2873         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
2874         New file.
2875         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
2876         New file.
2877         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
2878         New file.
2879         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
2880         New file.
2881         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
2882         New file.
2883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
2884         file.
2885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
2886         New file.
2887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
2888         New file.
2889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
2890         file.
2891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
2892         New file.
2893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
2894         New file.
2895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
2896         file.
2897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
2898         New file.
2899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2900         New file.
2901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
2902         New file.
2903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
2904         New file.
2905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
2906         New file.
2907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
2908         New file.
2909         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
2910         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
2911         file.
2912         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
2913         New file.
2914         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
2915         file.
2916         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
2917         file.
2918         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
2919         file.
2920         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
2921         file.
2922         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
2923         file.
2924         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2925         New file.
2926         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
2927         file.
2928         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
2929         file.
2930         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
2931         New file.
2932         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
2933         file.
2934         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
2935         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
2936         file.
2937         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
2938         New file.
2939         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
2940         file.
2941         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
2942         file.
2943         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
2944         file.
2945         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
2946         file.
2947         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
2948         file.
2949         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2950         New file.
2951         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
2952         file.
2953         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
2954         file.
2955         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
2956         New file.
2957         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
2958         file.
2959         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2960         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
2961         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
2962         file.
2963         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
2964         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
2965         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
2966         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
2967         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
2968         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
2969         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
2970         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
2971         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
2972         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
2973         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
2974         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
2975         file.
2976         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
2977         New file.
2978         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
2979         file.
2980         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
2981         file.
2982         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
2983         file.
2984         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
2985         file.
2986         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
2987         file.
2988         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2989         New file.
2990         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
2991         New file.
2992         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
2993         file.
2994         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
2995         New file.
2996         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
2997         file.
2998         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
2999         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
3000         file.
3001         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
3002         New file.
3003         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
3004         file.
3005         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
3006         file.
3007         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
3008         file.
3009         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
3010         file.
3011         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
3012         file.
3013         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
3014         New file.
3015         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
3016         New file.
3017         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
3018         file.
3019         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
3020         New file.
3021         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
3022         file.
3023
3024 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
3025
3026         * conform/conformtest.pl: Fix typo in handling typed-constant from
3027         allow-header.
3028
3029 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3030
3031         * README: Cut down references to pre-2.6 Linux kernels and
3032         Linuxthreads.  Update lists of configurations in libc and ports
3033         and sort alphabetically.  Say "or newer" with Linux kernel version
3034         requirements.
3035
3036         * config.h.in [IS_IN_build]: Allow compiling without optimization.
3037
3038 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3039
3040         [BZ #887]
3041         * math/libm-test.inc (logb_test_downward): New test to expose
3042         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
3043         rounding mode.
3044
3045 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3046
3047         [BZ #14027]
3048         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
3049         to be done.
3050         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
3051         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
3052
3053 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
3054
3055         * sysdeps/unix/i386/brk.S: Remove file.
3056         * sysdeps/unix/i386/dl-brk.S: Likewise.
3057         * sysdeps/unix/i386/pipe.S: Likewise.
3058         * sysdeps/unix/i386/sigreturn.S: Likewise.
3059         * sysdeps/unix/i386/syscall.S: Likewise.
3060         * sysdeps/unix/i386/vfork.S: Likewise.
3061         * sysdeps/unix/i386/wait.S: Likewise.
3062
3063         * sysdeps/unix/common/tcsendbrk.c: Move to ...
3064         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
3065
3066         * configure.in (arm*-none*): Do not allow without
3067         --enable-hacker-mode.
3068         (netbsd*): Remove case setting base_os.
3069         (386bsd*): Likewise.
3070         (freebsd*): Likewise.
3071         (bsdi*): Likewise.
3072         (osf*): Likewise.
3073         (sunos*): Likewise.
3074         (ultrix*): Likewise.
3075         (newsos*): Likewise.
3076         (dynix*): Likewise.
3077         (*bsd*): Likewise.
3078         (sysv*): Likewise.
3079         (isc*): Likewise.
3080         (esix*): Likewise.
3081         (sco*): Likewise.
3082         (minix*): Likewise.
3083         (irix4*): Likewise.
3084         (irix6*): Likewise.
3085         (solaris[2-9]*): Likewise.
3086         (none): Likewise.
3087         * configure: Regenerated.
3088
3089 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3090
3091         [BZ #11521]
3092         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
3093         overflow or cancellation in calculating denominator.
3094         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
3095         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
3096         down expression to avoid unexpected rounding in newer GCCs.
3097         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
3098
3099 2012-04-26  David S. Miller  <davem@davemloft.net>
3100
3101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
3102         long-double compat symbols.
3103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
3107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3108         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
3109         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
3110         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
3111         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
3112         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
3113         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
3114         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
3115         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3116
3117 2012-04-25  David S. Miller  <davem@davemloft.net>
3118
3119         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
3120         HWCAP_* values only after the memory barriers have been defined.
3121         (atomic_full_barrier): Define.
3122         (atomic_read_barrier): Define.
3123         (atomic_write_barrier): Define.
3124
3125 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3126
3127         * shlib-versions: Add libgcc_s version information.
3128         * sysdeps/generic/libgcc_s.h: Remove.
3129         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
3130         libgcc_s.h.
3131         * sysdeps/gnu/unwind-resume.c: Likewise.
3132         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
3133
3134 2012-04-25  David S. Miller  <davem@davemloft.net>
3135
3136         * sysdeps/unix/sparc/brk.S: Delete.
3137         * sysdeps/unix/sparc/dl-brk.S: Delete.
3138         * sysdeps/unix/sparc/pipe.S: Delete.
3139         * sysdeps/unix/sparc/sysdep.S: Delete.
3140         * sysdeps/unix/sparc/sysdep.h: Delete.
3141         * sysdeps/unix/sparc/vfork.S: Delete.
3142         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
3143         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
3144         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
3145         ret_ERRVAL, r0, r1, MOVE): Define.
3146         (JUMPTARGET): Remove.
3147         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
3148         sysdeps/unix/sparc/sysdep.h
3149         (ENTRY, END): Remove.
3150         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3151
3152 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
3153
3154         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
3155         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
3156         -DIS_IN_build.
3157
3158         * timezone/README: Update upstream location and email address for
3159         tzcode and tzdata.
3160         * timezone/zdump.c: Update from tzcode 2012b.
3161         * timezone/zic.c: Likewise.
3162
3163         * configure.in (libc_cv_as_needed): Remove test.
3164         * configure: Regenerated.
3165         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
3166         conditional definition.
3167         [$(have-as-needed) != yes] (no-as-needed): Likewise.
3168         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
3169         * config.make.in (have-as-needed): Remove variable.
3170
3171 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3172             Paul Pluzhnikov  <ppluzhnikov@google.com>
3173
3174         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
3175         strings correctly.
3176
3177 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3178
3179         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
3180         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
3181         * sysdeps/sh/strlen.S: Likewise.
3182
3183 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3184
3185         * sysdeps/unix/fork.S: Remove file.
3186         * sysdeps/unix/i386/fork.S: Likewise.
3187         * sysdeps/unix/sparc/fork.S: Likewise.
3188
3189         * sysdeps/unix/system.c: Remove file.
3190         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
3191
3192         * sysdeps/unix/getegid.S: Remove file.
3193         * sysdeps/unix/geteuid.S: Likewise.
3194
3195 2012-04-24  Roland McGrath  <roland@hack.frob.com>
3196
3197         * scripts/check-localplt.awk: New file.
3198         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
3199         of diff.
3200         * scripts/data/localplt-generic.data: Add a comment.
3201
3202         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
3203         NODE when __dir_mkfile failed.
3204         * sysdeps/mach/hurd/symlinkat.c: Likewise.
3205         Reported by Ludovic Courtès <ludo@gnu.org>.
3206
3207 2012-04-24  Andreas Jaeger  <aj@suse.de>
3208
3209         * Makerules (common-clean): Also remove gen-as-const-headers
3210         files.
3211
3212 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3213
3214         * Makerules (native-compile): Do not change working directory for
3215         build.  Use $(OUTPUT_OPTION) in command.
3216         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
3217
3218 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3219
3220         [BZ #13886]
3221         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
3222         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
3223         * math/libm-test.inc (floor_test): Add more tests.
3224         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
3225
3226 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3227
3228         * sysdeps/unix/getdents.c: Remove file.
3229         * sysdeps/unix/sysv/getdents.c: Likewise.
3230         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
3231
3232         * sysdeps/unix/syscalls.list (madvise): Add syscall from
3233         sysdeps/unix/mman/syscalls.list.
3234         (mmap): Likewise.
3235         (mprotect): Likewise.
3236         (msync): Likewise.
3237         (munmap): Likewise.
3238         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
3239         * sysdeps/unix/mman/syscalls.list: Remove.
3240         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
3241
3242         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
3243         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
3244         * configure: Regenerated.
3245         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
3246         $(libgcc_s_suffix).
3247         * config.make.in (libgcc_s_suffix): Remove variable.
3248
3249 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
3250
3251         * sysdeps/unix/sysv/gethostname.c: Move to ...
3252         * sysdeps/posix/gethostname.c: ... here.
3253
3254         * sysdeps/unix/execve.S: Remove file.
3255
3256         * sysdeps/unix/_exit.S: Remove file.
3257
3258 2012-04-23  Andreas Jaeger  <aj@suse.de>
3259
3260         [BZ #13739]
3261         * manual/Makefile: Remove make dist support, there's no
3262         need for a stand-alone documentation tar ball.
3263         (TEXI2DVI): Define always, it's not in Makeconfig.
3264         (dist): Removed.
3265         (tar-it): Removed.
3266         (edition): Removed.
3267         (glibc-doc-$(edition).tar): Removed
3268         (%.Z): Removed.
3269         (%.gz): Removed.
3270         (%.uu): Removed.
3271         (ETAGS): Remove, it's in Makeconfig.
3272         (move-if-change): Remove, it's in Makeconfig.
3273
3274 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3275
3276         [BZ #13970]
3277         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
3278         (strtod, strtof, strtold, strtol, strtoul, strtoq)
3279         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
3280         (strtod_l, strtof_l, strtold_l): Remove __wur.
3281         It is not necessarily an error to ignore strtol's return value.
3282         One can reliably look at the stored endptr to decide whether
3283         the number had valid syntax.
3284
3285 2012-04-21  Andreas Jaeger  <aj@suse.de>
3286
3287         [BZ #13739]
3288         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
3289
3290 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
3291
3292         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
3293         * sysdeps/unix/sysv/Versions: Remove file.
3294
3295 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
3296
3297         [BZ #13927]
3298         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3299
3300 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
3301
3302         [BZ #7064]
3303         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
3304         version from __vm86.
3305
3306 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
3307
3308         * sysdeps/unix/common/lxstat.c: Remove file.
3309         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
3310
3311         * sysdeps/unix/sysv/Makefile: Remove file.
3312
3313         * sysdeps/unix/sysv/direct.h: Remove file.
3314
3315         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
3316         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
3317         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
3318         * sysdeps/unix/sysv/bits/signum.h: Likewise.
3319         * sysdeps/unix/sysv/bits/stat.h: Likewise.
3320         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
3321         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
3322
3323         * sysdeps/unix/sysv/setrlimit.c: Remove file.
3324
3325         * sysdeps/unix/xmknod.c: Remove file.
3326         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
3327
3328         * sysdeps/unix/sysv/settimeofday.c: Remove file.
3329
3330         * sysdeps/unix/sysv/i386/time.S: Remove file.
3331
3332         * sysdeps/unix/fxstat.c: Remove file.
3333         * sysdeps/unix/xstat.c: Likewise.
3334         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
3335
3336         * sysdeps/unix/sysv/sigaction.c: Remove file.
3337
3338         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
3339         (sysdep_headers): Remove variable.
3340         [termio.h not in sysdep_headers] (generated): Likewise.
3341         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
3342         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
3343         * sysdeps/unix/sysv/tcdrain.c: Likewise.
3344         * sysdeps/unix/sysv/tcflow.c: Likewise.
3345         * sysdeps/unix/sysv/tcflush.c: Likewise.
3346         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
3347         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
3348         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
3349         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
3350         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
3351
3352         * sysdeps/unix/siglist.c: Remove file.
3353
3354         * sysdeps/unix/getppid.S: Remove file.
3355
3356         * sysdeps/unix/mkdir.c: Remove file.
3357         * sysdeps/unix/rmdir.c: Likewise.
3358
3359 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
3360
3361         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
3362         ERR_MAX value.
3363         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
3364         errlist-compat value.
3365
3366 2012-04-18  David S. Miller  <davem@davemloft.net>
3367
3368         * sysdeps/generic/memcopy.h (reg_char): Delete.
3369         * debug/strcat_chk.c: Use char, not reg_char.
3370         * debug/strcpy_chk.c: Likewise.
3371         * debug/strncat_chk.c: Likewise.
3372         * debug/strncpy_chk.c: Likewise.
3373         * string/memchr.c: Likewise.
3374         * string/memrchr.c: Likewise.
3375         * string/rawmemchr.c: Likewise.
3376         * string/strcat.c: Likewise.
3377         * string/strchr.c: Likewise.
3378         * string/strchrnul.c: Likewise.
3379         * string/strcmp.c: Likewise.
3380         * string/strcpy.c: Likewise.
3381         * string/strncat.c: Likewise.
3382         * string/strncmp.c: Likewise.
3383         * string/strncpy.c: Likewise.
3384
3385 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3386
3387         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
3388         __builtin_memcopy is called when src and dest ranges are known to not
3389         overlap.
3390
3391 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3392
3393         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
3394         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
3395         fwd_align_merge macro call.
3396         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
3397         bwd_align_merge macro call.
3398         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3399
3400 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3401
3402         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
3403         bwd_align_merge macros.
3404         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
3405         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
3406         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3407
3408 2012-04-18  David S. Miller  <davem@davemloft.net>
3409
3410         * sysdeps/sparc/sparc64/memcopy.h: Delete.
3411
3412 2012-04-18  Andreas Jaeger  <aj@suse.de>
3413
3414         [BZ# 6794]
3415         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
3416         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
3417         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3418
3419         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
3420         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
3421         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3422
3423         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
3424         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
3425         Adjust for changed ldbl-128 files.
3426
3427         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
3428         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
3429         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3430
3431 2012-04-17  David S. Miller  <davem@davemloft.net>
3432
3433         * sysdeps/sparc/sparc32/memcopy.h: Delete.
3434
3435 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
3436
3437         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
3438         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
3439         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
3440         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
3441         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3442         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
3443
3444 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3445
3446         [BZ #6794]
3447         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
3448         * math/libm-test.inc: Add ilogb errno and exception tests.
3449         * math/w_ilogb.c: New file: ilogb wrapper.
3450         * math/w_ilogbf.c: New file: ilogbf wrapper.
3451         * math/w_ilogbl.c: New file: ilogbl wrapper.
3452         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
3453         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
3454         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
3455         exception being thrown with 0.0 as argument.
3456         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
3457         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
3458         exception being thrown with 0.0 as argument.
3459         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
3460         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3461         exception being thrown with 0.0 as argument.
3462         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
3463         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3464         exception being thrown with 0.0 as argument.
3465         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
3466         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
3467         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
3468         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
3469         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
3470         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
3471         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
3472         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
3473         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
3474
3475 2012-04-17  Petr Baudis  <pasky@ucw.cz>
3476
3477         * include/sys/uio.h: Change __vector to __iovec to avoid clash
3478         with altivec.
3479
3480 2012-04-16  Marek Polacek  <polacek@redhat.com>
3481
3482         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
3483
3484 2012-04-16  Marek Polacek  <polacek@redhat.com>
3485
3486         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
3487         operands of fdivp instruction.
3488
3489 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3490
3491         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
3492         * elf/tst-auditmod3b.c: Likewise.
3493         * elf/tst-auditmod4b.c: Likewise.
3494         * elf/tst-auditmod5b.c: Likewise.
3495         * elf/tst-auditmod6b.c: Likewise.
3496         * elf/tst-auditmod6c.c: Likewise.
3497         * elf/tst-auditmod7b.c: Likewise.
3498         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
3499         * sysdeps/x86_64/preconfigure.in: Likewise.
3500         * sysdeps/x86_64/preconfigure: Regenerated.
3501
3502 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3503
3504         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
3505         __ILP32__.
3506
3507 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
3508
3509         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3510         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
3511
3512 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
3513
3514         [BZ #13973]
3515         * locale/iso-639.def: Fix gl language name. Spotted by
3516         Yaron Shahrabani.
3517
3518 2012-04-12  Roland McGrath  <roland@hack.frob.com>
3519
3520         [BZ #2074]
3521         * libio/libio.h (__io_write_fn): Update comment.
3522
3523 2012-04-12  Petr Baudis  <pasky@ucw.cz>
3524
3525         [BZ #2074]
3526         * stdio.texi (Hook Functions): The user provided writer function
3527         is not allowed to return -1.
3528
3529 2012-04-11  David S. Miller  <davem@davemloft.net>
3530
3531         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3532
3533 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
3534
3535         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
3536         Add a leading slash to rtkaio.
3537
3538 2012-04-11  Jim Meyering  <meyering@redhat.com>
3539
3540         [BZ #11959]
3541         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
3542         It is not necessarily an error to ignore fwrite's return
3543         value.  One can reliably use ferror to test for errors after
3544         the fact.
3545
3546 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3547
3548         * bits/types.h (__snseconds_t): New type.
3549         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
3550
3551         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
3552         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3553         (__SNSECONDS_T_TYPE): Likewise.
3554         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3555         (__SNSECONDS_T_TYPE): Likewise.
3556         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3557         (__SNSECONDS_T_TYPE): Likewise.
3558
3559 2012-04-10  Andreas Jaeger  <aj@suse.de>
3560
3561         [BZ #2636]
3562         * manual/time.texi (Processor Time): Return type of times is
3563         elapsed real time since an arbitrary point in the past.
3564         (CPU Time): Move CLK_TCK from here...
3565         (Processor Time): ...to here.  Correct description.
3566         * manual/conf.texi (Constants for Sysconf): Correct description of
3567         _SC_CLK_TCK.
3568
3569 2012-04-10  David S. Miller  <davem@davemloft.net>
3570
3571         [BZ #13967]
3572         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
3573         where the is a gap between DT_REL(A) and DT_JMPREL.
3574
3575 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3576
3577         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
3578         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3579         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3580
3581 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3582
3583         * elf/dl-support.c (_dl_inhibit_cache): New variable.
3584         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
3585         (dl_main): Handle --inhibit-cache.
3586         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
3587         _dl_inhibit_cache.
3588         * elf/dl-load.c (_dl_map_object): Use it.
3589         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
3590
3591 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3592
3593         [BZ #13872]
3594         * sysdeps/i386/fpu/e_powl.S (p78): New object.
3595         (__ieee754_powl): Saturate large exponents rather than testing for
3596         overflow of y*log2(x).
3597         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3598         * math/libm-test.inc (pow_test): Do not permit spurious overflow
3599         exceptions.
3600
3601         [BZ #11521]
3602         * math/s_ctan.c: Include <float.h>.
3603         (__ctan): Avoid internal overflow or cancellation in calculating
3604         denominator.
3605         * math/s_ctanf.c: Likewise.
3606         * math/s_ctanl.c: Likewise.
3607         * math/s_ctanh.c: Likewise.
3608         * math/s_ctanhf.c: Likewise.
3609         * math/s_ctanhl.c: Likewise.
3610         * math/libm-test.inc (ctan_test): Add more tests.
3611         (ctanh_test): Likewise.
3612         * sysdeps/i386/fpu/libm-test-ulps: Update.
3613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3614
3615 2012-04-09  Andreas Jaeger  <aj@suse.de>
3616
3617         [BZ #6894]
3618         * manual/filesys.texi (Directory Entries): Mention that d_namlen
3619         is an optional BSD extension.
3620
3621         [BZ #10254]
3622         * manual/stdio.texi (Opening Streams): Document additional fopen
3623         parameters.
3624
3625 2012-04-09  Roland McGrath  <roland@hack.frob.com>
3626
3627         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
3628         %eax without telling the compiler.
3629
3630 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
3631
3632         [BZ # 13963]
3633         * manual/install.texi: Use sourceware.org.
3634
3635 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3636
3637         [BZ #13873]
3638         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
3639         (__ieee754_pow): Generate overflow and underflow using huge*huge
3640         and tiny*tiny rather than just returning constant infinity or zero
3641         for large exponents.
3642         * math/libm-test.inc (pow_test): Require overflow exceptions for
3643         applicable cases of large exponents.
3644
3645         [BZ #706]
3646         * sysdeps/i386/fpu/e_pow.S (p10): New object.
3647         (__ieee754_pow): Use iterative multiplication algorithm only for
3648         integer exponents with absolute value below 1024.  Check for odd
3649         integer exponents when using algorithm for real exponents.
3650         * math/libm-test.inc (pow_test): Add more tests.
3651         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3652
3653 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
3654
3655         [BZ #13705]
3656         * math/libm-test.inc (exp_test): Do not allow overflow exception
3657         on underflow test.
3658
3659 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
3660
3661         [BZ #13705]
3662         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
3663         instead of __kernel_standard_f.
3664
3665 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
3666
3667         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
3668         * sysdeps/x86_64/memset_chk.S: Likewise.
3669
3670 2012-04-08  Andreas Jaeger  <aj@suse.de>
3671
3672         [BZ #10153]
3673         * manual/startup.texi (Environment Access): Describe return value
3674         for putenv and setenv.
3675
3676         [BZ #6895]
3677         * manual/filesys.texi (Directory Entries): Add description for
3678         DT_LNK.
3679
3680         [BZ #6890]
3681         * manual/filesys.texi (Directory Entries): Clarify that it's file
3682         system not operating system in the description of DT_UNKNOWN.
3683
3684         [BZ #6578]
3685         * manual/syslog.texi (closelog): Fix reference, it's openlog.
3686
3687 2012-04-08  Stephen Compall  <s11@member.fsf.org>
3688
3689         [BZ #6649]
3690         * manual/llio.texi (Opening and Closing Files): Add cross
3691         reference to explain mode argument.
3692
3693 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
3694
3695         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
3696         * sysdeps/x86_64/memset_chk.S: Likewise.
3697
3698 2012-04-07  David S. Miller  <davem@davemloft.net>
3699
3700         * elf/elf.h (R_SPARC_WDISP10): Define.
3701         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
3702         R_SPARC_SIZE32.
3703         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3704         R_SPARC_SIZE64 and R_SPARC_H34.
3705
3706 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
3707
3708         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
3709         conditions and remove no longer applicable assertion.
3710
3711 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3712
3713         * bits/byteswap.h: Include <features.h>.
3714         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3715         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3716
3717 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3718
3719         * bits/byteswap.h (__bswap_16): Removed.
3720         Include <bits/byteswap-16.h> to get __bswap_16.
3721         * sysdeps/i386/bits/byteswap.h: Likewise.
3722         * sysdeps/s390/bits/byteswap.h: Likewise.
3723         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3724         * bits/byteswap-16.h: New file.
3725         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3726         * sysdeps/s390/bits/byteswap-16.h: Likewise.
3727         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
3728         * string/Makefile (headers): Add bits/byteswap-16.h.
3729
3730 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3731
3732         [BZ #13895]
3733         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
3734         extra indirection.
3735         * nss/Makefile (tests-static, tests): Add tst-nss-static.
3736         * nss/tst-nss-static.c: New.
3737
3738 2012-04-06  Robert Millan  <rmh@gnu.org>
3739
3740         [BZ #6486]
3741         * manual/llio.texi (File Position Primitive): lseek
3742         refers to WHENCE when it really means OFFSET.
3743
3744 2012-04-06  Andreas Jaeger  <aj@suse.de>
3745
3746         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
3747         strncmp declarations.
3748
3749         * abilist/libc.abilist: Add __poll and __ppoll.
3750
3751 2012-04-05  David S. Miller  <davem@davemloft.net>
3752
3753         * scripts/check-local-headers.sh: Accept a host triplet in the
3754         path matched by the exclude regexp.
3755
3756         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
3757         definition.
3758         * sysdeps/powerpc/powerpc32/dl-machine.h
3759         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
3760         * sysdeps/s390/s390-32/dl-machine.h
3761         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3762         * sysdeps/sparc/sparc32/dl-machine.h
3763         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3764         * sysdeps/sparc/sparc64/dl-machine.h
3765         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3766
3767         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
3768         lazy binding.
3769         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
3770         undefined symbol errors.
3771
3772         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
3773         DT_NEEDED entries.
3774
3775 2012-04-05  Michael Matz  <matz@suse.de>
3776
3777         [BZ #13592]
3778         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
3779
3780 2012-04-05  Andreas Jaeger  <aj@suse.de>
3781
3782         [BZ #13908]
3783         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
3784         comment.
3785
3786 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3787
3788         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
3789         which ROUND is no valid rounding mode.
3790
3791 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3792
3793         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
3794         read again.
3795         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
3796
3797 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3798
3799         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
3800         an exception using FPU order intentionally.
3801
3802 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3803
3804         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
3805         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
3806         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
3807         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
3808
3809 2012-04-05  Simon Josefsson  <simon@josefsson.org>
3810
3811         [BZ #12340]
3812         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
3813         EINVAL when BUFLEN is too smal.
3814
3815 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
3816
3817         [BZ #13553]
3818         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
3819         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3820
3821 2012-04-03  Andreas Jaeger  <aj@suse.de>
3822
3823         [BZ #13938]
3824         * manual/setjmp.texi (System V contexts): Fix sentence.
3825
3826         [BZ #13926]
3827         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
3828         New macro for this case.
3829         [!__GNUC__] (__bswap_64): New inline function for this case.
3830         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3831         * bits/byteswap.h: Likewise.
3832         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
3833         ull, guard with __GLIBC_HAVE_LONG_LONG.
3834
3835         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
3836         __GLIBC_HAVE_LONG_LONG.
3837
3838         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
3839         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
3840
3841 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3842
3843         [BZ #13691]
3844         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
3845         inptr and inend, rather than using last_ch.
3846
3847 2012-04-02  David S. Miller  <davem@davemloft.net>
3848
3849         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
3850         * stdio-common/printf-parse.h (read_int): Change return type to
3851         'int', return -1 on INT_MAX overflow.
3852         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
3853         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
3854         overflows INT_MAX.  Check for overflow of in-format-string precision
3855         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
3856         SIZE_MAX not INT_MAX for integer overflow test.
3857         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
3858         skip the construct in the format string but do not record anything.
3859         * stdio-common/bug22.c: Adjust to test both width/prevision
3860         INT_MAX overflow as well as total length INT_MAX overflow.  Check
3861         explicitly for proper errno values.
3862
3863 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
3864
3865         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
3866         CHAR_MAX.
3867         * string/test-strcmp.c [! WIDE]: Likewise.
3868         * time/tst-mktime2.c: Likewise for INT_MAX.
3869         * string/test-string.h: #include <sys/param.h> for MIN.
3870
3871         * csu/init-first.c (__libc_init_first): Call __ctype_init.
3872         * sysdeps/i386/init-first.c (init): Likewise.
3873         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
3874         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
3875         * sysdeps/sh/init-first.c (init): Likewise.
3876
3877 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
3878
3879         * po/ru.po: Update from translation team.
3880         * po/vi.po: Likewise.
3881
3882 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
3883
3884         * resolv/nss_dns/dns-host.c: Merge copyright years.
3885
3886 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3887
3888         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
3889         Optimize memcpy with prefetch if
3890         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
3891         src, dst pointers have unequal 16 byte alignments.
3892
3893 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3894
3895         [BZ #13928]
3896         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
3897         from a CNAME entry and return the minimum ttl for the query.
3898         (gaih_getanswer_slice): Likewise.
3899
3900 2012-03-30  Jeff Law  <law@redhat.com>
3901
3902         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
3903         due to long keys.
3904         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
3905         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
3906
3907         * resolv/nss_dns/dns-host.c: Update copyright year.
3908
3909 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
3910
3911         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
3912         requests to save a system call.  Fix check that all bytes are sent.
3913
3914         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
3915         comments for sendmmsg.
3916
3917 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3918
3919         [BZ #13691]
3920         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
3921         with only 1 character between 0x0041 and 0x01b0.
3922         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
3923         * wcsmbs/tst-mbsnrtowcs.c: New file.
3924
3925 2012-03-29  David S. Miller  <davem@davemloft.net>
3926
3927         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
3928         small copies by hand.
3929
3930 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3931
3932         [BZ #13761]
3933         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
3934         _nss_compat_initgroups_dyn): Fall back to malloc/free
3935         for large group memberships.
3936
3937 2012-03-28  David S. Miller  <davem@davemloft.net>
3938
3939         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
3940         that branches into memcpy.
3941         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3942         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
3943         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3944         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
3945         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
3946         bits.
3947         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
3948         implementation too.
3949         * sysdeps/sparc/mempcpy.S: New file.
3950
3951         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
3952         the IFUNC routine in the libc case.
3953         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3954
3955         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
3956         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
3957         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
3958         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
3959         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
3960         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
3961         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
3962         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
3963
3964         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
3965         loop to 256 bytes instead of 64 bytes and fix test signedness.
3966
3967         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
3968         * sysdeps/sparc/sparc32/Makefile: rather than here...
3969         * sysdeps/sparc/sparc64/Makefile: and here.
3970
3971 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
3972
3973         * malloc/mallocbug.c: Avoid warnings about unused variables.
3974
3975 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3976
3977         [BZ #13760]
3978         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
3979         in the right place. Discard and retry query if response is
3980         larger than input buffer size.
3981
3982 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
3983
3984         [BZ #369]
3985         [BZ #2678]
3986         [BZ #3866]
3987         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
3988         x for large integer exponent.
3989         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3990         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
3991         sign of result as needed afterwards.
3992         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3993         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
3994         result for underflowing pow the same as for overflow.
3995         (__kernel_standard_l): Handle powl overflow and underflow here
3996         rather than calling __kernel_standard.
3997         * math/libm-test.inc (pow_test): Add more tests.
3998
3999         [BZ #3868]
4000         [BZ #13879]
4001         [BZ #13910]
4002         [BZ #13911]
4003         [BZ #13912]
4004         [BZ #13913]
4005         [BZ #13915]
4006         [BZ #13916]
4007         [BZ #13917]
4008         [BZ #13918]
4009         [BZ #13919]
4010         [BZ #13920]
4011         [BZ #13921]
4012         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
4013         * sysdeps/ieee754/k_standard.c: Include <float.h>.
4014         (__kernel_standard_l): New function.
4015         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
4016         __kernel_standard.
4017         * math/w_acosl.c (__acosl): Likewise.
4018         * math/w_asinl.c (__asinl): Likewise.
4019         * math/w_atan2l.c (__atan2l): Likewise.
4020         * math/w_atanhl.c (__atanhl): Likewise.
4021         * math/w_coshl.c (__coshl): Likewise.
4022         * math/w_exp10l.c (__exp10l): Likewise.
4023         * math/w_exp2l.c (__exp2l): Likewise.
4024         * math/w_fmodl.c (__fmodl): Likewise.
4025         * math/w_hypotl.c (__hypotl): Likewise.
4026         * math/w_j0l.c (__j0l, __y0l): Likewise.
4027         * math/w_j1l.c (__j1l, __y1l): Likewise.
4028         * math/w_jnl.c (__jnl, __ynl): Likewise.
4029         * math/w_lgammal.c (__lgammal): Likewise.
4030         * math/w_log10l.c (__log10l): Likewise.
4031         * math/w_log2l.c (__log2l): Likewise.
4032         * math/w_logl.c (__logl): Likewise.
4033         * math/w_powl.c (__powl): Likewise.
4034         * math/w_remainderl.c (__remainderl): Likewise.
4035         * math/w_scalbl.c (sysv_scalbl): Likewise.
4036         * math/w_sinhl.c (__sinhl): Likewise.
4037         * math/w_sqrtl.c (__sqrtl): Likewise.
4038         * math/w_tgammal.c (__tgammal): Likewise.
4039         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
4040         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
4041         * math/libm-test.inc (acos_test): Add more tests.
4042         (acosh_test): Likewise.
4043         (asin_test): Likewise.
4044         (atanh_test): Likewise.
4045         (exp_test): Likewise.
4046         (exp10_test): Likewise.
4047         (exp2_test): Likewise.
4048         (expm1_test): Likewise.
4049         (lgamma_test): Likewise.
4050         (log_test): Likewise.
4051         (log10_test): Likewise.
4052         (log1p_test): Likewise.
4053         (log2_test): Likewise.
4054         (pow_test): Do not allow some spurious overflow exceptions.
4055         (sqrt_test): Add more tests.
4056         (tgamma_test): Likewise.
4057         (y0_test): Likewise.
4058         (y1_test): Likewise.
4059         (yn_test): Likewise.
4060
4061 2012-03-27  Anton Blanchard  <anton@samba.org>
4062
4063         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
4064         MAP_HUGETLB.
4065         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4066         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4067         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4068
4069 2012-03-27  David S. Miller  <davem@davemloft.net>
4070
4071         * conform/Makefile: Run run-conformtest.sh using $(BASH).
4072
4073         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
4074         have-as-vis3 check.
4075
4076 2012-03-27  Andreas Jaeger  <aj@suse.de>
4077
4078         * sysdeps/x86_64/elf/configure.in: Moved to ...
4079         * sysdeps/x86_64/configure.in: ... here.
4080         * sysdeps/x86_64/elf/start.S: Moved to ...
4081         * sysdeps/x86_64/start.S: ... here.
4082         * sysdeps/x86_64/elf/configure: Delete.
4083
4084         * sysdeps/x86_64/configure.in: Merge contents from
4085         sysdeps/i386/configure.in (without i686 check).
4086
4087         * sysdeps/i386/elf/Versions: Merge into ...
4088         * sysdeps/i386/Versions: ... this.
4089         * sysdeps/i386/elf/Versions: Delete file.
4090         * sysdeps/i386/elf/start.S: Moved to ...
4091         * sysdeps/i386/start.S: ...here.
4092         * sysdeps/i386/elf/configure.in: Merge into...
4093         * sysdeps/i386/configure.in: ...here.
4094         * sysdeps/i386/elf/configure.in: Delete file.
4095         * sysdeps/i386/elf/configure: Delete file.
4096
4097         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
4098         * debug/backtracesyms.c: ... here.
4099         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
4100         * debug/backtracesymsfd.c: ... here.
4101         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
4102         * sysdeps/generic/ifunc-sel.h: ... here.
4103
4104         * sysdeps/unix/i386/start.c: Delete file.
4105         * sysdeps/unix/sparc/start.c: Delete file.
4106         * sysdeps/unix/start.c: Delete file.
4107
4108         * sysdeps/sh/elf/configure.in: Moved to ...
4109         * sysdeps/sh/configure.in: ... here.
4110         * sysdeps/sh/elf/start.S: Moved to ...
4111         * sysdeps/sh/start.S: ... here.
4112         * sysdeps/sh/elf/configure: Delete file.
4113
4114         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
4115         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
4116         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
4117         * sysdeps/powerpc/powerpc64/entry.h: ... here.
4118         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
4119         * sysdeps/powerpc/powerpc64/start.S: here.
4120         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
4121         * sysdeps/powerpc/powerpc64/Makefile: ... this.
4122         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
4123         * sysdeps/powerpc/powerpc64/configure.in: ... this.
4124         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
4125
4126         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
4127         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
4128         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
4129         * sysdeps/powerpc/powerpc32/start.S: ... here.
4130         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
4131         * sysdeps/powerpc/powerpc32/configure.in: ... this.
4132         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
4133
4134         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
4135         * sysdeps/powerpc/ifunc-sel.h: ... here.
4136         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
4137         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
4138
4139         * sysdeps/sparc/elf/configure.in: Moved to ...
4140         * sysdeps/sparc/configure.in: ... here.
4141         * sysdeps/sparc/elf/configure: Delete file.
4142         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
4143         * sysdeps/sparc/sparc32/start.S: ... here.
4144         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
4145         * sysdeps/sparc/sparc64/start.S: ... here.
4146         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
4147         * sysdeps/sparc/sparc32/Makefile: ... this.
4148         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
4149         * sysdeps/sparc/sparc64/Makefile: ... this.
4150
4151         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
4152         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
4153         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
4154         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
4155         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
4156         * sysdeps/s390/s390-32/setjmp.S: ... here.
4157         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
4158         * sysdeps/s390/s390-32/configure.in: ... here.
4159         * sysdeps/s390/s390-32/elf/configure: Delete file.
4160         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
4161         * sysdeps/s390/s390-32/start.S: ... here.
4162
4163         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
4164         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
4165         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
4166         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
4167         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
4168         * sysdeps/s390/s390-64/setjmp.S: ... here.
4169         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
4170         * sysdeps/s390/s390-64/configure.in: ... here
4171         * sysdeps/s390/s390-64/elf/configure: Delete file.
4172         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
4173         * sysdeps/s390/s390-64/start.S: ... here.
4174         * sysdeps/s390/s390-64/elf/configure: Delete.
4175
4176         * configure.in: Remove support for elf directories in sysdeps.
4177
4178         * configure: Regenerated.
4179         * sysdeps/i386/configure: Regenerated.
4180         * sysdeps/powerpc/powerpc32/configure: Regenerated.
4181         * sysdeps/powerpc/powerpc64/configure: Regenerated.
4182         * sysdeps/s390/s390-32/configure: Regenerated.
4183         * sysdeps/s390/s390-64/configure: Regenerated.
4184         * sysdeps/sh/configure: Regenerated.
4185         * sysdeps/sparc/configure: Regenerated.
4186         * sysdeps/x86_64/configure: Regenerated.
4187
4188 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
4189
4190         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4191
4192         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
4193         denormal result into account.
4194
4195 2012-03-25  Roland McGrath  <roland@hack.frob.com>
4196
4197         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
4198         Reported by Allan McRae <allan@archlinux.org>.
4199
4200 2012-03-23  Jeff Law  <law@redhat.com>
4201
4202         * nss/getnssent.c (__nss_getent): Fix typo.
4203
4204 2012-03-23  David S. Miller  <davem@davemloft.net>
4205
4206         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4207
4208 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
4209
4210         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
4211         to pad to uint64_t for each field.
4212         (dl_tls_index): Replace unsigned long with uint64_t.
4213
4214 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
4215         Paul Pluzhnikov  <ppluzhnikov@google.com>
4216
4217         [BZ #6528]
4218         * grp/Makefile (otherlibs): Don't set it.
4219         * inet/Makefile (otherlibs): Likewise.
4220         * login/Makefile (otherlibs): Likewise.
4221         * nscd/Makefile (otherlibs): Likewise.
4222         * posix/Makefile (otherlibs): Likewise.
4223         * pwd/Makefile (otherlibs): Likewise.
4224         * rt/Makefile (otherlibs): Likewise.
4225         * sunrpc/Makefile (otherlibs): Likewise.
4226         * nss/Makefile (otherlibs): Likewise.
4227         Add libnss_files to routines and static-only-routines.
4228         ($(objpfx)getent): Remove rule.
4229         * resolv/Makefile: Add libnss_dns and libresolv to routines and
4230         static-only-routines.
4231
4232 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4233
4234         [BZ #13892]
4235         * math/s_cexp.c: Include <float.h>.
4236         (__cexp): Handle exp result overflowing not necessarily
4237         overflowing both real and imaginary parts of result.
4238         * math/s_cexpf.c: Likewise.
4239         * math/s_cexpl.c: Likewise.
4240         * math/libm-test.inc (cexp_test): Add more tests.
4241         * sysdeps/i386/fpu/libm-test-ulps: Update.
4242         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4243
4244 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4245
4246         * include/link.h (ELFW): New macro.
4247         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
4248         Replace ELF64_R_TYPE with ELFW(R_TYPE).
4249
4250 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4251
4252         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
4253         with uint64_t.
4254
4255 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4256
4257         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
4258         declaration.
4259         (struct La_x32_retval): Likewise.
4260
4261 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4262
4263         * sysdeps/x86_64/preconfigure.in: New file.
4264         * sysdeps/x86_64/preconfigure: New generated file.
4265
4266 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4267
4268         [BZ #13824]
4269         * math/e_exp2l.c: Include <float.h>.
4270         (__ieee754_exp2l): Handle overflow and underflow cases
4271         separately.  Only pass fractional part of argument to
4272         __ieee754_expl.
4273         * math/libm-test.inc (exp2_test): Add more tests.
4274
4275         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
4276         negating x to take absolute value.
4277         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
4278         Likewise.
4279         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4280         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
4281         Likewise.
4282         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
4283         computing low part if x was negated.
4284         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4285
4286 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4287
4288         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
4289         la_x32_gnu_pltexit.
4290         (pltexit): Cast int_retval to ptrdiff_t.
4291         * elf/tst-auditmod3b.c: Likewise.
4292         * elf/tst-auditmod4b.c: Likewise.
4293         * elf/tst-auditmod5b.c: Likewise.
4294         * elf/tst-auditmod6b.c: Likewise.
4295         * elf/tst-auditmod6c.c: Likewise.
4296         * elf/tst-auditmod7b.c: Likewise.
4297
4298         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
4299         and x32_gnu_pltexit.
4300
4301         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
4302         __ELF_NATIVE_CLASS.
4303         (La_x32_regs): New macro.
4304         (La_x32_retval): Likewise.
4305         (la_x32_gnu_pltenter): New function prototype.
4306         (la_x32_gnu_pltexit): Likewise.
4307
4308 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
4309
4310         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
4311         exponent.
4312
4313         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4314
4315         * configure.in (libc_cv_cc_nofma): Check for option to disable
4316         generation of FMA instructions.
4317         * configure: Regenerate.
4318         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
4319         * sysdeps/ieee754/dbl-64/Makefile: New file.
4320         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4321         Remove brandred-fma4.
4322         (CFLAGS-brandred-fma4.c): Remove.
4323         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
4324         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
4325         define.
4326         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
4327         define.
4328
4329 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4330
4331         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4332         LLONG_MAX != LONG_MAX.
4333         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4334         (_fitoa_word): Likewise.
4335         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
4336         LLONG_MAX != LONG_MAX.
4337         * stdio-common/_itowa.h: Include <_itoa.h>.
4338         (_itowa_word): Use _ITOA_WORD_TYPE on value.
4339         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
4340         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
4341         only if not defined.
4342         (_ITOA_WORD_TYPE): Likewise.
4343         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4344         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
4345
4346 2012-03-21  David S. Miller  <davem@davemloft.net>
4347
4348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4349
4350 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4351
4352         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
4353         of x86_64 when setting libc_cv_slibdir, libdir and
4354         libc_cv_localedir.
4355         * sysdeps/unix/sysv/linux/configure: Regenerated.
4356
4357 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4358
4359         * manual/lang.texi (Old Varargs): Remove section.
4360         (How Variadic): Update menu.
4361         (va_start): Do not mention varargs.h.
4362
4363 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4364             Joseph Myers  <joseph@codesourcery.com>
4365
4366         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
4367         link test.
4368         * configure: Regenerated.
4369
4370 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4371
4372         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
4373         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
4374         conformtest.pl
4375
4376 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4377
4378         * NOTES: Remove.
4379         * Makefile (files-for-dist): Remove NOTES.
4380         (NOTES): Remove rule.
4381         * README: Don't refer to NOTES.
4382         * manual/creature.texi: Don't include macros.texi.
4383         * manual/intro.texi (creature.texi): Remove comment referring to
4384         NOTES.
4385
4386         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
4387         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
4388         * configure: Regenerated.
4389         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
4390         LIBC_TRY_CC_OPTION.
4391         (libc_cv_as_i686): Likewise.
4392         (libc_cv_cc_avx): Likewise.
4393         (libc_cv_cc_sse2avx): Likewise.
4394         (libc_cv_cc_fma4): Likewise.
4395         (libc_cv_cc_novzeroupper): Likewise.
4396         * sysdeps/i386/configure: Regenerated.
4397
4398         [BZ #13883]
4399         * sysdeps/i386/fpu/s_cexp.S: Remove.
4400         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4401         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4402         * math/libm-test.inc (cexp_test): Add more tests.
4403         * sysdeps/i386/fpu/libm-test-ulps: Update.
4404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4405
4406 2012-03-21  Allan McRae  <allan@archlinux.org>
4407
4408         * timezone/Makefile: Do not install iso3166.tab and zone.tab
4409
4410 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4411
4412         [BZ #13871]
4413         * math/w_exp2.c: Do not include <float.h>.
4414         (o_threshold, u_threshold): Remove.
4415         (__exp2): Calculate result before checking finiteness and calling
4416         __kernel_standard.
4417         * math/w_exp2f.c: Likewise.
4418         * math/w_exp2l.c: Likewise.
4419         * math/libm-test.inc (exp2_test): Require overflow exception for
4420         1e6 input.
4421
4422         [BZ #3866]
4423         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
4424         range of signed 64-bit integers before using fistpll.  Remove
4425         checks for whether integers fit in mantissa bits.
4426         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
4427         the range of signed 32-bit integers before using fistpl.  Remove
4428         checks for whether integers fit in mantissa bits.
4429         * sysdeps/i386/fpu/e_powl.S (p64): New object.
4430         (__ieee754_powl): Test for y outside the range of signed 64-bit
4431         integers before using fistpll.  Reduce 64-bit values to 63-bit
4432         ones as needed.
4433         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
4434         divide-by-zero is raised for zero to large negative powers.
4435         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
4436         (__ieee754_powl): Test for y outside the range of signed 64-bit
4437         integers before using fistpll.  Reduce 64-bit values to 63-bit
4438         ones as needed.
4439         * math/libm-test.inc (pow_test): Add more tests.
4440
4441 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4442
4443         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
4444         <stdio-common/_itoa.h>.
4445         * debug/segfault.c: Likewise.
4446         * elf/dl-cache.c: Likewise.
4447         * elf/dl-minimal.c: Likewise.
4448         * elf/dl-misc.c: Likewise.
4449         * elf/dl-sysdep.c: Likewise.
4450         * elf/dl-version.c: Likewise.
4451         * elf/rtld.c: Likewise.
4452         * hurd/hurdsock.c: Likewise.
4453         * hurd/lookup-retry.c: Likewise.
4454         * malloc/malloc.c: Likewise.
4455         * malloc/mtrace.c: Likewise.
4456         * nscd/nscd_getgr_r.c: Likewise.
4457         * nscd/nscd_getpw_r.c: Likewise.
4458         * nscd/nscd_getserv_r.c: Likewise.
4459         * posix/getopt_init.c: Likewise.
4460         * posix/wordexp.c: Likewise.
4461         * stdio-common/_itoa.c: Likewise.
4462         * stdio-common/printf_fphex.c: Likewise.
4463         * stdio-common/vfprintf.c: Likewise.
4464         * string/_strerror.c: Likewise.
4465         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4466         * sysdeps/i386/i686/hp-timing.h: Likewise.
4467         * sysdeps/mach/_strerror.c: Likewise.
4468         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
4469         * sysdeps/mach/hurd/sethostid.c: Likewise.
4470         * sysdeps/mach/hurd/xmknodat.c: Likewise.
4471         * sysdeps/mach/xpg-strerror.c: Likewise.
4472         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4473         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4474         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
4475         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
4476         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4477         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
4478         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4479         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4480         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
4481         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
4482         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
4483         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4484         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
4485         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4486         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4487         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4488         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
4489         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
4490         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4491         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4492         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
4493
4494         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
4495
4496         * stdio-common/_itoa.h: Moved to ...
4497         * sysdeps/generic/_itoa.h: Here.
4498
4499         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
4500
4501         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
4502         instead of "_itoa.h" and "_itowa.h".
4503         * stdio-common/vfprintf.: Likewise.
4504
4505 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4506
4507         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
4508         <bits/wordsize.h>.
4509         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
4510         (__signbit): Likwise.
4511         (llrintf): Likwise.
4512         (llrint): Likwise.
4513
4514 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4515
4516         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
4517         __WORDSIZE != 64.
4518
4519 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
4520
4521         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
4522         OVERFLOW_EXCEPTION_OK.
4523         * math/libm-test.inc ("Philosophy"): Update comment about
4524         exception testing.
4525         (OVERFLOW_EXCEPTION): Define.
4526         (OVERFLOW_EXCEPTION_OK): Likewise.
4527         (INVALID_EXCEPTION_OK): Renumber.
4528         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4529         (IGNORE_ZERO_INF_SIGN): Likewise.
4530         (test_exceptions): Handle FE_OVERFLOW.
4531         (exp10_test): Expect overflow exceptions.
4532         (exp2_test): Likewise.
4533         (expm1_test): Likewise.
4534         (nextafter_test): Likewise.
4535         (pow_test): Likewise.
4536         (scalbn_test): Likewise.
4537         (scalbln_test): Likewise.
4538
4539 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4540
4541         * sysdeps/x86_64/bits/atomic.h
4542         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
4543         64bit integer.
4544         (atomic_exchange_acq): Likewise.
4545         (__arch_exchange_and_add_body): Likewise.
4546         (__arch_add_body): Likewise.
4547         (atomic_add_negative): Likewise.
4548         (atomic_add_zero): Likewise.
4549
4550 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4551
4552         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
4553         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
4554
4555 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4556
4557         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
4558         Check __x86_64__ instead of __WORDSIZE.
4559
4560 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4561
4562         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
4563
4564 2012-03-19  David S. Miller  <davem@davemloft.net>
4565
4566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4567
4568         * sysdeps/sparc/fpu/fenv_private.h: New file.
4569         * sysdeps/sparc/fpu/math_private.h: Use it.
4570         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
4571         Remove.
4572         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
4573         (libc_feholdexcept_setroundl): Remove.
4574         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
4575         Remove.
4576         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
4577         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
4578
4579 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4580
4581         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
4582         int64_t instead of long int.
4583         (INSERT_WORDS64): Likwise.
4584
4585 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4586
4587         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
4588         _Unwind_GetCFA return to _Unwind_Ptr first.
4589
4590 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
4591
4592         [BZ #13629]
4593         * math/s_clog.c: Include <float.h>.
4594         (__clog): Scale large or subnormal inputs.
4595         * math/s_clogf.c: Likewise.
4596         * math/s_clogl.c: Likewise.
4597         * math/s_clog10.c: Include <float.h>.
4598         (M_LOG10_2): Define.
4599         (__clog10): Scale large or subnormal inputs.
4600         * math/s_clog10f.c: Likewise.
4601         * math/s_clog10l.c: Likewise.
4602         * math/libm-test.inc (clog_test): Add more tests.
4603         (clog10_test): Likewise.
4604         * sysdeps/i386/fpu/libm-test-ulps: Update.
4605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4606
4607         [BZ #11451]
4608         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
4609         x and y.
4610         * math/libm-test.inc (atan2_test): Add another test.
4611
4612         * Makerules (common-objdir-compile): Remove.
4613         * sysdeps/unix/Makefile (config-generated): Do not add
4614         $(unix-generated) to variable.
4615         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
4616         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
4617         Remove rule.
4618         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
4619         Likewise.
4620         [generic bits/local_lim.h] (before-compile): Do not append to
4621         variable.
4622         [generic bits/local_lim.h] (common-generated): Likewise.
4623         [generic sys/param.h] (before-compile): Do not append to variable.
4624         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
4625         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
4626         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
4627         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
4628         include.
4629         [generic sys/param.h] (sys/param.h-includes): Remove variable.
4630         [generic sys/param.h] (sys/param.h-includes): Remove rule.
4631         [generic sys/param.h] ($(addprefix
4632         $(common-objpfx),$(sys/param.h-includes))): Likewise.
4633         [generic sys/param.h] (common-generated): Do not append to
4634         variable.
4635         [generic sys/param.h] (sysdep_headers): Likewise.
4636         [generic bits/errno.h] (before-compile): Do not append to
4637         variable.
4638         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
4639         rule.
4640         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
4641         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
4642         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
4643         [generic bits/errno.h] (common-generated): Do not append to
4644         variable.
4645         [generic bits/ioctls.h] (before-compile): Do not append to
4646         variable.
4647         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
4648         rule.
4649         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
4650         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
4651         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
4652         rule.
4653         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
4654         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
4655         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
4656         [generic bits/ioctls.h] (common-generated): Do not append to
4657         variable.
4658         [generic sys/syscall.h] (syscall.h): Remove variable.
4659         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
4660         rule.
4661         [generic sys/syscall.h] (before-compile): Do not append to
4662         variable.
4663         [generic sys/syscall.h] (common-generated): Likewise.
4664         * sysdeps/unix/errnos-tmpl.c: Remove file.
4665         * sysdeps/unix/errnos.awk: Likewise.
4666         * sysdeps/unix/ioctls-tmpl.c: Likewise.
4667         * sysdeps/unix/ioctls.awk: Likewise.
4668         * sysdeps/unix/mk-local_lim.c: Likewise.
4669         * sysdeps/unix/snarf-ioctls: Likewise.
4670
4671 2012-03-19  Richard Henderson  <rth@twiddle.net>
4672
4673         * sysdeps/i386/fpu/fenv_private.h: New file.
4674         * sysdeps/i386/fpu/math_private.h: Use it.
4675         (math_opt_barrier, math_force_eval): Remove.
4676         (libc_feholdexcept_setround_53bit): Remove.
4677         (libc_feupdateenv_53bit): Remove.
4678         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4679         (math_opt_barrier, math_force_eval): Remove.
4680         (libc_feholdexcept): Remove.
4681         (libc_feholdexcept_setround): Remove.
4682         (libc_fetestexcept, libc_fesetenv): Remove.
4683         (libc_feupdateenv_test): Remove.
4684         (libc_feupdateenv, libc_feholdsetround): Remove.
4685         (libc_feresetround): Remove.
4686
4687         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
4688         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
4689
4690         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
4691         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
4692         (libc_feupdateenv_testl): New.
4693         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
4694         (libc_feupdateenv_testf): New.
4695         (libc_feupdateenv): Use libc_feupdateenv_test.
4696         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
4697         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
4698
4699         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
4700         (libc_feholdsetroundf, libc_feholdsetroundl): New.
4701         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
4702         (libc_feresetround_noex): New.
4703         (libc_feresetround_noexf): New.
4704         (libc_feresetround_noexl): New.
4705         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
4706         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
4707         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
4708         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
4709         SET_RESTORE_ROUND.
4710         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4711         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
4712         (__cos): Likewise.
4713         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
4714         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
4715         SET_RESTORE_ROUND_NOEX.
4716         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
4717         SET_RESTORE_ROUND_NOEXF.
4718         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
4719         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
4720         (libc_feholdsetroundf): New.
4721         (libc_feresetround, libc_feresetroundf): New.
4722
4723         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
4724         (libc_feholdexcept_setround_53bit): Convert from macro to function.
4725         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
4726
4727         * sysdeps/generic/math_private.h: Include <fenv.h>.
4728         (default_libc_feholdexcept): New.
4729         (default_libc_feholdexcept_setround): New.
4730         (default_libc_fesetenv, default_libc_feupdateenv): New.
4731         (libc_feholdexcept): Only define if undefined.
4732         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
4733         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
4734         (libc_feholdexcept_setroundl): Likewise.
4735         (libc_feholdexcept_setround_53bit): Likewise.
4736         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
4737         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
4738         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
4739         (libc_feupdateenv_53bit): Likewise.
4740         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
4741         (libc_feholdexcept): Convert from macro to inline function.
4742         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
4743         (libc_fesetenv, libc_feupdateenv): Likewise.
4744
4745         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
4746         not previously defined.
4747         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
4748         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
4749         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
4750         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
4751         * sysdeps/ieee754/flt-32/math_private.h: New file.
4752         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
4753         math_private.h below SET_FLOAT_WORD.
4754         (__isnan, __isinf_ns, __finite): Remove.
4755         (__isnanf, __isinf_nsf, __finitef): Remove.
4756
4757 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
4758
4759         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4760
4761 2012-03-17  David S. Miller  <davem@davemloft.net>
4762
4763         [BZ #6471]
4764         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
4765         for 2.16.
4766
4767 2012-03-16  David S. Miller  <davem@davemloft.net>
4768
4769         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
4770         warnings.
4771
4772         [BZ #6471]
4773         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
4774         properly.
4775         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
4776         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
4777         sysdep_routines when subdir is sysvipc.
4778         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
4779         __getshmlba helper.
4780
4781         * sysdeps/sparc/fpu/libm-test/ulps: Update.
4782
4783 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4784
4785         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
4786         [__LP64__].
4787
4788 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4789
4790         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
4791         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
4792         (__lround): Renamed to ...
4793         (__llround): This.  Replace long int with long long int.
4794         Define lround functions as aliases of llround functions.
4795         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
4796
4797 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4798
4799         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4800         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
4801         adresses to uintptr_t.  Replace "long int" and "unsigned long
4802         int" with "greg_t" on va_arg.
4803
4804 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4805
4806         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
4807         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
4808
4809         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
4810         Move e_machine check before EI_CLASS check.  Handle x32
4811         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
4812         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
4813         SKIP_EM_IA_64 and include
4814         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
4815
4816         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
4817         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
4818         (add_system_dir): New macro.
4819
4820         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
4821         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
4822
4823 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4824
4825         [BZ #2551]
4826         [BZ #2552]
4827         [BZ #2553]
4828         [BZ #2554]
4829         [BZ #2562]
4830         [BZ #2563]
4831         [BZ #2565]
4832         [BZ #2566]
4833         [BZ #2576]
4834         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
4835         (y0): Likewise.
4836         * math/w_j0f.c (j0f): Likewise.
4837         (y0f): Likewise.
4838         * math/w_j0l.c (__j0l): Likewise.
4839         (__y0l): Likewise.
4840         * math/w_j1.c (j1): Likewise.
4841         (y1): Likewise.
4842         * math/w_j1f.c (j1f): Likewise.
4843         (y1f): Likewise.
4844         * math/w_j1l.c (__j1l): Likewise.
4845         (__y1l): Likewise.
4846         * math/w_jn.c (jn): Likewise.
4847         (yn): Likewise.
4848         * math/w_jnf.c (jnf): Likewise.
4849         (ynf): Likewise.
4850         * math/w_jnl.c (__jnl): Likewise.
4851         (__ynl): Likewise.
4852         * math/libm-test.inc (j0_test): Add more tests.
4853         (j1_test): Likewise.
4854         (jn_test): Likewise.  Add trailing semicolon to existing test.
4855         (y0_test): Likewise.
4856         (y1_test): Likewise.
4857         * sysdeps/i386/fpu/libm-test-ulps: Update.
4858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4859
4860         [BZ #13851]
4861         [BZ #13854]
4862         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
4863         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
4864         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
4865         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
4866         (__tanl): Set errno for infinite argument.
4867         * sysdeps/i386/fpu/mptan.c: Remove.
4868         * sysdeps/i386/fpu/s_tan.S: Likewise.
4869         * sysdeps/i386/fpu/s_tanl.S: Likewise.
4870         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
4871         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
4872         * math/libm-test.inc (tan_test): Add more tests and enable more
4873         tests for double and long double.
4874         * sysdeps/i386/fpu/libm-test-ulps: Update.
4875         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4876
4877 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4878
4879         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
4880         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
4881
4882 2012-03-16  Roland McGrath  <roland@hack.frob.com>
4883
4884         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
4885         * configure.in: Use it for both main tree and add-ons.
4886         * configure: Regenerated.
4887
4888 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4889
4890         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
4891
4892 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4893
4894         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
4895         in comment.
4896
4897         [BZ #13851]
4898         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
4899         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
4900         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4901         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
4902         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
4903         infinite argument.
4904         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
4905         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
4906         != 0 for prec == 2.
4907         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
4908         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
4909         * sysdeps/i386/fpu/s_cosl.S: Likewise.
4910         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
4911         * sysdeps/i386/fpu/s_sinl.S: Likewise.
4912         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
4913         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
4914         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
4915         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
4916         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
4917         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
4918         * math/libm-test.inc (cos_test): Add more tests and enable more
4919         tests for long double.
4920         (sin_test): Likewise.
4921         (sincos_test): Likewise.
4922         * sysdeps/i386/fpu/libm-test-ulps: Update.
4923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4924
4925 2012-03-16  David S. Miller  <davem@davemloft.net>
4926
4927         * sysdeps/sparc/fpu/math_private.h: New file.
4928
4929 2012-03-15  David S. Miller  <davem@davemloft.net>
4930
4931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
4932         file.
4933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
4934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
4935         file.
4936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
4937         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
4938         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
4939         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
4940         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
4941         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
4942         sysdep routines.
4943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4944
4945         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
4946         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
4947
4948         * sysdeps/sparc/sparc-ifunc.h: New file.
4949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
4950         sparc-ifunc.h
4951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4953         Likewise.
4954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
4955         Likewise.
4956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
4957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
4958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4960         Likewise.
4961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
4966         Likewise.
4967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
4968         Likewise.
4969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
4971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
4972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
4973         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4974         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4975         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
4976         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
4977         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4978         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4979         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4980         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4981         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4982         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4983         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
4984         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
4985         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
4986         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
4987         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
4988         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
4989         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
4990         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
4991         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
4992         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
4993
4994 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4995
4996         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
4997         scaling.
4998         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4999
5000 2012-03-15  Andreas Jaeger  <aj@suse.de>
5001
5002         [BZ #13852]
5003         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
5004         ieee754/flt-32 implementation for sin, cos and sincos.
5005         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
5006         * sysdeps/i386/fpu/s_cosf.S: Likewise.
5007         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
5008         * sysdeps/i386/fpu/s_sinf.S: Likewise.
5009         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
5010         ieee754/flt-32 implementation for tan.
5011
5012         * math/libm-test.inc (cos_test): Enable some large input tests for
5013         float as well
5014         (sin_test): Likewise.
5015         (sincos_test): Likewise.
5016         (tan_test): Add tests for large input.
5017
5018         * sysdeps/i386/fpu/libm-test-ulps: Update.
5019
5020 2012-03-15  Andreas Jaeger  <aj@suse.de>
5021
5022         [BZ #13658]
5023         * math/libm-test.inc (cos_test): Add more test cases.
5024         (sin_test): Likewise.
5025         (sincos_test): Likewise.
5026
5027 2012-03-15  Andreas Jaeger  <aj@suse.de>
5028
5029         [BZ #13837]
5030         * math/libm-test.inc (cos_test): Add a test case for large input
5031         value.
5032         (sin_test): Likewise.
5033         (sincos_test): Likewise.
5034
5035 2012-03-15  Andreas Jaeger  <aj@suse.de>,
5036         Joseph Myers  <joseph@codesourcery.com>
5037
5038         [BZ #13658]
5039         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
5040         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
5041         * sysdeps/i386/fpu/branred.c: Likewise.
5042         * sysdeps/i386/fpu/dosincos.c: Likewise.
5043         * sysdeps/i386/fpu/mpa.c: Likewise.
5044         * sysdeps/i386/fpu/s_cos.S: Likewise.
5045         * sysdeps/i386/fpu/s_sin.S: Likewise.
5046         * sysdeps/i386/fpu/s_sincos.S: Likewise.
5047         * sysdeps/i386/fpu/sincos32.c: Likewise.
5048
5049         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
5050         Define.
5051         (libc_feupdateenv_53bit): Define.
5052         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
5053         Define.
5054         (libc_feupdateenv_53bit): Define.
5055
5056         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
5057         53 bit (without extend i386 double precision).
5058
5059         * math/libm-test.inc (sincos_test): Add tests for large input.
5060         (sin): Likewise.
5061         (cos): Likewise.
5062
5063         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
5064
5065 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5066
5067         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5068
5069 2012-03-15  David S. Miller  <davem@davemloft.net>
5070
5071         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
5072         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
5073         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
5074         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
5075         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
5076         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
5077         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
5078         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
5079         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
5080         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
5081         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
5082         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
5083         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
5084         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
5085         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
5086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
5087         file.
5088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
5089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
5090         file.
5091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
5092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
5093         file.
5094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
5095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
5096         file.
5097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
5098         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
5099         fmin/fmax sysdep routines.
5100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5101
5102 2012-03-14  David S. Miller  <davem@davemloft.net>
5103
5104         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
5105         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
5106         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
5107         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
5108         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
5109         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
5110         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
5111         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
5112         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
5113         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
5114         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
5115         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
5116         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
5117         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
5118         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
5119         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
5120         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
5121         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
5122         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
5123         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
5124         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
5125         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
5126         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
5127         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
5128         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
5129         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
5130         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
5131         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
5132         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
5133         routines.
5134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
5135         file.
5136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
5137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
5138         file.
5139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
5140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
5141         file.
5142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
5143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
5144         file.
5145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
5146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
5147         file.
5148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
5149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
5150         file.
5151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
5152         file.
5153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
5154         file.
5155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
5156         file.
5157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
5158         New file.
5159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
5160         file.
5161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
5162         file.
5163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
5164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
5165         file.
5166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
5167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
5168         file.
5169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
5170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
5171         file.
5172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
5173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
5174         VIS3 routines.
5175
5176         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5177         New file.
5178
5179         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5180
5181         * sysdeps/sparc/configure.in: New file.
5182         * sysdeps/sparc/configure: Generate.
5183         * configure.in (libc_cv_sparc_as_vis3): Substitute.
5184         * configure: Regenerate.
5185         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
5186         * config.make.in (have-as-vis3): New.
5187         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
5188         available use -Av9d instead of -Av9a.
5189         * sysdeps/sparc/sparc64/Makefile: Likewise.
5190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
5191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
5192         New file.
5193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
5194         file.
5195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
5196         New file.
5197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
5198         file.
5199         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
5200         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
5201         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
5202         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
5203         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
5204
5205         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
5206         fzeros/fnegs to load 0x80000000 into a float register instead of
5207         using the stack.
5208         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
5209
5210 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5211
5212         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5213         bits/syscall.h.
5214         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
5215         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
5216         ($(inst_includedir)/bits/syscall.h): Remove rule.
5217         ($(objpfx)bits/syscall.d): Include instead of
5218         $(objpfx)syscall-list.d.
5219         (generated): Change syscall-list.h and syscall-list.d to
5220         bits/syscall.h and bits/syscall.d.
5221
5222 2012-03-14  Roland McGrath  <roland@hack.frob.com>
5223
5224         [BZ #13846]
5225         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
5226
5227 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5228
5229         [BZ #13841]
5230         * math/s_csqrt.c: Include <float.h>.
5231         (__csqrt): Scale large or subnormal inputs.
5232         * math/s_csqrtf.c: Likewise.
5233         * math/s_csqrtl.c: Likewise.
5234         * math/libm-test.inc (csqrt_test): Add more tests.
5235         * sysdeps/i386/fpu/libm-test-ulps: Update.
5236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5237
5238         [BZ #13840]
5239         * math/libm-test.inc (hypot_test): Add more tests.
5240
5241 2012-03-13  David S. Miller  <davem@davemloft.net>
5242
5243         [BZ #13840]
5244         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
5245         double-precision for the calculation instead of scaling.
5246
5247 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
5248
5249         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
5250         manipulate bits before adding and subtracting TWO52[sx].
5251         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
5252         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5253         Likewise.
5254         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
5255
5256 2012-03-13  David S. Miller  <davem@davemloft.net>
5257
5258         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
5259         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
5260         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
5261         rtld-global-offsets.h
5262         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5263
5264         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
5265         large parameters.
5266
5267         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
5268
5269         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
5270         'err' in the ifdef scope in which it is actually used.
5271
5272         * nss/nss_db/db-init.c: Include string.h
5273
5274 2012-03-12  David S. Miller  <davem@davemloft.net>
5275
5276         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
5277         masking out of the most significant byte of random value used.
5278         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5279         Fix coding style in previous change.
5280
5281         * sysdeps/unix/sysv/linux/kernel-features.h
5282         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
5283         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
5284         expression.
5285         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
5286         later.
5287
5288 2012-03-11  David S. Miller  <davem@davemloft.net>
5289
5290         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
5291         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
5292         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
5293         for 'resultvar' otherwise things get truncated on 64-bit.
5294
5295         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5296         Fix masking out of the most significant byte of random value used.
5297
5298         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5299
5300 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
5301
5302         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5303
5304 2012-03-09  David S. Miller  <davem@davemloft.net>
5305
5306         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
5307         variables with appropriate CPP guards.
5308         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
5309         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
5310         on resulting framesize and the management of the outregs buffer for pltexit.
5311         Preserve floating point return values across _dl_call_pltexit call.
5312         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
5313         framesize and the management of the outregs buffer for pltexit.
5314         Preserve floating point return values across _dl_call_pltexit
5315         call.
5316         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
5317         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
5318         (print_exit): Fix format string for return register value.
5319
5320 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
5321
5322         * sunrpc/Makefile (others): Add rpcgen.
5323         ($(objpfx)rpcgen): Remove special build rule and dependency on
5324         libc.
5325         * sunrpc/rpcgen.c: New file.
5326
5327 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
5328
5329         [BZ #13673]
5330         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
5331         * stdio-common/bug-vfprintf-nargs.c: Likewise.
5332         * sysdeps/i386/crti.S: Likewise.
5333         * sysdeps/i386/crtn.S: Likewise.
5334         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
5335         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
5336         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
5337         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
5338         * sysdeps/sh/crti.S: Likewise.
5339         * sysdeps/sh/crtn.S: Likewise.
5340         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5341
5342         [BZ #13673]
5343         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
5344         with URL.
5345         * locale/programs/locfile-kw.gperf: Likewise.
5346         * locale/programs/charmap-kw.h: Regenerated.
5347         * locale/programs/locfile-kw.h: Likewise.
5348
5349         [BZ #13673]
5350         * intl/plural.y: Replace FSF snail mail address with URL.
5351         * intl/plural.c: Regenerated.
5352
5353 2012-03-09  Richard Henderson  <rth@twiddle.net>
5354
5355         * include/math_private.h: Remove file.
5356         * math/math_private.h: Move file ...
5357         * sysdeps/generic/math_private.h: ... here.
5358
5359         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
5360         * sysdeps/powerpc/fpu/math_private.h: Likewise.
5361         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5362
5363         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
5364         and <math_private.h>.
5365         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5366         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5367         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5368         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5369         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5370         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
5371         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5372         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5373         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
5374         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5375         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5376         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5377         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
5378         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5379         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
5380         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
5381         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5382         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5383         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
5384         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
5385         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5386         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
5387         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
5388         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5389         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
5390         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5391         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
5392         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5393         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5394         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5395         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
5396         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5397         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5398         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5399         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5400         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5401         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5402         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5403         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5404         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5405         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
5406         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5407         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5408         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5409         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
5410         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5411         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
5412         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
5413         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5414         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5415         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
5416         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
5417         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
5418         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5419         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
5420         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5421         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5422         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
5423         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
5424         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
5425         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5426         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
5427         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5428         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5429         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5430         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5431         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5432         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5433         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
5434         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
5435         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5436         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5437         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5438         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5439         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
5440         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5441         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
5442         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5443         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
5444         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
5445         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5446         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
5447         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5448         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5449         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5450         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
5451         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
5452         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5453         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
5454         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5455         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5456         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
5457         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5458         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
5459         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
5460         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
5461         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5462         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
5463         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
5464         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5465         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
5466         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
5467         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
5468         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
5469         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5470         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
5471         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
5472         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
5473         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5474         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5475         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5476         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5477         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
5478         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5479         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5480         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5481         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5482         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5483         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5484         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5485         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5486         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5487         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5488         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
5489         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5490         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5491         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
5492         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5493         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5494         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
5495         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
5496         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5497         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5498         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
5499         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
5500         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5501         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
5502         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5503         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
5504         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5505         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5506         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5507         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5508         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
5509         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
5510         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5511         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5512         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5513         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5514         * sysdeps/ieee754/k_standard.c: Likewise.
5515         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
5516         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5517         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5518         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5519         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5520         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5521         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5522         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5523         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5524         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5525         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5526         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5527         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5528         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5529         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5530         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5531         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5532         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5533         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5534         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5535         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5536         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5537         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5538         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5539         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5540         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5541         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5542         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5543         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5544         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5545         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5546         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5547         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5548         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5549         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5550         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5551         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5552         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
5553         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5554         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5555         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5556         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5557         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5558         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5559         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5560         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5561         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5562         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5563         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5564         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5565         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5566         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5567         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5568         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5569         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5570         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5571         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
5572         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5573         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5574         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5575         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5576         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5577         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5578         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
5579         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5580         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5581         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
5582         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
5583         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
5584         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
5585         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
5586         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5587         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
5588         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
5589         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
5590         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
5591         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
5592         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
5593         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5594         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5595         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5596         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
5597         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5598         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5599         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
5600         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5601         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5602         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
5603         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5604         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5605         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
5606         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5607         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
5608         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5609         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5610         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5611         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
5612         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
5613         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
5614         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
5615         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5616         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5617         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5618         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5619         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
5620         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5621         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5622         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
5623         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
5624         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5625         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5626         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5627         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
5628         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5629         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
5630         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5631         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
5632         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5633         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5634         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
5635         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
5636         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5637         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
5638         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
5639         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5640         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5641         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5642         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5643         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5644         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5645         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5646         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5647         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5648         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
5649         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5650         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5651         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
5652         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5653         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5654         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
5655         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
5656         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5657         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
5658         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
5659         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5660         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5661         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5662         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5663         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5664         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
5665         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5666         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5667         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5668         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5669         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
5670         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
5671         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5672         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5673         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5674         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
5675         * sysdeps/ieee754/s_lib_version.c: Likewise.
5676         * sysdeps/ieee754/s_matherr.c: Likewise.
5677         * sysdeps/ieee754/s_signgam.c: Likewise.
5678         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5679         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5680         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
5681         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
5682         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
5683         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5684         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
5685         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
5686         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5687         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
5688         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
5689         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
5690         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5691         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5692         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
5693         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5694         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5695         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5696         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5697         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5698         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5699
5700 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5701
5702         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
5703         * sunrpc/rpc_main.c: Likewise.
5704         * sunrpc/rpc_svcout.c: Likewise.
5705
5706 2012-03-09  David S. Miller  <davem@davemloft.net>
5707
5708         * include/math_private.h: New file.
5709
5710 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5711
5712         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
5713         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
5714         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
5715         from <bits/socket_type.h>.
5716         (enum __socket_type): Don't define here.
5717         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
5718         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5719         bits/socket_type.h.
5720
5721         [BZ #13566]
5722         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
5723         checking __USE_GNU.
5724
5725         * Makerules ($(inst_includedir)/%.h): New rule.
5726         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
5727         (install-others): Remove variable setting.
5728         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
5729
5730 2012-03-08  Richard Henderson  <rth@twiddle.net>
5731
5732         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
5733         from macro to inline function; merge with the
5734         !__LIBC_INTERNAL_MATH_INLINES version.
5735         (__ieee754_sqrtf): Likewise.
5736
5737         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
5738         to inline function.
5739         (__rintf, __floor, __floorf): Likewise.
5740
5741         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
5742         macro to inline function.
5743         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
5744
5745         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
5746         not <math/math_private.h>.
5747
5748 2012-03-08  David S. Miller  <davem@davemloft.net>
5749
5750         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
5751         copyright year.
5752         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5753
5754 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
5755
5756         * resolv/gai_misc.c (handle_requests): Fix struct timespec
5757         normalization.
5758         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
5759         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
5760
5761 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
5762
5763         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
5764         be defined individually, they must be defined as a block.  Define
5765         S for printing a string instead of hidint the different by using a
5766         macro for adding the 'l'.
5767         * stdio-common/tst-fphex-wide.c: Adjust.
5768
5769 2012-03-07  Marek Polacek  <polacek@redhat.com>
5770
5771         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
5772
5773 2012-03-08  Marek Polacek  <polacek@redhat.com>
5774
5775         [BZ #13806]
5776         * stdio-common/Makefile (tests): Add tst-fphex-wide.
5777         * stdio-common/tst-fphex.c: Define a few macros to make the
5778         test reusable.  Use them.
5779         * stdio-common/tst-fphex-wide.c: New file.
5780
5781 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
5782
5783         [BZ #6911]
5784         * manual/macros.texi (gnusystems): New macro.
5785         (nongnusystems): Likewise.
5786         (gnulinuxhurdsystems): Likewise.
5787         (gnuhurdsystems): Likewise..
5788         (gnulinuxsystems): Likewise.
5789         * manual/charset.texi: Use new macros or @theglibc{} to refer to
5790         variants of the GNU system, not "GNU system".
5791         * manual/conf.texi: Likewise.
5792         * manual/errno.texi: Likewise.  Update example of errno macro
5793         expansion.
5794         * manual/filesys.texi: Likewise.
5795         (getumask): Document as specific to GNU/Hurd.
5796         * manual/install.texi: Likewise.  Reword some references to
5797         GNU/Linux.
5798         * manual/intro.texi: Likewise.
5799         * manual/io.texi: Likewise.
5800         (File Name Portability): Detail which constraints are inapplicable
5801         to all GNU systems and which are only inapplicable to GNU/Hurd.
5802         * manual/job.texi: Likewise.
5803         * manual/llio.texi: Likewise.
5804         (O_NOCTTY): Document as present on GNU/Linux.
5805         * manual/maint.texi: Likewise.
5806         * manual/memory.texi: Likewise.
5807         * manual/pattern.texi: Likewise.
5808         * manual/pipe.texi: Likewise.
5809         * manual/process.texi: Likewise.
5810         * manual/resource.texi: Likewise.
5811         (RUSAGE_CHILDREN): Remove statement about specifying a particular
5812         child on GNU/Hurd.
5813         * manual/setjmp.texi: Likewise.
5814         * manual/signal.texi: Likewise.
5815         * manual/startup.texi: Likewise.
5816         * manual/stdio.texi: Likewise.
5817         * manual/terminal.texi: Likewise.
5818         (ONLCR): Document as POSIX.
5819         (OXTABS): Document availability on GNU/Linux as XTABS.
5820         (ONOEOT): Document availability separately from other bits.
5821         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
5822         * manual/time.texi: Likewise.
5823         * manual/users.texi: Likewise.
5824         * INSTALL: Regenerated.
5825         * sysdeps/gnu/errlist.c: Regenerated.
5826
5827         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
5828         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
5829         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
5830         puts.
5831         * configure: Regenerated.
5832
5833 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
5834
5835         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
5836         default includes instead of AC_HEADER_CHECK.
5837         * sysdeps/i386/configure: Regenerated.
5838
5839         [BZ #10716]
5840         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
5841         * math/s_cacoshf.c (__cacoshf): Likewise.
5842         * math/s_cacoshl.c (__cacoshl): Likewise.
5843         * math/s_casinh.c (__casinh): Set signs of result from argument.
5844         * math/s_casinhf.c (__casinhf): Likewise.
5845         * math/s_casinhl.c (__casinhl): Likewise.
5846         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
5847         (casinh_test): Add more tests.
5848         * sysdeps/i386/fpu/libm-test-ulps: Update.
5849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5850
5851 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
5852
5853         * po/zh_TW.po: Update from translation team.
5854
5855         * login/Makefile (distribute): Remove variable.
5856         * catgets/Makefile: Likewise.
5857         * mach/Makefile: Likewise.
5858         * malloc/Makefile: Likewise.
5859         * misc/Makefile: Likewise.
5860         * iconv/Makefile: Likewise.
5861         * nscd/Makefile: Likewise.
5862         * hurd/Makefile: Likewise.
5863         * manual/Makefile: Likewise.
5864         * locale/Makefile: Likewise.
5865         * intl/Makefile: Likewise.
5866         * conform/Makefile: Likewise.
5867         * nss/Makefile: Likewise.
5868         * time/Makefile: Likewise.
5869         * soft-fp/Makefile: Likewise.
5870         * dirent/Makefile: Likewise.
5871         * gmon/Makefile: Likewise.
5872         * po/Makefile: Likewise.
5873         * rt/Makefile: Likewise.
5874         * socket/Makefile: Likewise.
5875         * math/Makefile: Likewise.
5876         * signal/Makefile: Likewise.
5877         * debug/Makefile: Likewise.
5878         * elf/Makefile: Likewise.
5879         * timezone/Makefile: Likewise.
5880         * stdlib/Makefile: Likewise.
5881         * iconvdata/Makefile: Likewise.
5882         * sunrpc/Makefile: Likewise.
5883         * io/Makefile: Likewise.
5884         * argp/Makefile: Likewise.
5885         * inet/Makefile: Likewise.
5886         * hesiod/Makefile: Likewise.
5887         * grp/Makefile: Likewise.
5888         * csu/Makefile: Likewise.
5889         * wctype/Makefile: Likewise.
5890         * crypt/Makefile: Likewise.
5891         * libio/Makefile: Likewise.
5892         * string/Makefile: Likewise.
5893         * nis/Makefile: Likewise.
5894         * resolv/Makefile: Likewise.
5895         * stdio-common/Makefile: Likewise.
5896         * wcsmbs/Makefile: Likewise.
5897         * dlfcn/Makefile: Likewise.
5898         * posix/Makefile: Likewise.
5899
5900         [BZ #6959]
5901         * timezone/Makefile: Don't install timezone files, just the programs
5902         and scripts.
5903
5904 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
5905
5906         * nss/databases.def: Add missing gshadow entry.
5907
5908         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
5909
5910 2012-03-06  Marek Polacek  <polacek@redhat.com>
5911
5912         [BZ #13726]
5913         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
5914         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5915         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
5916         * stdio-common/tst-long-dbl-fphex.c: New file.
5917
5918 2012-03-06  David S. Miller  <davem@davemloft.net>
5919
5920         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5921         (set_obp_int): New function.
5922         (get_obp_int): New function.
5923         (__get_clockfreq_via_dev_openprom): Likewise.
5924         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5925         Avoid unused variable warnings on 'val' and use builtin_expect.
5926         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
5927         __builtin_expect.
5928         (INLINE_CLONE_SYSCALL): Likewise.
5929
5930 2012-03-05  David S. Miller  <davem@davemloft.net>
5931
5932         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5933
5934 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
5935
5936         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5937
5938         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
5939         only for |x| >= 40.
5940         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5941
5942 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5943
5944         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
5945         Replace gettimeofday with __vdso_gettimeofday.
5946
5947         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5948         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
5949         __vdso_clock_gettime and __vdso_getcpu.
5950
5951         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
5952         time with __vdso_time.
5953
5954 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5955
5956         * manual/lang.texi (size_t): Note types to which size_t may be
5957         equivalent with the GNU C Library, but do not describe when
5958         differences between them are significant.
5959
5960 2012-03-05  Andreas Jaeger  <aj@suse.de>
5961
5962         * sysdeps/i386/fpu/libm-test-ulps: Update.
5963
5964 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5965
5966         [BZ #3976]
5967         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
5968         (__ieee754_pow): Save and restore rounding mode and use
5969         round-to-nearest for main computations.
5970         * math/libm-test.inc (pow_test_tonearest): New function.
5971         (pow_test_towardzero): Likewise.
5972         (pow_test_downward): Likewise.
5973         (pow_test_upward): Likewise.
5974         (main): Call the new functions.
5975         * sysdeps/i386/fpu/libm-test-ulps: Update.
5976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5977
5978         [BZ #3976]
5979         * math/libm-test.inc (cosh_test_tonearest): New function.
5980         (cosh_test_towardzero): Likewise.
5981         (cosh_test_downward): Likewise.
5982         (cosh_test_upward): Likewise.
5983         (sinh_test_tonearest): Likewise.
5984         (sinh_test_towardzero): Likewise.
5985         (sinh_test_downward): Likewise.
5986         (sinh_test_upward): Likewise.
5987         (main): Call the new functions.
5988         * sysdeps/i386/fpu/libm-test-ulps: Update.
5989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5990
5991 2012-03-05  Tom de Vries  <tom@codesourcery.com>
5992
5993         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
5994         default stack guard is set in last bytes.
5995         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
5996
5997 2012-03-05  Kees Cook  <keescook@chromium.org>
5998
5999         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
6000
6001         [BZ #13656]
6002         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
6003         possibly allocate from heap instead of stack.
6004         * stdio-common/bug-vfprintf-nargs.c: New file.
6005         * stdio-common/Makefile (tests): Add nargs overflow test.
6006
6007 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
6008
6009         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6010
6011 2012-03-03  Marek Polacek  <polacek@redhat.com>
6012
6013         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
6014         * math/math_private.h: Likewise.
6015         * stdlib/tst-strtod.c: Likewise.
6016         * sysdeps/i386/i486/bits/atomic.h: Likewise.
6017         * sysdeps/x86_64/bits/atomic.h: Likewise.
6018
6019 2012-03-02  David S. Miller  <davem@davemloft.net>
6020
6021         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
6022         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
6023         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
6024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
6025         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
6026         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
6027         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
6028         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
6029
6030 2012-03-02  Roland McGrath  <roland@hack.frob.com>
6031
6032         [BZ #13792]
6033         * manual/examples/README: New file, says the example source files
6034         can be used under GPL>=2.
6035         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
6036         line containing just "*/".
6037         * manual/examples/add.c: Add copyright header (GPL>=2).
6038         * manual/examples/argp-ex1.c: Likewise.
6039         * manual/examples/argp-ex2.c: Likewise.
6040         * manual/examples/argp-ex3.c: Likewise.
6041         * manual/examples/argp-ex4.c: Likewise.
6042         * manual/examples/atexit.c: Likewise.
6043         * manual/examples/db.c: Likewise.
6044         * manual/examples/dir.c: Likewise.
6045         * manual/examples/dir2.c: Likewise.
6046         * manual/examples/execinfo.c: Likewise.
6047         * manual/examples/filecli.c: Likewise.
6048         * manual/examples/filesrv.c: Likewise.
6049         * manual/examples/fmtmsgexpl.c: Likewise.
6050         * manual/examples/genpass.c: Likewise.
6051         * manual/examples/inetcli.c: Likewise.
6052         * manual/examples/inetsrv.c: Likewise.
6053         * manual/examples/isockad.c: Likewise.
6054         * manual/examples/longopt.c: Likewise.
6055         * manual/examples/memopen.c: Likewise.
6056         * manual/examples/memstrm.c: Likewise.
6057         * manual/examples/mkfsock.c: Likewise.
6058         * manual/examples/mkisock.c: Likewise.
6059         * manual/examples/mygetpass.c: Likewise.
6060         * manual/examples/pipe.c: Likewise.
6061         * manual/examples/popen.c: Likewise.
6062         * manual/examples/rprintf.c: Likewise.
6063         * manual/examples/search.c: Likewise.
6064         * manual/examples/select.c: Likewise.
6065         * manual/examples/setjmp.c: Likewise.
6066         * manual/examples/sigh1.c: Likewise.
6067         * manual/examples/sigusr.c: Likewise.
6068         * manual/examples/stpcpy.c: Likewise.
6069         * manual/examples/strdupa.c: Likewise.
6070         * manual/examples/strftim.c: Likewise.
6071         * manual/examples/strncat.c: Likewise.
6072         * manual/examples/subopt.c: Likewise.
6073         * manual/examples/swapcontext.c: Likewise.
6074         * manual/examples/termios.c: Likewise.
6075         * manual/examples/testopt.c: Likewise.
6076         * manual/examples/testpass.c: Likewise.
6077         * manual/examples/timeval_subtract.c: Likewise.
6078
6079         [BZ #13792]
6080         * manual/time.texi (Elapsed Time): Move timeval_subtract example
6081         function to ...
6082         * manual/timeval_subtract.c.texi: ... here, new file.
6083
6084 2012-03-02  David S. Miller  <davem@davemloft.net>
6085
6086         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
6087
6088 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
6089
6090         [BZ #3976]
6091         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
6092         (__sin): Save and restore rounding mode and use round-to-nearest
6093         for all computations.
6094         (__cos): Save and restore rounding mode and use round-to-nearest
6095         for all computations.
6096         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
6097         <fenv.h>.
6098         (tan): Save and restore rounding mode and use round-to-nearest for
6099         all computations.
6100         * math/libm-test.inc (cos_test_tonearest): New function.
6101         (cos_test_towardzero): Likewise.
6102         (cos_test_downward): Likewise.
6103         (cos_test_upward): Likewise.
6104         (sin_test_tonearest): Likewise.
6105         (sin_test_towardzero): Likewise.
6106         (sin_test_downward): Likewise.
6107         (sin_test_upward): Likewise.
6108         (tan_test_tonearest): Likewise.
6109         (tan_test_towardzero): Likewise.
6110         (tan_test_downward): Likewise.
6111         (tan_test_upward): Likewise.
6112         (main): Call the new functions.
6113         * sysdeps/i386/fpu/libm-test-ulps: Update.
6114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6115
6116         [BZ #10135]
6117         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
6118         small n, then large n, before computing and testing k+n.
6119         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6120         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6121         Likewise.
6122         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6123         Likewise.
6124         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
6125         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6126         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6127         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6128         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6129         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6130         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6131         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
6132         * math/libm-test.inc (scalbn_test): Add more tests.
6133         (scalbln_test): Likewise.
6134
6135         * manual/filesys.texi (mode_t): Describe constraints on size and
6136         signedness, not exact equivalence to a particular type.
6137         (ino_t): Likewise.
6138         (ino64_t): Likewise.
6139         (dev_t): Likewise.
6140         (nlink_t): Likewise.
6141         (blkcnt_t): Likewise.
6142         (blkcnt64_t): Likewise.
6143         * manual/llio.texi (off_t): Likewise.
6144
6145         [BZ #3976]
6146         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
6147         (__ieee754_exp): Save and restore rounding mode and use
6148         round-to-nearest for all computations.
6149         * math/libm-test.inc (exp_test_tonearest): New function.
6150         (exp_test_towardzero): Likewise.
6151         (exp_test_downward): Likewise.
6152         (exp_test_upward): Likewise.
6153         (main): Call the new functions.
6154         * sysdeps/i386/fpu/libm-test-ulps: Update.
6155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6156
6157 2012-03-01  Chris Demetriou  <cgd@google.com>
6158
6159         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
6160         have predictable order.
6161
6162 2012-03-01  David S. Miller  <davem@davemloft.net>
6163
6164         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
6165
6166         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
6167         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
6168         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
6169         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
6170
6171         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
6172         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
6173         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
6174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
6175         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
6176         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
6177         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
6178         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
6179         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
6180
6181         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6182
6183         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
6184         * sysdeps/sparc/fpu/libm-test-ulps: to here.
6185         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
6186
6187         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
6188         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6189         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6190         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
6191         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
6192         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
6193         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
6194         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6195         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6196         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
6197         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
6198         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6199         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6200         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6201         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6202         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6203         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
6204         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
6205         * sysdeps/sparc/elf/configure: Regenerated.
6206
6207 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
6208
6209         * configure.in (AS, LD): Require binutils 2.20 or later.
6210         * configure: Regenerated.
6211         * manual/install.texi (Tools for Compilation): Give binutils 2.20
6212         as required minimum version.
6213         * INSTALL: Regenerated.
6214
6215         [BZ #2541]
6216         [BZ #4108]
6217         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
6218         before squaring exponent.
6219         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
6220         bottom long double and 27 bits of top long double before squaring
6221         exponent.
6222         * math/libm-test.inc (erfc_test): Add more tests.
6223         * sysdeps/i386/fpu/libm-test-ulps: Update.
6224         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6226
6227 2012-03-01  Kai Tietz  <ktietz@redhat.com>
6228
6229         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
6230         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
6231         containing bit-fields.
6232         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6233         * soft-fp/single.h (_FP_UNION_S): Likewise.
6234         * soft-fp/double.h (_FP_UNION_D): Likewise.
6235
6236 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6237
6238         [BZ #13786]
6239         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
6240         not include ../strcmp.S.
6241         [USE_AS_STRNCASECMP_L]: Likewise.
6242         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
6243         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
6244         * sysdeps/i386/i686/multiarch/strncase_l-c.c
6245         (__strncasecmp_l_ia32): Define as alias to
6246         __strncasecmp_l_nonascii.
6247
6248         [BZ #5794]
6249         * math/libm-test.inc (expm1_test): Add test for bug 5794.
6250         * sysdeps/i386/fpu/libm-test-ulps: Update.
6251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6252
6253         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
6254         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6255
6256 2012-02-29  Jeff Law  <law@redhat.com>
6257
6258         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
6259         out of bounds read.
6260
6261 2012-02-29  Marek Polacek  <polacek@redhat.com>
6262
6263         [BZ #13706]
6264         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
6265         * elf/Makefile: Add rules to run tst-unused-dep.out.
6266
6267 2012-02-28  David S. Miller  <davem@davemloft.net>
6268
6269         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
6270         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
6271         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
6272         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
6273         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
6274         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
6275
6276 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6277
6278         * math/libm-test.inc (llround_test): Move one test from
6279         lround_test.  Use TEST_f_L in moved test.
6280         (lround_test): Move misplaced test to llround_test.  Add testcase
6281         from bug 2561.
6282
6283 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
6284
6285         * sysdeps/x86_64/fpu/e_expf.S: New file.
6286         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
6287
6288 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
6289
6290         [BZ #13637]
6291         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
6292         of remain_len that may cause incomplete multi-byte character and
6293         false match.
6294         * posix/bug-regex33.c: New file.
6295         * posix/Makefile (tests): Add bug-regex33.
6296
6297 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
6298
6299         * manual/macros.texi: New file.
6300         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
6301         * manual/libc.texinfo: Include macros.texi.
6302         * manual/creatute.texi: Likewise.
6303         * manual/install.texi: Likewise.
6304         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
6305         @glibcadj{} in references to the GNU C Library.
6306         * manual/charset.texi: Likewise.
6307         * manual/conf.texi: Likewise.
6308         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
6309         when not using those macros.
6310         * manual/creature.texi: Likewise.
6311         * manual/crypt.texi: Likewise.
6312         * manual/errno.texi: Likewise.
6313         * manual/filesys.texi: Likewise.
6314         * manual/header.texi: Likewise.
6315         * manual/install.texi: Likewise.
6316         * manual/intro.texi: Likewise.
6317         * manual/io.texi: Likewise.
6318         * manual/job.texi: Likewise.
6319         * manual/lang.texi: Likewise.
6320         * manual/libc.texiinfo: Likewise.
6321         * manual/llio.texi: Likewise.
6322         * manual/locale.texi: Likewise.
6323         * manual/maint.texi: Likewise.
6324         * manual/math.texi: Likewise.
6325         * manual/memory.texi: Likewise.
6326         * manual/message.texi: Likewise.
6327         * manual/nss.texi: Likewise.
6328         * manual/pattern.texi: Likewise.
6329         * manual/process.texi: Likewise.
6330         * manual/resource.texi: Likewise.
6331         * manual/search.texi: Likewise.
6332         * manual/setjmp.texi: Likewise.
6333         * manual/signal.texi: Likewise.
6334         * manual/socket.texi: Likewise.
6335         * manual/startup.texi: Likewise.
6336         * manual/stdio.texi: Likewise.
6337         * manual/string.texi: Likewise.
6338         * manual/sysinfo.texi: Likewise.
6339         * manual/syslog.texi: Likewise.
6340         * manual/terminal.texi: Likewise.
6341         * manual/time.texi: Likewise.
6342         * manual/users.texi: Likewise.
6343         * INSTALL: Regenerated.
6344         * NOTES: Regenerated.
6345         * sysdeps/gnu/errlist.c: Regenerated.
6346
6347 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
6348
6349         * include/dirent.h: Include <dirstream.h> before
6350         <dirent/dirent.h>.
6351
6352 2012-02-28  David S. Miller  <davem@davemloft.net>
6353
6354         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
6355         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
6356         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
6357         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
6358
6359 2012-02-27  David S. Miller  <davem@davemloft.net>
6360
6361         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
6362         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
6363         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
6364         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
6365
6366         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
6367         frame pointer instead of stack pointer relative arg slot.
6368         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6369         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6370         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6371
6372 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
6373
6374         [BZ #3992]
6375         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
6376
6377 2012-02-27  David S. Miller  <davem@davemloft.net>
6378
6379         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
6380         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6381         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6382         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
6383         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6384         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6385         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
6386         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
6387
6388 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6389
6390         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
6391         later.  Allow versions 5-9.
6392         * configure: Regenerated.
6393         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
6394         required minimum version and 4.6 as recommended version.  Do not
6395         mention bugs in GCC 2.7 and 2.8.
6396         * INSTALL: Regenerated.
6397
6398 2012-02-27  David S. Miller  <davem@davemloft.net>
6399
6400         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
6401         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
6402         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
6403         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
6404         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
6405         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
6406         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
6407         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
6408
6409         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
6410         manipulate bits before adding and subtracting TWO112[sx].
6411         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6412
6413 2012-02-27  Roland McGrath  <roland@hack.frob.com>
6414
6415         [BZ #13775]
6416         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
6417         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
6418         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
6419         being in POSIX, because they are in 1003.1-2008.
6420
6421         * rt/tst-aio.c: Include <fcntl.h>.
6422         * rt/tst-aio7.c: Likewise.
6423         * rt/tst-aio64.c: Likewise.
6424
6425         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
6426
6427 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6428
6429         * manual/install.texi (--with-headers): Describe headers as
6430         interface headers, not private headers.
6431         (Specific advice for GNU/Linux systems): Describe use of headers
6432         from "make headers_install", not private headers from older
6433         kernels.
6434         * INSTALL: Regenerated.
6435         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
6436         Change to 2.6.19.
6437         * sysdeps/unix/sysv/linux/configure: Regenerated.
6438
6439         * manual/llio.texi (fclean): Remove documentation.
6440
6441         * manual/Makefile (libc-texi-generated): New variable.  Include
6442         version.texi.
6443         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
6444         $(libc-texi-generated), not duplicated list of files.
6445         (version.texi, stamp-version): New rules.
6446         (realclean): Remove $(libc-texi-generated), not individual files
6447         from that list.  Do not remove dir-add.texinfo.
6448         * manual/libc.texinfo: Comment out uses of edition numbers and
6449         references to printed manual.  Remove last-updated dates.
6450         (EDITION): Comment out.
6451         (ISBN): Likewise.
6452         (VERSION, UPDATED): Remove.
6453         (version.texi): Include.
6454
6455 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6456
6457         * sysdeps/posix/spawni.c: Include <signal.h>.
6458         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
6459         * sysdeps/pthread/aio_fsync.c: Likewise.
6460
6461 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
6462
6463         * conform/Makefile (tests): Run only when not cross-compiling and
6464         when fast-check is not defined.
6465
6466         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
6467         * conform/data/limits.h-data: Fixes for POSIX2008.
6468         * conform/run-conformtest.sh: Run all tests.
6469         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
6470         headers.
6471         * include/bits/dlfcn.h: Likewise.
6472         * include/langinfo.h: Likewise.
6473         * include/monetary.h: Likewise.
6474         * include/sys/poll.h: Likewise.
6475
6476         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
6477         for __USE_GNU.
6478         * posix/spawn.h: Define __need_sigset_t.
6479         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
6480         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
6481         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
6482         to get sigevent_t only.
6483         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
6484         only for __USE_GNU.
6485         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6486         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6487         process_vm_writev only for __USE_GNU.
6488         * termios/termios.h: Declare tcgetsid also for POSIX2008.
6489
6490         * conform/Makefile: For now ignore errors from run-conformtest.
6491         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
6492         POSIX to avoid namespace pollution.  Don't prepend headers.
6493         * conform/data/aio.h-data: Fixes for POSIX testing.
6494         * conform/data/fcntl.h-data: Likewise.
6495         * conform/data/glob.h-data: Likewise.
6496         * conform/data/grp.h-data: Likewise.
6497         * conform/data/pthread.h-data: Likewise.
6498         * conform/data/pwd.h-data: Likewise.
6499         * conform/data/signal.h-data: Likewise.
6500         * conform/data/spawn.h-data: Likewise.
6501         * conform/data/stdio.h-data: Likewise.
6502         * conform/data/stdlib.h-data: Likewise.
6503         * conform/data/stropts.h-data: Likewise.
6504         * conform/data/sys/mman.h-data: Likewise.
6505         * conform/data/sys/stat.h-data: Likewise.
6506         * conform/data/sys/types.h-data: Likewise.
6507         * conform/data/sys/wait.h-data: Likewise.
6508         * conform/data/time.h-data: Likewise.
6509         * conform/data/unistd.h-data: Likewise.
6510         * conform/data/utime.h-data: Likewise.
6511
6512         * io/sys/stat.h: fchmod was always in POSIX.
6513         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
6514         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
6515         * rt/aio.h: Define __need_timespec before including <time.h>.
6516         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
6517         struct.  Add forward declaration of pthread_attr_t and use it in
6518         sigevent.
6519         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6520         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6521         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
6522         always remove CLK_TCK definition.
6523
6524 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
6525
6526         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
6527
6528 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
6529
6530         * conform/run-conformtest.sh: New file.
6531         * conform/Makefile: Run run-conformtest for tests.
6532         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
6533         support.
6534
6535         * conform/data/uchar.h-data: New file.
6536         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
6537         * conform/data/arpa/inet.h-data: Likewise.
6538         * conform/data/assert.h-data: Likewise.
6539         * conform/data/complex.h-data: Likewise.
6540         * conform/data/cpio.h-data: Likewise.
6541         * conform/data/ctype.h-data: Likewise.
6542         * conform/data/dirent.h-data: Likewise.
6543         * conform/data/dlfcn.h-data: Likewise.
6544         * conform/data/errno.h-data: Likewise.
6545         * conform/data/fcntl.h-data: Likewise.
6546         * conform/data/float.h-data: Likewise.
6547         * conform/data/fmtmsg.h-data: Likewise.
6548         * conform/data/fnmatch.h-data: Likewise.
6549         * conform/data/ftw.h-data: Likewise.
6550         * conform/data/glob.h-data: Likewise.
6551         * conform/data/grp.h-data: Likewise.
6552         * conform/data/iconv.h-data: Likewise.
6553         * conform/data/inttypes.h-data: Likewise.
6554         * conform/data/langinfo.h-data: Likewise.
6555         * conform/data/libgen.h-data: Likewise.
6556         * conform/data/limits.h-data: Likewise.
6557         * conform/data/locale.h-data: Likewise.
6558         * conform/data/math.h-data: Likewise.
6559         * conform/data/monetary.h-data: Likewise.
6560         * conform/data/mqueue.h-data: Likewise.
6561         * conform/data/ndbm.h-data: Likewise.
6562         * conform/data/net/if.h-data: Likewise.
6563         * conform/data/netdb.h-data: Likewise.
6564         * conform/data/netinet/in.h-data: Likewise.
6565         * conform/data/nl_types.h-data: Likewise.
6566         * conform/data/poll.h-data: Likewise.
6567         * conform/data/pthread.h-data: Likewise.
6568         * conform/data/pwd.h-data: Likewise.
6569         * conform/data/regex.h-data: Likewise.
6570         * conform/data/sched.h-data: Likewise.
6571         * conform/data/search.h-data: Likewise.
6572         * conform/data/semaphore.h-data: Likewise.
6573         * conform/data/setjmp.h-data: Likewise.
6574         * conform/data/signal.h-data: Likewise.
6575         * conform/data/spawn.h-data: Likewise.
6576         * conform/data/stdarg.h-data: Likewise.
6577         * conform/data/stdio.h-data: Likewise.
6578         * conform/data/stdlib.h-data: Likewise.
6579         * conform/data/string.h-data: Likewise.
6580         * conform/data/strings.h-data: Likewise.
6581         * conform/data/stropts.h-data: Likewise.
6582         * conform/data/sys/ipc.h-data: Likewise.
6583         * conform/data/sys/mman.h-data: Likewise.
6584         * conform/data/sys/msg.h-data: Likewise.
6585         * conform/data/sys/resource.h-data: Likewise.
6586         * conform/data/sys/select.h-data: Likewise.
6587         * conform/data/sys/sem.h-data: Likewise.
6588         * conform/data/sys/shm.h-data: Likewise.
6589         * conform/data/sys/socket.h-data: Likewise.
6590         * conform/data/sys/stat.h-data: Likewise.
6591         * conform/data/sys/statvfs.h-data: Likewise.
6592         * conform/data/sys/time.h-data: Likewise.
6593         * conform/data/sys/timeb.h-data: Likewise.
6594         * conform/data/sys/times.h-data: Likewise.
6595         * conform/data/sys/types.h-data: Likewise.
6596         * conform/data/sys/uio.h-data: Likewise.
6597         * conform/data/sys/un.h-data: Likewise.
6598         * conform/data/sys/utsname.h-data: Likewise.
6599         * conform/data/sys/wait.h-data: Likewise.
6600         * conform/data/syslog.h-data: Likewise.
6601         * conform/data/tar.h-data: Likewise.
6602         * conform/data/termios.h-data: Likewise.
6603         * conform/data/utime.h-data: Likewise.
6604         * conform/data/utmpx.h-data: Likewise.
6605         * conform/data/varargs.h-data: Likewise.
6606         * conform/data/wchar.h-data: Likewise.
6607         * conform/data/wctype.h-data: Likewise.
6608         * conform/data/wordexp.h-data: Likewise.
6609
6610         * include/stropts.h: New file.
6611         * include/uchar.h: New file.
6612         * include/aio.h: Changes to allow conformtest.pl to use the headers.
6613         * include/assert.h: Likewise.
6614         * include/ctype.h: Likewise.
6615         * include/dirent.h: Likewise.
6616         * include/dlfcn.h: Likewise.
6617         * include/fcntl.h: Likewise.
6618         * include/fnmatch.h: Likewise.
6619         * include/glob.h: Likewise.
6620         * include/grp.h: Likewise.
6621         * include/libio.h: Likewise.
6622         * include/locale.h: Likewise.
6623         * include/math.h: Likewise.
6624         * include/net/if.h: Likewise.
6625         * include/netdb.h: Likewise.
6626         * include/netinet/in.h: Likewise.
6627         * include/pthread.h: Likewise.
6628         * include/pwd.h: Likewise.
6629         * include/regex.h: Likewise.
6630         * include/sched.h: Likewise.
6631         * include/search.h: Likewise.
6632         * include/setjmp.h: Likewise.
6633         * include/signal.h: Likewise.
6634         * include/stdio.h: Likewise.
6635         * include/stdlib.h: Likewise.
6636         * include/string.h: Likewise.
6637         * include/sys/cdefs.h: Likewise.
6638         * include/sys/mman.h: Likewise.
6639         * include/sys/msg.h: Likewise.
6640         * include/sys/resource.h: Likewise.
6641         * include/sys/select.h: Likewise.
6642         * include/sys/socket.h: Likewise.
6643         * include/sys/stat.h: Likewise.
6644         * include/sys/statvfs.h: Likewise.
6645         * include/sys/time.h: Likewise.
6646         * include/sys/times.h: Likewise.
6647         * include/sys/uio.h: Likewise.
6648         * include/sys/utsname.h: Likewise.
6649         * include/sys/wait.h: Likewise.
6650         * include/termios.h: Likewise.
6651         * include/time.h: Likewise.
6652         * include/ulimit.h: Likewise.
6653         * include/unistd.h: Likewise.
6654         * include/utime.h: Likewise.
6655         * include/wchar.h: Likewise.
6656         * include/wctype.h: Likewise.
6657         * include/wordexp.h: Likewise.
6658
6659         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
6660
6661         * time/time.h: TIME_UTC must be a macro.
6662         Make timespec_get available for ISO C11 only as well.
6663
6664 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
6665
6666         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
6667         Reported by Peng Haitao <penght@cn.fujitsu.com>.
6668
6669 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6670
6671         * configure.in: Use -o not -a in test for unsupported multi-arch.
6672
6673 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6674
6675         * manual/texinfo.tex: Update to version 2012-01-19.16.
6676
6677 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6678
6679         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
6680
6681 2012-02-24  Roland McGrath  <roland@hack.frob.com>
6682
6683         [BZ #13738]
6684         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
6685         * manual/fdl-1.3.texi: New file.
6686         * manual/fdl-1.1.texi: File removed.
6687
6688         [BZ #13738]
6689         * manual/libc.texinfo (FDL_VERSION): New @set.
6690         Use it for mention of FDL in cover text.
6691         (Documentation License): Use it in @include file name.
6692
6693 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6694             Roland McGrath  <roland@hack.frob.com>
6695
6696         [BZ #5461]
6697         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
6698         not LONG_LONG_MAX and LONG_LONG_MIN.
6699         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
6700         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
6701         name.
6702         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
6703
6704 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6705
6706         [BZ #2547]
6707         [BZ #11365]
6708         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
6709         manipulate bits before adding and subtracting TWO23[sx].
6710         * math/libm-test.inc (nearbyint_test): Add more tests.
6711
6712 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6713
6714         [BZ #2548]
6715         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
6716         bits before adding and subtracting TWO23[sx].
6717         * math/libm-test.inc (rint_test): Add more tests.
6718         (rint_test_tonearest): Likewise.
6719         (rint_test_towardzero): Likewise.
6720         (rint_test_downward): Likewise.
6721         (rint_test_upward: Likewise.
6722
6723 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6724
6725         [BZ #10110]
6726         * include/stdc-predef.h: New file.  Extracted from features.h.
6727         * include/features.h: Include stdc-predef.h.
6728         * Makefile (headers): Add stdc-predef.h.
6729         * CONFORMANCE (Compiler limitations): Update.
6730
6731 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6732
6733         * manual/libc.texinfo (VERSION, UPDATED): Revert.
6734
6735 2012-02-21  David S. Miller  <davem@davemloft.net>
6736
6737         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
6738         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6739
6740 2012-02-20  David S. Miller  <davem@davemloft.net>
6741
6742         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
6743         using a normal save/restore sequence, rather than allocating a
6744         dummy stack frame just to store a frame pointer and restore.
6745         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6746
6747 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6748
6749         * manual/install.texi: Fix stray word in line-wrapped comment.
6750
6751 2012-02-20  David S. Miller  <davem@davemloft.net>
6752
6753         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
6754         both binutils and gcc support GOTDATA.
6755
6756         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
6757         "rd %pc" in the PIC register setup sequences.
6758
6759         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
6760         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
6761         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6762         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6763         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6764         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6765         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6766         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6767         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6768         (SYSCALL_ERROR_HANDLER): Likewise.
6769         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6770         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6771         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6772         (SYSCALL_ERROR_HANDLER): Likewise.
6773
6774         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
6775         (HAVE_GCC_GOTDATA): New.
6776         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
6777         relocation support in both binutils and gcc.
6778         * sysdeps/sparc/elf/configure: Regenerate.
6779
6780         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
6781         * sysdeps/sparc/sparc32/elf/configure: Delete.
6782         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
6783         * sysdeps/sparc/sparc64/elf/configure: Delete.
6784         * sysdeps/sparc/elf/configure.in: New file.
6785         * sysdeps/sparc/elf/configure: Generate.
6786
6787         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
6788         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
6789         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6790         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
6791         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
6792
6793 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6794
6795         * manual/install.texi: Do not mention specific glibc version
6796         numbers.
6797         * manual/libc.texinfo (VERSION, UPDATED): Update.
6798         (@copying): Use @copyright{} and range of years.
6799
6800 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6801
6802         [BZ #13695]
6803         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
6804         [crti.S not in sysdirs] (generated): Do not append.
6805         [crti.S not in sysdirs] (omit-deps): Likewise.
6806         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
6807         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
6808         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
6809         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
6810         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
6811         Likewise.
6812         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
6813         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
6814         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
6815         * csu/defs.awk: Remove file.
6816         * sysdeps/generic/initfini.c: Likewise.
6817         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
6818         variable.
6819         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
6820         Likewise.
6821
6822 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6823
6824         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
6825         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
6826         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
6827         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
6828         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6829         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
6830         <bits/epoll.h>.
6831         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
6832         (__EPOLL_PACKED): Define to empty if not defined by
6833         <bits/epoll.h>.
6834         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
6835         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6836         bits/epoll.h.
6837
6838 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6839
6840         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
6841         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
6842         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
6843         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
6844         <bits/timerfd.h>.
6845         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
6846         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6847         bits/timerfd.h.
6848
6849 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6850
6851         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
6852         in C locale.
6853         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6854         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6855         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
6856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6857
6858 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
6859
6860         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6861         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6862
6863 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
6864
6865         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
6866         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
6867         defined.
6868         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
6869         Likewise.
6870         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
6871         entry for 2.16.
6872
6873 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
6874
6875         * math/w_acos.c: Use non-signaling floating-point comparisons.
6876         * math/w_acosf.c: Likewise.
6877         * math/w_acosh.c: Likewise.
6878         * math/w_acoshf.c: Likewise.
6879         * math/w_acoshl.c: Likewise.
6880         * math/w_acosl.c: Likewise.
6881         * math/w_asin.c: Likewise.
6882         * math/w_asinf.c: Likewise.
6883         * math/w_asinl.c: Likewise.
6884         * math/w_atanh.c: Likewise.
6885         * math/w_atanhf.c: Likewise.
6886         * math/w_atanhl.c: Likewise.
6887         * math/w_exp2.c: Likewise.
6888         * math/w_exp2f.c: Likewise.
6889         * math/w_exp2l.c: Likewise.
6890         * math/w_j0.c: Likewise.
6891         * math/w_j0f.c: Likewise.
6892         * math/w_j0l.c: Likewise.
6893         * math/w_j1.c: Likewise.
6894         * math/w_j1f.c: Likewise.
6895         * math/w_j1l.c: Likewise.
6896         * math/w_jn.c: Likewise.
6897         * math/w_jnf.c: Likewise.
6898         * math/w_log.c: Likewise.
6899         * math/w_log10.c: Likewise.
6900         * math/w_log10f.c: Likewise.
6901         * math/w_log10l.c: Likewise.
6902         * math/w_log2.c: Likewise.
6903         * math/w_log2f.c: Likewise.
6904         * math/w_log2l.c: Likewise.
6905         * math/w_logf.c: Likewise.
6906         * math/w_logl.c: Likewise.
6907         * math/w_sqrt.c: Likewise.
6908         * math/w_sqrtf.c: Likewise.
6909         * math/w_sqrtl.c: Likewise.
6910         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6911         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
6912         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6913         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6914         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6915
6916 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6917
6918         [BZ #9739]
6919         * manual/string.texi (strnlen): Use correct parameter name in
6920         equivalent expression.
6921
6922 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6923
6924         [BZ #11174]
6925         * manual/users.texi (seteuid): Consistently use neweuid for
6926         argument name.
6927
6928 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6929
6930         [BZ #13704]
6931         * manual/nss.texi (Services in the NSS configuration): Correct
6932         list of services in example configuration file.
6933
6934 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
6935
6936         [BZ #11322]
6937         * manual/arith.texi: Remove statements about negative zero
6938         behaving identically to zero.
6939
6940 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6941
6942         [BZ #5993]
6943         * manual/install.texi: Do not document upgrading from libc5.
6944
6945 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6946
6947         [BZ #4596]
6948         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
6949
6950 2012-02-18  David S. Miller  <davem@davemloft.net>
6951
6952         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
6953         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
6954         %o7 across the call.
6955         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
6956         instead.
6957         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
6958         SETUP_PIC_REG_LEAF.
6959         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6960         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
6961         * sysdeps/sparc/crtn.S: Likewise.
6962
6963 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
6964
6965         * aout/Makefile: Remove.
6966
6967 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
6968
6969         [BZ #13058]
6970         * manual/examples/argp-ex1.c (main): Format definition in GNU
6971         style.
6972         * manual/examples/argp-ex2.c (main): Likewise.
6973         * manual/examples/argp-ex3.c (main): Likewise.
6974         * manual/examples/argp-ex4.c (main): Likewise.
6975         * manual/examples/longopt.c (main): Use new-style prototype
6976         definition.
6977         * manual/examples/strncat.c (main): Specify return type and use
6978         (void) for arguments.
6979         * manual/examples/subopt.c (main): Use char **argv argument.
6980
6981 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6982
6983         [BZ #5077]
6984         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
6985         rounding modes.
6986
6987 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
6988
6989         [BZ #6907]
6990         * manual/string.texi (strchr): Change when strchrnul is
6991         recommended.
6992
6993 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
6994
6995         [BZ #174]
6996         * manual/locale.texi (setlocale): Document LOCPATH.
6997
6998 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6999
7000         [BZ #10210]
7001         * manual/process.texi (execle): Move @dots{} before last argument.
7002
7003 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
7004
7005         [BZ #12047]
7006         * manual/charset.texi (Generic Charset Conversion): Fix typo
7007         (LC_TYPE -> LC_CTYPE).
7008
7009 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
7010
7011         [BZ #5805]
7012         * manual/arith.texi (scalbn): Use @var{} on parameter names.
7013         (scalbnf): Likewise.
7014         (scalbnl): Likewise.
7015         (scalbln): Likewise.
7016         (scalblnf): Likewise.
7017         (scalblnl): Likewise.
7018         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
7019         (vwarnx): Likewise.
7020         (verr): Likewise.
7021         (verrx): Likewise.
7022         * manual/filesys.texi (telldir): Use braces around return type.
7023         * manual/llio.texi (mmap): Add space after comma.
7024         (mmap64): Likewise.
7025         * manual/math.texi (jn): Use @var{} on parameter names.
7026         (jnf): Likewise.
7027         (jnl): Likewise.
7028         (yn): Likewise.
7029         (ynf): Likewise.
7030         (ynl): Likewise.
7031         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
7032         line.
7033         * manual/resource.texi (ulimit): Use @dots{} instead of literal
7034         "...".
7035         (sched_get_priority_min): Remove semicolon on @deftypefun line.
7036         (sched_get_priority_max): Likewise.
7037         * manual/signal.texi (sigvec): Add space after comma.
7038         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
7039         names.
7040         (if_indextoname): Likewise.
7041         (if_freenameindex): Likewise.
7042         (sendto): Use ',' instead of '.' in prototype.
7043         * manual/startup.texi (syscall): Use @dots{} instead of literal
7044         "...".
7045         * manual/stdio.texi (__fpending): Separate initial words of
7046         paragraph from @deftypefun line.
7047         * manual/syslog.texi (syslog): Use @dots{} instead of literal
7048         "...".
7049         (vsyslog): Use @var{} on parameter names.
7050         * manual/terminal.texi (stty): Use @var{} on parameter names.
7051         * manual/users.texi (getutmp): Use @var{} on parameter names.
7052         (getutmpx): Likewise.
7053
7054 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7055
7056         [BZ #6884]
7057         * manual/stdio.texi (fopen): Fix typos in description of
7058         ",ccs=STRING".
7059
7060 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
7061
7062         [BZ #4026]
7063         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
7064         get clock_id definition.
7065
7066 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
7067
7068         [BZ #4822]
7069         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
7070         (madvise): Cast every argument to void on its own.
7071
7072 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7073
7074         [BZ #9902]
7075         * manual/startup.texi (Exit Status): Fix typo.
7076
7077 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7078
7079         [BZ #10140]
7080         * manual/examples/argp-ex1.c: Include <stdlib.h>.
7081         * manual/examples/argp-ex2.c: Likewise.
7082         * manual/examples/argp-ex3.c: Likewise.
7083
7084 2012-02-16  Richard Henderson  <rth@redhat.com>
7085
7086         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
7087         * sysdeps/s390/s390-32/initfini.c: Remove.
7088         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
7089         * sysdeps/s390/s390-64/initfini.c: Remove.
7090
7091 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7092
7093         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
7094         compiler output for sysdeps/generic/initfini.c.
7095         * sysdeps/sh/elf/initfini.c: Remove file.
7096
7097 2012-02-16  David S. Miller  <davem@davemloft.net>
7098
7099         [BZ #11494]
7100         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
7101
7102         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
7103         * sysdeps/sparc/crti.S: New file.
7104         * sysdeps/sparc/crtn.S: New file.
7105         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
7106         * sysdeps/sparc/sparc64/Makefile: Likewise.
7107
7108 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
7109
7110         [BZ #3335]
7111         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
7112
7113 2012-02-15  Roland McGrath  <roland@hack.frob.com>
7114
7115         [BZ #4822]
7116         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
7117
7118         * mach/devstream.c (cookie_io_functions_t): Macro removed.
7119         (write, read, close): Likewise.
7120         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7121
7122 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
7123
7124         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
7125         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
7126         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
7127         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
7128         <bits/signalfd.h>.
7129         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
7130         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7131         bits/signalfd.h.
7132
7133 2012-02-14  Marek Polacek  <polacek@redhat.com>
7134
7135         * sysdeps/x86_64/crti.S: New file.
7136         * sysdeps/x86_64/crtn.S: New file.
7137         * sysdeps/x86_64/elf/initfini.c: Remove file.
7138
7139 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7140
7141         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
7142         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
7143         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
7144         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
7145         <bits/inotify.h>.
7146         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
7147         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7148         bits/inotify.h.
7149
7150 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7151
7152         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
7153         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
7154         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
7155         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
7156         <bits/eventfd.h>.
7157         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
7158         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7159         bits/eventfd.h.
7160
7161 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
7162
7163         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
7164         __feraiseexcept instead of feraiseexcept.
7165
7166         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
7167         nanosleep invocations.
7168         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
7169         strings, and add error checking for a nanosleep invocations.
7170
7171 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7172
7173         Replace FSF snail mail address with URLs, as per GNU coding standards.
7174         Most of the snail mail addresses were wrong anyway, and omitting
7175         them makes the source code easier to maintain.  Almost all of the
7176         changes are to license notices and to locale LC_IDENTIFICATION
7177         addresses, except for this one:
7178         * manual/libc.texinfo: In "Published by", give the FSF's URL,
7179         not its snail mail address.
7180
7181 2012-02-09  Richard Henderson  <rth@twiddle.net>
7182
7183         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
7184         of kernel-features.h.
7185
7186         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
7187
7188 2012-02-08  Marek Polacek  <polacek@redhat.com>
7189
7190         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
7191         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
7192         * sysdeps/gnu/_G_config.h: Likewise.
7193         * sysdeps/generic/_G_config.h: Likewise.
7194
7195 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
7196
7197         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
7198         tests.
7199         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7200
7201         * sysdeps/powerpc/powerpc32/crti.S: New file.
7202         * sysdeps/powerpc/powerpc32/crtn.S: New file.
7203         * sysdeps/powerpc/powerpc64/crti.S: New file.
7204         * sysdeps/powerpc/powerpc64/crtn.S: New file.
7205
7206         * Makeconfig (have-initfini): Don't set.
7207         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
7208         * configure.in (nopic_initfini): Don't substitute.
7209         * config.h.in (HAVE_INITFINI): Don't #undef.
7210         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
7211         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
7212
7213 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
7214
7215         Support crti.S and crtn.S provided directly by architectures.
7216         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
7217         [crti.S in sysdirs] (omit-deps): Likewise.
7218         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
7219         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
7220         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
7221         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
7222         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
7223         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
7224         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
7225         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
7226         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
7227         compiler output for sysdeps/generic/initfini.c.
7228         * sysdeps/i386/elf/Makefile: Remove file.
7229         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
7230
7231 2012-02-07  Marek Polacek  <polacek@redhat.com>
7232
7233         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
7234         * sysdeps/gnu/_G_config.h: Likewise.
7235         * sysdeps/mach/hurd/_G_config.h: Likewise.
7236
7237 2012-02-07  Marek Polacek  <polacek@redhat.com>
7238
7239         * math/Makefile (tests): Add tst-CMPLX2.
7240         * math/tst-CMPLX2.c: New file.
7241
7242 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
7243
7244         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7245
7246         * math/libm-test.inc (jn_test): Add missing L suffix.
7247
7248 2012-02-06  Marek Polacek  <polacek@redhat.com>
7249
7250         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
7251         * sysdeps/i386/fpu/e_powf.S: Likewise.
7252         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7253         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7254         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7255         * sysdeps/i386/fpu/e_pow.S: Likewise.
7256         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
7257         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7258         * sysdeps/i386/fpu/s_expm1.S: Likewise.
7259         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
7260         * sysdeps/i386/fpu/e_log2.S: Likewise.
7261         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7262         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7263         * sysdeps/i386/fpu/e_powl.S: Likewise.
7264         * sysdeps/i386/fpu/s_log1p.S: Likewise.
7265         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7266         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
7267         * sysdeps/i386/fpu/e_logl.S: Likewise.
7268         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
7269         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
7270         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
7271         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
7272         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7273         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7274         * sysdeps/i386/fpu/e_log.S: Likewise.
7275         * sysdeps/i386/fpu/s_cexp.S: Likewise.
7276         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7277         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
7278         * sysdeps/i386/fpu/e_logf.S: Likewise.
7279         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7280         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7281         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
7282         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
7283         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7284         * sysdeps/i386/fpu/e_log10.S: Likewise.
7285         * sysdeps/i386/fpu/s_frexp.S: Likewise.
7286         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7287         * sysdeps/i386/fpu/s_asinh.S: Likewise.
7288         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
7289         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7290         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
7291         * sysdeps/i386/asm-syntax.h: Likewise.
7292         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7293         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7294         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7295         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
7296         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
7297         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7298         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
7299         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
7300         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7301         * sysdeps/powerpc/sysdep.h: Likewise.
7302         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7303         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7304
7305 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7306
7307         [BZ #411]
7308         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
7309
7310 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7311
7312         * sysdeps/i386/sysdep.h: Include <features.h>.
7313         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
7314         version.
7315
7316 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
7317
7318         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
7319         Define.
7320         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
7321         LOAD_PIC_REG_STR.
7322
7323 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7324
7325         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
7326         (SETUP_PIC_REG): Use GET_PC_THUNK.
7327         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
7328         macro.
7329
7330 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7331
7332         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
7333         for non-PIC compilation.
7334         (SETUP_PIC_REG): Add .p2align directive.
7335         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
7336         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
7337         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7338         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7339         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
7340         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7341         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
7342         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
7343         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7344         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7345         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7346         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7347         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7348         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7349         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7350         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7351         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7352         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7353         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7354         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7355         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7356         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7357         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7358         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7359         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
7360         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
7361         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7362         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7363         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7364         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7365         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7366         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7367         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7368         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7369         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7370         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7371         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7372         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7373         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7374         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7375         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7376
7377 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7378
7379         * math/tst-CMPLX.c: Include <stdio.h>.
7380
7381 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
7382
7383         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
7384         float.
7385         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7386         * sysdeps/sparc/bits/mathdef.h: Likewise.
7387
7388 2012-01-31  Marek Polacek  <polacek@redhat.com>
7389
7390         * libio/libio.h: Don't define _PARAMS.
7391         * locale/programs/config.h: Don't define PARAMS.
7392         * stdlib/strtol_l.c: Likewise.
7393         (__strtol_l): Remove PARAMS from the prototype.
7394
7395 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
7396
7397         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
7398         names.  Just use the correct names.  Remove unnecessary wrapper
7399         functions.
7400         * malloc/arena.c: Likewise.
7401         * malloc/hooks.c: Likewise.
7402
7403         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
7404         ARENA_TEST says not to.  Simplify test for creation of a new arena.
7405         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
7406
7407 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
7408
7409         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
7410         into tail calls.
7411         (update_get_addr): New function.
7412         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
7413         GET_ADDR_MODULE parameter.
7414
7415 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7416
7417         * crypt/cert.c: Remove __STDC__ conditionals.
7418         * crypt/crypt-entry.c: Likewise.
7419         * crypt/crypt_util.c: Likewise.
7420         * libio/filedoalloc.c: Likewise.
7421         * libio/fileops.c: Likewise.
7422         * libio/genops.c: Likewise.
7423         * libio/iofclose.c: Likewise.
7424         * libio/iofdopen.c: Likewise.
7425         * libio/iofopen.c: Likewise.
7426         * libio/iofopen64.c: Likewise.
7427         * libio/iogetdelim.c: Likewise.
7428         * libio/iopopen.c: Likewise.
7429         * libio/obprintf.c: Likewise.
7430         * libio/oldfileops.c: Likewise.
7431         * libio/oldiofclose.c: Likewise.
7432         * libio/oldiofdopen.c: Likewise.
7433         * libio/oldiofopen.c: Likewise.
7434         * libio/oldiopopen.c: Likewise.
7435         * libio/wfiledoalloc.c: Likewise.
7436         * libio/wgenops.c: Likewise.
7437         * locale/programs/xmalloc.c: Likewise.
7438         * misc/syslog.c: Likewise.
7439         * stdio-common/xbug.c: Likewise.
7440         * string/memchr.c: Likewise.
7441         * string/memcmp.c: Likewise.
7442         * string/memrchr.c: Likewise.
7443         * string/rawmemchr.c: Likewise.
7444         * sysdeps/posix/getcwd.c: Likewise.
7445         * time/strftime_l.c: Likewise.
7446
7447 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7448
7449         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
7450         * config.make.in (config-cflags-sse2avx): Define.
7451         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
7452         Fix typo.
7453
7454 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
7455
7456         * scripts/config.guess: Update from upstream config git repository.
7457         * scripts/config.sub: Likewise.
7458
7459 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
7460
7461         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
7462         (EM_NUM): Update.
7463         (R_TILEPRO_*, R_TILEGX_*): New macros.
7464
7465         * scripts/firstversions.awk: Fix bug in version range handling.
7466
7467         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
7468
7469         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
7470
7471         * include/sys/epoll.h: New file.
7472         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
7473         libc_hidden_def.
7474
7475 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
7476
7477         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
7478         Avoid unnecessary __WORDSIZE == 64 test.
7479         (fmaxf): Use VEX format if possible.
7480         (fmax): Likewise.
7481         (fminf): Likewise.
7482         (fmin): Likewise.
7483
7484         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
7485         * math/math_private.h: Remove libc_fegetround* and
7486         libc_fesetround*.
7487         * sysdeps/i386/configure.in: Check for -msse2avx.
7488         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
7489         also if SSE2AVX is defined.
7490         Remove libc_fegetround* and libc_fesetround*.
7491         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
7492         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
7493         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
7494         of HAS_YMM_USABLE.
7495         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7496         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7497         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7498         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7499         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7500
7501         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
7502
7503 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7504
7505         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
7506         size is not set.
7507         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7508
7509 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
7510
7511         [BZ #13618]
7512         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
7513         relocation.
7514         * Makeconfig (libm): Define.
7515         * elf/Makefile: Add rules to build and run tst-relsort1.
7516         * elf/tst-relsort1.c: New file.
7517         * elf/tst-relsort1mod1.c: New file.
7518         * elf/tst-relsort1mod2.c: New file.
7519
7520 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
7521
7522         * math/s_ldexp.c: Remove __STDC__ conditionals.
7523         * math/s_ldexpf.c: Likewise.
7524         * math/s_ldexpl.c: Likewise.
7525         * math/s_nextafter.c: Likewise.
7526         * math/s_nexttowardf.c: Likewise.
7527         * math/s_significand.c: Likewise.
7528         * math/s_significandf.c: Likewise.
7529         * math/s_significandl.c: Likewise.
7530         * math/w_jnl.c: Likewise.
7531         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7532         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7533         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7534         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7535         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7536         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7537         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
7538         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7539         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7540         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7541         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7542         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7543         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7544         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7545         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7546         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7547         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7548         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7549         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7550         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7551         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7552         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7553         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7554         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7555         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7556         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7557         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7558         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7559         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7560         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7561         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7562         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7563         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7564         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7565         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7566         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7567         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7568         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7569         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7570         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7571         * sysdeps/ieee754/k_standard.c: Likewise.
7572         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7573         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7574         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7575         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7576         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7577         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7578         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7579         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7580         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7581         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7582         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7583         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7584         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7585         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7586         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7587         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7588         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7589         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7590         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7591         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7592         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7593         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7594         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7595         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7596         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7597         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7598         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7599         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7600         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7601         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7602         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7603         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7604         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7605         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7606         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7607         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7608         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7609         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7610         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7611         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7612         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7613         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7614         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7615         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7616         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7617         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
7618         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7619         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7620         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7621         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7622         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7623         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7624         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7625         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7626         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7627         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7628         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7629         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7630         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7631         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7632         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7633         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7634         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7635         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7636         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7637         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7638         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7639         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7640         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7641         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7642         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7643         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7644         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7645         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7646         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7647         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7648         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7649         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7650         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7651         * sysdeps/ieee754/s_matherr.c: Likewise.
7652         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7653         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7654         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7655         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7656
7657 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7658
7659         * crypt/md5.h: Remove __STDC__ conditionals.
7660         * libio/libioP.h: Likewise.
7661         * locale/programs/config.h: Likewise.
7662         * sysdeps/generic/sysdep.h: Likewise.
7663         * sysdeps/i386/asm-syntax.h: Likewise.
7664         * sysdeps/s390/asm-syntax.h: Likewise.
7665         * sysdeps/unix/sysdep.h: Likewise.
7666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7668
7669 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7670
7671         * libio/libio.h: Remove __STDC__ conditionals.
7672         * malloc/obstack.h: Likewise.
7673         * math/complex.h: Likewise.
7674         * math/math.h: Likewise.
7675         * sysdeps/generic/_G_config.h: Likewise.
7676         * sysdeps/gnu/_G_config.h: Likewise.
7677         * sysdeps/mach/hurd/_G_config.h: Likewise.
7678         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7679         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7680         * sysdeps/sparc/bits/mathdef.h: Likewise.
7681
7682 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
7683
7684         [BZ #13583]
7685         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
7686         Clean up HAS_* macros.
7687         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
7688         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
7689         possible.
7690         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
7691         HAS_AVX.
7692         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7693         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7694         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7695         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7696         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7697
7698 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
7699
7700         * elf/tst-unique3.cc (gets): Remove declaration.
7701         * elf/tst-unique3lib.cc (gets): Likewise.
7702         * elf/tst-unique3lib2.cc (gets): Likewise.
7703         * elf/tst-unique4.cc (gets): Likewise.
7704
7705 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
7706
7707         * include/stdio.h: Add C++ protection.  Add gets declarations and
7708         definitions.
7709         * debug/tst-chk1.c: Don't declare gets here.
7710         * stdio-common/tst-gets.c: Likewise.
7711
7712 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7713
7714         * posix/glob: Remove directory.
7715
7716 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7717
7718         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
7719
7720 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
7721
7722         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
7723         of the non-standard EPFNOSUPPORT.
7724
7725 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7726
7727         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
7728         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
7729         ANYWHERE set to 1 only on KERN_NO_SPACE error.
7730
7731 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
7732
7733         * wcsmbs/uchar.h: Test __STDC_VERSION__.
7734
7735 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
7736
7737         * nscd/aicache.c (addhstaiX): Do not cache negative results of
7738         transient errors.
7739         * nscd/grpcache.c (cache_addgr): Likewise.
7740         * nscd/hstcache.c (cache_addhst): Likewise.
7741         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7742         * nscd/pwdcache.c (cache_addpw): Likewise.
7743         * nscd/servicescache.c (cache_addserv): Likewise.
7744
7745 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
7746
7747         * malloc/malloc.c: Various cleanups.
7748         * malloc/hooks.c: Likewise.
7749
7750         * stdlib/Makefile (tests): Add bug-fmtmsg1.
7751         * stdlib/bug-fmtmsg1.c: New file.
7752
7753         * stdlib/fmtmsg.c (init): Add missing unlock.
7754         Patch by Peng Haitao <penght@cn.fujitsu.com>.
7755
7756 2012-01-12  Marek Polacek  <polacek@redhat.com>
7757
7758         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
7759         and _GNU_SOURCE.
7760
7761 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7762
7763         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
7764         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
7765         macro to ensure uniqueness of label name.
7766         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7767         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7768
7769 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
7770
7771         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
7772
7773         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
7774         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7775         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7776         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
7777
7778 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
7779
7780         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
7781
7782         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
7783         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7784         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7785
7786         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
7787
7788         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
7789         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7790         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7791         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
7792
7793         * math/bits/math-finite.h: Add ldexp support.
7794
7795 2012-01-10  Marek Polacek  <polacek@redhat.com>
7796
7797         * locale/programs/localedef.h (show_archive_content): Add noreturn
7798         attribute.
7799
7800 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
7801
7802         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
7803
7804 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7805
7806         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
7807
7808         * io/Makefile (headers): Add bits/poll2.h.
7809
7810 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
7811
7812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
7813         typo #include statement.
7814
7815 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7816
7817         * include/sys/cdefs.h: Define __attribute_alloc_size.
7818         * catgets/gencat.c: Add alloc_size attribute and apply consistently
7819         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
7820         * elf/pldd.c: Likewise.
7821         * iconv/iconv_charmap.c: Likewise.
7822         * iconv/iconvconfig.c: Likewise.
7823         * iconv/strtab.c: Likewise.
7824         * locale/programs/locale.c: Likewise.
7825         * locale/programs/localedef.h: Likewise.
7826         * locale/programs/simple-hash.c: Likewise.
7827         * nscd/nscd.h: Likewise.
7828         * nss/makedb.c: Likewise.
7829         * sysdeps/generic/ldconfig.h: Likewise.
7830         * locale/programs/localedef.c: Remove xmalloc prototype.
7831         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
7832
7833 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7834
7835         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
7836         appropriate.
7837
7838 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7839
7840         * math/Makefile (tests): Add tst-CMPLX.
7841         * math/tst-CMPLX.c: New file.
7842
7843         * math/complex.h (CMPLXL): Fix typo.
7844
7845         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
7846         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
7847         GLIBC_2.16.
7848         * debug/tst-chk1.c: Add poll and ppoll tests.
7849         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
7850         * include/sys/poll.h: Add hidden proto for ppoll.
7851         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
7852         * sysdeps/mach/hurd/ppoll.c: Likewise.
7853         * io/ppoll.c: Likewise.
7854         * debug/poll_chk.c: New file.
7855         * debug/ppoll_chk.c: New file.
7856         * include/bits/poll2.h: New file.
7857         * io/bits/poll2.h: New file.
7858
7859         [BZ #1350]
7860         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
7861
7862         * configure.in: static is always set to yes.  Remove.
7863         * config.make.in: Don't set build-static.
7864         * Makeconfig: Remove use of build-static.
7865         * dlfcn/Makefile: Likewise.
7866         * elf/Makefile: Likewise.
7867         * math/Makefile: Likewise.
7868         * misc/Makefile: Likewise.
7869         * nptl/Makefile: Likewise.
7870         * sysdeps/mach/hurd/Makefile: Likewise.
7871
7872         * configure.in: PWD_P is not used anymore.
7873         * config.make.in: Remove PWD_P entry.
7874
7875         * configure.in: Remove last remnants of RANLIB.
7876         No need to check for signed size_t anymore.
7877         Don't set libc_commonpagesize and libc_relro_required here for Alpha
7878         and IA-64.
7879         Remove __builtin_expect test because we require at least gcc 3.4.
7880         * aclocal.m4: Likewise.
7881
7882         * wcsmbs/mbrtoc16.c: Implement using towc function.
7883         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
7884         * wcsmbs/wcsmbsload.c: Likewise.
7885         * iconv/gconv_simple.c: Likewise.
7886         * iconv/gconv_int.h: Likewise.
7887         * iconv/gconv_builtin.h: Likewise.
7888         * iconv/iconv_prog.c: Remove CHAR16 handling.
7889
7890         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
7891
7892         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
7893
7894         * configure.in: Remove --with-elf and --enable-bounded options.
7895         Dont set base_machine for ia64.  More non-ELF conditions removed.
7896         Remove testing and setting of leading underscore information.
7897         * config.make.in (build-bounded): Set to no.
7898         * config.h.in: Remove NO_UNDERSCORES entry.
7899         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
7900         them.
7901         * csu/start.c: Remove !NO_UNDERSCORE code.
7902         * locale/localeinfo.h: Likewise.
7903         * sysdeps/generic/machine-gmon.h: Likewise.
7904         * sysdeps/generic/sysdep.h: Likewise.
7905         * sysdeps/i386/sysdep.h: Likewise.
7906         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7907         * sysdeps/mach/sysdep.h: Likewise.
7908         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7909         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7910         * sysdeps/sh/sysdep.h: Likewise.
7911         * sysdeps/sparc/sparc32/alloca.S: Likewise.
7912         * sysdeps/unix/i386/sysdep.S: Likewise.
7913         * sysdeps/unix/sparc/start.c: Likewise.
7914         * sysdeps/unix/sparc/sysdep.S: Likewise.
7915         * sysdeps/unix/sparc/sysdep.h: Likewise.
7916         * sysdeps/unix/start.c: Likewise.
7917         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7918         * sysdeps/x86_64/sysdep.h: Likewise.
7919
7920 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
7921
7922         [BZ #13553]
7923         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
7924         for non-gcc.
7925         * argp/argp-fmtstream.h: Use const instead __const.
7926         * argp/argp.h: Likewise.
7927         * assert/assert.h: Likewise.
7928         * bits/fenv.h: Likewise.
7929         * bits/sched.h: Likewise.
7930         * bits/sigset.h: Likewise.
7931         * bits/sigthread.h: Likewise.
7932         * catgets/nl_types.h: Likewise.
7933         * conform/data/pthread.h-data: Likewise.
7934         * crypt/crypt-private.h: Likewise.
7935         * crypt/crypt.h: Likewise.
7936         * crypt/crypt_util.c: Likewise.
7937         * ctype/ctype.h: Likewise.
7938         * debug/execinfo.h: Likewise.
7939         * debug/mbsnrtowcs_chk.c: Likewise.
7940         * debug/mbsrtowcs_chk.c: Likewise.
7941         * debug/wcsnrtombs_chk.c: Likewise.
7942         * debug/wcsrtombs_chk.c: Likewise.
7943         * debug/wcstombs_chk.c: Likewise.
7944         * dirent/dirent.h: Likewise.
7945         * dlfcn/dlfcn.h: Likewise.
7946         * elf/neededtest4.c: Likewise.
7947         * grp/grp.h: Likewise.
7948         * gshadow/gshadow.h: Likewise.
7949         * iconv/gconv.h: Likewise.
7950         * iconv/gconv_int.h: Likewise.
7951         * iconv/gconv_simple.c: Likewise.
7952         * iconv/iconv.h: Likewise.
7953         * iconv/loop.c: Likewise.
7954         * iconv/skeleton.c: Likewise.
7955         * include/aio.h: Likewise.
7956         * include/aliases.h: Likewise.
7957         * include/argz.h: Likewise.
7958         * include/arpa/inet.h: Likewise.
7959         * include/assert.h: Likewise.
7960         * include/dirent.h: Likewise.
7961         * include/dlfcn.h: Likewise.
7962         * include/execinfo.h: Likewise.
7963         * include/fcntl.h: Likewise.
7964         * include/fenv.h: Likewise.
7965         * include/glob.h: Likewise.
7966         * include/grp.h: Likewise.
7967         * include/libintl.h: Likewise.
7968         * include/mntent.h: Likewise.
7969         * include/netdb.h: Likewise.
7970         * include/pwd.h: Likewise.
7971         * include/rpc/netdb.h: Likewise.
7972         * include/sched.h: Likewise.
7973         * include/search.h: Likewise.
7974         * include/shadow.h: Likewise.
7975         * include/signal.h: Likewise.
7976         * include/stdio.h: Likewise.
7977         * include/stdlib.h: Likewise.
7978         * include/string.h: Likewise.
7979         * include/sys/socket.h: Likewise.
7980         * include/sys/stat.h: Likewise.
7981         * include/sys/statfs.h: Likewise.
7982         * include/sys/statvfs.h: Likewise.
7983         * include/sys/syslog.h: Likewise.
7984         * include/sys/time.h: Likewise.
7985         * include/sys/uio.h: Likewise.
7986         * include/time.h: Likewise.
7987         * include/unistd.h: Likewise.
7988         * include/utmp.h: Likewise.
7989         * include/wchar.h: Likewise.
7990         * include/wctype.h: Likewise.
7991         * inet/aliases.h: Likewise.
7992         * inet/arpa/inet.h: Likewise.
7993         * inet/netinet/ether.h: Likewise.
7994         * inet/netinet/in.h: Likewise.
7995         * intl/libintl.h: Likewise.
7996         * io/bits/fcntl2.h: Likewise.
7997         * io/fcntl.h: Likewise.
7998         * io/ftw.h: Likewise.
7999         * io/sys/poll.h: Likewise.
8000         * io/sys/stat.h: Likewise.
8001         * io/sys/statfs.h: Likewise.
8002         * io/sys/statvfs.h: Likewise.
8003         * io/utime.h: Likewise.
8004         * libio/bits/stdio.h: Likewise.
8005         * libio/bits/stdio2.h: Likewise.
8006         * libio/libio.h: Likewise.
8007         * libio/libioP.h: Likewise.
8008         * libio/stdio.h: Likewise.
8009         * locale/lc-ctype.c: Likewise.
8010         * locale/locale.h: Likewise.
8011         * login/utmp.h: Likewise.
8012         * malloc/arena.c: Likewise.
8013         * malloc/malloc.c: Likewise.
8014         * malloc/malloc.h: Likewise.
8015         * malloc/mcheck.c: Likewise.
8016         * malloc/mtrace.c: Likewise.
8017         * math/bits/mathcalls.h: Likewise.
8018         * math/fenv.h: Likewise.
8019         * math/math_private.h: Likewise.
8020         * misc/bits/error.h: Likewise.
8021         * misc/bits/syslog.h: Likewise.
8022         * misc/err.h: Likewise.
8023         * misc/error.h: Likewise.
8024         * misc/fstab.h: Likewise.
8025         * misc/mntent.h: Likewise.
8026         * misc/regexp.h: Likewise.
8027         * misc/search.h: Likewise.
8028         * misc/sgtty.h: Likewise.
8029         * misc/sys/mman.h: Likewise.
8030         * misc/sys/syslog.h: Likewise.
8031         * misc/sys/uio.h: Likewise.
8032         * misc/sys/xattr.h: Likewise.
8033         * misc/ttyent.h: Likewise.
8034         * nis/rpcsvc/ypclnt.h: Likewise.
8035         * nss/nss.h: Likewise.
8036         * posix/bits/unistd.h: Likewise.
8037         * posix/fnmatch.h: Likewise.
8038         * posix/glob.h: Likewise.
8039         * posix/sched.h: Likewise.
8040         * posix/spawn.h: Likewise.
8041         * posix/sys/wait.h: Likewise.
8042         * posix/unistd.h: Likewise.
8043         * posix/wordexp.h: Likewise.
8044         * pwd/pwd.h: Likewise.
8045         * resolv/netdb.h: Likewise.
8046         * resource/sys/resource.h: Likewise.
8047         * rt/aio.h: Likewise.
8048         * rt/bits/mqueue2.h: Likewise.
8049         * rt/mqueue.h: Likewise.
8050         * shadow/shadow.h: Likewise.
8051         * signal/signal.h: Likewise.
8052         * socket/send.c: Likewise.
8053         * socket/sendto.c: Likewise.
8054         * socket/sys/socket.h: Likewise.
8055         * stdio-common/printf.h: Likewise.
8056         * stdlib/bits/stdlib.h: Likewise.
8057         * stdlib/fmtmsg.h: Likewise.
8058         * stdlib/monetary.h: Likewise.
8059         * stdlib/stdlib.h: Likewise.
8060         * stdlib/ucontext.h: Likewise.
8061         * streams/stropts.h: Likewise.
8062         * string/argz.h: Likewise.
8063         * string/bits/string2.h: Likewise.
8064         * string/string.h: Likewise.
8065         * string/strings.h: Likewise.
8066         * sunrpc/rpc/auth.h: Likewise.
8067         * sunrpc/rpc/auth_des.h: Likewise.
8068         * sunrpc/rpc/clnt.h: Likewise.
8069         * sunrpc/rpc/netdb.h: Likewise.
8070         * sunrpc/rpc/pmap_clnt.h: Likewise.
8071         * sunrpc/rpc/xdr.h: Likewise.
8072         * sysdeps/generic/inttypes.h: Likewise.
8073         * sysdeps/generic/net/if.h: Likewise.
8074         * sysdeps/generic/sys/swap.h: Likewise.
8075         * sysdeps/gnu/net/if.h: Likewise.
8076         * sysdeps/gnu/utmpx.h: Likewise.
8077         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
8078         * sysdeps/i386/i486/bits/string.h: Likewise.
8079         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
8080         * sysdeps/s390/bits/string.h: Likewise.
8081         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
8082         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
8083         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8084         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
8085         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8086         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8087         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8088         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
8089         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
8090         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
8091         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
8092         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8093         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
8094         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8095         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8096         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
8097         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
8098         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8099         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
8100         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
8101         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8102         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
8103         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
8104         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
8105         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
8106         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
8107         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
8108         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8109         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
8110         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
8111         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
8112         * sysvipc/sys/ipc.h: Likewise.
8113         * sysvipc/sys/msg.h: Likewise.
8114         * sysvipc/sys/sem.h: Likewise.
8115         * sysvipc/sys/shm.h: Likewise.
8116         * termios/termios.h: Likewise.
8117         * time/sys/time.h: Likewise.
8118         * time/time.h: Likewise.
8119         * wcsmbs/bits/wchar2.h: Likewise.
8120         * wcsmbs/uchar.h: Likewise.
8121         * wcsmbs/wchar.h: Likewise.
8122         * wctype/wctype.h: Likewise.
8123
8124         [BZ #13551]
8125         * Makeconfig: Remove all but ELF support including AIX support.
8126         * Makerules: Likewise.
8127         * config.h.in: Likewise.
8128         * config.make.in: Likewise.
8129         * configure: Likewise.
8130         * configure.in: Likewise.
8131         * csu/Makefile: Likewise.
8132         * csu/version.c: Likewise.
8133         * debug/Makefile: Likewise.
8134         * dlfcn/Makefile: Likewise.
8135         * elf/Makefile: Likewise.
8136         * extra-lib.mk: Likewise.
8137         * iconv/Makefile: Likewise.
8138         * include/libc-symbols.h: Likewise.
8139         * include/shlib-compat.h: Likewise.
8140         * resolv/Makefile: Likewise.
8141         * resolv/res_libc.c: Likewise.
8142         * rt/Makefile: Likewise.
8143         * sysdeps/i386/asm-syntax.h: Likewise.
8144         * sysdeps/i386/sysdep.h: Likewise.
8145         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8146         * sysdeps/mach/sysdep.h: Likewise.
8147         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
8148         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
8149         * sysdeps/s390/asm-syntax.h: Likewise.
8150         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8151         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8152         * sysdeps/sh/sysdep.h: Likewise.
8153         * sysdeps/unix/sparc/sysdep.h: Likewise.
8154         * sysdeps/wordsize-32/divdi3.c: Likewise.
8155         * sysdeps/x86_64/sysdep.h: Likewise.
8156
8157         * argp/Versions: Remove _argp_unlock_xxx.
8158
8159         [BZ #13559]
8160         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
8161         * abilist/libBrokenLocale.abilist: Likewise.
8162         * abilist/libanl.abilist: Likewise.
8163         * abilist/libc.abilist: Likewise.
8164         * abilist/libcrypt.abilist: Likewise.
8165         * abilist/libdl.abilist: Likewise.
8166         * abilist/libm.abilist: Likewise.
8167         * abilist/libnsl.abilist: Likewise.
8168         * abilist/libpthread.abilist: Likewise.
8169         * abilist/libresolv.abilist: Likewise.
8170         * abilist/librt.abilist: Likewise.
8171         * abilist/libthread_db.abilist: Likewise.
8172         * abilist/libutil.abilist: Likewise.
8173         * abilist/libnss_db.abilist: New file.
8174
8175         * scripts/abilist.awk: Add support for indirect functions.
8176
8177         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
8178
8179         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
8180
8181         * shlib-versions: Remove entries for ports architectures.
8182
8183         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
8184         files in ports.
8185         * elf/stackguard-macros.h: Remove support for IA-64.
8186         * elf/tst-auditmod1.c: Likewise.
8187         * sysdeps/generic/ldsodefs.h: Likewise.
8188
8189         * sysdeps/unix/sysv/linux/configure.in: Ports should define
8190         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
8191         configure files.
8192
8193         [BZ #13552]
8194         * configure.in: Remove --enable-omitfp support.
8195         * FAQ.in: Adjust.
8196         * config.make.in: Likewise.
8197         * Makeconfig: Likewise.
8198         * manual/install.texi: Likewise.
8199
8200         In case anyone cares, the IA-64 architecture could move to ports.
8201         * sysdeps/ia64/*: Removed.
8202         * sysdeps/unix/sysv/linux/ia64/*: Removed.
8203         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
8204
8205         [BZ #13555]
8206         * configure.in: Remove entries for unsupported architectures.
8207
8208         [BZ #13533]
8209         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
8210         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
8211         routines.
8212         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
8213         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
8214         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
8215         fall back to using wcrtomb.
8216         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
8217         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
8218         renaming.
8219         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
8220         * wcsmbs/tst-c16c32-1.c: New file.
8221
8222         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
8223         local variable.
8224
8225         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
8226
8227         * elf/tst-unique3.cc: Add explicit declaration of gets.
8228         * elf/tst-unique3lib.cc: Likewise.
8229         * elf/tst-unique3lib2.cc: Likewise.
8230         * elf/tst-unique4.cc: Likewise.
8231
8232         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
8233
8234 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
8235
8236         [BZ #13566]
8237         * assert/assert.h (static_assert): Don't define for C++.
8238         * libio/stdio.h (gets): Do declare for C++ <= C++11.
8239         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
8240
8241 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
8242
8243         * iconv/loop.c (single loop): Fix assertion in storing of
8244         remaining bytes.
8245
8246         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
8247
8248 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
8249
8250         * posix/getconf.c: Update copyright year.
8251         * nss/getent.c: Likewise.
8252         * nss/makedb.c: Likewise.
8253         * iconv/iconvconfig.c: Likewise.
8254         * iconv/iconv_prog.c: Likewise.
8255         * elf/ldconfig.c: Likewise.
8256         * elf/pldd.c: Likewise.
8257         * elf/sotruss.ksh: Likewise.
8258         * catgets/gencat.c: Likewise.
8259         * csu/version.c: Likewise.
8260         * elf/ldd.bash.in: Likewise.
8261         * elf/sprof.c (print_version): Likewise.
8262         * locale/programs/locale.c: Likewise.
8263         * locale/programs/localedef.c: Likewise.
8264         * login/programs/pt_chown.c: Likewise.
8265         * nscd/nscd.c (print_version): Likewise.
8266         * debug/xtrace.sh: Likewise.
8267         * malloc/memusage.sh: Likewise.
8268         * malloc/mtrace.pl: Likewise.
8269         * debug/catchsegv.sh: Likewise.
8270
8271 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
8272
8273         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
8274         pure attribute.
8275
8276 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
8277
8278         [BZ #13533]
8279         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
8280         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
8281         transformations.
8282         * iconv/gconv_int.h: Likewise.
8283         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
8284         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
8285         from libc for GLIBC_2.16.
8286         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
8287         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
8288         * wcsmbs/uchar.h: Really define mbstate_t.
8289         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
8290         * wcsmbs/c16rtomb.c: New file.
8291         * wcsmbs/mbrtoc16.c: New file.
8292         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
8293         for C/POSIX locale.
8294         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
8295         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
8296
8297         * wcsmbs/wchar.h: Add missing __restrict.
8298
8299 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8300
8301         [BZ #13532]
8302         * time/Makefile (routines): Add timespec_get.
8303         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
8304         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
8305         timespec for ISO C11.
8306         * time/timespec_get.c: New file.
8307         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
8308         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
8309
8310         [BZ #13531]
8311         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
8312         * stdlib/stdlib.h: Declare aligned_alloc.
8313         * Versions.def: Add GLIBC_2.16 for libc.
8314         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
8315
8316         [BZ 13527]
8317         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
8318         ISO C11.
8319
8320         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
8321         code.
8322
8323         [BZ #13528]
8324         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
8325
8326         [BZ #13529]
8327         * assert/assert.h (static_assert): Define.
8328
8329         * version.h: Update for 2.16 development version.
8330
8331         [BZ #13526]
8332         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
8333         _ISOC11_SOURCE.
8334
8335         * version.h (RELEASE): Bump for 2.15 release.
8336         * include/features.h (__GLIBC_MINOR__): Bump to 15.
8337
8338         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
8339         Patch by Marek Polacek <mpolacek@redhat.com>.
8340
8341         * bits/byteswap.h: Protect long long constants with __extension__.
8342         * sysdeps/i386/bits/byteswap.h: Likewise.
8343         * sysdeps/ia64/bits/byteswap.h: Likewise.
8344         * sysdeps/s390/bits/byteswap.h: Likewise.
8345         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8346
8347 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8348
8349         [BZ #13540]
8350         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
8351         destination buffer.
8352         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
8353
8354 2011-12-23  Marek Polacek  <polacek@redhat.com>
8355
8356         * elf/dl-addr.c (determine_info): Add inline keyword.
8357         * elf/tst-auditmod4b.c (check_avx): Likewise.
8358         * elf/tst-auditmod6b.c (check_avx): Likewise.
8359         * elf/tst-auditmod6c.c (check_avx): Likewise.
8360         * elf/tst-auditmod7b.c (check_avx): Likewise.
8361
8362 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8363
8364         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
8365         !__SSE_MATH__.
8366
8367 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8368
8369         [BZ #13540]
8370         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
8371         processing for last bytes.
8372
8373 2011-08-06  Bruno Haible  <bruno@clisp.org>
8374
8375         [BZ #13061]
8376         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
8377         U+0385, not to U+1FEE.
8378
8379         [BZ #13062]
8380         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
8381         entry for U+00A5 U+0301.
8382
8383 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8384
8385         [BZ #13166]
8386         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
8387         buffer for the output is too small.
8388
8389         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
8390         optimization.
8391
8392         [BZ #13185]
8393         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
8394         SSE flags if possible.
8395
8396 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8397
8398         [BZ #13540]
8399         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
8400         processing for last bytes.
8401
8402 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
8403
8404         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
8405         (syscall-list-default-options, syscall-list-default-condition)
8406         (syscall-list-includes): Define.
8407         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
8408         list of ABIs and options and #if conditions for each ABI.  Do not
8409         handle common syscalls between ABIs specially.
8410         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
8411         Remove.
8412         (syscall-list-variants, syscall-list-32bit-options)
8413         (syscall-list-32bit-condition, syscall-list-64bit-options)
8414         (syscall-list-64bit-condition): Define.
8415         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
8416         (syscall-list-variants, syscall-list-32bit-options)
8417         (syscall-list-32bit-condition, syscall-list-64bit-options)
8418         (syscall-list-64bit-condition): Define.
8419         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
8420         Remove.
8421         (syscall-list-variants, syscall-list-32bit-options)
8422         (syscall-list-32bit-condition, syscall-list-64bit-options)
8423         (syscall-list-64bit-condition): Define.
8424         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
8425         Remove.
8426         (syscall-list-variants, syscall-list-32bit-options)
8427         (syscall-list-32bit-condition, syscall-list-64bit-options)
8428         (syscall-list-64bit-condition): Define.
8429
8430 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8431
8432         * locale/iso-639.def: Add brx entry.
8433
8434         [BZ #13328]
8435         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
8436         Proposed by Mariusz_Cukr <marcukr@op.pl>.
8437
8438         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
8439         __feraiseexcept_renamed.
8440
8441 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8442
8443         [BZ #13538]
8444         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
8445         EPOLLET with unsigned values.
8446         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8447         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8448
8449         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
8450         to large cancellation.
8451         * math/s_cacoshf.c: Likewise.
8452         * math/s_cacoshl.c: Likewise.
8453
8454 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
8455
8456         [BZ #13305]
8457         [BZ #12786]
8458         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
8459         * math/s_cacoshf.c: Likewise.
8460         * math/s_cacoshl.c: Likewise.
8461
8462 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8463
8464         [BZ #13439]
8465         * iconv/gconv.h: Define __GCONV_SWAP.
8466         * iconvdata/unicode.c: The swap bit must be stored in __flags.
8467         * iconvdata/utf-16.c: Likewise.
8468         * iconvdata/utf-32.c: Likewise.
8469
8470 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
8471
8472         [BZ #13524]
8473         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
8474         numerator after shifting it by one limb.
8475
8476 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
8477
8478         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
8479         under [__USE_EXTERN_INLINES].
8480
8481 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8482
8483         [BZ #13446]
8484         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
8485
8486 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8487
8488         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
8489         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
8490         optimized code.
8491         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
8492         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
8493         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
8494         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
8495         for strncasecmp/strncasecmp_l compilation.
8496         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
8497         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
8498
8499 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
8500
8501         [BZ #13484]
8502         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
8503         of __asm__.
8504
8505 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8506
8507         [BZ #13506]
8508         * time/tzfile.c (__tzfile_read): Check values from file header.
8509
8510 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8511
8512         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
8513         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
8514         * powerpc/powerpc32/dl-start.S: Likewise.
8515         * powerpc/powerpc32/elf/start.S: Likewise.
8516         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8517         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
8518         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
8519         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
8520         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8521         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
8522         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
8523         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
8524         * powerpc/powerpc32/fpu/s_round.S: Likewise.
8525         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8526         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8527         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8528         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
8529         * powerpc/powerpc32/memset.S: Likewise.
8530         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8531         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8532         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8533         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8534         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8535         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
8536         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
8537         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
8538         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
8539         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
8540         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
8541         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8542         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8543
8544 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8545
8546         * math/libm-test.inc: Added more nearbyint tests.
8547         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
8548         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
8549         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
8550         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
8551
8552 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
8553
8554         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
8555         FD_CLOEXEC.
8556
8557 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8558
8559         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
8560         Add wcscpy-ssse3 wcscpy-c.
8561         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
8562         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
8563         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
8564         * sysdeps/x86_64/wcschr.S: New file.
8565         * sysdeps/x86_64/wcsrchr.S: New file.
8566         * string/test-strcmp.c: Remove checking of wcscmp function for
8567         wrong alignments.
8568         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
8569         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
8570         wcsrchr-sse2 wcsrchr-c.
8571         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
8572         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
8573         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
8574         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
8575         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
8576         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
8577         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
8578         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
8579         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
8580         * wcsmbc/wcschr.c (WCSCHR): New macro.
8581
8582 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8583
8584         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
8585         * wcsmbs/test-wcsrchr.c: New file.
8586         * string/test-strrchr.c: Add wcsrchr support.
8587         (WIDE): New macro.
8588         * wcsmbs/test-wcscpy.c: New file.
8589         * string/test-strcpy.c: Add wcscpy support.
8590         (WIDE): New macro.
8591
8592 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
8593
8594         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
8595         the inner loop.
8596
8597 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
8598
8599         [BZ #13472]
8600         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
8601
8602 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
8603
8604         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
8605         Minor optimizations.
8606
8607         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
8608         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
8609         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8610
8611 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
8612
8613         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
8614         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
8615         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
8616         for gcc to avoid warnings.
8617         * inet/Makefile (tests): Add tst-checks.
8618         * inet/tst-checks.c: New file.
8619
8620         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
8621         warning.
8622
8623         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
8624         __wmemcmp_sse2.
8625
8626         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
8627         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
8628
8629         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
8630
8631 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
8632
8633         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
8634         problem.
8635
8636         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
8637
8638 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
8639
8640         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
8641         conditional on GCC version.
8642         (__arch_compare_and_exchange_val_8_acq)
8643         (__arch_compare_and_exchange_val_16_acq)
8644         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
8645         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
8646         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
8647
8648 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
8649
8650         * sysdeps/sh/backtrace.c: New file.
8651
8652 2011-12-02  Andreas Schwab  <schwab@redhat.com>
8653
8654         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
8655         parenthesis.
8656
8657 2011-12-01  Andreas Schwab  <schwab@redhat.com>
8658
8659         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
8660         falling back to utime.
8661
8662 2011-11-30  Andreas Schwab  <schwab@redhat.com>
8663
8664         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
8665         expectations for float.
8666
8667 2011-11-29  Andreas Schwab  <schwab@redhat.com>
8668
8669         * locale/weight.h (findidx): Add parameter len.
8670         * locale/weightwc.h (findidx): Likewise.
8671         * posix/fnmatch_loop.c (FCT): Adjust caller.
8672         * posix/regcomp.c (build_equiv_class): Likewise.
8673         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
8674         * posix/regexec.c (check_node_accept_bytes): Likewise.
8675         * string/strcoll_l.c (STRCOLL): Likewise.
8676         * string/strxfrm_l.c (STRXFRM): Likewise.
8677
8678 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
8679
8680         * Makefile.in: Remove CVSOPT handling.
8681         * configure.in: Remove use of AC_REVISION.
8682         * iconvdata/Makefile (distribute): No need to filter out CVS.
8683         * scripts/list-sources.sh: Remove CVS, subversion and monotone
8684         handling.
8685
8686 2011-11-16  Andreas Schwab  <schwab@redhat.com>
8687
8688         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
8689         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
8690         [USE_AS_STRNCASECMP_L]: Likewise.
8691         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
8692         NO_TLS_DIRECT_SEG_REFS.
8693         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
8694         Fix argument offsets for non-PIC.
8695         [USE_AS_STRNCASECMP_L]: Likewise.
8696         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
8697         NO_TLS_DIRECT_SEG_REFS.
8698
8699 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8700
8701         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
8702         O_CLOEXEC.
8703         * locale/loadlocale.c (_nl_load_locale): Likewise.
8704
8705 2011-11-15  Andreas Schwab  <schwab@redhat.com>
8706
8707         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
8708         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
8709         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
8710         (SYSCALL_GETTIME): Set errno on error.
8711
8712         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
8713         count references to noai6ai_cached.
8714
8715 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8716
8717         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
8718
8719         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
8720         FD_CLOEXEC for /proc/self/maps.
8721
8722         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
8723         FD_CLOEXEC for /proc/meminfo.
8724
8725         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
8726         gai.conf.
8727
8728         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
8729         FD_CLOEXEC for given file.
8730
8731         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
8732
8733         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
8734         FD_CLOEXEC for /etc/hosts.
8735         (_gethtent): Likewise.
8736
8737         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
8738
8739         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
8740         cancellation and set FD_CLOEXEC for /etc/netgroup.
8741
8742         * nss/nss_files/files-key.c (search): Don't allow cancellation when
8743         reading /etc/publickey.
8744
8745         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
8746         allow cancellation when reading /etc/group.
8747
8748         * nss/nss_files/files-alias.c (internal_setent): Don't allow
8749         cancellation.
8750         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
8751
8752         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
8753         when using data file.
8754
8755         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
8756
8757         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
8758         (write_nis_obj): Use "c" and "e" in fopen.
8759
8760         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
8761
8762         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
8763
8764         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
8765
8766         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
8767
8768         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
8769         locale.alias.
8770
8771         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
8772
8773         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
8774
8775         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
8776
8777         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
8778         file parsing and set FD_CLOEXEC.
8779
8780 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8781
8782         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
8783
8784 2011-11-14  Andreas Schwab  <schwab@redhat.com>
8785
8786         * malloc/arena.c (arena_get2): Don't call reused_arena when
8787         _int_new_arena failed.
8788
8789 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8790
8791         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
8792         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
8793         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
8794         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8795         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8796         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
8797         to compile strcasecmp and strncasecmp.
8798         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
8799         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
8800
8801         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
8802
8803 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
8804
8805         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
8806         locale-defines.sym to gen-as-const-headers.
8807         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
8808         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
8809         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
8810         to compile strcasecmp and strncasecmp.
8811         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
8812         strcasecmp_l and strncasecmp_l.
8813         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
8814         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
8815         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
8816         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
8817         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
8818         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
8819         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
8820         * sysdeps/i386/i686/multiarch/strncase.S: New file.
8821         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
8822         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
8823         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
8824
8825 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
8826
8827         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
8828         result of SYSDEP_GETTIME_CPU to retval.
8829         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
8830         parameter list to macro.  Remove trailing semicolon.  Adjust users.
8831
8832         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
8833         variable.
8834
8835         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
8836         mantissa words.
8837         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8838
8839         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
8840         from unused variable.
8841
8842         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
8843         DWARF definitions.
8844         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
8845         for assembling.
8846
8847         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
8848         over namespaces.
8849
8850         * sunrpc/rpc_prot.c (rejected): Fix case value.
8851
8852         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
8853         unsigned long long int to avoid warnings in shift.
8854
8855         * posix/regex_internal.c (re_string_reconstruct): Actually use result
8856         of use of trans.
8857         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
8858         variable tmp.
8859
8860         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
8861         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
8862         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
8863
8864         * nis/nis_table.c (nis_list): Use variable of correct type for
8865         result of __follow_path call.
8866
8867 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8868
8869         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
8870         of math functions ceil, trunc, floor, round, and sqrt, when
8871         avaliable on the platform.
8872         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
8873         name clash.
8874         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8875         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8876         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8877
8878 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
8879
8880         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
8881         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8882
8883 2011-11-11  Roland McGrath  <roland@hack.frob.com>
8884
8885         * include/unistd.h: Fix __readlink return type.
8886         Reported by Chris Metcalf <cmetcalf@tilera.com>.
8887
8888 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
8889
8890         * stdlib/ucontext.h: Undo last change for makecontext.
8891
8892 2011-11-11  Andreas Schwab  <schwab@redhat.com>
8893
8894         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
8895
8896         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
8897         * setjmp/setjmp.h: Mark functions as non-leaf.
8898         * setjmp/bits/setjmp2.h: Likewise.
8899         * stdlib/ucontext.h: Likewise.
8900
8901 2011-11-10  Andreas Schwab  <schwab@redhat.com>
8902
8903         * malloc/arena.c (_int_new_arena): Don't increment narenas.
8904         (reused_arena): Don't check arena limit.
8905         (arena_get2): Atomically check arena limit.
8906
8907 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
8908
8909         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
8910         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
8911
8912         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
8913         instructions.
8914
8915 2011-11-07  Andreas Schwab  <schwab@redhat.com>
8916
8917         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
8918         handler when locking.
8919
8920         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8921         Fix size of allocated buffer.
8922
8923 2011-11-04  Andreas Schwab  <schwab@redhat.com>
8924
8925         [BZ #10103]
8926         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
8927         declarations for long double functions.
8928         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
8929
8930         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
8931
8932 2011-11-03  Andreas Schwab  <schwab@redhat.com>
8933
8934         * nscd/nscd.c (main): Don't start AVC thread until credentials are
8935         installed.
8936
8937         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
8938         is disabled.
8939
8940 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8941
8942         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
8943
8944 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8945
8946         * include/alloca.h (stackinfo_alloca_round): Define.
8947         (extend_alloca): Use it.
8948         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
8949         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
8950         here.
8951
8952         * scripts/check-local-headers.sh: Ignore libaudit.h.
8953
8954         * nscd/Makefile (extra-objs): Make recursively expanded.
8955
8956 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
8957
8958         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
8959         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
8960
8961         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
8962         * posix/tst-rfc3484-2.c: Likewise.
8963         * posix/tst-rfc3484-3.c: Likewise.
8964
8965         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8966         process_vm_writev.
8967         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
8968         process_vm_writev.
8969         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
8970         process_vm_writev from libc using GLIBC_2.15 version.
8971
8972         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
8973
8974 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
8975
8976         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
8977         stack usage.
8978
8979 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
8980
8981         [BZ #13367]
8982         * nss/getent.c (initgroups_keys): Show error message in case no group
8983         names are given.
8984
8985         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
8986         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
8987         __bump_nl_timestamp.
8988         * nscd/connections (nscd_init): When host database is served open
8989         netlink socket and request notification about configuration changes.
8990         (main_loop_poll): Track netlink file descriptor and bump timestamp
8991         in case data becomes available.
8992         (main_loop_epoll): Likewise.
8993         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
8994         (database_pers_head): Add extra_data fileds.
8995         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
8996         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
8997         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
8998         Adjust caller.
8999         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
9000         in6ai data, call __free_in6ai.
9001         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
9002         Add -DHAVE_NETLINK.
9003         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
9004         interface information.  Reuse previous data if netlink timestamp
9005         is not changed.
9006         (__bump_nl_timestamp): New function.
9007         (__free_in6ai): New function.
9008
9009 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
9010
9011         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
9012         close_not_cancel_no_status here.
9013         (__check_pf): Reorganize code a bit to not call close twice if OOM.
9014
9015 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
9016
9017         [BZ #13276]
9018         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
9019         return value.
9020
9021         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
9022         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
9023         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
9024
9025 2011-07-03  Andreas Jaeger  <aj@suse.de>
9026
9027         [BZ #10709]
9028         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
9029         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
9030         * math/libm-test.inc (sin_test): Add test case.
9031
9032 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
9033
9034         [BZ #13337]
9035         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
9036         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9037
9038         * elf/chroot_canon.c (chroot_canon): Cleanups.
9039
9040         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
9041
9042         [BZ #13335]
9043         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
9044         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9045
9046         * string/test-strchr.c: Make usable for strchrnul testing.
9047         * string/test-strchrnul.c: New file.
9048         * string/Makefile (strop-tests): Add strchrnul.
9049
9050         * po/it.po: Update from translation team.
9051         * po/es.po: Likewise.
9052
9053 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
9054
9055         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
9056         the three constants needed as parameters.  Drop the others.
9057         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
9058         __m128i_strloadu_tolower.
9059         Create and initialize variable zero and use it in all the places
9060         where _mm_setzero_si128 was used.
9061
9062         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
9063         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
9064         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
9065         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
9066         anymore.
9067         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
9068         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
9069         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
9070         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
9071         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
9072         __mpranred, __mptan.
9073         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
9074         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
9075         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
9076         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
9077         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
9078         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
9079         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
9080         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
9081         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
9082
9083 2011-10-28  Andreas Schwab  <schwab@redhat.com>
9084
9085         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
9086         redefine if SHARED.
9087         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
9088
9089         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
9090         wide char related routines to wcsmbs subdir.
9091
9092 2011-10-27  Andreas Schwab  <schwab@redhat.com>
9093
9094         [BZ #13344]
9095         * misc/sys/cdefs.h (__THROWNL): Define.
9096         * posix/unistd.h: Use __THREADNL instead of __THREAD
9097         for memory synchronization functions.
9098
9099 2011-10-26  Roland McGrath  <roland@hack.frob.com>
9100
9101         [BZ #13349]
9102         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
9103         doesn't exist.
9104         * manual/stdio.texi (Obstack Streams): Node removed.
9105
9106 2011-10-26  Andreas Schwab  <schwab@redhat.com>
9107
9108         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
9109         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9110         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9111
9112         * math/math_private.h (math_force_eval): Allow non-addressable
9113         arguments.
9114         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
9115
9116 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9117
9118         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
9119         file is not needed.
9120
9121         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
9122         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9123         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9124         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9125         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9126         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9127         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9128         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
9129         Add AVX variants.
9130         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
9131         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
9132         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
9133         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
9134         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
9135         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
9136         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
9137         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
9138         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
9139         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
9140         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
9141         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
9142         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
9143         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
9144         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
9145         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
9146         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
9147         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
9148         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
9149
9150         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
9151         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
9152
9153         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
9154         place.  Use VEX encoding when compiling for AVX.
9155
9156 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9157
9158         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
9159         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9160
9161         * string/test-strchr.c (do_test): Don't generate NUL bytes.
9162
9163 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9164
9165         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
9166         useless if() expression.
9167         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9168         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9169         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9170         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9171         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9172         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9173         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9174         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9175         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9176         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9177         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9178         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9179         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9180         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9181         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9182         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9183         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9184         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9185         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9186
9187         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
9188
9189 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9190
9191         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
9192         condition.
9193         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9194
9195 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9196
9197         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
9198         .text section.  Avoid duplicate constants.
9199         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9200         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9201         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9202         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9203         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9204         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9205         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9206         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9207         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
9208         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
9209         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
9210         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9211         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
9212         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
9213         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
9214         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
9215         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
9216         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
9217         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9218         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9219         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9220         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9221         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9222         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
9223         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
9224         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
9225         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
9226         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
9227         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
9228         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
9229         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
9230         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
9231         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9232         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
9233         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
9234         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
9235         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
9236         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
9237         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
9238         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
9239         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
9240         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
9241         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
9242         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
9243         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
9244
9245 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
9246
9247         * sysdeps/x86_64/dla.h: Move to ...
9248         * sysdeps/x86_64/fpu/dla.h: ...here.
9249         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
9250         situations.  Use __builtin_fma only for gcc 4.6 and up.
9251
9252         * config.make.in: Add have-mfma4 entry.
9253         * configure.in: Substitute libc_cv_cc_fma4.
9254         * math/Makefile (dbl-only-routines): Add sincostab.
9255         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
9256         Use __sincostab not sincos.
9257         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
9258         name is a macro.
9259         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9260         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9261         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9262         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
9263         using __copysign.
9264         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
9265         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
9266         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
9267         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
9268         and __inv.
9269         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
9270         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
9271         __copysign.
9272         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
9273         define aliases when function name is a macro.
9274         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
9275         sysdeps/ieee754/dbl-64/sincos.tbl.
9276         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
9277         fma4-enabled routines.
9278         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
9279         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
9280         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
9281         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
9282         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
9283         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
9284         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
9285         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
9286         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
9287         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
9288         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
9289         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
9290         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
9291         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
9292         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
9293         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
9294         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
9295         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
9296         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
9297         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
9298         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
9299         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
9300         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
9301         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
9302         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
9303         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
9304         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
9305         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
9306         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
9307         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
9308
9309         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
9310         rename.
9311         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9312         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9313         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9314         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9315         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9316         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9317         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9318         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9319
9320 2011-10-24  Andreas Schwab  <schwab@redhat.com>
9321
9322         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
9323
9324 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9325
9326         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
9327
9328         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
9329         prediction.
9330         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
9331
9332         * string/strnlen.c: Don't define STRNLEN, reverse logic.
9333         Remove unused variable magic_bits.
9334         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
9335
9336         * string/strnlen.c: Define and use STRNLEN macro.
9337         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
9338         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
9339         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
9340         * wcsmbs/wcslen.c: Define and use WCSLEN.
9341         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
9342         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
9343         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
9344         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
9345         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
9346         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
9347         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9348
9349 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9350
9351         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9352         strnlen-sse2-no-bsf.
9353         Rename strlen-no-bsf to strlen-sse2-no-bsf.
9354         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
9355         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
9356         Add strnlen support.
9357         (USE_AS_STRNLEN): New macro.
9358         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
9359         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
9360         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
9361         * sysdeps/x86_64/wcslen.S: New file.
9362
9363 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9364
9365         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9366         XMM-moves are used for copying on small sizes.
9367
9368 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9369
9370         * wcsmbs/Makefile (strop-tests): Add wcschr.
9371         * wcsmbs/test-wcschr.c: New file.
9372         * string/test-strchr.c: Update.
9373         Add wcschr support.
9374         (WIDE): New macro.
9375
9376 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9377
9378         * wcsmbs/Makefile (strop-tests): Add wcslen.
9379         * wcsmbs/test-wcslen.c: New file.
9380         * string/test-strlen.c: Update.
9381         Add wcslen support.
9382         (WIDE): New macro.
9383
9384 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9385
9386         * po/it.po: Update from translation team.
9387
9388 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9389
9390         * sysdeps/x86_64/wcscmp.S: Update.
9391         Fix wrong comparison semantics.
9392         wcscmp shall use signed comparison not unsigned.
9393         Don't use substraction to avoid overflow bug.
9394         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
9395         * wcsmbc/wcscmp.c: Likewise.
9396         * string/test-strcmp.c: Likewise.
9397         Add new tests to check cases with negative values.
9398
9399 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9400
9401         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
9402         * sysdeps/x86_64/dla.h: ...here.  New file.
9403         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
9404         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9405         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9406         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9407         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9408         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9409         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9410         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9411         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9412
9413 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9414
9415         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
9416         __ynl_finite aliases.
9417
9418 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9419
9420         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9421
9422         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
9423         define DLA_FMA.
9424         [DLA_FMA] (EMULV): Use DLA_FMA.
9425         [DLA_FMA] (MUL12): Use EMULV.
9426         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
9427         that are not needed.
9428         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9429         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9430         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9431         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9432         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9433         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9434         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9435
9436 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
9437
9438         * math/s_nan.c: Undef __nan.
9439         * math/s_nanf.c: Undef __nanf.
9440         * math/s_nanl.c: Undef __nanl.
9441         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
9442         "math_private.h".
9443
9444 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9445
9446         * math/s_catan.c: Add branch predictions.
9447         * math/s_catanf.c: Likewise.
9448         * math/s_catanh.c: Likewise.
9449         * math/s_catanhf.c: Likewise.
9450         * math/s_catanhl.c: Likewise.
9451         * math/s_catanl.c: Likewise.
9452         * math/s_cexp.c: Likewise.
9453         * math/s_cexpf.c: Likewise.
9454         * math/s_cexpl.c: Likewise.
9455         * math/s_clog.c: Likewise.
9456         * math/s_clog10.c: Likewise.
9457         * math/s_clog10f.c: Likewise.
9458         * math/s_clog10l.c: Likewise.
9459         * math/s_clogf.c: Likewise.
9460         * math/s_clogl.c: Likewise.
9461         * math/s_csqrt.c: Likewise.
9462         * math/s_csqrtf.c: Likewise.
9463         * math/s_csqrtl.c: Likewise.
9464         * math/s_ctanf.c: Likewise.
9465         * math/s_ctanh.c: Likewise.
9466         * math/s_ctanhf.c: Likewise.
9467         * math/s_ctanhl.c: Likewise.
9468         * math/s_ctanl.c: Likewise.
9469
9470         * math/math_private.h: Define __nan, __nanf, __nanl.
9471         * math/s_cacosh.c: Include <math_private.h>.
9472         * math/s_cacoshl.c: Likewise.
9473         * math/s_casinh.c: Likewise.
9474         * math/s_casinhf.c: Likewise.
9475         * math/s_casinhl.c: Likewise.
9476         * math/s_ccos.c: Rely entire on ccosh.
9477         * math/s_ccosf.c: Rely entire on ccoshf.
9478         * math/s_ccosl.c: Rely entirely on ccoshl.
9479         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
9480         Remove tests for FE_INVALID.
9481         * math/s_ccoshf.c: Likewise.
9482         * math/s_ccoshl.c: Likewise.
9483         * math/s_csin.c: Likewise.
9484         * math/s_csinf.c: Likewise.
9485         * math/s_csinh.c Likewise.
9486         * math/s_csinhf.c: Likewise.
9487         * math/s_csinhl.c: Likewise.
9488         * math/s_csinl.c: Likewise.
9489         * math/s_ctan.c: Likewise.
9490         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
9491         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
9492         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
9493
9494 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
9495
9496         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
9497         compilation problems.
9498
9499         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
9500         __builtin_expect.
9501
9502 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
9503
9504         * sysdeps/i386/configure.in: Test for -mfma4 option.
9505         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
9506         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
9507         COMMON_CPUID_INDEX_80000001.
9508         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
9509         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
9510         use it if FMA3 is not supported.
9511         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
9512
9513         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
9514         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
9515
9516 2011-10-20  Andreas Schwab  <schwab@redhat.com>
9517
9518         [BZ #12892]
9519         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
9520         it would create a cycle with a link time dependency.
9521
9522 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
9523
9524         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
9525         instruction.
9526         * string/Makefile (strop-tests): Add rawmemchr.
9527         * string/test-rawmemchr.c: New file.
9528
9529         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
9530         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
9531         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
9532         when compiling str{,n}casecmp and when AVX is available.  Hook up
9533         new optimized code in initializers.
9534
9535 2011-10-19  Andreas Schwab  <schwab@redhat.com>
9536
9537         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
9538         __feraiseexcept instead of feraiseexcept.
9539
9540 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
9541
9542         * math/math_private.h: Define defaults for libc_fetestexcept and
9543         libc_feupdateenv.
9544         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
9545         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9546         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9547         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9548         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9549         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9550         libc_fetestexcept and libc_feupdateenv.
9551
9552         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
9553         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
9554         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
9555         * sysdeps/x86_64/fpu/math_private.h: Define special version of
9556         libc_feholdexcept_setround.
9557
9558         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
9559         Add s_nearbyint-c and s_nearbyintf-c.
9560         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
9561         nearbyintf inlines.
9562         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
9563         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
9564         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
9565         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
9566
9567         * math/math_private.h: Define defaults for libc_fegetround,
9568         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
9569         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
9570         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
9571         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
9572         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
9573         standard functions.
9574         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9575         Remove comments and hacks for old compiler versions.
9576         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9577         libc_fegetround, libc_fesetround, libc_feholdexcept, and
9578         libc_feholdexceptl.
9579
9580 2011-10-18  Andreas Schwab  <schwab@redhat.com>
9581
9582         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
9583         (__feraiseexcept_renamed): Add __NTH.
9584         (feraiseexcept): Add __NTH.  Rename local variables to fix
9585         namespace violations.
9586
9587 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
9588
9589         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
9590
9591         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
9592
9593         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
9594         recently added interfaces.
9595         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9596
9597         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
9598         about macro parameter expansion.
9599
9600         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
9601         __NO_MATH_INLINES is defined.  Cleanups.
9602
9603         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
9604         and __floorf is target has SSE4.1.
9605         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
9606         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
9607         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
9608         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
9609
9610         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
9611         name.
9612         (floorf): Likewise.
9613
9614         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
9615
9616 2011-10-17  Andreas Schwab  <schwab@redhat.com>
9617
9618         * misc/sys/cdefs.h: Fix last change.
9619
9620         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
9621         database lookup.
9622
9623 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
9624
9625         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
9626
9627         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
9628         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9629         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9630         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9631         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9632         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9633         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9634         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9635         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9636         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
9637         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
9638         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
9639         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
9640         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
9641         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
9642         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
9643         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
9644         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
9645         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
9646         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
9647         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
9648         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
9649
9650         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
9651         ceil, ceilf, floor, floorf.
9652
9653         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
9654         Perform IRELATIVE relocations last.
9655
9656         * elf/do-rel.h: Add another parameter nrelative, replacing the
9657         local variable with the same name.  Change name of the function
9658         to end in Rel or Rela (uppercase).
9659         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
9660         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
9661         elf_dynamic_do_##reloc function.
9662
9663 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9664
9665         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
9666         is sufficient, at least on modern CPUs.
9667
9668         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
9669
9670         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
9671         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
9672
9673         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
9674         __expl_finite.
9675         * math/bits/math-finite.h: Add entries for exp.
9676         * math/e_expl.c: Add __*_finite alias.
9677         * sysdeps/i386/fpu/e_exp.S: Likewise.
9678         * sysdeps/i386/fpu/e_expf.S: Likewise.
9679         * sysdeps/i386/fpu/e_expl.c: Likewise.
9680         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9681         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9682         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9683         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9684         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
9685         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9686         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9687
9688         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
9689         is sufficient, at least on modern CPUs.
9690
9691         * ctype/ctype-info.c (__ctype_init): Define.
9692         * include/ctype.h (__ctype_init): Declare.
9693         (__ctype_b_loc): The variable is always initialized.
9694         (__ctype_toupper_loc): Likewise.
9695         (__ctype_tolower_loc): Likewise.
9696         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
9697         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
9698
9699 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
9700
9701         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
9702
9703         * configure.in: Also look in $cxxmachine/include for C++ system
9704         headers.
9705
9706 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9707
9708         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
9709         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
9710         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
9711         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
9712         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
9713         (USE_AS_WMEMCMP): New macro.
9714         Fixing indents.
9715         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
9716         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
9717         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
9718         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
9719         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9720         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
9721         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
9722         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
9723         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
9724         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
9725         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
9726         (USE_AS_WMEMCMP): New macro.
9727         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
9728         * sysdeps/string/test-memcmp.c: Update.
9729         Fix simple_wmemcmp.
9730         Add new tests.
9731         * wcsmbs/wmemcmp.c: Update.
9732         (WMEMCMP): New macro.
9733         Fix overflow bug.
9734
9735 2011-10-12  Andreas Jaeger  <aj@suse.de>
9736
9737         [BZ #13268]
9738         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
9739
9740 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9741
9742         * libio/iofwide.c (do_length): Avoid warning.
9743
9744         * ctype/ctype.h (__isctype_f): Add missing __THROW.
9745
9746 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
9747
9748         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
9749
9750         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
9751         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
9752         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
9753         * sysdeps/i386/i686/fpu/e_log.S: New file.
9754         * sysdeps/i386/i686/fpu/e_logf.S: New file.
9755         * sysdeps/i386/i686/fpu/e_logl.S: New file.
9756
9757         * ctype/ctype.h: Add support for inlined isXXX functions when
9758         compiling C++ code.
9759
9760 2011-10-14  Andreas Schwab  <schwab@redhat.com>
9761
9762         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9763
9764         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
9765
9766 2011-10-13  Roland McGrath  <roland@hack.frob.com>
9767
9768         [BZ #13291]
9769         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
9770
9771 2011-10-13  Andreas Schwab  <schwab@redhat.com>
9772
9773         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
9774         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
9775         feraiseexcept.
9776
9777         * sysdeps/x86_64/memrchr.S: Check for zero size.
9778
9779         * string/stratcliff.c: Add memrchr tests.
9780
9781 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9782
9783         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9784         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
9785         rawmemchr-sse2 rawmemchr-sse2-bsf.
9786         * sysdeps/i386/i686/multiarch/memchr.S: New file.
9787         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
9788         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9789         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
9790         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
9791         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
9792         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
9793         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
9794         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
9795         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
9796         * string/memrchr.c (MEMRCHR): New macro.
9797
9798 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
9799
9800         Add integration with gcc's -ffinite-math-only and optimize wrapper
9801         functions in libm.
9802         * Versions.def: Define GLIBC_2.15 version for libm.
9803         * math/Makefile (headers): Add bits/math-finite.h.
9804         * math/bits/math-finite.h: New file.
9805         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
9806         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
9807         * math/e_acoshl.c: Add __*_finite alias.
9808         * math/e_acosl.c: Likewise.
9809         * math/e_asinl.c: Likewise.
9810         * math/e_atan2l.c: Likewise.
9811         * math/e_atanhl.c: Likewise.
9812         * math/e_coshl.c: Likewise.
9813         * math/e_exp10.c: Likewise.
9814         * math/e_exp10f.c: Likewise.
9815         * math/e_exp10l.c: Likewise.
9816         * math/e_exp2l.c: Likewise.
9817         * math/e_fmodl.c: Likewise.
9818         * math/e_gammal_r.c: Likewise.
9819         * math/e_hypotl.c: Likewise.
9820         * math/e_j0l.c: Likewise.
9821         * math/e_j1l.c: Likewise.
9822         * math/e_jnl.c: Likewise.
9823         * math/e_lgammal_r.c: Likewise.
9824         * math/e_log10l.c: Likewise.
9825         * math/e_log2l.c: Likewise.
9826         * math/e_logl.c: Likewise.
9827         * math/e_powl.c: Likewise.
9828         * math/e_sinhl.c: Likewise.
9829         * math/e_sqrtl.c: Likewise.
9830         * math/e_scalb.c: Completely rewritten and optimized.
9831         * math/e_scalbf.c: Likewise.
9832         * math/e_scalbl.c: Likewise.
9833         * math/w_acos.c: Likewise.
9834         * math/w_acosf.c: Likewise.
9835         * math/w_acosl.c: Likewise.
9836         * math/w_acosh.c: Likewise.
9837         * math/w_acoshf.c: Likewise.
9838         * math/w_acoshl.c: Likewise.
9839         * math/w_asin.c: Likewise.
9840         * math/w_asinf.c: Likewise.
9841         * math/w_asinl.c: Likewise.
9842         * math/w_atan2.c: Likewise.
9843         * math/w_atan2f.c: Likewise.
9844         * math/w_atan2l.c: Likewise.
9845         * math/w_atanh.c: Likewise.
9846         * math/w_atanhf.c: Likewise.
9847         * math/w_atanhl.c: Likewise.
9848         * math/w_exp10.c: Likewise.
9849         * math/w_exp10f.c: Likewise.
9850         * math/w_exp10l.c: Likewise.
9851         * math/w_fmod.c: Likewise.
9852         * math/w_fmodf.c: Likewise.
9853         * math/w_fmodl.c: Likewise.
9854         * math/w_j0.c: Likewise.
9855         * math/w_j0f.c: Likewise.
9856         * math/w_j0l.c: Likewise.
9857         * math/w_j1.c: Likewise.
9858         * math/w_j1f.c: Likewise.
9859         * math/w_j1l.c: Likewise.
9860         * math/w_jn.c: Likewise.
9861         * math/w_jnf.c: Likewise.
9862         * math/w_log.c: Likewise.
9863         * math/w_logf.c: Likewise.
9864         * math/w_logl.c: Likewise.
9865         * math/w_log10.c: Likewise.
9866         * math/w_log10f.c: Likewise.
9867         * math/w_log10l.c: Likewise.
9868         * math/w_log2.c: Likewise.
9869         * math/w_log2f.c: Likewise.
9870         * math/w_log2l.c: Likewise.
9871         * math/w_pow.c: Likewise.
9872         * math/w_powf.c: Likewise.
9873         * math/w_powl.c: Likewise.
9874         * math/w_remainder.c: Likewise.
9875         * math/w_remainderf.c: Likewise.
9876         * math/w_remainderl.c: Likewise.
9877         * math/w_scalb.c: Likewise.
9878         * math/w_scalbf.c: Likewise.
9879         * math/w_scalbl.c: Likewise.
9880         * math/w_sqrt.c: Likewise.
9881         * math/w_sqrtf.c: Likewise.
9882         * math/w_sqrtl.c: Likewise.
9883         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
9884         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
9885         used.
9886         * math/math_private.h: Declare __kernel_standard_f.
9887         * math/w_cosh.c: Remove cruft and optimize a bit.
9888         * math/w_coshf.c: Likewise.
9889         * math/w_coshl.c: Likewise.
9890         * math/w_exp2.c: Likewise.
9891         * math/w_exp2f.c: Likewise.
9892         * math/w_exp2l.c: Likewise.
9893         * math/w_hypot.c: Likewise.
9894         * math/w_hypotf.c: Likewise.
9895         * math/w_hypotl.c: Likewise.
9896         * math/w_lgamma.c: Likewise.
9897         * math/w_lgamma_r.c: Likewise.
9898         * math/w_lgammaf.c: Likewise.
9899         * math/w_lgammaf_r.c: Likewise.
9900         * math/w_lgammal.c: Likewise.
9901         * math/w_lgammal_r.c: Likewise.
9902         * math/w_sinh.c: Likewise.
9903         * math/w_sinhf.c: Likewise.
9904         * math/w_sinhl.c: Likewise.
9905         * math/w_tgamma.c: Likewise.
9906         * math/w_tgammaf.c: Likewise.
9907         * math/w_tgammal.c: Likewise.
9908         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9909         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9910         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
9911         Minor optimizations.  Pretty printing.  Remove cruft.
9912         * sysdeps/i386/fpu/e_acosf.S: Likewise.
9913         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9914         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9915         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9916         * sysdeps/i386/fpu/e_acosl.c: Likewise.
9917         * sysdeps/i386/fpu/e_asin.S: Likewise.
9918         * sysdeps/i386/fpu/e_asinf.S: Likewise.
9919         * sysdeps/i386/fpu/e_atan2.S: Likewise.
9920         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
9921         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
9922         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9923         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9924         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9925         * sysdeps/i386/fpu/e_exp10.S: Likewise.
9926         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
9927         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
9928         * sysdeps/i386/fpu/e_exp2.S: Likewise.
9929         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
9930         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
9931         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9932         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
9933         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9934         * sysdeps/i386/fpu/e_hypot.S: Likewise.
9935         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
9936         * sysdeps/i386/fpu/e_log.S: Likewise.
9937         * sysdeps/i386/fpu/e_log10.S: Likewise.
9938         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9939         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9940         * sysdeps/i386/fpu/e_log2.S: Likewise.
9941         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9942         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9943         * sysdeps/i386/fpu/e_logf.S: Likewise.
9944         * sysdeps/i386/fpu/e_logl.S: Likewise.
9945         * sysdeps/i386/fpu/e_pow.S: Likewise.
9946         * sysdeps/i386/fpu/e_powf.S: Likewise.
9947         * sysdeps/i386/fpu/e_powl.S: Likewise.
9948         * sysdeps/i386/fpu/e_remainder.S: Likewise.
9949         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
9950         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
9951         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9952         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9953         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9954         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
9955         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
9956         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
9957         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9958         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9959         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9960         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9961         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9962         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9963         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9964         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9965         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9966         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9967         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9968         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9969         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9970         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9971         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9972         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9973         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9974         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9975         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9976         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9977         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9978         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9979         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9980         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9981         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9982         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9983         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9984         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9985         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9986         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9987         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9988         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9989         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9990         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9991         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9992         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9993         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9994         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9995         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9996         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9997         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9998         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9999         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10000         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10001         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10002         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10003         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10004         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10005         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10006         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10007         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10008         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10009         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10010         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10011         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10012         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10013         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10014         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10015         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10016         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10017         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10018         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10019         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10020         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10021         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10022         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10023         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10024         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10025         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10026         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10027         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10028         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10029         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10030         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10031         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10032         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10033         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
10034         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10035         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10036         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10037         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10038         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10039         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10040         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10041         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10042         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10043         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10044         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10045         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10046         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10047         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10048         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10049         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10050         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10051         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10052         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10053         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10054         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
10055         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
10056         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
10057         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
10058         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
10059         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
10060         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
10061         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10062         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10063         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10064         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10065         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
10066         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10067         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
10068         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
10069         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
10070         (__isnanf): Likewise.
10071         (__isinf_ns): Likewise.
10072         (__isinf_nsf): Likewise.
10073         (__finite): Likewise.
10074         (__finitef): Likewise.
10075         (__ieee754_sqrt): Define as macro.
10076         (__ieee754_sqrtf): Define as macro.
10077         (__ieee754_sqrtl): Define as macro.
10078         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
10079         inlined copy.
10080         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
10081         __FINITE_MATH_ONLY__ consistent.
10082         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
10083
10084 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
10085
10086         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
10087         of rawmemchr.
10088
10089         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
10090
10091 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
10092
10093         * po/ja.po: Update from translation team.
10094
10095 2011-10-08  Roland McGrath  <roland@hack.frob.com>
10096
10097         * locale/programs/locarchive.c (prepare_address_space): New function.
10098         (create_archive, enlarge_archive, open_archive): Use it.
10099
10100         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
10101         inside [SHARED], where it is used.
10102
10103         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
10104
10105         * nss/getent.c (netgroup_keys): Remove unused variable.
10106         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10107
10108 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
10109
10110         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
10111         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
10112         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
10113         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
10114         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
10115         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
10116         * math/Makefile (libm-calls): Add s_isinf_ns.
10117         * math/divtc3.c: Use __isinf_nsl instead of isinf.
10118         * math/multc3.c: Likewise.
10119         * math/s_casin.c: Likewise.
10120         * math/s_casinf.c: Likewise.
10121         * math/s_casinl.c: Likewise.
10122         * math/s_ccos.c: Likewise.
10123         * math/s_ccosf.c: Likewise.
10124         * math/s_ccosl.c: Likewise.
10125         * math/s_ctan.c: Likewise.
10126         * math/s_ctanf.c: Likewise.
10127         * math/s_ctanh.c: Likewise.
10128         * math/s_ctanhf.c: Likewise.
10129         * math/s_ctanhl.c: Likewise.
10130         * math/s_ctanl.c: Likewise.
10131         * math/w_fmod.c: Likewise.
10132         * math/w_fmodf.c: Likewise.
10133         * math/w_fmodl.c: Likewise.
10134         * math/w_remainder.c: Likewise.
10135         * math/w_remainderf.c: Likewise.
10136         * math/w_remainderl.c: Likewise.
10137         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
10138         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
10139         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
10140         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
10141         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
10142         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
10143         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
10144         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
10145
10146         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
10147         of the number.
10148         * stdio-common/printf_fphex.c: Likewise.
10149         * stdio-common/printf_size.c: Likewise.
10150
10151         * math/e_exp10.c: Include math_private.h using <...> not "...".
10152         * math/e_exp10f.c: Likewise.
10153         * math/e_exp10l.c: Likewise.
10154         * math/e_exp2l.c: Likewise.
10155         * math/e_j0l.c: Likewise.
10156         * math/e_j1l.c: Likewise.
10157         * math/e_jnl.c: Likewise.
10158         * math/e_lgammal_r.c: Likewise.
10159         * math/e_rem_pio2l.c: Likewise.
10160         * math/e_scalb.c: Likewise.
10161         * math/e_scalbf.c: Likewise.
10162         * math/e_scalbl.c: Likewise.
10163         * math/k_cosl.c: Likewise.
10164         * math/k_sinl.c: Likewise.
10165         * math/k_tanl.c: Likewise.
10166         * math/s_cacoshf.c: Likewise.
10167         * math/s_catan.c: Likewise.
10168         * math/s_catanf.c: Likewise.
10169         * math/s_catanh.c: Likewise.
10170         * math/s_catanhf.c: Likewise.
10171         * math/s_catanhl.c: Likewise.
10172         * math/s_catanl.c: Likewise.
10173         * math/s_ccosh.c: Likewise.
10174         * math/s_ccoshf.c: Likewise.
10175         * math/s_ccoshl.c: Likewise.
10176         * math/s_cexp.c: Likewise.
10177         * math/s_cexpf.c: Likewise.
10178         * math/s_cexpl.c: Likewise.
10179         * math/s_clog.c: Likewise.
10180         * math/s_clog10.c: Likewise.
10181         * math/s_clog10f.c: Likewise.
10182         * math/s_clog10l.c: Likewise.
10183         * math/s_clogf.c: Likewise.
10184         * math/s_clogl.c: Likewise.
10185         * math/s_csin.c: Likewise.
10186         * math/s_csinf.c: Likewise.
10187         * math/s_csinh.c: Likewise.
10188         * math/s_csinhf.c: Likewise.
10189         * math/s_csinhl.c: Likewise.
10190         * math/s_csinl.c: Likewise.
10191         * math/s_csqrt.c: Likewise.
10192         * math/s_csqrtf.c: Likewise.
10193         * math/s_csqrtl.c: Likewise.
10194         * math/s_ctan.c: Likewise.
10195         * math/s_ctanf.c: Likewise.
10196         * math/s_ctanh.c: Likewise.
10197         * math/s_ctanhf.c: Likewise.
10198         * math/s_ctanhl.c: Likewise.
10199         * math/s_ctanl.c: Likewise.
10200         * math/s_ldexp.c: Likewise.
10201         * math/s_ldexpf.c: Likewise.
10202         * math/s_ldexpl.c: Likewise.
10203         * math/s_significand.c: Likewise.
10204         * math/s_significandf.c: Likewise.
10205         * math/s_significandl.c: Likewise.
10206         * math/w_acos.c: Likewise.
10207         * math/w_acosf.c: Likewise.
10208         * math/w_acosh.c: Likewise.
10209         * math/w_acoshf.c: Likewise.
10210         * math/w_acoshl.c: Likewise.
10211         * math/w_acosl.c: Likewise.
10212         * math/w_asin.c: Likewise.
10213         * math/w_asinf.c: Likewise.
10214         * math/w_asinl.c: Likewise.
10215         * math/w_atan2.c: Likewise.
10216         * math/w_atan2f.c: Likewise.
10217         * math/w_atan2l.c: Likewise.
10218         * math/w_atanh.c: Likewise.
10219         * math/w_atanhf.c: Likewise.
10220         * math/w_atanhl.c: Likewise.
10221         * math/w_cosh.c: Likewise.
10222         * math/w_coshf.c: Likewise.
10223         * math/w_coshl.c: Likewise.
10224         * math/w_dremf.c: Likewise.
10225         * math/w_exp10.c: Likewise.
10226         * math/w_exp10f.c: Likewise.
10227         * math/w_exp10l.c: Likewise.
10228         * math/w_exp2.c: Likewise.
10229         * math/w_exp2f.c: Likewise.
10230         * math/w_fmod.c: Likewise.
10231         * math/w_fmodf.c: Likewise.
10232         * math/w_fmodl.c: Likewise.
10233         * math/w_hypot.c: Likewise.
10234         * math/w_hypotf.c: Likewise.
10235         * math/w_hypotl.c: Likewise.
10236         * math/w_j0.c: Likewise.
10237         * math/w_j0f.c: Likewise.
10238         * math/w_j0l.c: Likewise.
10239         * math/w_j1.c: Likewise.
10240         * math/w_j1f.c: Likewise.
10241         * math/w_j1l.c: Likewise.
10242         * math/w_jn.c: Likewise.
10243         * math/w_jnf.c: Likewise.
10244         * math/w_jnl.c: Likewise.
10245         * math/w_lgamma.c: Likewise.
10246         * math/w_lgamma_r.c: Likewise.
10247         * math/w_lgammaf.c: Likewise.
10248         * math/w_lgammaf_r.c: Likewise.
10249         * math/w_lgammal.c: Likewise.
10250         * math/w_lgammal_r.c: Likewise.
10251         * math/w_log.c: Likewise.
10252         * math/w_log10.c: Likewise.
10253         * math/w_log10f.c: Likewise.
10254         * math/w_log10l.c: Likewise.
10255         * math/w_log2.c: Likewise.
10256         * math/w_log2f.c: Likewise.
10257         * math/w_log2l.c: Likewise.
10258         * math/w_logf.c: Likewise.
10259         * math/w_logl.c: Likewise.
10260         * math/w_pow.c: Likewise.
10261         * math/w_powf.c: Likewise.
10262         * math/w_powl.c: Likewise.
10263         * math/w_remainder.c: Likewise.
10264         * math/w_remainderf.c: Likewise.
10265         * math/w_remainderl.c: Likewise.
10266         * math/w_scalb.c: Likewise.
10267         * math/w_scalbf.c: Likewise.
10268         * math/w_scalbl.c: Likewise.
10269         * math/w_sinh.c: Likewise.
10270         * math/w_sinhf.c: Likewise.
10271         * math/w_sinhl.c: Likewise.
10272         * math/w_sqrt.c: Likewise.
10273         * math/w_sqrtf.c: Likewise.
10274         * math/w_sqrtl.c: Likewise.
10275         * math/w_tgamma.c: Likewise.
10276         * math/w_tgammaf.c: Likewise.
10277         * math/w_tgammal.c: Likewise.
10278
10279         * po/ja.po: Update from translation team.
10280
10281 2011-09-29  Andreas Jaeger  <aj@suse.de>
10282
10283         [BZ #13179]
10284         * sunrpc/netname.c (netname2host): Fix logic.
10285
10286         [BZ #6779]
10287         [BZ #6783]
10288         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
10289         correctly.
10290         * math/w_remainder.c (__remainder): Likewise.
10291         * math/w_remainderf.c (__remainderf): Likewise.
10292         * math/libm-test.inc (remainder_test): Add test cases.
10293
10294 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10295
10296         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
10297         sdiv_qrnnd.
10298
10299 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10300
10301         * string/test-memcmp.c: Avoid unncessary #defines.
10302         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10303
10304 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10305
10306         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
10307         Use new sse2 version for core i3 - i7 as it's faster
10308         than sse42 version.
10309         (bit_Prefer_PMINUB_for_stringop): New.
10310         * sysdeps/x86_64/rawmemchr.S: Update.
10311         Replace with faster SSE2 version.
10312         * sysdeps/x86_64/memrchr.S: New file.
10313         * sysdeps/x86_64/memchr.S: Update.
10314         Replace with faster SSE2 version.
10315
10316 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
10317
10318         * elf/dl-load.c (lose): Add cast to avoid warning.
10319
10320 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10321
10322         * po/ca.po: Update from translation team.
10323
10324         * inet/getnetgrent_r.c: Hook up nscd.
10325         * nscd/Makefile (routines): Add nscd_netgroup.
10326         (nscd-modules): Add netgroupcache.
10327         (CFLAGS-netgroupcache.c): Define.
10328         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
10329         (cache_search): Add const to second parameter.
10330         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
10331         INNETGR.
10332         (dbs): Add netgrdb entry.
10333         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
10334         (verify_persistent_db): Handle netgrdb.
10335         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
10336         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
10337         GETFDNETGR.
10338         (netgroup_response_header): Define.
10339         (innetgroup_response_header): Define.
10340         (datahead): Add netgroup_response_header and innetgroup_response_header
10341         elements.
10342         * nscd/nscd.conf: Add entries for netgroup cache.
10343         * nscd/nscd.h (dbtype): Add netgrdb.
10344         (_PATH_NSCD_NETGROUP_DB): Define.
10345         (netgroup_iov_disabled): Declare.
10346         (xmalloc, xcalloc, xrealloc): Move declarations here.
10347         (cache_search): Adjust prototype.
10348         Add netgroup-related prototypes.
10349         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
10350         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
10351         (__nscd_innetgr): Declare.
10352         * nscd/selinux.c (perms): Use access_vector_t as element type and
10353         add netgroup-related initializers.
10354         * nscd/netgroupcache.c: New file.
10355         * nscd/nscd_netgroup.c: New file.
10356         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
10357         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
10358         For four parameters use innetgr.
10359         * nss/nss_files/files-init.c: Add definition and callback for netgr.
10360         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
10361         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
10362         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
10363
10364         * nscd/connections.c (register_traced_file): Don't register file
10365         for disabled databases.
10366
10367 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
10368
10369         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
10370
10371         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
10372         from tree and freeing node.
10373
10374 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
10375
10376         * nss/nsswitch.c (__nss_database_lookup): Handle
10377         nss_parse_service_list out of memory case.
10378
10379 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
10380
10381         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
10382         out of memory case.
10383
10384 2011-10-04  Andreas Schwab  <schwab@redhat.com>
10385
10386         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
10387         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
10388         pass it down.
10389         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
10390         elf_machine_rela, elf_machine_lazy_rel.
10391         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
10392         (ELF_DYNAMIC_DO_REL): Likewise.
10393         (ELF_DYNAMIC_DO_RELA): Likewise.
10394         (ELF_DYNAMIC_RELOCATE): Likewise.
10395         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
10396         to ELF_DYNAMIC_DO_REL.
10397         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
10398         (dl_main): In trace mode always set __RTLD_NOIFUNC.
10399         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
10400         elf_machine_rela.
10401         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
10402         skip_ifunc, don't call ifunc function if non-zero.
10403         (elf_machine_rela): Likewise.
10404         (elf_machine_lazy_rel): Likewise.
10405         (elf_machine_lazy_rela): Likewise.
10406         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
10407         (elf_machine_lazy_rel): Likewise.
10408         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10409         Likewise.
10410         (elf_machine_lazy_rel): Likewise.
10411         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10412         Likewise.
10413         (elf_machine_lazy_rel): Likewise.
10414         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
10415         (elf_machine_lazy_rel): Likewise.
10416         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
10417         (elf_machine_lazy_rel): Likewise.
10418         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10419         (elf_machine_lazy_rel): Likewise.
10420         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10421         (elf_machine_lazy_rel): Likewise.
10422         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10423         (elf_machine_lazy_rel): Likewise.
10424         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10425         (elf_machine_lazy_rel): Likewise.
10426
10427 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
10428
10429         * nss/nss_files/files-init.c (_nss_files_init): Use static
10430         initialization for all the *_traced_file variables.
10431
10432 2011-09-28  Andreas Schwab  <schwab@redhat.com>
10433
10434         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10435
10436 2011-09-27  Roland McGrath  <roland@hack.frob.com>
10437
10438         [BZ #13226]
10439         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
10440
10441 2011-09-27  Andreas Schwab  <schwab@redhat.com>
10442
10443         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10444         Reread the line before reparsing it.
10445
10446 2011-09-26  Andreas Schwab  <schwab@redhat.com>
10447
10448         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
10449
10450 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
10451             Maxim Kuvyrkov  <maxim@codesourcery.com>
10452             Joseph Myers  <joseph@codesourcery.com>
10453
10454         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
10455         if needed for __stack_chk_guard.
10456
10457 2011-09-19  Roland McGrath  <roland@hack.frob.com>
10458
10459         * sysdeps/posix/spawni.c (script_execute): Always define it.
10460         It will be optimized away if unused.
10461         (maybe_script_execute): New function.
10462         (__spawni): Call it.
10463
10464         * Makerules: Don't include tls.make.
10465         (config-tls): Always set to thread.
10466         * tls.make.c: File removed.
10467
10468 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
10469
10470         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
10471         * config.make.in (CPPFLAGS-config): New substituted variable.
10472
10473 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10474
10475         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
10476
10477         [BZ #13192]
10478         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
10479         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
10480
10481 2011-09-15  Roland McGrath  <roland@hack.frob.com>
10482
10483         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
10484         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
10485         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10486         (CALL_FAIL): Likewise.
10487         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
10488         (CALL_FAIL): Macro removed.
10489         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
10490
10491 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10492
10493         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
10494         for __FINITE_MATH_ONLY__ == 1.
10495
10496 2011-09-15  Andreas Schwab  <schwab@redhat.com>
10497
10498         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
10499         __ieee754_sqrt instead of sqrt.
10500         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
10501         __ieee754_sqrtf instead of sqrtf.
10502         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
10503         __floorf instead of floorf.
10504         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
10505         __floorf, __truncf instead of floorf, truncf.
10506
10507 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
10508
10509         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
10510
10511         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
10512         __extern_always_inline.
10513         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
10514         32-bit.
10515
10516 2011-09-14  Andreas Schwab  <schwab@redhat.com>
10517
10518         * elf/rtld.c (dl_main): Also relocate in dependency order when
10519         doing symbol dependency testing.
10520
10521 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
10522
10523         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10524         Always define `refsym'.
10525
10526 2011-09-13  Andreas Schwab  <schwab@redhat.com>
10527
10528         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
10529         (__FD_ELT): Renamed from __FDELT.
10530         * misc/bits/select2.h (__FD_ELT): Likewise.
10531         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
10532         __FD_MASK instead of __FDELT, __FDMASK.
10533         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10534         Likewise.
10535         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10536         Likewise.
10537
10538         * elf/Makefile (gen-ldd): Fix pattern.
10539
10540         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
10541         (init_tls): Likewise.
10542
10543 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
10544
10545         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
10546
10547 2011-09-12  Andreas Schwab  <schwab@redhat.com>
10548
10549         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
10550         `struct cmsghdr *' instead of `void *'.
10551         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
10552         Likewise.
10553
10554 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
10555
10556         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
10557         if non-absolute.
10558         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
10559         ldd_rewrite_script.
10560
10561 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
10562
10563         * configure.in: Remove --with-tls option.
10564         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
10565         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
10566         out in case it is missing.
10567         * sysdeps/ia64/elf/configure.in: Likewise.
10568         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
10569         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
10570         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
10571         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10572         * sysdeps/sh/elf/configure.in: Likewise.
10573         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
10574         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10575         * sysdeps/x86_64/elf/configure.in: Likewise.
10576         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
10577         * sysdeps/mach/hurd/tls.h: Likewise.
10578
10579         [BZ #13067]
10580         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
10581
10582         [BZ #13090]
10583         * configure.in: Fix use of AC_INIT.
10584
10585         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
10586
10587 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
10588
10589         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
10590         __set_errno.
10591         * malloc/hooks.c: Likewise.
10592
10593         [BZ #11929]
10594         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
10595         variables statically.
10596         (narenas): Initialize.
10597         (list_lock): Initialize.
10598         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
10599         initializtion of main_arena and list_lock.  Small cleanups.
10600         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
10601         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
10602         Add initializers to main_arena and mp_.
10603         (malloc_state): Remove pagesize member.  Change all users to use
10604         GLRO(dl_pagesize).
10605
10606         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
10607         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
10608         is always initialized.
10609
10610         * malloc/malloc.c: Removed unused configurations and dead code.
10611         * malloc/arena.c: Likewise.
10612         * malloc/hooks.c: Likewise.
10613         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
10614
10615         * include/tls.h: Removed.  USE___THREAD must always be defined.
10616         * bits/libc-tsd.h: Don't handle !USE___THREAD.
10617         * elf/dl-libc.c: Likewise.
10618         * elf/dl-tsd.c: Likewise.
10619         * include/errno.h: Likewise.
10620         * include/netdb.h: Likewise.
10621         * include/resolv.h: Likewise.
10622         * inet/herrno-loc.c: Likewise.
10623         * inet/herrno.c: Likewise.
10624         * malloc/arena.c: Likewise.
10625         * malloc/hooks.c: Likewise.
10626         * malloc/malloc.c: Likewise.
10627         * resolv/res-state.c: Likewise.
10628         * resolv/res_libc.c: Likewise.
10629         * sysdeps/i386/dl-machine.h: Likewise.
10630         * sysdeps/ia64/dl-machine.h: Likewise.
10631         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10632         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10633         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10634         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10635         * sysdeps/sh/dl-machine.h: Likewise.
10636         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10637         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10638         * sysdeps/unix/i386/sysdep.S: Likewise.
10639         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10640         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10641         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10642         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10643         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10644         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10645         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10646         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10647         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10648         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10649         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10650         * sysdeps/x86_64/dl-machine.h: Likewise.
10651         * tls.make.c: Likewise.
10652
10653         * configure.in: Remove --with-__thread option.  Make tests for
10654         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
10655         tls_model attribute fail if no support is available.  Remove
10656         USE_IN_LIBIO.
10657         * Makeconfig: Adjust for dropped configure option.  All features are
10658         now mandatory.
10659         * Makerules: Likewise.
10660         * Versions.def: Likewise.
10661         * argp/argp-fmtstream.c: Likewise.
10662         * argp/argp-fmtstream.h: Likewise.
10663         * argp/argp-help.c: Likewise.
10664         * assert/assert.c: Likewise.
10665         * config.h.in: Likewise.
10666         * config.make.in: Likewise.
10667         * configure: Likewise.
10668         * configure.in: Likewise.
10669         * csu/Versions: Likewise.
10670         * csu/init.c: Likewise.
10671         * elf/tst-audit2.c: Likewise.
10672         * elf/tst-tls10.c: Likewise.
10673         * elf/tst-tls10.h: Likewise.
10674         * elf/tst-tls11.c: Likewise.
10675         * elf/tst-tls12.c: Likewise.
10676         * elf/tst-tls14.c: Likewise.
10677         * elf/tst-tlsmod11.c: Likewise.
10678         * elf/tst-tlsmod12.c: Likewise.
10679         * elf/tst-tlsmod13.c: Likewise.
10680         * elf/tst-tlsmod13a.c: Likewise.
10681         * elf/tst-tlsmod14a.c: Likewise.
10682         * elf/tst-tlsmod15b.c: Likewise.
10683         * elf/tst-tlsmod16a.c: Likewise.
10684         * elf/tst-tlsmod16b.c: Likewise.
10685         * elf/tst-tlsmod7.c: Likewise.
10686         * elf/tst-tlsmod8.c: Likewise.
10687         * elf/tst-tlsmod9.c: Likewise.
10688         * gmon/gmon.c: Likewise.
10689         * grp/fgetgrent_r.c: Likewise.
10690         * grp/putgrent.c: Likewise.
10691         * hurd/fopenport.c: Likewise.
10692         * include/libc-symbols.h: Likewise.
10693         * include/tls.h: Likewise.
10694         * intl/gettextP.h: Likewise.
10695         * intl/loadinfo.h: Likewise.
10696         * locale/global-locale.c: Likewise.
10697         * locale/localeinfo.h: Likewise.
10698         * mach/devstream.c: Likewise.
10699         * malloc/arena.c: Likewise.
10700         * malloc/set-freeres.c: Likewise.
10701         * misc/err.c: Likewise.
10702         * misc/getttyent.c: Likewise.
10703         * misc/mntent_r.c: Likewise.
10704         * posix/getopt.c: Likewise.
10705         * posix/wordexp.c: Likewise.
10706         * pwd/fgetpwent_r.c: Likewise.
10707         * resolv/Versions: Likewise.
10708         * resolv/res_hconf.c: Likewise.
10709         * shadow/fgetspent_r.c: Likewise.
10710         * shadow/putspent.c: Likewise.
10711         * stdio-common/printf_fphex.c: Likewise.
10712         * stdio-common/tmpfile.c: Likewise.
10713         * stdlib/abort.c: Likewise.
10714         * stdlib/fmtmsg.c: Likewise.
10715         * sunrpc/auth_unix.c: Likewise.
10716         * sunrpc/clnt_perr.c: Likewise.
10717         * sunrpc/clnt_tcp.c: Likewise.
10718         * sunrpc/clnt_udp.c: Likewise.
10719         * sunrpc/clnt_unix.c: Likewise.
10720         * sunrpc/openchild.c: Likewise.
10721         * sunrpc/svc_simple.c: Likewise.
10722         * sunrpc/svc_tcp.c: Likewise.
10723         * sunrpc/svc_udp.c: Likewise.
10724         * sunrpc/svc_unix.c: Likewise.
10725         * sunrpc/xdr.c: Likewise.
10726         * sunrpc/xdr_array.c: Likewise.
10727         * sunrpc/xdr_rec.c: Likewise.
10728         * sunrpc/xdr_ref.c: Likewise.
10729         * sunrpc/xdr_stdio.c: Likewise.
10730
10731 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10732
10733         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10734
10735 2011-07-03  Andreas Jaeger  <aj@suse.de>
10736
10737         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
10738         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
10739         regenerate with gen-libm-tests.pl.
10740
10741 2010-05-12  Petr Baudis  <pasky@suse.cz>
10742
10743         [BZ #11589]
10744         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
10745         around j0() zero points by switching to j1().
10746         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10747         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10748         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10749         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10750
10751 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10752
10753         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
10754         instead of 0.
10755         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
10756         instead of 0.                              .
10757         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10758         Patch in part by Pavel Roskin <proski@gnu.org>.
10759
10760         [BZ #13138]
10761         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
10762         realloc.
10763         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
10764         Free memory block if necessary.
10765
10766         [BZ #12847]
10767         * libio/genops.c (INTDEF): For string streams the _lock pointer can
10768         be NULL.  Don't lock in this case.
10769
10770 2011-09-09  Roland McGrath  <roland@hack.frob.com>
10771
10772         * elf/elf.h (ELFOSABI_GNU): New macro.
10773         (ELFOSABI_LINUX): Define to that.
10774
10775 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
10776
10777         * string/strncat.c (strncat): Undef the symbol in case it has been
10778         defined in bits/string.h.
10779
10780 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10781
10782         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
10783
10784         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
10785         link map.
10786
10787 2011-08-17  Andreas Jaeger  <aj@suse.de>
10788
10789         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
10790
10791 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10792             Ian Lance Taylor  <iant@google.com>
10793
10794         * math/libm-test.inc (lround_test): New testcase.
10795         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
10796
10797 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
10798
10799         * Makefile: Remove support for automatic cvs check-ins.
10800         * Makerules: Likewise.
10801         * config.make.in: Likewise.
10802         * configure.in: Likewise.
10803         * intl/Makefile: Likewise.
10804         * locale/Makefile: Likewise.
10805         * po/Makefile: Likewise.
10806         * posix/Makefile: Likewise.
10807         * sysdeps/gnu/Makefile: Likewise.
10808         * sysdeps/mach/hurd/Makefile: Likewise.
10809         * sysdeps/sparc/sparc32/Makefile: Likewise.
10810
10811         [BZ #13118]
10812         * posix/Makefile (bug-regex32-ENV): Define.
10813         Patch by John Stanley <jpsinthemix@verizon.net>.
10814
10815         * misc/Makefile (headers): Add bits/select2.h.
10816         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
10817         * misc/bits/select2.h: New file.
10818         * include/bits/select2.h: New file.
10819         * debug/Makefile (routines): Add fdelt_chk.
10820         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
10821         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
10822         FD_ISSET.
10823         * debug/fdelt_chk.c: New file.
10824
10825         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
10826         * wcsmbs/test-wmemcmp.c: Likewise.
10827         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
10828         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
10829
10830 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10831
10832         * string/Makefile (strop-tests): Add memcmp.
10833         * string/test-wmemcmp.c: New file.
10834         * string/test-memcmp.c: Add wmemcmp support.
10835
10836 2011-09-08  Roland McGrath  <roland@hack.frob.com>
10837
10838         [BZ #13153]
10839         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
10840         2011-07-19 change.
10841
10842         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
10843         garbage value in a __mach_port_mod_refs call in the cases of the
10844         task-self and thread-self ports.
10845
10846 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10847
10848         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
10849
10850 2011-09-08  Andreas Schwab  <schwab@redhat.com>
10851
10852         * elf/dl-load.c (lose): Check for non-null L.
10853
10854 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10855
10856         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
10857
10858         * elf/dl-libc.c (dlerror_run): Pass back error code from
10859         dl_catch_error.
10860
10861         [BZ #13123]
10862         * elf/dl-load.c (lose): Free l_origin if it is valid.
10863
10864         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
10865         names.
10866         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
10867         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10868         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10869         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10870         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
10871         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
10872
10873 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10874
10875         * sysdeps/powerpc/fpu/e_hypot.c: New file.
10876         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
10877         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
10878         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
10879         * sysdeps/powerpc/fpu/k_cosf.c: New file.
10880         * sysdeps/powerpc/fpu/k_sinf.c: New file.
10881         * sysdeps/powerpc/fpu/s_cosf.c: New file.
10882         * sysdeps/powerpc/fpu/s_sinf.c: New file.
10883         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
10884         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
10885
10886 2011-08-15  Alan Modra  <amodra@gmail.com>
10887
10888         [BZ #13092]
10889         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
10890         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
10891         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
10892         ppc_mcount to static-only-routines.
10893         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
10894         __mcount_internal.
10895         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
10896         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
10897
10898 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
10899
10900         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
10901         for finite and infinity parameters.
10902
10903 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10904
10905         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
10906         and add nop instructions for throughput optimization.
10907         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10908
10909 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
10910
10911         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
10912         aligned copy for power7 with vector-scalar instructions.
10913         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
10914
10915 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
10916
10917         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
10918         AVX check.
10919
10920 2011-09-07  Andreas Schwab  <schwab@redhat.com>
10921
10922         [BZ #13144]
10923         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
10924         last change.
10925
10926 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10927
10928         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10929         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
10930         syscall wrapper around clock_gettime in __vdso_clock_gettime.
10931         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
10932         clock_gettime.
10933
10934 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10935
10936         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
10937         Forgot to demangle the pointer.
10938
10939         * sysdeps/i386/sysdep.h: Define atom_text_section.
10940         * sysdeps/x86_64/sysdep.h: Likewise.
10941         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
10942         section with atom_text_section.
10943         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10944         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10945         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
10946         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
10947         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
10948
10949         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
10950         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
10951         already be defined.  Change to take two parameters and don't assign
10952         result to variable.  Adjust all users.
10953         Define INTERNAL_GETTIME if not already defined.
10954         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
10955         call.
10956         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
10957         HAVE_CLOCK_GETTIME_VSYSCALL.
10958         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
10959
10960         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
10961         gettimeofday vsyscall, just use time.
10962
10963 2011-09-06  Andreas Schwab  <schwab@redhat.com>
10964
10965         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
10966         <errno.h>.
10967
10968 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10969
10970         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
10971         syscall on x86-64.
10972         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
10973         syscall.
10974         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
10975         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
10976         syscall if possible.
10977
10978 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10979
10980         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
10981         e_ident.  Don't pass to find_mapsXX.
10982         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
10983
10984 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10985
10986         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10987         strchr-sse2-no-bsf strrchr-sse2-no-bsf
10988         * sysdeps/x86_64/multiarch/strchr.S: Update.
10989         Check bit_slow_BSF bit.
10990         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
10991         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
10992         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
10993
10994 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10995
10996         [BZ #13134]
10997         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
10998         before glibc 2.15.
10999         (tryshell): Define.
11000         (__spawni): Change last parameter to be flag.  Test
11001         SPAWN_XFLAGS_USE_PATH flag to use path or not.
11002         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
11003         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
11004         * posix/spawni.c: Likewise.
11005         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
11006         * posix/spawnp.c: Likewise.  Change normal version to use
11007         SPAWN_XFLAGS_USE_PATH.
11008         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
11009         SPAWN_XFLAGS_TRY_SHELL.
11010
11011         [BZ #13150]
11012         * posix/glob.h: Remove gcc 1.x support.
11013
11014         [BZ #13068]
11015         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
11016
11017 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11018
11019         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11020         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
11021         strrchr-sse2-bsf
11022         * sysdeps/i386/i686/multiarch/strchr.S: New file.
11023         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
11024         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
11025         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
11026         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
11027         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
11028
11029 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11030
11031         * sysdeps/x86_64/wcscmp.S: New file.
11032
11033         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
11034         wcscmp-c wcscmp-sse2
11035         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
11036         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
11037         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
11038         * wcsmbs/wcscmp.c: Allow renaming.
11039
11040 2011-09-05  David S. Miller  <davem@davemloft.net>
11041
11042         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
11043         stack slot, rather than the struct return pointer slot.
11044         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
11045         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
11046         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
11047         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
11048
11049 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11050
11051         * po/ja.po: Update from translation team.
11052
11053         [BZ #13144]
11054         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
11055         kernel in 64-bit binaries.
11056
11057 2011-09-01  David S. Miller  <davem@davemloft.net>
11058
11059         * elf/elf.h (HWCAP_SPARC_*): Move to..
11060         * sysdeps/sparc/sysdep.h: this new file and add new values.
11061         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
11062         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
11063         _DL_HWCAP_COUNT to 24.
11064         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
11065         entries.
11066         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
11067         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
11068         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
11069         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
11070         instead of magic constants.
11071         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11072
11073 2011-08-31  David S. Miller  <davem@davemloft.net>
11074
11075         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
11076         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
11077         Reimplement to do errno handling inline.
11078         (SYSCALL_ERROR_HANDLER): New macro.
11079         (__SYSCALL_STRING): Do not do errno handling in asm.
11080         (__CLONE_SYSCALL_STRING): Delete.
11081         (__INTERNAL_SYSCALL_STRING): Delete.
11082         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
11083         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
11084         (PSEUDO): Reimplement to do errno handling inline.
11085         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
11086         (SYSCALL_ERROR_HANDLER): New macro.
11087         (__SYSCALL_STRING): Do not do errno handling in asm.
11088         (__CLONE_SYSCALL_STRING): Delete.
11089         (__INTERNAL_SYSCALL_STRING): Delete.
11090         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
11091         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
11092         i386.
11093         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
11094         (inline_syscall*): Add 'err' argument.
11095         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
11096         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
11097         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
11098         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
11099
11100         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
11101         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
11102
11103 2011-08-30  Andreas Schwab  <schwab@redhat.com>
11104
11105         * elf/rtld.c (dl_main): Relocate objects in dependency order.
11106
11107 2011-08-29  Jiri Olsa <jolsa@redhat.com>
11108
11109         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
11110         directive.
11111
11112 2011-08-24  David S. Miller  <davem@davemloft.net>
11113
11114         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
11115
11116 2011-08-24  Andreas Schwab  <schwab@redhat.com>
11117
11118         * elf/Makefile: Add rules to build and run unload8 test.
11119         * elf/unload8.c: New file.
11120         * elf/unload8mod1.c: New file.
11121         * elf/unload8mod1x.c: New file.
11122         * elf/unload8mod2.c: New file.
11123         * elf/unload8mod3.c: New file.
11124
11125         * elf/dl-close.c (_dl_close_worker): Reset private search list if
11126         it wasn't used.
11127
11128 2011-08-23  David S. Miller  <davem@davemloft.net>
11129
11130         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
11131         subtract stack bias.
11132         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
11133         %sp not %fp in calculations.
11134         (_JMPBUF_UNWINDS_ADJ): Likewise.
11135
11136         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
11137         (aio_suspend): Call it to force an exception region around the
11138         AIO_MISC_WAIT() invocation.
11139
11140 2011-08-23  Andreas Schwab  <schwab@redhat.com>
11141
11142         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
11143         backslash.
11144
11145 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
11146
11147         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
11148         protection macro.
11149         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
11150         and <dl-machine.h>.
11151         (Elf64_FuncDesc): Remove.
11152
11153 2011-08-22  David S. Miller  <davem@davemloft.net>
11154
11155         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
11156         sigaltstack check, add missing cfi directives.
11157         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
11158         missing cfi directives, and sigaltstack handling.
11159
11160 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11161
11162         [BZ #11724]
11163         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
11164         object is seen twice.
11165         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11166
11167         * elf/Makefile (distribute): Add tst-initorder2.c.
11168         (tests): Add tst-initorder2.
11169         (modules-names): Add tst-initorder2a tst-initorder2b
11170         tst-initorder2c tst-initorder2d.  Add rules to build them.
11171         ($(objpfx)tst-initorder2.out): New rule.
11172         * elf/tst-initorder2.c: New file.
11173         * elf/tst-initorder2.exp: New file.
11174
11175 2011-08-22  Andreas Schwab  <schwab@redhat.com>
11176
11177         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
11178
11179         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
11180         dependencies back to end of function.
11181
11182         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11183         $(elfobjdir)/ld.so.
11184
11185 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
11186
11187         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
11188         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
11189         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11190         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11191         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
11192         of __vdso_gettimeofday.
11193         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
11194         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
11195         attribute_hidden.
11196         (_libc_vdso_platform_setup): Remove initialization of
11197         __vdso_gettimeofday and __vdso_time.
11198
11199 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11200
11201         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
11202         and fgetc_unlocked.
11203         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
11204         getc_unlocked.
11205
11206         * elf/dl-open.c (add_to_global): Report additions to the global scope
11207         for LD_DEBUG=scopes.
11208         (dl_open_worker): Also print scope of newly loaded dependencies.
11209         (_dl_show_scope): Indicate if there is no scope.
11210
11211         [BZ #13114]
11212         * stdio-common/Makefile (tests): Add bug24.
11213         * stdio-common/bug24.c: New file.
11214
11215 2011-08-19  Andreas Jaeger  <aj@suse.de>
11216
11217         [BZ #13114]
11218         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
11219         non-existant file when using close-on-exec mode.
11220
11221 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11222
11223         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
11224         the very first instruction.
11225
11226         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
11227         the CFI state in the end.
11228         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
11229         inclusion of dl-trampoline.h.
11230         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
11231
11232 2011-08-19  Andreas Schwab  <schwab@redhat.com>
11233
11234         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
11235         expectations for long double.
11236
11237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
11238         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
11239
11240 2011-08-14  David S. Miller  <davem@davemloft.net>
11241
11242         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
11243         artificual limit depends upon the system page size.
11244
11245 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11246
11247         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
11248         * resolv/Makefile: Define CFLAGS-libresolv.
11249
11250 2011-08-17  Andreas Schwab  <schwab@redhat.com>
11251
11252         * nss/makedb.c (compute_tables): Make variables used in nested
11253         function static.
11254
11255 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11256
11257         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
11258         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
11259         if buffer was too small.
11260
11261         * elf/pldd.c (main): Attach to all threads in the process.
11262         Rewrite /proc handling to use *at functions.
11263
11264 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
11265
11266         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
11267         specifies first scope to show.
11268         (dl_open_worker): Update callers.  Move printing scope of new
11269         object to before the relocation.
11270         * elf/rtld.c (dl_main): Update _dl_show_scope call.
11271         * sysdeps/generic/ldsodefs.h: Update declaration.
11272
11273         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
11274         string for the scope number.
11275
11276 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
11277
11278         * nscd/servicescache.c (cache_addserv): Make sure written is always
11279         initialized.
11280
11281 2011-08-14  Roland McGrath  <roland@hack.frob.com>
11282
11283         * sysdeps/i386/i486/bits/atomic.h
11284         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
11285         statement expression, so as to suppress "set but not used" warning.
11286         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
11287
11288         * string/strncat.c (STRNCAT): Use prototype definition.
11289
11290         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
11291         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
11292         -Iprograms here.
11293         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
11294         (localedef-modules): Add localedef.
11295         (locale-modules): Add locale.
11296
11297         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
11298         * elf/rtld.c (dl_main): Invert order of assignment in last change,
11299         to avoid a warning.
11300
11301 2011-08-14  David S. Miller  <davem@davemloft.net>
11302
11303         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
11304         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
11305
11306 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
11307
11308         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
11309         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
11310         * elf/rtld.c (dl_main): Set l_name of vDSO.
11311         Call _dl_show_scope when DL_DEBUG_SCOPES.
11312         (process_dl_debug): Recognize scopes flag and also set it for all.
11313         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
11314         Declare _dl_show_scope.
11315
11316         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
11317         (do_dlopen): Pass caller_dlopen to dl_open.
11318         (__libc_dlopen_mode): Initialize caller_dlopen.
11319
11320         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
11321         of libc.  Make tolower call locale-independent.  Optimize a bit by
11322         using isdigit instead of isalnum.
11323         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
11324
11325 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
11326
11327         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
11328         was a dependency or dynamically loaded.
11329
11330 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
11331
11332         * intl/l10nflist.c: Allow architecture-specific pop function.
11333         * sysdeps/x86_64/l10nflist.c: New file.
11334
11335         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
11336         classification.
11337
11338 2011-08-10  Andreas Schwab  <schwab@redhat.com>
11339
11340         * include/dirent.h: Add libc_hidden_proto for scandirat and
11341         scandirat64.  Don't declare __scandirat64.
11342         * dirent/scandirat.c: Add libc_hidden_def.
11343         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
11344         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
11345
11346 2011-08-10  David S. Miller  <davem@davemloft.net>
11347
11348         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
11349         enum.
11350         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11351         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11352         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11353
11354 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
11355
11356         * Versions.def [libc]: Add GLIBC_2.15.
11357         * dirent/Makefile (routines): Add scandirat and scandirat64.
11358         * dirent/Versions [libc]: Export scandirat and scandirat64 for
11359         GLIBC_2.15.
11360         * dirent/dirent.h: Declare scandirat and scandirat64.
11361         * dirent/scandirat.c: New file.
11362         * dirent/scandirat64.c: New file.
11363         * sysdeps/wordsize-64/scandirat.c: New file.
11364         * sysdeps/wordsize-64/scandirat64.c: New file.
11365         * dirent/opendir.c: Define opendirat.
11366         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
11367         using scandirat.
11368         * dirent/scandir64.c: Adjust for scandir.c change.
11369         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
11370         __scandirat64, and __scandir_cancel_handler.
11371         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
11372         additional parameter and use openat instead of open (outside of ld.so).
11373         Add new __opendir as wrapper around __opendirat.
11374         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
11375         here without requiring old scandirat implementation.
11376
11377 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
11378
11379         * dirent/scandir.c (cancel_handler): Renamed to
11380         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
11381         defined.  Adjust users.
11382         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
11383         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
11384
11385 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
11386
11387         * string/test-string.h (IMPL): Use __STRING to expand name and then
11388         stringify it.
11389
11390         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
11391         of cleanups.
11392
11393 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11394
11395         * string/Makefile: Update.
11396         (strop-tests): Append strncat.
11397         * string/test-wcscmp.c: New file.
11398         New comprehensive test for wcscmp.
11399         * string/test-strcmp.c: Update.
11400         (WIDE): New define.
11401
11402 2011-07-22  Andreas Schwab  <schwab@redhat.com>
11403
11404         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
11405         line.
11406
11407 2011-07-26  Andreas Schwab  <schwab@redhat.com>
11408
11409         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11410         encoding to ACE if AI_IDN.
11411
11412 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
11413
11414         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
11415         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
11416
11417 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11418
11419         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
11420         Fix overflow bug in strncat.
11421         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
11422
11423         * string/test-strncat.c: Update.
11424         Add new tests for checking overflow bugs.
11425
11426 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11427
11428         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11429         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
11430         * sysdeps/i386/i686/multiarch/strcat.S: New file.
11431         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
11432         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
11433         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
11434         * sysdeps/i386/i686/multiarch/strncat.S: New file.
11435         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
11436         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
11437
11438         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
11439         (USE_AS_STRCAT): Define.
11440         Add strcat and strncat support.
11441         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11442
11443 2011-07-25  Andreas Schwab  <schwab@redhat.com>
11444
11445         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
11446         __n bigger than INT_MAX+1.
11447         (__strncmp_g): Likewise.
11448
11449 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
11450
11451         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
11452         * libio/stido.h: Likewise.
11453
11454         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
11455         (AF_NFC): Define.
11456         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
11457         (AF_NFC): Define.
11458
11459         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
11460         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11461         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11462         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11463         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11464
11465         [BZ #13021]
11466         * scripts/test-installation.pl: Don't expect libnss_test1 to be
11467         installed.
11468
11469         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
11470         typo.
11471         (_dl_x86_64_save_sse): Likewise.
11472
11473 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
11474
11475         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
11476         OSXSAVE.
11477         (_dl_x86_64_save_sse): Likewise.
11478
11479         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
11480
11481         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
11482
11483 2011-07-21  Andreas Schwab  <schwab@redhat.com>
11484
11485         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
11486         change.
11487         (_dl_x86_64_save_sse): Use correct AVX check.
11488
11489 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11490
11491         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
11492         bug in strncpy/strncat.
11493         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
11494
11495 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
11496
11497         * string/tester.c (test_strcat): Add tests for different alignments
11498         of source and destination.
11499         (test_strncat): Likewise.
11500
11501 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11502
11503         [BZ #12852]
11504         * posix/glob.c (glob): Check passed in values before using them in
11505         expressions to avoid some overflows.
11506         (glob_in_dir): Likewise.
11507
11508         [BZ #13007]
11509         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
11510         check for AVX enablement so that we don't crash with old kernels and
11511         new hardware.
11512         * elf/tst-audit4.c: Add same checks here.
11513         * elf/tst-audit6.c: Likewise.
11514
11515         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
11516
11517 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
11518
11519         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
11520
11521 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11522
11523         * po/cs.po: Update from translation team.
11524         * po/bg.po: Likewise.
11525
11526 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
11527
11528         * misc/sys/cdefs.h: Add support for const attribute.
11529         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
11530         to gnu_dev_{major,minor,makedev} functions.
11531
11532 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
11533
11534         * intl/dcigettext.c (get_output_charset): Add missing bracket.
11535
11536 2011-07-20  Andreas Schwab  <schwab@redhat.com>
11537
11538         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
11539         strlen results.
11540
11541 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11542
11543         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
11544         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
11545         register in order to avoid conflicts with the soft frame pointer
11546         being held in r11 when necessary.
11547         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11548         (INTERNAL_VSYSCALL_NCS): Likewise.
11549
11550 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
11551
11552         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
11553         * elf/dl-fini.c (_dl_fini): Adjust caller.
11554         * elf/dl-close.c (_dl_close_worker): Likewise.
11555         * sysdeps/generic/ldsodefs.h: Adjust declaration.
11556
11557 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11558
11559         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
11560         "aux_cache->nlibs < 0".
11561
11562         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
11563         in the reload-count case.
11564
11565 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11566
11567         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11568         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
11569         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
11570         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
11571         * sysdeps/x86_64/multiarch/strcat.S: New file.
11572         * sysdeps/x86_64/multiarch/strncat.S: New file.
11573         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
11574         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
11575         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
11576         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
11577         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
11578         (USE_AS_STRCAT): Define.
11579         Add strcat and strncat support.
11580         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11581         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
11582         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
11583         * string/strncat.c: Update.
11584         (USE_AS_STRNCAT): Define.
11585         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11586         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
11587         and i7.
11588         * sysdeps/x86_64/multiarch/init-arch.h
11589         (bit_Prefer_PMINUB_for_stringop): New.
11590         (index_Prefer_PMINUB_for_stringop): Likewise.
11591         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
11592         bit_Prefer_PMINUB_for_stringop.
11593
11594 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11595
11596         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
11597         buffer64.
11598         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
11599         of casting of buffer.
11600         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
11601         buffer32 and buffer64.
11602         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
11603         writes instead of casting of buffer.
11604         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
11605         buffer32.
11606         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
11607         casting of buffer.
11608
11609 2011-07-19  Andreas Schwab  <schwab@redhat.com>
11610
11611         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
11612
11613 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11614
11615         * nscd/nscd.c (termination_handler): Don't do anything for a database
11616         if it has not yet been initialized.
11617
11618 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11619
11620         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11621
11622 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11623
11624         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11625
11626 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11627
11628         * po/nl.po: Update from translation team.
11629         * po/sv.po: Likewise.
11630
11631 2011-07-16  Roland McGrath  <roland@hack.frob.com>
11632
11633         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
11634         now disallowed by GCC.
11635
11636         * configure.in (use-default-link): Default to yes if a test -shared
11637         link meets our qualifications.
11638         * configure: Regenerated.
11639
11640         * config.make.in (output-format): New variable.
11641         * configure.in: Check for ld --print-output-format support.
11642         * configure: Regenerated.
11643         * Makerules ($(common-objpfx)format.lds)
11644         [$(output-format) != unknown]: Just use $(output-format),
11645         instead of the linker-script munging.
11646
11647 2011-07-14  Roland McGrath  <roland@hack.frob.com>
11648
11649         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
11650         of $(common-objpfx)shlib.lds.
11651         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
11652
11653         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
11654         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
11655
11656         * configure.in (-z relro check): Adjust test code to add a large
11657         writable data section after it.
11658         * configure: Regenerated.
11659
11660 2011-07-11  Roland McGrath  <roland@hack.frob.com>
11661
11662         * configure.in (-z relro check): Fix test code to make the variable
11663         truly const.
11664         * configure: Regenerated.
11665
11666 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
11667
11668         * nscd/nscd.h (struct traced_file): Define.
11669         (struct database_dyn): Remove inotify_descr, reset_res, and filename
11670         elements.  Add traced_files.
11671         (inotify_fd): Declare.
11672         (register_traced_file): Declare.
11673         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
11674         (inotify_fd): Export.
11675         (resolv_conf_descr): Remove.
11676         (nscd_init): Move inotify descriptor creation to main.
11677         Don't register files for notification here.
11678         (register_traced_file): New function.
11679         (invalidate_cache): Don't use reset_res to determine whether to call
11680         res_init, go through the list of registered files.
11681         (main_loop_poll): The inotify descriptors are now stored in the
11682         structures for the traced files.
11683         (main_loop_epoll): Likewise
11684         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
11685         to __nss_disable_nscd.
11686         * nscd/cache.c (prune_cache): There is no single inotify descriptor
11687         for a database anymore.  Check the records for all the registered
11688         files instead.
11689         * nss/Makefile (libnss_files-routines): Add files-init.
11690         (libnss_db-routines): Add db-init.
11691         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
11692         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
11693         * nss/nss_db/db-init.c: New file.
11694         * nss/nss_files/files-init.c: New file.
11695         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
11696         __nss_lookup_function.
11697         (__nss_lookup_function): Call nss_load_library.
11698         (nss_load_all_libraries): New function.
11699         (__nss_disable_nscd): Take parameter with callback function for files
11700         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
11701         used for the cached services.
11702         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
11703         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
11704         options for features to all the files in nscd.
11705
11706         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
11707
11708 2011-07-10  Roland McGrath  <roland@hack.frob.com>
11709
11710         * csu/elf-init.c (__libc_csu_init): Comment typo.
11711
11712 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
11713
11714         * po/pl.po: Update from translation team.
11715         * po/ja.po: Likewise.
11716         * po/ru.po: Likewise.
11717         * po/ko.po: Likewise.
11718         * po/fr.po: Likewise.
11719
11720 2011-07-09  Roland McGrath  <roland@hack.frob.com>
11721
11722         * configure.in (.ctors/.dtors header and trailer check):
11723         Use an empirical test on a built program.
11724         * configure: Regenerated.
11725
11726         * configure.in (-z relro check): Use an empirical test on a built DSO.
11727         Detect, but do not require, on ia64.
11728         * configure: Regenerated.
11729
11730         * configure.in (READELF): Find it with AC_CHECK_TOOL.
11731         Update tests that use readelf to use $READELF instead.
11732         * configure: Regenerated.
11733
11734 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
11735
11736         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
11737         if the result is not used.
11738
11739 2011-07-05  Andreas Jaeger  <aj@suse.de>
11740
11741         [BZ#9696]
11742         * stdlib/tst-strtod.c: Add testcase.
11743
11744 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11745
11746         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
11747         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
11748         The latter has a higher limit.  Take additional parameter to pass to
11749         the new function.
11750         (__pathconf): Pass file to __statfs_link_max.
11751         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
11752         __statfs_link_max.
11753         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
11754         __statfs_link_max.
11755
11756         [BZ #12868]
11757         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
11758         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11759         Handle Lustre.
11760         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
11761         (__statfs_filesize_max): Likewise.
11762         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
11763
11764 2011-07-05  Andreas Jaeger  <aj@suse.de>
11765
11766         * resolv/res_comp.c (dn_skipname): Remove unused variable.
11767
11768 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
11769
11770         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
11771         `status' variable.
11772         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
11773         Likewise.
11774
11775 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11776
11777         * Makefile (strop-tests): Add strncat.
11778         * string/test-strncat.c: New file.
11779
11780 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
11781
11782         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
11783
11784 2011-06-21  Andreas Jaeger  <aj@suse.de>
11785
11786         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
11787         Copy rule from iconvdata/Makefile.
11788
11789 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11790
11791         [BZ #12922]
11792         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
11793         but no long options are defined, just return 'W'.
11794
11795 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
11796
11797         [BZ #9696]
11798         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
11799
11800 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11801
11802         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
11803         netgroups to read.
11804         (innetgr): Likewise.
11805
11806 2011-07-05  Roland McGrath  <roland@hack.frob.com>
11807
11808         * config.make.in (install_root): Default to $(DESTDIR).
11809
11810 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
11811
11812         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
11813
11814 2011-07-02  Roland McGrath  <roland@hack.frob.com>
11815
11816         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
11817
11818         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
11819         containing directory rather than embedding absolute directory names.
11820
11821         * scripts/check-local-headers.sh: Rewritten using awk.
11822         Match by word, not by line.  Print error messages for matches.
11823         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
11824
11825         * Makerules [shlib-lds-flags empty]:
11826         ($(common-objpfx)libc_pic.opts): New target.
11827         ($(common-objpfx)libc_pic.os.clean): New target.
11828         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
11829
11830         * config.make.in (OBJCOPY): New variable.
11831         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
11832         * configure: Regenerated.
11833
11834         * config.make.in (use-default-link): New variable.
11835         * configure.in (use_default_link): Grok --with-default-link to set it.
11836         * configure: Regenerated.
11837         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
11838         (shlib-lds, shlib-lds-flags): Define to empty.
11839
11840         * Makerules (shlib-lds): New variable.
11841         (shlib-lds-flags): New variable.
11842         (build-shlib, build-moduile, build-module-asneeded): Use it.
11843         ($(common-objpfx)libc.so): Use $(shlib-lds).
11844         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
11845         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
11846
11847         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
11848         DT_FLAGS/DT_FLAGS_1 with zero flags.
11849
11850         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
11851         linker script munging.
11852
11853 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
11854
11855         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
11856         as 128-bit value.
11857         * crypt/sha512.c (sha512_process_block): Perform total addition using
11858         128-bit if possible.
11859         (__sha512_finish_ctx): Likewise.
11860         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
11861         as 64-bit value.
11862         * crypt/sha256.c (SWAP64): Define.
11863         (sha256_process_block): Perform total addition using 64-bit if
11864         possible.
11865         (__sha256_finish_ctx): Likewise.
11866
11867 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
11868
11869         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
11870         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11871         * nscd/hstcache.c (cache_addhst): Likewise.
11872         * nscd/grpcache.c (cache_addgr): Likewise.
11873         * nscd/aicache.c (addhstaiX): Likewise
11874         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
11875
11876 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
11877
11878         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
11879         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11880         * nscd/hstcache.c (cache_addhst): Likewise.
11881         * nscd/grpcache.c (cache_addgr): Likewise.
11882         * nscd/aicache.c (addhstaiX): Likewise
11883
11884 2011-07-01  Andreas Schwab  <schwab@redhat.com>
11885
11886         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
11887         domain only when needed.
11888
11889 2011-06-30  Andreas Schwab  <schwab@redhat.com>
11890
11891         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
11892         is always restored.
11893
11894 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
11895
11896         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
11897         are re-adding the entry.
11898         * nscd/servicescache.c (cache_addserv): Likewise.
11899
11900 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
11901
11902         * sysdeps/generic/dl-irel.h: fix protection against multiple
11903         inclusions.
11904         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
11905
11906 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
11907
11908         [BZ #12935]
11909         * malloc/memusage.sh: Fix quoting in message.
11910         * debug/xtrace.sh: Likewise.
11911
11912         * configure.in: Remove support for --experimental-malloc option, make
11913         it the default.
11914         * config.make.in: Likewise.
11915         * malloc/Makefile: Likewise.
11916
11917 2011-06-27  Andreas Schwab  <schwab@redhat.com>
11918
11919         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
11920         two-byte characters.
11921
11922 2011-06-27  Roland McGrath  <roland@hack.frob.com>
11923
11924         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
11925         AC_CACHE_CHECK invocation.
11926         * configure: Regenerated.
11927
11928         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
11929
11930 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
11931
11932         [BZ #12350]
11933         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
11934         bit from old_res_options.
11935
11936         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
11937
11938         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
11939         value type for setfct.
11940
11941 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11942
11943         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11944         __gettimeofday instead of gettimeofday.
11945
11946 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
11947
11948         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
11949
11950 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11951
11952         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
11953
11954         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
11955         info.
11956
11957 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11958
11959         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11960         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11961         strcpy-sse2-unaligned strncpy-sse2-unaligned
11962         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
11963         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
11964         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
11965         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
11966         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
11967         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
11968         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
11969         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
11970         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
11971         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
11972         (STRCPY): Support SSE2 and SSSE3 versions.
11973
11974 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
11975
11976         [BZ #12874]
11977         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
11978         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
11979         kernels which artificially limit size of requests.
11980
11981 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11982
11983         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11984         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11985         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
11986         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
11987         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
11988         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
11989         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
11990         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
11991         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
11992         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
11993         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
11994         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
11995         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
11996         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
11997         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
11998         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11999         Enable unaligned load optimization for Intel Core i3, i5 and i7
12000         processors.
12001         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
12002         Define.
12003         (index_Fast_Unaligned_Load): Define.
12004         (HAS_FAST_UNALIGNED_LOAD): Define.
12005
12006 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
12007
12008         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
12009
12010 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
12011
12012         [BZ #12907]
12013         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
12014         until it is clear that the information is realy needed.
12015         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
12016
12017 2011-06-22  Andreas Schwab  <schwab@redhat.com>
12018
12019         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
12020
12021 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
12022
12023         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
12024         /sys/devices/system/cpu/online if it is usable.
12025
12026         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
12027         reading the information from the /proc filesystem to once a second.
12028
12029 2011-06-21  Andreas Jaeger  <aj@suse.de>
12030
12031         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
12032         NULL after inclusion of kernel headers.
12033
12034 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
12035
12036         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
12037         calls to internal_setent.
12038
12039         [BZ #12885]
12040         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
12041         addresses using gethostbyname4_r ignore IPv4 addresses.
12042
12043         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
12044         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
12045
12046         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
12047
12048 2011-06-20  David S. Miller  <davem@davemloft.net>
12049
12050         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
12051         inclusions.
12052         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
12053
12054         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
12055         (elf_irel): Use it.
12056         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
12057         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
12058         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
12059         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
12060         * sysdeps/x86_64/dl-irel.h: Likewise.
12061
12062         * elf/dl-runtime.c: Use elf_ifunc_invoke.
12063         * elf/dl-sym.c: Likewise.
12064
12065 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12066
12067         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
12068         need to dereference resplen2.
12069
12070 2011-06-14  Andreas Schwab  <schwab@redhat.com>
12071
12072         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
12073
12074 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12075
12076         * Makeconfig: Define vardbdir and inst_vardbdir.
12077         * nss/Makefile: Add rules to install db-Makefile.
12078
12079         * nss/nss_db/db-XXX.c: Cleanup.
12080
12081         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
12082         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
12083         GLIBC_PRIVATE.
12084         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
12085         * nss/makedb.c: Implement -g option to specify that value strings
12086         are generated and should not be added to table iterated over for
12087         get*ent calls.
12088         * nss/nss_db/db-initgroups.c: New file.
12089
12090         * nss/getent.c: Add support for initgroups lookups through getgrouplist
12091         interface.
12092
12093         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
12094         (internal_getgrouplist): Adjust to name change.
12095         Update use_initgroups_entry if this is not the first call.
12096         * nss/databases.def: Add initgroups entry.
12097
12098         * nss/makedb.c (compute_tables): Check result of multiple hash table
12099         sizes to minimize maximum chain length.
12100
12101 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
12102
12103         * Versions.def: Add entry for libnss_db.
12104         * shlib-versions: Likewise.
12105         * nss/Makefile: Add rules to build libnss_db.
12106         * nss/Versions: Add libnss_db information.  Organize libnss_files
12107         entries better.
12108         * nss/db-Makefile: Add gshadow support.  Change rules for the new
12109         makedb progra.  Some minor improvements to generate smaller files.
12110         * nss/nss_db/nss_db.h: Move NSS database header data structures to
12111         here from...
12112         * nss/makedb.c: ...here.
12113         Improve database format to be smaller and require less memory at
12114         runtime.
12115         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
12116         db anymore.
12117         * nss/nss_db/db-netgrp.c: Likewise.
12118         * nss/nss_db/db-open.c: Likewise.
12119         * nss/nss_files/flies-XXX.x: Adjust comments.
12120         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
12121         * nss/nss_files/files-grp.c: Likewise.
12122         * nss/nss_files/files-hosts.c: Likewise.
12123         * nss/nss_files/files-network.c: Likewise.
12124         * nss/nss_files/files-proto.c: Likewise.
12125         * nss/nss_files/files-pwd.c: Likewise.
12126         * nss/nss_files/files-rpc.c: Likewise.
12127         * nss/nss_files/files-service.c: Likewise.
12128         * nss/nss_files/files-sgrp.c: Likewise.
12129         * nss/nss_files/files-spwd.c: Likewise.
12130         * nss/nss_db/db-alias.c: Removed.
12131         * nss/nss_db/dummy-db.h: Removed.
12132
12133 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
12134
12135         * nss/makedb.c: Rewritten to not use database library.
12136         * nss/Makefile: Update to build new makedb program.
12137
12138 2011-06-14  Andreas Jaeger  <aj@suse.de>
12139
12140         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
12141         memset declaration.
12142
12143 2011-06-10  Andreas Schwab  <schwab@redhat.com>
12144
12145         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
12146         tmpbuf.
12147
12148 2011-06-10  Roland McGrath  <roland@hack.frob.com>
12149
12150         * Makerules (shlib.lds): Fail if the linker script comes out empty.
12151         * elf/Makefile ($(objpfx)ld.so): Likewise.
12152
12153         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
12154         Don't list ld.so twice in dependencies.
12155
12156         * posix/bug-regex31.c: Include <stdlib.h>.
12157
12158         * nscd/hstcache.c (cache_addhst): Remove unused variable.
12159
12160         * nis/nss_compat/compat-spwd.c
12161         (getspent_next_nss_netgr): Remove unused variable.
12162         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
12163
12164         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
12165         nonmembers" output to use the right array.
12166
12167         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
12168
12169         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
12170
12171         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
12172         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
12173         * catgets/gencat.c (read_input_file): Likewise.
12174         * locale/programs/locarchive.c (enlarge_archive): Likewise.
12175
12176         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
12177         variable definition inside #if's controlling its use.
12178
12179         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
12180
12181         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
12182
12183         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
12184
12185         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
12186         unreachable code.
12187
12188         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
12189
12190         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
12191         * configure: Regenerated.
12192
12193         * Makerules: Revert last change.
12194         * elf/Makefile: Likewise.
12195
12196 2011-06-09  Roland McGrath  <roland@hack.frob.com>
12197
12198         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
12199         * elf/Makefile ($(objpfx)librtld.os): Likewise.
12200         (reloc-link): Likewise.
12201
12202 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
12203
12204         * elf/Makefile: Add rules to build pldd.
12205         * elf/pldd.c: New file.
12206         * elf/pldd-xx.c: New file.
12207
12208 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
12209
12210         * version.h: Update for 2.15 development version.
12211
12212 2011-06-07  David S. Miller  <davem@davemloft.net>
12213
12214         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
12215         ifuncs.
12216         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
12217         elf_machine_lazy_rel): Likewise.
12218         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
12219         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
12220         elf_machine_lazy_rel): Likewise.
12221         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
12222         dl_hwcap via passed in argument.
12223         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
12224         Likewise.
12225
12226 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12227
12228         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
12229
12230 2011-06-06  Roland McGrath  <roland@hack.frob.com>
12231
12232         [BZ #12849]
12233         * manual/fdl-1.1.texi: New file, verbatim from:
12234         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
12235         * manual/lgpl-2.1.texi: New file, verbatim from:
12236         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
12237         * manual/Makefile (licenses): New variable, list those new file names.
12238         (texis): Use it.
12239         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
12240
12241         * manual/fdl.texi: File removed.
12242         * manual/lesser.texi: File removed.
12243         * manual/libc.texinfo (Copying, Documentation License):
12244         Use new @include file names, put @appendix directive before @include.
12245
12246 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
12247
12248         [BZ #12841]
12249         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
12250         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
12251         (mq_open): Add __NTH.
12252
12253 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12254
12255         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12256         Assume Intel Core i3/i5/i7 processor if AVX is available.
12257
12258 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12259
12260         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12261         typo.
12262
12263 2011-05-31  Andreas Schwab  <schwab@redhat.com>
12264
12265         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
12266         memory.  Use alloca_account.  Fix memory leak when retrying.
12267
12268 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12269
12270         * version.h (RELEASE): Bump for 2.14 release.
12271         * include/features.h (__GLIBC_MINOR__): Bump to 14.
12272
12273         * config.make.in (RANLIB): Remove entry.
12274
12275 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
12276
12277         * po/Makefile (po-sed-cmd): Add ksh to extensions.
12278         (libc.pot): Work around missing support for .ksh extension in xgettext.
12279
12280         [BZ #12684]
12281         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
12282         if both request failed.
12283         (send_dg): In case of server errors clear resplen or *resplen2.
12284
12285         [BZ #12454]
12286         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
12287         when there are multiple maps.
12288         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
12289         (_dl_fini): Remove test here.
12290
12291         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
12292
12293 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
12294
12295         [BZ #12350]
12296         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
12297         bit from old_res_options.
12298         (gaih_inet): Likewise.
12299
12300         [BZ #11099]
12301         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
12302         as signed.
12303
12304         * resolv/res_init.c (res_setoptions): Make the code more compact.
12305
12306         [BZ #11558]
12307         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
12308         set RES_USEVC.
12309
12310         [BZ #11634]
12311         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
12312
12313         * malloc/malloc.h: Mark malloc hook variables as deprecated.
12314
12315         [BZ #11781]
12316         * malloc/malloc.h: Declare malloc hook variables as volatile.
12317
12318         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
12319         in last patch.
12320
12321         [BZ #11799]
12322         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
12323         raise in the comment.
12324         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12325         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12326         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
12327
12328 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
12329
12330         [BZ #12811]
12331         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
12332         grow the buffers more if it already has to be sufficient.
12333         (build_wcs_upper_buffer): Likewise.
12334         * posix/regexec.c (check_matching): Likewise.
12335         (clean_state_log_if_needed): Likewise.
12336         (extend_buffers): Don't enlarge buffers beyond size of the input
12337         buffer.
12338         Patches mostly by Emil Wojak <emil@wojak.eu>.
12339         * posix/bug-regex32.c: New file.
12340         * posix/Makefile (tests): Add bug-regex32.
12341
12342         * locale/findlocale.c (_nl_find_locale): Return right away if
12343         _nl_explode_name failed.
12344         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12345
12346         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
12347
12348         * debug/xtrace.sh: Unify messages.
12349         * malloc/memusage.sh: Likewise.
12350
12351         [BZ #12813]
12352         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
12353         time symbol from vDSO.  Substitute with vsyscall if not available.
12354         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
12355         __vdso_time.
12356
12357         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
12358         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
12359         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
12360         Add sendmmsg and internal_sendmmsg.
12361         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
12362         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
12363         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
12364
12365         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
12366         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
12367         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
12368
12369 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
12370
12371         [BZ #12813]
12372         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
12373         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
12374         available.
12375         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
12376         __vdso_getcpu.
12377
12378         [BZ #12814]
12379         * iconvdata/Makefile (tests): Add bug-iconv9.
12380         * iconvdata/bug-iconv9.c: New file.
12381
12382 2011-05-27  Andreas Schwab  <schwab@redhat.com>
12383
12384         [BZ #12814]
12385         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
12386
12387 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12388
12389         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12390         (struct user_regs_struct): Change intcs field back to cs.
12391
12392 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
12393
12394         * po/ja.po: Update from translation team.
12395
12396 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
12397
12398         [BZ #12795]
12399         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
12400         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
12401
12402 2011-05-20  Andreas Schwab  <schwab@redhat.com>
12403
12404         * stdlib/longlong.h: Update from GCC.
12405
12406 2011-05-23  Andreas Schwab  <schwab@redhat.com>
12407
12408         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
12409         parameter name.
12410         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
12411         Add parameter name.
12412         (__sysconf): Pass it down.
12413
12414 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
12415
12416         [BZ #12671]
12417         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
12418         some situations.
12419         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12420         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
12421         add in in __libc_use_alloca calls.  Adjust callers.
12422         (glob): Use malloc in some situations.
12423
12424         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
12425         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
12426         pltexit.
12427
12428 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
12429
12430         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
12431         and CLOCK_BOOTTIME_ALARM.
12432
12433         [BZ #12782]
12434         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
12435         is returned.
12436
12437         * string/_strerror.c (__strerror_r): Print negative errors as signed
12438         numbers.
12439
12440         [BZ #12777]
12441         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
12442         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
12443         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
12444
12445         * configure.in: Fix typo in redirection and correct removal of test
12446         files in two cases.
12447
12448         [BZ #12788]
12449         * locale/setlocale.c (new_composite_name): Fix test to check for
12450         identical name of all categories.
12451
12452         [BZ #12792]
12453         * libio/filedoalloc.c (local_isatty): New function.
12454         (_IO_file_doallocate): Use local_isatty.
12455         * stdio-common/perror.c (perror): In case a new stream is used
12456         forward the stream error.
12457         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
12458         error flag.
12459
12460 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
12461
12462         [BZ #11869]
12463         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
12464         alloca.
12465         * include/alloca.h (extend_alloca_account): Define.
12466
12467         [BZ #11857]
12468         * posix/regex.h: Fix comments with documentation of user-accessible
12469         fields after compilation and describe correct free'ing of pattern
12470         after re_compile_pattern.
12471         Patch by Reuben Thomas <rrt@sc3d.org>.
12472
12473 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
12474
12475         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
12476         and -mno-altivec to prevent the compiler from using Altivec and/or
12477         VSX instructions when the corresponding registers are not available.
12478
12479 2011-05-19  Andreas Schwab  <schwab@redhat.com>
12480
12481         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
12482
12483 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
12484
12485         * libio/freopen.c (freopen): Use __dup2, not dup2.
12486         * libio/freopen64.c (freopen64): Likewise.
12487
12488 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12489
12490         [BZ #12775]
12491         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
12492         * math/Makefile (tests): Add test-powl.
12493         (CFLAGS-test-powl.c): Define.
12494         * math/test-powl.c: New file.
12495
12496 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12497
12498         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
12499
12500 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
12501
12502         [BZ #11837]
12503         * iconvdata/gb18030.c: Update to GB18020-2005.
12504
12505 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
12506
12507         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
12508         RE_SYNTAX_POSIX_AWK): Update to match recent development.
12509         Patch by Aharon Robbins <arnold@skeeve.com>.
12510
12511         [BZ #11892]
12512         * stdlib/putenv.c (putenv): Don't always create copy of the variable
12513         on the stack.
12514
12515         [BZ #11895]
12516         * misc/pselect.c (__pselect): Handle timeout value errors hidden
12517         through underflows.
12518
12519         [BZ #12766]
12520         * misc/error.c (error_at_line): Ensure file_name and old_file_name
12521         point to strings before performing equality test for error_one_per_line
12522         mode.
12523
12524         [BZ #11697]
12525         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
12526
12527         [BZ #11820]
12528         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12529         (struct user_fpregs_struct): Avoid __uint*_t types.
12530
12531         [BZ #6420]
12532         * malloc/mtrace.c (tr_where): Add additional parameter to point to
12533         symbol info.  Use it instead of calling _dl_addr locally.
12534         (lock_and_info): New function.
12535         (tr_freehook): Call lock_and_info and pass symbol info as additional
12536         parameter to tr_where.
12537         (tr_mallochook): Likewise.
12538         (tr_reallochook): Likewise.
12539         (tr_memalignhook): Likewise.
12540
12541         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
12542         used and couldn't be at all thread-safe.
12543
12544 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
12545
12546         * libio/freopen.c (freopen): Don't close old file descriptor
12547         before the new one is opened.  Instead dup the new file descriptor
12548         to the old one after the new stream is created.
12549         * libio/freopen64.c (freopen64): Likewise.
12550         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
12551         * libio/fileops.c (_IO_new_file_close_it): Handle new
12552         _IO_FLAGS2_NOCLOSE flag.
12553         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
12554         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
12555         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
12556         _IO_FLAGS2_NOCLOSE flag.
12557         * include/unistd.h: Add hidden_proto for dup3.
12558         Define __have_dup3.
12559         * io/dup3.c: Define hidden symbol.
12560         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
12561
12562         [BZ #7101]
12563         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
12564         when an incomplete long option is used.
12565         * posix/tst-getopt_long1.c: New file.
12566         * posix/Makefile (tests): Add tst-getopt_long1.
12567
12568         [BZ #10138]
12569         * scripts/config.guess: Update from autoconf-2.68.
12570         * scripts/config.sub: Likewise.
12571
12572         [BZ #10157]
12573         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
12574         tests into ...
12575         (has_cpuclock): ...this.  New function.
12576         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
12577         macro here based on has_cpuclock code.
12578
12579         [BZ #10149]
12580         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12581         First byte (not low byte) is now always NUL.
12582         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
12583
12584         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12585         Use non-cancelable interfaces.
12586
12587         [BZ #9809]
12588         * locale/iso-639.def: Add entry for Sorani.
12589
12590         [BZ #11901]
12591         * include/stdlib.h: Move include protection to the right place.
12592         Define abort_msg_s.  Declare __abort_msg with it.
12593         * stdlib/abort.c (__abort_msg): Adjust type.
12594         * assert/assert.c (__assert_fail_base): New function.  Majority
12595         of code from __assert_fail.  Allocate memory for __abort_msg with
12596         mmap.
12597         (__assert_fail): Now call __assert_fail_base.
12598         * assert/assert-perr.c: Remove bulk of implementation.  Use
12599         __assert_fail_base.
12600         * include/assert.hL Declare __assert_fail_base.
12601         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
12602         mmap.
12603         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
12604
12605 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
12606
12607         [BZ #11952]
12608         [BZ #12453]
12609         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
12610         until all modules are registered in the DTV.
12611         * elf/Makefile: Add rules to build and run tst-tls19.
12612         * elf/tst-tls19.c: New file.
12613         * elf/tst-tls19mod1.c: New file.
12614         * elf/tst-tls19mod2.c: New file.
12615         * elf/tst-tls19mod3.c: New file.
12616         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
12617
12618         [BZ #12083]
12619         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
12620         correctly.
12621
12622         [BZ #12601]
12623         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
12624         two-byte sequence errors.
12625         * iconvdata/Makefile (tests): Add bug-iconv8.
12626         * iconvdata/bug-iconv8.c: New file.
12627
12628         [BZ #12626]
12629         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
12630         buf2 definition.
12631
12632         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
12633
12634         [BZ #12432]
12635         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
12636         (dummy_getcfa): New function.
12637         (init): Get _Unwind_GetCFA address, use dummy if not found.
12638         (backtrace_helper): In recursion check, also check whether CFA changes.
12639         (__backtrace): Completely initialize arg.
12640
12641         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
12642         storing incomplete byte sequence in state object.  Avoid testing for
12643         guaranteed too small input if we know there is enough data available.
12644
12645 2011-05-11  Andreas Schwab  <schwab@redhat.com>
12646
12647         * Makeconfig (+link-pie): Indent.
12648         * Rules (binaries-pie): Define if $(have-fpie) and
12649         $(build-shared).
12650         (binaries-shared): Also filter out $(binaries-pie).
12651         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
12652         * nscd/Makefile (others-pie): Add nscd.
12653         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
12654         ($(objpfx)nscd): Remove command override.
12655         * login/Makefile (others-pie): Add pt_chown.
12656         ($(objpfx)pt_chown): Remove command override.
12657         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
12658         remove command overrides.
12659
12660 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
12661
12662         * libio/tst_putwc.c: Fix error messages.
12663
12664         [BZ #12724]
12665         * libio/fileops.c (_IO_new_file_close_it): Always flush when
12666         currently writing and seek to current position when not.
12667         * libio/Makefile (tests): Add bug-fclose1.
12668         * libio/bug-fclose1.c: New file.
12669
12670 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
12671
12672         [BZ #12511]
12673         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
12674         don't set DF_1_NODELETE here.
12675         (do_lookup_x): When entering new entry test for copy relocation
12676         and if necessary set DF_1_NODELETE flag.
12677         * elf/tst-unique4.cc: New file.
12678         * elf/tst-unique4.h: New file.
12679         * elf/tst-unique4lib.cc: New file.
12680         * elf/Makefile: Add rules to build and run tst-unique4.
12681         Patch by Piotr Bury <pbury@goahead.com>.
12682
12683 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12684
12685         [BZ #12052]
12686         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
12687
12688         [BZ #12625]
12689         * misc/mntent_r.c (addmntent): Flush the stream after the output
12690
12691         [BZ #12393]
12692         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
12693         (is_trusted_path_normalize): Skip initial colon.  Append slash
12694         to empty buffer.  Duplicate is_trusted_path code but allow
12695         constructed patch to be prefix.
12696         (is_dst): Allow $ORIGIN followed by /.
12697         (_dl_dst_substitute): Correct clearing of check_for_trusted.
12698         Correct testing of result of is_trusted_path_normalize
12699         (decompose_rpath): Fix warning.
12700
12701 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
12702
12703         [BZ #11257]
12704         * grp/initgroups.c (internal_getgrouplist): When we found the service
12705         list through the initgroups entry in nsswitch.conf do not always
12706         continue on a successful lookup.  Don't always use the
12707         __nss_group_database value if it is set.
12708         * nss/nsswitch.conf (initgroups): Change action for successful db
12709         lookup to continue for compatibility.
12710
12711 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
12712
12713         [BZ #11532]
12714         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
12715         and CP774 modules.
12716         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
12717         and CP774 modules.
12718         * iconvdata/tst-tables.sh: Likewise.
12719         * iconvdata/cp770.c: New file.
12720         * iconvdata/cp771.c: New file.
12721         * iconvdata/cp772.c: New file.
12722         * iconvdata/cp773.c: New file.
12723         * iconvdata/cp774.c: New file.
12724         * iconvdata/testdata/CP770: New file.
12725         * iconvdata/testdata/CP770..UTF8: New file.
12726         * iconvdata/testdata/CP771: New file.
12727         * iconvdata/testdata/CP771..UTF8: New file.
12728         * iconvdata/testdata/CP772: New file.
12729         * iconvdata/testdata/CP772..UTF8: New file.
12730         * iconvdata/testdata/CP773: New file.
12731         * iconvdata/testdata/CP773..UTF8: New file.
12732         * iconvdata/testdata/CP774: New file.
12733         * iconvdata/testdata/CP774..UTF8: New file.
12734
12735         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
12736         END CHARMAP line.
12737         * iconvdata/gen-8bit-gap.sh: Likewise.
12738         * iconvdata/gen-8bit.sh: Likewise.
12739
12740         * locale/iso-639.def: Add ary entry.
12741
12742         [BZ #11258]
12743         * locale/C-translit.h.in: Add U20A1 transliteration.
12744
12745         [BZ #12178]
12746         * locale/iso-639.def: Add wae entry.
12747         Patch by Kevin Bortis <bortis@translate-wae.ch>.
12748
12749         [BZ #12545]
12750         * locale/programs/localedef.c (construct_output_path): Use ssize_t
12751         for n.
12752
12753         [BZ #12711]
12754         * locale/C-translit.h.in: Add entry for U20B9.
12755         Patch by pravin.d.s@gmail.com.
12756
12757 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
12758
12759         [BZ #12713]
12760         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
12761         ENAMETOOLONG use generic getcwd.
12762         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
12763         in rtld.  Use *stat64.
12764         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
12765         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
12766         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
12767         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
12768         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
12769         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
12770         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
12771         __fstatat64 macros.
12772         * include/dirent.h: Add libc_hidden_proto for rewinddir.
12773         * dirent/rewinddir.c: Add libc_hidden_def.
12774         * sysdeps/mach/hurd/rewinddir.c: Likewise.
12775         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
12776
12777         * include/dirent.h (__alloc_dir): Add flags parameter.
12778         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
12779         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
12780         __alloc_dir.
12781         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
12782         from fdopendir if O_CLOEXEC is already set.
12783
12784 2011-03-15  Alan Modra  <amodra@gmail.com>
12785
12786         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
12787         l_tls_firstbyte_offset non-zero.  Save padding offset in
12788         l_tls_firstbyte_offset for later use.
12789         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
12790         freeing static tls block.
12791
12792 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
12793
12794         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
12795         where #ifdef was intended.  The intent is to prevent ARG_MAX from
12796         being defined by the kernel headers.
12797
12798 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
12799
12800         [BZ #12734]
12801         * resolv/resolv.h: Define RES_NOTLDQUERY.
12802         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
12803         no-tld-query and set RES_NOTLDQUERY.
12804         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
12805         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
12806         modern BIND to search name as TLD unless forbidden.
12807
12808 2011-05-07  Petr Baudis  <pasky@suse.cz>
12809             Ulrich Drepper  <drepper@gmail.com>
12810
12811         [BZ #12393]
12812         * elf/dl-load.c (fillin_rpath): Move trusted path check...
12813         (is_trusted_path): ...to here.
12814         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
12815         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
12816         using is_trusted_path_normalize() in setuid scripts.
12817
12818 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12819
12820         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
12821         __BEGIN/__END_DECLS.
12822
12823 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
12824
12825         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
12826         NSS_STATUS_NOTFOUND if no record was found.
12827
12828 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12829
12830         * sunrpc/Makefile (headers): Add rpc/netdb.h.
12831         (headers-not-in-tirpc): Remove rpc/netdb.h
12832         * resolv/netdb.h: Revert last change.
12833
12834 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12835
12836         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
12837         circular dependency between libgcc.a and libc.a.
12838
12839 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12840
12841         * resolv/netdb.h: Don't include <rpc/netdb.h>.
12842         * nis/Makefile: Don't install rpcsvc/*.
12843         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
12844         instead of <rpc/types.h>.
12845         (MAXHOSTNAMELEN): Define.
12846
12847 2011-05-03  Andreas Schwab  <schwab@redhat.com>
12848
12849         * elf/ldconfig.c (add_dir): Don't crash on empty path.
12850
12851 2011-04-28  Maciej Babinski  <mbabinski@google.com>
12852
12853         [BZ #12714]
12854         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
12855         gethostbyname4_r when IPv6 results are possible.
12856
12857 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
12858
12859         [BZ #12723]
12860         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
12861         _PC_PIPE_BUF handling.
12862
12863 2011-04-30  Bruno Haible  <bruno@clisp.org>
12864
12865         [BZ #12717]
12866         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
12867         * resolv/netdb.h (getnameinfo): Change type of flags parameter
12868         to 'int'.
12869         * inet/getnameinfo.c (getnameinfo): Likewise.
12870
12871 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
12872
12873         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
12874         to groups setting in database lookup.
12875         * nss/nsswitch.conf: Add initgroups entry.
12876
12877 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
12878
12879         [BZ #12685]
12880         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
12881         mode string.
12882         Patch by Eric Blake <eblake@redhat.com>.
12883
12884 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
12885
12886         * sunrpc/Makefile (need-export-routines): Add svc_run.
12887         (routines): Remove svc_run.
12888         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
12889         * sunrpc/clnt_perr.c (clnt_perrno): Export.
12890         * sunrpc/svc_run.c (svc_run): Likewise.
12891         * sunrpc/svc_udp.c (svcudp_create): Likewise.
12892
12893 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
12894
12895         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
12896         problem in reallocation in last patch.
12897
12898 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
12899
12900         * sunrpc/Makefile: Move inclusion of Rules.
12901
12902 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12903
12904         * nss/nss_files/files-initgroups.c: New file.
12905         * nss/Makefile (libnss_files-routines): Add files-initgroups.
12906         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
12907         _nss_files_initgroups_dyn.
12908
12909 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
12910
12911         * elf/elf.h (R_ARM_IRELATIVE): Define.
12912
12913 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12914
12915         * po/ru.po: Update from translation team.
12916
12917 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12918
12919         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
12920         dependencies.
12921
12922 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
12923
12924         [BZ #12653]
12925         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
12926         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
12927         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12928         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12929         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12930
12931 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
12932
12933         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
12934         differing bytes.
12935         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12936         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12937         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12938
12939 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12940
12941         [BZ #12420]
12942         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
12943         storing it.
12944         * stdlib/bug-getcontext.c: New file.
12945         * stdlib/Makefile: Add rules to build and run bug-getcontext.
12946
12947 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12948
12949         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
12950         instructions into .machine "z9-109".
12951         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
12952         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
12953
12954 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12955
12956         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
12957         between environment variables and auxiliary vector.
12958
12959 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
12960
12961         * Makefile: Add rules to build linkobj/libc.so.
12962         * include/libc-symbols.h: Define libc_hidden_nolink.
12963         * include/rpc/auth.h: Mark functions which are to be hidden.
12964         * include/rpc/auth_des.h: Likewise.
12965         * include/rpc/auth_unix.h: Likewise.
12966         * include/rpc/clnt.h: Likewise.
12967         * include/rpc/des_crypt.h: Likewise.
12968         * include/rpc/key_prot.h: Likewise.
12969         * include/rpc/pmap_clnt.h: Likewise.
12970         * include/rpc/pmap_prot.h: Likewise.
12971         * include/rpc/pmap_rmt.h: Likewise.
12972         * include/rpc/rpc_msg.h: Likewise.
12973         * include/rpc/svc.h: Likewise.
12974         * include/rpc/svc_auth.h: Likewise.
12975         * include/rpc/xdr.h: Likewise.
12976         * nis/Makefile: Link all DSOs against linkobj/libc.so.
12977         * nss/Makefile: Likewise.
12978         * sunrpc/Makefile: Don't install headers.  Build library with normal
12979         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
12980         * sunrpc/auth_des.c: Hide exported symbols by default, export some
12981         for the compat linking library.  Remove use of INTDEF/INTUSE.
12982         * sunrpc/auth_none.c: Likewise.
12983         * sunrpc/auth_unix.c: Likewise.
12984         * sunrpc/authdes_prot.c: Likewise.
12985         * sunrpc/authuxprot.c: Likewise.
12986         * sunrpc/clnt_gen.c: Likewise.
12987         * sunrpc/clnt_perr.c: Likewise.
12988         * sunrpc/clnt_raw.c: Likewise.
12989         * sunrpc/clnt_simp.c: Likewise.
12990         * sunrpc/clnt_tcp.c: Likewise.
12991         * sunrpc/clnt_udp.c: Likewise.
12992         * sunrpc/clnt_unix.c: Likewise.
12993         * sunrpc/des_crypt.c: Likewise.
12994         * sunrpc/des_soft.c: Likewise.
12995         * sunrpc/get_myaddr.c: Likewise.
12996         * sunrpc/key_call.c: Likewise.
12997         * sunrpc/key_prot.c: Likewise.
12998         * sunrpc/netname.c: Likewise.
12999         * sunrpc/pm_getmaps.c: Likewise.
13000         * sunrpc/pm_getport.c: Likewise.
13001         * sunrpc/pmap_clnt.c: Likewise.
13002         * sunrpc/pmap_prot.c: Likewise.
13003         * sunrpc/pmap_prot2.c: Likewise.
13004         * sunrpc/pmap_rmt.c: Likewise.
13005         * sunrpc/publickey.c: Likewise.
13006         * sunrpc/rpc_cmsg.c: Likewise.
13007         * sunrpc/rpc_common.c: Likewise.
13008         * sunrpc/rpc_dtable.c: Likewise.
13009         * sunrpc/rpc_prot.c: Likewise.
13010         * sunrpc/rpc_thread.c: Likewise.
13011         * sunrpc/rtime.c: Likewise.
13012         * sunrpc/svc.c: Likewise.
13013         * sunrpc/svc_auth.c: Likewise.
13014         * sunrpc/svc_authux.c: Likewise.
13015         * sunrpc/svc_raw.c: Likewise.
13016         * sunrpc/svc_run.c: Likewise.
13017         * sunrpc/svc_simple.c: Likewise.
13018         * sunrpc/svc_tcp.c: Likewise.
13019         * sunrpc/svc_udp.c: Likewise.
13020         * sunrpc/svc_unix.c: Likewise.
13021         * sunrpc/svcauth_des.c: Likewise.
13022         * sunrpc/xcrypt.c: Likewise.
13023         * sunrpc/xdr.c: Likewise.
13024         * sunrpc/xdr_array.c: Likewise.
13025         * sunrpc/xdr_float.c: Likewise.
13026         * sunrpc/xdr_intXX_t.c: Likewise.
13027         * sunrpc/xdr_mem.c: Likewise.
13028         * sunrpc/xdr_rec.c: Likewise.
13029         * sunrpc/xdr_ref.c: Likewise.
13030         * sunrpc/xdr_sizeof.c: Likewise.
13031         * sunrpc/xdr_stdio.c: Likewise.
13032
13033 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
13034
13035         [BZ #12650]
13036         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
13037         * sysdeps/ia64/dl-tls.h: Likewise.
13038         * sysdeps/powerpc/dl-tls.h: Likewise.
13039         * sysdeps/s390/dl-tls.h: Likewise.
13040         * sysdeps/sh/dl-tls.h: Likewise.
13041         * sysdeps/sparc/dl-tls.h: Likewise.
13042         * sysdeps/x86_64/dl-tls.h: Likewise.
13043         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
13044
13045 2011-03-14  Andreas Schwab  <schwab@redhat.com>
13046
13047         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
13048         rpath element also skip the following colon.
13049         (expand_dynamic_string_token): Add is_path parameter and pass
13050         down to DL_DST_REQUIRED and _dl_dst_substitute.
13051         (decompose_rpath): Call expand_dynamic_string_token with
13052         non-zero is_path.  Ignore empty rpaths.
13053         (_dl_map_object_from_fd): Call expand_dynamic_string_token
13054         with zero is_path.
13055
13056 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
13057
13058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13059         Make cancelable.
13060
13061 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
13062
13063         [BZ #12655]
13064         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
13065         Patch by Filipe David Manana <fdmanana@apache.org>.
13066
13067 2011-04-07  Andreas Schwab  <schwab@redhat.com>
13068
13069         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
13070         Maintain aligned stack.
13071         (CHECK_RSP): Remove unused macro.
13072
13073 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
13074
13075         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
13076         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
13077
13078 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
13079
13080         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
13081
13082         * include/features.h: Mention __USE_XOPEN2K8 in comment.
13083
13084 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
13085
13086         [BZ #12518]
13087         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
13088         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
13089         * sysdeps/x86_64/memmove.c: New file.
13090         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
13091         (memcpy): Renamed to ...
13092         (__new_memcpy): This.
13093         (memcpy): Provide GLIBC_2_14 memcpy.
13094         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
13095         (memcpy): Provide GLIBC_2_2_5 memcpy.
13096
13097 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13098
13099         [BZ #12631]
13100         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
13101
13102 2011-03-30  Andreas Schwab  <schwab@redhat.com>
13103
13104         * misc/syncfs.c: New file.
13105         * misc/Makefile (routines): Add syncfs.
13106         * posix/unistd.h: Declare syncfs.
13107         * sysdeps/unix/syscalls.list: Add syncfs.
13108
13109 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13110
13111         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
13112         open_by_handle_at.
13113         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13114         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13115         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13116         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13117         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13118         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
13119         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13120
13121 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13122
13123         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
13124         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13125         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13126         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13127         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13128         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13129         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13130
13131         * io/Makefile: Compile fallocate.c, fallocate64.c, and
13132         sync_file_range.c with -fexceptions.
13133         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
13134         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
13135         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
13136         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
13137         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13138         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13139         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
13140         sync_file_range as cancellation point
13141         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
13142         now a wrapper around __call_sync_file_range with cancellation handling.
13143         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
13144         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
13145         function name to __call_sync_file_range.
13146         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
13147         Add call_sync_file_range.
13148
13149 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13150
13151         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13152         bits/timex.h.
13153
13154 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13155
13156         * iconv/iconv.h: Fix typo in comment.
13157         * io/fcntl.h: Likewise.
13158         * libio/stdio.h: Likewise.
13159         * posix/spawn.h: Likewise.
13160         * posix/unistd.h: Likewise.
13161         * stdlib/stdlib.h: Likewise.
13162         * time/time.h: Likewise.
13163         * wcsmbs/wchar.h: Likewise.
13164
13165         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
13166         open_by_handle): Add.
13167         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
13168         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
13169         Augment a few comments.
13170         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13171         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13172         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13173         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13174         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13175         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
13176         open_by_handle.
13177
13178         * io/fcntl.h (AT_EMPTY_PATH): Define.
13179
13180 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
13181
13182         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
13183         * sysdeps/unix/sysv/linux/bits/time.h: New file.
13184         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
13185         to...
13186         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
13187         * Versions.def: Add GLIBC_2.14.
13188         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
13189         Export.
13190
13191 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
13192
13193         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
13194         round counter.
13195         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13196
13197 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13198
13199         [BZ #12597]
13200         * string/test-strncmp.c (do_page_test): New function.
13201         (check2): Likewise.
13202         (test_main): Call check2.
13203         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
13204
13205 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
13206
13207         [BZ #12587]
13208         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13209         Handle cache information in CPU leaf 4.
13210         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13211
13212 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
13213
13214         [BZ #12583]
13215         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
13216         character representation.
13217         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
13218
13219 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
13220
13221         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
13222         END(__isnan) to END(__isnanf) to match function entry point/label
13223         EALIGN(__isnanf,...).
13224
13225 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
13226
13227         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
13228
13229 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
13230
13231         [BZ #12510]
13232         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
13233         copy from the symbol referenced in the relocation to initialize the
13234         used variable.
13235         Patch by Piotr Bury <pbury@goahead.com>.
13236         * elf/Makefile: Add rules to build and tst-unique3.
13237         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
13238         * elf/tst-unique3.cc: New file.
13239         * elf/tst-unique3.h: New file.
13240         * elf/tst-unique3lib.cc: New file.
13241         * elf/tst-unique3lib2.cc: New file.
13242
13243         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
13244
13245 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
13246
13247         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
13248         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
13249         to _start.
13250
13251 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
13252
13253         * elf/dl-load.c (_dl_map_object): If we are looking for the first
13254         to-be-loaded object along a path to loader is ld.so.
13255
13256 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13257             Ulrich Drepper  <drepper@gmail.com>
13258
13259         * sysdeps/x86_64/memset.S: After aligning destination, code
13260         branches to different locations depending on the value of
13261         misalignment, when multiarch is enabled. Fix this.
13262
13263 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13264
13265         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
13266         Set _x86_64_preferred_memory_instruction for AMD processsors.
13267         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13268         Set bit_Prefer_SSE_for_memop for AMD processors.
13269
13270 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
13271
13272         * libio/fmemopen.c (fmemopen): Optimize a bit.
13273
13274 2011-03-03  Andreas Schwab  <schwab@redhat.com>
13275
13276         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
13277
13278 2011-03-03  Roland McGrath  <roland@redhat.com>
13279
13280         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
13281
13282 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
13283
13284         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
13285         __bzero_ultra1 instead of __memset_ultra1.
13286
13287 2011-02-23  Andreas Schwab  <schwab@redhat.com>
13288             Ulrich Drepper  <drepper@gmail.com>
13289
13290         [BZ #12509]
13291         * include/link.h (struct link_map): Add l_orig_initfini.
13292         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
13293         returning unsuccessfully.
13294         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
13295         close of a file loaded at startup, restore the original l_initfini
13296         list.
13297         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
13298         list, store the pointer.
13299         * elf/Makefile ($(objpfx)noload-mem): New rule.
13300         (noload-ENV): Define.
13301         (tests): Add $(objpfx)noload-mem.
13302         * elf/noload.c: Include <memcheck.h>.
13303         (main): Call mtrace.  Close all opened handles.
13304
13305 2011-02-17  Andreas Schwab  <schwab@redhat.com>
13306
13307         [BZ #12454]
13308         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
13309         dependencies are missing.
13310
13311 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13312
13313         Fix __if_freereq crash: Unlike the generic version which uses free,
13314         Hurd needs munmap.
13315         * sysdeps/mach/hurd/ifreq.h: New file.
13316
13317 2011-01-27  Petr Baudis  <pasky@suse.cz>
13318             Ulrich Drepper  <drepper@gmail.com>
13319
13320         [BZ 12445]#
13321         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
13322         to extend_alloca().
13323         * stdio-common/bug23.c: New file.
13324         * stdio-common/Makefile (tests): Add bug23.
13325
13326 2010-09-28  Andreas Schwab  <schwab@redhat.com>
13327             Ulrich Drepper  <drepper@gmail.com>
13328
13329         [BZ #12489]
13330         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
13331         before performing relro protection.  At old place add assertion
13332         to make sure nothing changed.
13333
13334 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
13335             Glauber de Oliveira Costa  <glommer@gmail.com>
13336
13337         * elf/elf.h: Add new ARM TLS relocs.
13338
13339 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
13340
13341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13342         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
13343         cast from r3.
13344         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
13345         'tests' variable.
13346         * sysdeps/wordsize-64/tst-writev.c: New file.
13347
13348 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
13349
13350         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
13351         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
13352         insns in _dl_start to prevent a TOC reference before relocs are
13353         resolved.
13354
13355 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
13356
13357         [BZ #12469]
13358         * Makeconfig: Remove RANLIB definition.
13359         * Makerules: Don't use RANLIB.
13360         * aclocal.m4: Remove ranlib test.
13361         * configure.in: No need to check for ranlib.
13362         * elf/rtld-Rules: Don't use RANLIB.
13363
13364 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13365
13366         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
13367         protection macro.
13368         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
13369         inclusion protection macro.
13370
13371         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
13372         SIGRTMIN and SIGRTMAX and print information in that case only when
13373         SIGRTMIN is defined.
13374
13375 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13376
13377         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
13378         arginfo fn returning -1.
13379
13380         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
13381         and thousands string is zero terminated.
13382
13383 2011-02-03  Andreas Schwab  <schwab@redhat.com>
13384
13385         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
13386         sysdeps/unix/sysv/linux/bits/socket.h.
13387
13388 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13389
13390         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
13391         (__CPU_COUNT): Remove old macros.
13392         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
13393         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
13394         (__CPU_ALLOC, __CPU_FREE): Add macros.
13395         (__sched_cpualloc, __sched_cpufree): Add declarations.
13396
13397 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
13398
13399         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
13400         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
13401         * nscd/aicache.c (addhstaiX): Return timeout of added value.
13402         (readdhstai): Return value of addhstaiX call.
13403         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
13404         (addgrbyX): Return value returned by cache_addgr.
13405         (readdgrbyname): Return value returned by addgrbyX.
13406         (readdgrbygid): Likewise.
13407         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
13408         (addpwbyX): Return value returned by cache_addpw.
13409         (readdpwbyname): Return value returned by addhstbyX.
13410         (readdpwbyuid): Likewise.
13411         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
13412         (addservbyX): Return value returned by cache_addserv.
13413         (readdservbyname): Return value returned by addservbyX:
13414         (readdservbyport): Likewise.
13415         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
13416         (addhstbyX): Return value returned by cache_addhst.
13417         (readdhstbyname): Return value returned by addhstbyX.
13418         (readdhstbyaddr): Likewise.
13419         (readdhstbynamev6): Likewise.
13420         (readdhstbyaddrv6): Likewise.
13421         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
13422         (readdinitgroups): Return value returned by addinitgroupsX.
13423         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
13424         (prune_cache): Keep track of timeout value of re-added entries.
13425         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
13426         * nscd/nscd.h: Adjust prototypes of readd* functions.
13427
13428 2011-02-04  Roland McGrath  <roland@redhat.com>
13429
13430         * nis/nis_server.c (nis_servstate): Use the right name for 0.
13431         (nis_stats): Likewise.
13432         * nis/nis_modify.c (nis_modify): Likewise.
13433         * nis/nis_remove.c (nis_remove): Likewise.
13434         * nis/nis_add.c (nis_add): Likewise.
13435
13436         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
13437
13438         * posix/fnmatch_loop.c: Add some consts.
13439
13440         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
13441
13442 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
13443
13444         [BZ #12460]
13445         * config.make.in (config-cflags-novzeroupper): Define.
13446         * configure.in: Substitute libc_cv_cc_novzeroupper.
13447         * elf/Makefile (AVX-CFLAGS): Define.
13448         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
13449         (CFLAGS-tst-auditmod4a.c): Likewise.
13450         (CFLAGS-tst-auditmod4b.c): Likewise.
13451         (CFLAGS-tst-auditmod6b.c): Likewise.
13452         (CFLAGS-tst-auditmod6c.c): Likewise.
13453         (CFLAGS-tst-auditmod7b.c): Likewise.
13454         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
13455
13456 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
13457
13458         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
13459         function to the callback.
13460         Patch partly by Jiri Olsa <jolsa@redhat.com>.
13461
13462 2011-02-02  Andreas Schwab  <schwab@redhat.com>
13463
13464         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
13465         of errno.
13466
13467 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
13468
13469         [BZ #11724]
13470         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
13471         of constructors.
13472         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
13473         of destructors.
13474         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
13475
13476         [BZ #11724]
13477         * elf/Makefile: Add rules to build and run new test.
13478         * elf/tst-initorder.c: New file.
13479         * elf/tst-initorder.exp: New file.
13480         * elf/tst-initordera1.c: New file.
13481         * elf/tst-initordera2.c: New file.
13482         * elf/tst-initordera3.c: New file.
13483         * elf/tst-initordera4.c: New file.
13484         * elf/tst-initorderb1.c: New file.
13485         * elf/tst-initorderb2.c: New file.
13486         * elf/tst-order-a1.c: New file.
13487         * elf/tst-order-a2.c: New file.
13488         * elf/tst-order-a3.c: New file.
13489         * elf/tst-order-a4.c: New file.
13490         * elf/tst-order-b1.c: New file.
13491         * elf/tst-order-b2.c: New file.
13492         * elf/tst-order-main.c: New file.
13493         New test case by George Gensure <werkt0@gmail.com>.
13494
13495 2010-10-01  Andreas Schwab  <schwab@redhat.com>
13496
13497         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13498         decoding ACE if AI_CANONIDN.
13499
13500 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
13501
13502         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
13503
13504 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
13505
13506         * version.h (RELEASE): Bump for 2.13 release.
13507         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
13508
13509         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
13510
13511         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
13512         MADV_NOHUGEPAGE.
13513         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
13514         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
13515         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13516         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13517         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13518         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13519
13520         * posix/getconf.c: Update copyright year.
13521         * catgets/gencat.c: Likewise.
13522         * csu/version.c: Likewise.
13523         * debug/catchsegv.sh: Likewise.
13524         * debug/xtrace.sh: Likewise.
13525         * elf/ldconfig.c: Likewise.
13526         * elf/ldd.bash.in: Likewise.
13527         * elf/sprof.c (print_version): Likewise.
13528         * iconv/iconv_prog.c: Likewise.
13529         * iconv/iconvconfig.c: Likewise.
13530         * locale/programs/locale.c: Likewise.
13531         * locale/programs/localedef.c: Likewise.
13532         * malloc/memusage.sh: Likewise.
13533         * malloc/mtrace.pl: Likewise.
13534         * nscd/nscd.c (print_version): Likewise.
13535         * nss/getent.c: Likewise.
13536
13537         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
13538         PF_CAIF, and PF_ALG.
13539         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13540
13541 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
13542
13543         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
13544         (modules-names): Use them.
13545         (ifunc-test-modules, ifunc-pie-tests): Define.
13546         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
13547         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
13548         (test-extras): Likewise.
13549         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
13550         $(compile-command.c).
13551         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
13552         (all-built-dso): Define.
13553         (check-textrel.out, check-execstack.out): Depend on it.
13554
13555         * configure.in: Don't override --enable-multi-arch.
13556
13557 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
13558
13559         [BZ #6812]
13560         * nscd/hstcache.c (tryagain): Define.
13561         (cache_addhst): Return tryagain not notfound for temporary errors.
13562         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
13563         failed.
13564
13565 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
13566
13567         [BZ #10563]
13568         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
13569         to make the syscall.
13570         * sysdeps/unix/sysv/linux/setgroups.c: New file.
13571
13572         [BZ #12378]
13573         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
13574         and fall back to matching as normal character if the string ends before
13575         the matching ']' is found.  This is what POSIX requires.
13576         * posix/testfnm.c: Adjust test result.
13577         * posix/globtest.sh: Adjust test result.  Add new test.
13578         * posix/tst-fnmatch.input: Likewise.
13579         * posix/tst-fnmatch2.c: Add new test.
13580
13581 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
13582
13583         * elf/Makefile (check-execstack): Revert last change.  Depend on
13584         check-execstack.h.
13585         (check-execstack.h): New target.
13586         (generated): Add check-execstack.h.
13587         * elf/check-execstack.c: Include "check-execstack.h".
13588         (main): Revert last change.
13589         (handle_file): Return zero if GNU_STACK is absent and
13590         DEFAULT_STACK_PERMS doesn't include PF_X.
13591
13592 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
13593
13594         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
13595         in child fails because the descriptor is already closed.
13596         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
13597         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
13598         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
13599
13600         [BZ #12397]
13601         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
13602         syscall.
13603
13604         [BZ #10484]
13605         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
13606         temporary buffer used to handle multi lookups locally.
13607         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
13608
13609 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13610
13611         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
13612         loader is ld.so.
13613
13614 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
13615
13616         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
13617         alignment for SSE2.
13618
13619 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13620
13621         [BZ #12394]
13622         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
13623         characters.  When rounding increased number of integer digits recompute
13624         number of groups.
13625         * stdio-common/tst-grouping.c: New file.
13626         * stdio-common/Makefile: Add rules to build and run tst-grouping.
13627
13628 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
13629
13630         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
13631         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
13632
13633         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
13634         void.
13635         * bits/select.h: Likewise.
13636
13637 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
13638
13639         * po/ja.po: Update from translation team.
13640
13641 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
13642
13643         [BZ #11155]
13644         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
13645         implementation just like for lxstat, fxstatat, et al.
13646
13647 2010-12-27  Jim Meyering  <meyering@redhat.com>
13648
13649         [BZ #12348]
13650         * posix/regexec.c (build_trtable): Return failure indication upon
13651         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13652
13653 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
13654
13655         [BZ #12201]
13656         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
13657         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
13658         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
13659         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
13660
13661         [BZ #12207]
13662         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
13663
13664         [BZ #12204]
13665         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
13666         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
13667
13668 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13669
13670         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
13671         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
13672         script has SORT_BY_INIT_PRIORITY.
13673         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
13674         NO_CTORS_DTORS_SECTIONS is defined.
13675         * elf/soinit.c: Likewise.
13676         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
13677         NO_CTORS_DTORS_SECTIONS is defined.
13678         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
13679         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
13680         * sysdeps/sh/init-first.c: Likewise.
13681         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
13682
13683 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
13684
13685         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
13686         always use the slow path.
13687
13688 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
13689
13690         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
13691         similar rule which adds the sysdep directories to the header search in
13692         order to pick up the correct platform stackinfo.h.
13693         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
13694         perform test if it is, otherwise return successfully without testing.
13695         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
13696         DEFAULT_STACK_PERMS define in stackinfo.h.
13697         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
13698         defined in stackinfo.h.
13699         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
13700         DEFAULT_STACK_PERMS defined in stackinfo.h.
13701         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
13702         * sysdeps/ia64/stackinfo.h: Likewise.
13703         * sysdeps/s390/stackinfo.h: Likewise.
13704         * sysdeps/sh/stackinfo.h: Likewise.
13705         * sysdeps/sparc/stackinfo.h: Likewise.
13706         * sysdeps/x86_64/stackinfo.h: Likewise.
13707         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
13708         PF_X for powerpc64.  Retain PF_X for powerpc32.
13709
13710 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
13711
13712         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
13713         accurately.
13714         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
13715         GETDENTS_64BIT_ALIGNED.
13716
13717 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
13718
13719         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
13720
13721 2010-12-10  Andreas Schwab  <schwab@redhat.com>
13722
13723         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
13724         _GNU_SOURCE.
13725
13726         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
13727         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
13728         Remove __restrict.
13729         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
13730         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
13731
13732 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
13733
13734         [BZ #11655]
13735         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
13736         are initialized.
13737
13738 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
13739
13740         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
13741
13742 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
13743
13744         * po/it.po: Update from translation team.
13745
13746 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13747
13748         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
13749         unused codes.
13750
13751 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
13752
13753         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
13754
13755 2010-11-24  Andreas Schwab  <schwab@redhat.com>
13756
13757         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
13758         specially.
13759         (gaih_getanswer_slice): Likewise.
13760
13761 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
13762
13763         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
13764
13765 2010-05-31  Petr Baudis  <pasky@suse.cz>
13766
13767         [BZ #11149]
13768         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
13769         silently even in the chroot mode.
13770
13771 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
13772
13773         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
13774         last patch a bit.  Pretty printing
13775
13776 2010-05-31  Petr Baudis <pasky@suse.cz>
13777
13778         [BZ #10085]
13779         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
13780         initialization of skip_initgroups_dyn.
13781
13782 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
13783
13784         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
13785         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13786
13787 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
13788
13789         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
13790
13791 2010-11-11  Andreas Schwab  <schwab@redhat.com>
13792
13793         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
13794         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
13795         (tst-fnmatch-ENV): Set MALLOC_TRACE.
13796         ($(objpfx)tst-fnmatch-mem): New rule.
13797         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
13798         * posix/tst-fnmatch.c (main): Call mtrace.
13799
13800 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
13801
13802         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13803         Support Intel processor model 6 and model 0x2c.
13804
13805 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
13806
13807         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
13808           signed comparison.
13809
13810 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
13811
13812         [BZ #12205]
13813         * string/test-strncasecmp.c (check_result): New function.
13814         (do_one_test): Use it.
13815         (check1): New function.
13816         (test_main): Use it.
13817         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
13818         Support strcasecmp and strncasecmp.
13819
13820 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
13821
13822         [BZ #12194]
13823         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
13824         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13825
13826 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13827
13828         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
13829         IFUNC support.
13830         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13831         memset-x86-64.
13832         * sysdeps/x86_64/multiarch/bzero.S: New file.
13833         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
13834         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
13835         * sysdeps/x86_64/multiarch/memset.S: New file.
13836         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
13837         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13838         Set bit_Prefer_SSE_for_memop for Intel processors.
13839         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
13840         Define.
13841         (index_Prefer_SSE_for_memop): Define.
13842         (HAS_PREFER_SSE_FOR_MEMOP): Define.
13843
13844 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
13845
13846         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
13847         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
13848
13849 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
13850
13851         [BZ #12191]
13852         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13853         (__x86_64_raw_data_cache_size_half): Likewise.
13854         (__x86_64_raw_shared_cache_size): Likewise.
13855         (__x86_64_raw_shared_cache_size_half): Likewise.
13856
13857         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13858         (__x86_64_raw_data_cache_size_half): Likewise.
13859         (__x86_64_raw_shared_cache_size): Likewise.
13860         (__x86_64_raw_shared_cache_size_half): Likewise.
13861         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
13862         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
13863         and __x86_64_raw_shared_cache_size_half.  Round
13864         __x86_64_data_cache_size_half, __x86_64_data_cache_size
13865         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
13866         to multiple of 256 bytes.
13867
13868 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
13869
13870         [BZ #12167]
13871         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
13872         of inacessible symlinks.  Verify result of symlink before returning it.
13873         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
13874         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
13875
13876 2010-10-28  Erich Ritz  <erichritz@gmail.com>
13877
13878         * math/math.h (isinf): Fix typo in comment.
13879
13880 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
13881
13882         * po/da.po: Update from translation team.
13883
13884 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
13885
13886         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
13887         is added to the list.
13888
13889 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13890             Ulrich Drepper  <drepper@gmail.com>
13891
13892         * elf/dl-object.c (_dl_new_object): Don't append the new object to
13893         the global list here.  Move code to...
13894         (_dl_add_to_namespace_list): ...here.  New function.
13895         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
13896         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
13897         * elf/dl-load.c (lose): Don't remove the element from the list.
13898         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
13899         (_dl_map_object): Likewise.
13900
13901 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
13902
13903         [BZ #12159]
13904         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
13905         into all bytes of SSE register.
13906         Patch by Richard Li <richardpku@gmail.com>.
13907
13908 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
13909
13910         [BZ #12140]
13911         * malloc/malloc.c (_int_free): Fill correct number of bytes when
13912         perturbing.
13913
13914 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
13915
13916         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
13917         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
13918         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
13919         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
13921         submachine.
13922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13923
13924 2010-10-22  Andreas Schwab  <schwab@redhat.com>
13925
13926         * include/dlfcn.h (__RTLD_SECURE): Define.
13927         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
13928         mode & __RTLD_SECURE instead.
13929         (open_path): Rename preloaded parameter to secure.
13930         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
13931         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
13932         * elf/dl-deps.c (openaux): Likewise.
13933         * elf/rtld.c (struct map_args): Remove is_preloaded.
13934         (map_doit): Don't use it.
13935         (dl_main): Likewise.
13936         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
13937         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
13938
13939 2010-09-09  Andreas Schwab  <schwab@redhat.com>
13940
13941         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
13942         (sysd-rules-targets): Remove duplicates.
13943         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
13944         rtld-%.$o dependency.
13945
13946 2010-10-18  Andreas Schwab  <schwab@redhat.com>
13947
13948         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
13949         _dl_map_object do it.
13950
13951 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
13952
13953         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
13954         fast fma builtins, define the macros in the C99 standard.
13955         (FP_FAST_FMAF): Likewise.
13956         (FP_FAST_FMAL): Likewise.
13957         * sysdeps/x86_64/bits/mathdef.h: Likewise.
13958
13959         * bits/mathdef.h: Update copyright year.
13960         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13961
13962 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13963
13964         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
13965         builtins, define the macros in the C99 standard.
13966         (FP_FAST_FMAF): Likewise.
13967         (FP_FAST_FMAL): Likewise.
13968         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
13969         multiply/add.
13970         (FP_FAST_FMAF): Likewise.
13971
13972 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
13973
13974         [BZ #3268]
13975         * math/libm-test.inc (fma_test): Some new testcases.
13976         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
13977         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
13978         y and infinite z.  Do multiplication by C already in long double.
13979         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
13980         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
13981         y and infinite z.  Do bitwise or of inexact bit into u.d.
13982         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
13983         * sysdeps/i386/fpu/s_fmaf.S: Removed.
13984         * sysdeps/i386/fpu/s_fma.S: Removed.
13985         * sysdeps/i386/fpu/s_fmal.S: Removed.
13986
13987 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
13988
13989         [BZ #3268]
13990         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
13991         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
13992         computation is not scheduled after fetestexcept.  Fix value
13993         of minimum denormal long double.
13994
13995 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
13996
13997         [BZ #3268]
13998         * math/libm-test.inc (fma_test): Add some more tests.
13999         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
14000         correctly.
14001
14002 2010-10-15  Andreas Schwab  <schwab@redhat.com>
14003
14004         * scripts/data/localplt-s390-linux-gnu.data: New file.
14005         * scripts/data/localplt-s390x-linux-gnu.data: New file.
14006
14007 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
14008
14009         [BZ #3268]
14010         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
14011         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
14012         instead of dbl-64.
14013         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
14014         inlines.
14015         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
14016         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
14017         if one of x and y is very large and the other is subnormal.
14018         * sysdeps/s390/fpu/s_fmaf.c: New file.
14019         * sysdeps/s390/fpu/s_fma.c: New file.
14020         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
14021         * sysdeps/powerpc/fpu/s_fma.S: New file.
14022         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
14023         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
14024         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
14025
14026 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
14027
14028         [BZ #3268]
14029         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
14030         fma tests.
14031         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
14032         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
14033         * sysdeps/i386/i686/multiarch/s_fma.c: Include
14034         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
14035         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
14036         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
14037         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
14038
14039 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
14040
14041         [BZ #12078]
14042         * posix/regcomp.c (parse_branch): One more memory leak plugged.
14043         * posix/bug-regex31.input: Add test case.
14044
14045 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14046
14047         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
14048         * posix/bug-regex31.input: New file.
14049
14050         [BZ #12078]
14051         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
14052         (parse_sub_exp): Fix last change, use postorder.
14053
14054         * posix/bug-regex31.c: New file.
14055         * posix/Makefile: Add rules to build and run bug-regex31.
14056
14057         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
14058
14059         [BZ #12078]
14060         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
14061
14062         [BZ #12108]
14063         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
14064         to have entries in sys_siglist.
14065
14066         [BZ #12093]
14067         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
14068         be NULL.
14069
14070 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
14071
14072         [BZ #3268]
14073         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
14074         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
14075         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14076         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
14077         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14078         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
14079         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
14080         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
14081         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
14082         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
14083         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
14084         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
14085         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
14086         * math/ftestexcept.c (fetestexcept): Likewise.
14087         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
14088         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
14089         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
14090         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
14091         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
14092         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
14093         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14094
14095 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14096
14097         [BZ #12107]
14098         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
14099         newline.
14100
14101 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
14102
14103         * string/bug-strstr1.c: New file.
14104         * string/Makefile: Add rules to build and run bug-strstr1.
14105
14106 2010-10-05  Eric Blake  <eblake@redhat.com>
14107
14108         [BZ #12092]
14109         * string/str-two-way.h (two_way_long_needle): Always clear memory
14110         when skipping input due to the shift table.
14111
14112 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
14113
14114         [BZ #12005]
14115         * malloc/mcheck.c: Handle large requests.
14116
14117         [BZ #12077]
14118         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
14119         for strncmp and strncasecmp.
14120         * string/stratcliff.c: Add tests for strcmp and strncmp.
14121         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
14122
14123 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14124
14125         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
14126         __set_fpscr.
14127
14128 2010-09-30  Andreas Jaeger  <aj@suse.de>
14129
14130         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
14131         (CGROUP_SUPER_MAGIC): Define.
14132         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14133         Handle btrfs and cgroup file systems.
14134         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
14135         Likewise.
14136
14137 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
14138
14139         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
14140         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
14141
14142 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14143
14144         [BZ #12067]
14145         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
14146         trying to locate the ELF header.
14147
14148 2010-09-27  Andreas Schwab  <schwab@redhat.com>
14149
14150         [BZ #11611]
14151         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
14152         Mask out sign-bit copies when constructing f_fsid.
14153
14154 2010-09-24  Petr Baudis <pasky@suse.cz>
14155
14156         * debug/stack_chk_fail_local.c: Add missing licence exception.
14157         * debug/warning-nop.c: Likewise.
14158
14159 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
14160
14161         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
14162         implementing getdents64 using getdents syscall, set d_type if
14163         __ASSUME_GETDENTS32_D_TYPE.
14164
14165 2010-09-16  Andreas Schwab  <schwab@redhat.com>
14166
14167         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
14168         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
14169
14170 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
14171
14172         [BZ #12037]
14173         * posix/unistd.h: Undo change of feature selection for ftruncate from
14174         2010-01-11.
14175
14176 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
14177
14178         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
14179         detection.
14180
14181 2010-09-20  Andreas Schwab  <schwab@redhat.com>
14182
14183         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
14184         fanotify_mark.
14185         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14186
14187 2010-09-14  Andreas Schwab  <schwab@redhat.com>
14188
14189         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
14190         variables after CHECK_SP call.
14191         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
14192
14193 2010-09-13  Andreas Schwab  <schwab@redhat.com>
14194             Ulrich Drepper  <drepper@redhat.com>
14195
14196         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
14197         re-relocationg ld.so.
14198         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
14199         _dl_init_paths call.
14200         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
14201         here anymore.
14202
14203 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
14204
14205         * resolv/res_init.c (__res_vinit): Count the default server we added.
14206
14207 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
14208             Ulrich Drepper  <drepper@redhat.com>
14209
14210         [BZ #11968]
14211         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14212         (____longjmp_chk): Use %ebx for saving value across system call.
14213         Add unwind info.
14214
14215 2010-09-06  Andreas Schwab  <schwab@redhat.com>
14216
14217         * manual/Makefile: Don't mix pattern rules with normal rules.
14218
14219 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14220
14221         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
14222         operation.
14223         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
14224         * libio/iofopncook.c (_IO_cookie_init): Likewise.
14225         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
14226         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
14227         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14228         Likewise.
14229
14230 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
14231
14232         [BZ #11979]
14233         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
14234         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
14235
14236 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
14237
14238         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
14239         * sysdeps/x86_64/addmul_1.S: Likewise.
14240         * sysdeps/x86_64/lshift.S: Likewise.
14241         * sysdeps/x86_64/mul_1.S: Likewise.
14242         * sysdeps/x86_64/rshift.S: Likewise.
14243         * sysdeps/x86_64/sub_n.S: Likewise.
14244         * sysdeps/x86_64/submul_1.S: Likewise.
14245
14246 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14247
14248         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
14249         Define __sched_param instead of SCHED_* and sched_param when
14250         <bits/sched.h> is included with __need_schedparam defined.
14251         * bits/sched.h [__need_schedparam]
14252         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
14253         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
14254         (__defined_schedparam): Define to 1.
14255         (__sched_param): New structure, identical to sched_param.
14256         (__need_schedparam): Undefine.
14257
14258 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
14259
14260         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
14261         (epoll_create1): Declare.
14262
14263         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
14264
14265 2010-08-31  Andreas Schwab  <schwab@redhat.com>
14266
14267         [BZ #7066]
14268         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
14269         shifting retval into place.
14270
14271 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
14272
14273         * nis/rpcsvc/nis.h: Update copyright notice.
14274         * nis/rpcsvc/nis.x: Likewise.
14275         * nis/rpcsvc/nis_callback.h: Likewise.
14276         * nis/rpcsvc/nis_callback.x: Likewise.
14277         * nis/rpcsvc/nis_object.x: Likewise.
14278         * nis/rpcsvc/nis_tags.h: Likewise.
14279         * nis/rpcsvc/yp.h: Likewise.
14280         * nis/rpcsvc/yp.x: Likewise.
14281         * nis/rpcsvc/ypupd.h: Likewise.
14282         * nis/yp_xdr.c: Likewise.
14283         * nis/ypupdate_xdr.c: Likewise.
14284
14285         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
14286         mainly the body of pmap_getport.  Add parameters to specify timeouts.
14287         (pmap_getport): Use __libc_rpc_getport.
14288         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
14289         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
14290         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
14291
14292 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
14293
14294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
14295         fanotify_mark.
14296
14297 2010-08-27  Roland McGrath  <roland@redhat.com>
14298
14299         * sysdeps/i386/i686/multiarch/Makefile
14300         (CFLAGS-varshift.c): New variable.
14301
14302 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
14303
14304         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
14305         * sysdeps/i386/i686/multiarch/varshift.c: New file.
14306
14307         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
14308
14309         * sysdeps/x86_64/strlen.S: Minimal code improvement.
14310
14311 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
14312
14313         * sysdeps/x86_64/strlen.S: Unroll the loop.
14314         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14315         strlen-sse2 strlen-sse2-bsf.
14316         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
14317         __strlen_no_bsf if bit_Slow_BSF is set.
14318         (__strlen_sse42): Removed.
14319         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
14320         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
14321
14322 2010-08-25  Roland McGrath  <roland@redhat.com>
14323
14324         * sysdeps/x86_64/multiarch/varshift.S: File removed.
14325         * sysdeps/x86_64/multiarch/varshift.c: New file.
14326         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
14327         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
14328         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
14329         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14330
14331 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
14332
14333         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14334         strlen-sse2 strlen-sse2-bsf.
14335         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
14336         __strlen_sse2_bsf if bit_Slow_BSF is unset.
14337         (__strlen_sse2): Removed.
14338         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
14339         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
14340         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14341         bit_Slow_BSF for Atom.
14342         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
14343         (index_Slow_BSF): Define.
14344         (HAS_SLOW_BSF): Define.
14345
14346 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
14347
14348         [BZ #10851]
14349         * resolv/res_init.c (__res_vinit): When no server address at all
14350         is given default to loopback.
14351
14352 2010-08-24  Roland McGrath  <roland@redhat.com>
14353
14354         * configure.in: Remove config-name.h generation.
14355         * configure: Regenerated.
14356         * config-name.in: File removed.
14357         * scripts/config-uname.sh: New file.
14358         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
14359         ($(objdir)config-name.h): New target.
14360
14361         * sunrpc/rpc_parse.h: Avoid nested comment.
14362
14363 2010-08-24  Richard Henderson  <rth@redhat.com>
14364             Ulrich Drepper  <drepper@redhat.com>
14365             H.J. Lu  <hongjiu.lu@intel.com>
14366
14367         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
14368         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
14369         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
14370         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
14371         _mm_alignr_epi8 with _mm_loadu_si128.
14372         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
14373         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
14374         (__m128i_shift_right): Removed.
14375         * sysdeps/i386/i686/multiarch/varshift.h: New file.
14376         * sysdeps/i386/i686/multiarch/varshift.S: New file.
14377         * sysdeps/x86_64/multiarch/varshift.h: New file.
14378         * sysdeps/x86_64/multiarch/varshift.S: New file.
14379
14380 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
14381
14382         * configure.in: Move assembler checks to before sysdep dir checking.
14383
14384 2010-08-20  Petr Baudis  <pasky@suse.cz>
14385
14386         * LICENSES: Sync the sunrpc license.
14387
14388 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
14389
14390         * sunrpc/auth_des.c: Update copyright notice once again.
14391         * sunrpc/auth_none.c: Likewise.
14392         * sunrpc/auth_unix.c: Likewise.
14393         * sunrpc/authdes_prot.c: Likewise.
14394         * sunrpc/authuxprot.c: Likewise.
14395         * sunrpc/bindrsvprt.c: Likewise.
14396         * sunrpc/clnt_gen.c: Likewise.
14397         * sunrpc/clnt_perr.c: Likewise.
14398         * sunrpc/clnt_raw.c: Likewise.
14399         * sunrpc/clnt_simp.c: Likewise.
14400         * sunrpc/clnt_tcp.c: Likewise.
14401         * sunrpc/clnt_udp.c: Likewise.
14402         * sunrpc/clnt_unix.c: Likewise.
14403         * sunrpc/des_crypt.c: Likewise.
14404         * sunrpc/des_soft.c: Likewise.
14405         * sunrpc/get_myaddr.c: Likewise.
14406         * sunrpc/getrpcport.c: Likewise.
14407         * sunrpc/key_call.c: Likewise.
14408         * sunrpc/key_prot.c: Likewise.
14409         * sunrpc/openchild.c: Likewise.
14410         * sunrpc/pm_getmaps.c: Likewise.
14411         * sunrpc/pm_getport.c: Likewise.
14412         * sunrpc/pmap_clnt.c: Likewise.
14413         * sunrpc/pmap_prot.c: Likewise.
14414         * sunrpc/pmap_prot2.c: Likewise.
14415         * sunrpc/pmap_rmt.c: Likewise.
14416         * sunrpc/rpc/auth.h: Likewise.
14417         * sunrpc/rpc/auth_unix.h: Likewise.
14418         * sunrpc/rpc/clnt.h: Likewise.
14419         * sunrpc/rpc/des_crypt.h: Likewise.
14420         * sunrpc/rpc/key_prot.h: Likewise.
14421         * sunrpc/rpc/netdb.h: Likewise.
14422         * sunrpc/rpc/pmap_clnt.h: Likewise.
14423         * sunrpc/rpc/pmap_prot.h: Likewise.
14424         * sunrpc/rpc/pmap_rmt.h: Likewise.
14425         * sunrpc/rpc/rpc.h: Likewise.
14426         * sunrpc/rpc/rpc_des.h: Likewise.
14427         * sunrpc/rpc/rpc_msg.h: Likewise.
14428         * sunrpc/rpc/svc.h: Likewise.
14429         * sunrpc/rpc/svc_auth.h: Likewise.
14430         * sunrpc/rpc/types.h: Likewise.
14431         * sunrpc/rpc/xdr.h: Likewise.
14432         * sunrpc/rpc_clntout.c: Likewise.
14433         * sunrpc/rpc_cmsg.c: Likewise.
14434         * sunrpc/rpc_common.c: Likewise.
14435         * sunrpc/rpc_cout.c: Likewise.
14436         * sunrpc/rpc_dtable.c: Likewise.
14437         * sunrpc/rpc_hout.c: Likewise.
14438         * sunrpc/rpc_main.c: Likewise.
14439         * sunrpc/rpc_parse.c: Likewise.
14440         * sunrpc/rpc_parse.h: Likewise.
14441         * sunrpc/rpc_prot.c: Likewise.
14442         * sunrpc/rpc_sample.c: Likewise.
14443         * sunrpc/rpc_scan.c: Likewise.
14444         * sunrpc/rpc_scan.h: Likewise.
14445         * sunrpc/rpc_svcout.c: Likewise.
14446         * sunrpc/rpc_tblout.c: Likewise.
14447         * sunrpc/rpc_util.c: Likewise.
14448         * sunrpc/rpc_util.h: Likewise.
14449         * sunrpc/rpcinfo.c: Likewise.
14450         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
14451         * sunrpc/rpcsvc/key_prot.x: Likewise.
14452         * sunrpc/rpcsvc/klm_prot.x: Likewise.
14453         * sunrpc/rpcsvc/mount.x: Likewise.
14454         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
14455         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
14456         * sunrpc/rpcsvc/rex.x: Likewise.
14457         * sunrpc/rpcsvc/rstat.x: Likewise.
14458         * sunrpc/rpcsvc/rusers.x: Likewise.
14459         * sunrpc/rpcsvc/sm_inter.x: Likewise.
14460         * sunrpc/rpcsvc/spray.x: Likewise.
14461         * sunrpc/rpcsvc/yppasswd.x: Likewise.
14462         * sunrpc/rtime.c: Likewise.
14463         * sunrpc/svc.c: Likewise.
14464         * sunrpc/svc_auth.c: Likewise.
14465         * sunrpc/svc_authux.c: Likewise.
14466         * sunrpc/svc_raw.c: Likewise.
14467         * sunrpc/svc_run.c: Likewise.
14468         * sunrpc/svc_simple.c: Likewise.
14469         * sunrpc/svc_tcp.c: Likewise.
14470         * sunrpc/svc_udp.c: Likewise.
14471         * sunrpc/svc_unix.c: Likewise.
14472         * sunrpc/svcauth_des.c: Likewise.
14473         * sunrpc/xcrypt.c: Likewise.
14474         * sunrpc/xdr.c: Likewise.
14475         * sunrpc/xdr_array.c: Likewise.
14476         * sunrpc/xdr_float.c: Likewise.
14477         * sunrpc/xdr_mem.c: Likewise.
14478         * sunrpc/xdr_rec.c: Likewise.
14479         * sunrpc/xdr_ref.c: Likewise.
14480         * sunrpc/xdr_sizeof.c: Likewise.
14481         * sunrpc/xdr_stdio.c: Likewise.
14482
14483         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
14484         handling.
14485
14486 2010-08-19  Andreas Schwab  <schwab@redhat.com>
14487
14488         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
14489
14490 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
14491
14492         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
14493         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
14494         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
14495         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
14496         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
14497         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
14498         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
14499         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
14500         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
14501         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
14502         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
14503         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
14504         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
14505         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
14506
14507 2010-07-26  Anton Blanchard  <anton@samba.org>
14508
14509         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
14510         * malloc/arena.c (heap_trim): Likewise.
14511
14512 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
14513
14514         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
14515         here.  Not...
14516         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
14517         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
14518
14519 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14520
14521         * sysdeps/i386/elf/Makefile: New file.
14522
14523 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14524
14525         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
14526         from fanotify_init.
14527         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
14528         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14529
14530 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
14531
14532         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
14533         of strncasecmp_l.
14534         * sysdeps/multiarch/strcmp.S: Likewise.
14535
14536 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
14537
14538         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14539         strncase_l-nonascii.
14540         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14541         Add strncase_l-ssse3.
14542         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
14543         * sysdeps/x86_64/strcmp.S: Likewise.
14544         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
14545         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
14546         * sysdeps/x86_64/strncase.S: New file.
14547         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
14548         * sysdeps/x86_64/strncase_l.S: New file.
14549         * string/Makefile (strop-tests): Add strncasecmp.
14550         * string/test-strncasecmp.c: New file.
14551
14552         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
14553         warning.
14554
14555         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
14556         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
14557
14558 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14559
14560         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
14561
14562 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
14563
14564         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
14565         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
14566         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
14567
14568 2010-05-01  Alan Modra  <amodra@gmail.com>
14569
14570         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
14571         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
14572         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
14573         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
14574         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
14575         tidying.  Don't tail-call __sigjmp_save for static lib.
14576         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
14577         save location.
14578         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
14579         (CALL_MCOUNT): Add eh info, and nop after bl.
14580         (TAIL_CALL_SYSCALL_ERROR): New macro.
14581         (PSEUDO_RET): Use it.
14582         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
14583         Correct save location of integer regs and cr.
14584         (_dl_profile_resolve): Correct cr save location.  Delete nops
14585         after bl when SHARED.  Reduce cfi size a little by better
14586         placement of cfi directives.
14587         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
14588         make a stack frame.  Instead use parm save area as a temp.
14589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
14590         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
14591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
14592         Don't make a stack frame for parent, use parm save area.
14593         Increase child stack frame to 112 bytes.  Don't save unused reg,
14594         and adjust reg usage.  Set up cfi on error recovery and
14595         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
14596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14597         (__makecontext): Add dummy nop after jump to exit.
14598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
14599         Use correct parm save area and cr save, reduce stack frame.
14600         Correct cfi for possible PSEUDO_RET frame setup.
14601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
14602         Branch to local label emitted by PSEUDO_RET rather than
14603         __syscall_error.
14604
14605 2010-08-12  Andreas Schwab  <schwab@redhat.com>
14606
14607         [BZ #11904]
14608         * locale/programs/locale.c (print_assignment): New function.
14609         (show_locale_vars): Use it.
14610
14611 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
14612
14613         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
14614         field.
14615         (struct statfs64): Likewise.
14616         (_STATFS_F_FLAGS): Define.
14617         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
14618         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14619         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
14620         (ST_VALID): Define locally.
14621         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
14622         __statvfs_getflags, use the provided value.
14623         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14624         __ASSUME_STATFS_F_FLAGS.
14625
14626         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
14627
14628         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
14629         Add sys/fanotify.h.
14630         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
14631         fanotify_mask for GLIBC_2.13.
14632         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
14633         fanotify_init and fanotify_mark.
14634         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14635         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
14636
14637         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
14638         Add prlimit.
14639         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
14640         prlimit64 for GLIBC_2.13.
14641         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
14642         prlimit64.
14643         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
14644         syscall.
14645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14646         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14647         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
14648         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
14649         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
14650         add prlimit alias.
14651         * sysdeps/unix/sysv/linux/prlimit.c: New file.
14652
14653         [BZ #11903]
14654         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
14655         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
14656
14657         * nss/Makefile: Add rules to build and run tst-nss-test1.
14658         * shlib-versions: Add entry for libnss_test1.
14659         * nss/nss_test1.c: New file.
14660         * nss/tst-nss-test1.c: New file.
14661
14662         * nss/nsswitch.c (__nss_database_custom): Define new variable.
14663         (__nss_configure_lookup): Set appropriate entry in
14664         __nss_configure_lookup to true.
14665         * nss/nsswitch.h: Define enum with indeces of databases in
14666         databases and __nss_database_custom arrays.  Declare
14667         __nss_database_custom.
14668         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
14669         to avoid using nscd when custom rules are installed.
14670         * nss/getXXbyYY_r.c: Likewise.
14671         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14672
14673         * nss/nss_files/files-parse.c: Whitespace fixes.
14674
14675 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
14676
14677         [BZ #11883]
14678         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
14679         * posix/fnmatch_loop.c: Likewise.
14680
14681 2010-07-17  Andi Kleen  <ak@linux.intel.com>
14682
14683         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
14684         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
14685         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
14686         * Versions.def [GLIBC_2.13]: Add.
14687
14688 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
14689
14690         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14691         Also fail if tpwd after pwuid call is NULL.
14692
14693 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14694
14695         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
14696         when converting to ms.
14697
14698 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14699
14700         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
14701         EOPNOTSUPP errors with ENOTTY.
14702         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
14703         EOPNOTSUPP errors with ENOTTY.
14704
14705 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
14706
14707         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14708         Add strcasecmp_l-ssse3.
14709         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
14710         strcasecmp.
14711         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
14712         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
14713         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
14714
14715 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
14716
14717         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
14718
14719         * string/Makefile (strop-tests): Add strcasecmp.
14720         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14721         strcasecmp_l-nonascii.
14722         (gen-as-const-headers): Add locale-defines.sym.
14723         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
14724         * sysdeps/x86_64/strcasecmp.S: New file.
14725         * sysdeps/x86_64/strcasecmp_l.S: New file.
14726         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
14727         * sysdeps/x86_64/locale-defines.sym: New file.
14728         * string/test-strcasecmp.c: New file.
14729
14730         * string/test-strcasestr.c: Test both ends of the range of characters.
14731         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
14732
14733 2010-07-29  Roland McGrath  <roland@redhat.com>
14734
14735         [BZ #11856]
14736         * manual/locale.texi (Yes-or-No Questions): Fix example code.
14737
14738 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
14739
14740         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
14741         for ld.so.
14742
14743 2010-07-27  Andreas Schwab  <schwab@redhat.com>
14744
14745         * manual/memory.texi (Malloc Tunable Parameters): Document
14746         M_PERTURB.
14747
14748 2010-07-26  Roland McGrath  <roland@redhat.com>
14749
14750         [BZ #11840]
14751         * configure.in (-fgnu89-inline check): Set and substitute
14752         gnu89_inline, not libc_cv_gnu89_inline.
14753         * configure: Regenerated.
14754         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
14755
14756 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
14757
14758         * string/test-strnlen.c: New file.
14759         * string/Makefile (strop-tests): Add strnlen.
14760         * string/tester.c (test_strnlen): Add a few more test cases.
14761         * string/tst-strlen.c: Better error reporting.
14762
14763         * sysdeps/x86_64/strnlen.S: New file.
14764
14765 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
14766
14767         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
14768         lower-latency instructions.
14769
14770 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
14771
14772         * string/test-strcasestr.c: New file.
14773         * string/test-strstr.c: New file.
14774         * string/Makefile (strop-tests): Add strstr and strcasestr.
14775         * string/str-two-way.h: Don't undefine MAX.
14776         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14777
14778 2010-07-21  Andreas Schwab  <schwab@redhat.com>
14779
14780         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14781         strcasestr-nonascii.
14782         (CFLAGS-strcasestr-nonascii.c): Define.
14783         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
14784         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
14785         Remove unused attribute.
14786
14787 2010-07-20  Roland McGrath  <roland@redhat.com>
14788
14789         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
14790         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
14791         ld.so.cache was broken.  With it, there is no way to disable dsocaps
14792         like LD_HWCAP_MASK can disable hwcaps.
14793
14794 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14795
14796         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
14797
14798 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
14799
14800         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
14801         call in strcasestr.
14802         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
14803         __strcasestr_sse42_nonascii.
14804         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
14805         strcasestr-nonascii.c.
14806         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
14807
14808 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
14809
14810         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
14811         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
14812         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
14813         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
14814
14815 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
14816
14817         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
14818         fcntl.
14819
14820 2010-07-06  Andreas Schwab  <schwab@redhat.com>
14821
14822         [BZ #11577]
14823         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
14824         dl_signal_cerror.
14825
14826 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
14827
14828         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
14829         _PC_PIPE_BUF using F_GETPIPE_SZ.
14830
14831 2010-07-05  Roland McGrath  <roland@redhat.com>
14832
14833         * manual/arith.texi (Rounding Functions): Fix rint description
14834         implicit in round description.
14835
14836 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
14837
14838         * elf/Makefile: Fix linking for a few tests to make recent linker
14839         happy.
14840
14841 2010-06-30  Andreas Schwab  <schwab@redhat.com>
14842
14843         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14844         $(common-objpfx)libc_nonshared.a.
14845
14846 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
14847
14848         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
14849         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
14850         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14851         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14852         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
14853         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
14854         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14855         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
14857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
14858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
14859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
14861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
14863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
14864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
14865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
14866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
14868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
14870         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
14871         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
14872         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
14873         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
14874         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
14875         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
14876         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
14877         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
14878         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
14879         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
14880         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
14881         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
14882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
14883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
14884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
14885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
14886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
14887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
14888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
14889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
14890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
14891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
14892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
14893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
14894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
14895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
14896
14897 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14898
14899         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
14900         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
14901         * string/memmove.c (memmove): Renamed to ...
14902         (MEMMOVE): ...this.  Default to memmove.
14903         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
14904         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
14905         (END_CHK): Define.
14906         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14907         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
14908         mempcpy-ssse3-back memmove-ssse3-back.
14909         * sysdeps/x86_64/multiarch/bcopy.S: New file .
14910         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
14911         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
14912         * sysdeps/x86_64/multiarch/memcpy.S: New file.
14913         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
14914         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
14915         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
14916         * sysdeps/x86_64/multiarch/memmove.c: New file.
14917         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
14918         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
14919         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
14920         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
14921         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
14922         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
14923         Define.
14924         (index_Fast_Copy_Backward): Define.
14925         (HAS_ARCH_FEATURE): Define.
14926         (HAS_FAST_REP_STRING): Define.
14927         (HAS_FAST_COPY_BACKWARD): Define.
14928
14929 2010-06-21  Andreas Schwab  <schwab@redhat.com>
14930
14931         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14932         Restore proper fallback handling.
14933
14934 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
14935
14936         [BZ #11701]
14937         * posix/group_member.c (__group_member): Correct checking loop.
14938
14939         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
14940         OOM in getpwuid_r correctly.  Return error number when the caller
14941         should return, otherwise -1.
14942         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
14943         call returning > 0 value.
14944         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
14945
14946 2010-06-07  Andreas Schwab  <schwab@redhat.com>
14947
14948         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
14949         libc_nonshared.a from targets in modules-names.
14950
14951 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
14952
14953         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
14954         requires it.
14955
14956 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
14957
14958         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
14959         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
14960         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
14961         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
14962
14963 2010-06-02  Andreas Schwab  <schwab@redhat.com>
14964
14965         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
14966
14967 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
14968
14969         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
14970         and F_GETPIPE_SZ.
14971         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14972         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14973         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14974         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14975         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14976         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
14977
14978 2010-06-14  Roland McGrath  <roland@redhat.com>
14979
14980         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
14981
14982 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
14983
14984         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
14985         __REDIRECT followed by __THROW.
14986         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
14987         * posix/getopt.h (getopt): Likewise.
14988
14989 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14990
14991         * hurd/lookup-at.c (__file_name_lookup_at): Accept
14992         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
14993         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
14994         in AT_FLAGS.
14995         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
14996         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
14997
14998 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
14999
15000         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
15001
15002 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
15003
15004         [BZ #11640]
15005         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15006         Properly check family and model.
15007
15008 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
15009
15010         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
15011
15012 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
15013
15014         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
15015
15016 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
15017
15018         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
15019         symbol reference.
15020
15021 2010-05-19  Andreas Schwab  <schwab@redhat.com>
15022
15023         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
15024         symbol reference.
15025
15026 2010-05-21  Andreas Schwab  <schwab@redhat.com>
15027
15028         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
15029         and internal_recvmmsg.
15030         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
15031         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
15032         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
15033         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
15034
15035         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
15036         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
15037         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
15038
15039 2010-05-20  Andreas Schwab  <schwab@redhat.com>
15040
15041         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
15042
15043 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
15044
15045         POWER7 optimizations.
15046         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
15047         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
15048
15049 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
15050
15051         * version.h: Update for 2.13 development version.
15052
15053 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
15054
15055         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
15056         exceptions.  Return 0.
15057
15058 2010-05-07  Roland McGrath  <roland@redhat.com>
15059
15060         * elf/ldconfig.c (main): Add a const.
15061
15062 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
15063
15064         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
15065         (args_options): Add no-idn option.
15066         (ahosts_keys_int): Add idn_flags to ai_flags.
15067         (parse_option): Handle 'i' option to clear idn_flags.
15068
15069         * malloc/malloc.c (_int_free): Possible race in the most recently
15070         added check.  Only act on the data if no current modification
15071         happened.
15072
15073 See ChangeLog.17 for earlier changes.