time/mktime.c (compile-command): Add "-I."
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2
3         * time/mktime.c (compile-command): Add "-I.".
4
5         mktime: merge mktime-internal.h change from gnulib
6         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7
8         mktime: merge time_r change from gnulib
9         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
10
11         mktime: merge DEBUG change from gnulib
12         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
13         case system <time.h> has a #define.
14
15         mktime: merge <sys/types.h> change from gnulib
16         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
17         since <time.t> is now guaranteed to define time_t.
18
19         mktime: merge HAVE_CONFIG_H change from gnulib
20         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
21
22 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23
24         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
25         Use "neg %eax".
26
27         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
28         __rlim_t cast.
29         (struct rusage): Use anonymous union to pad each field to
30         __syscall_slong_t.
31
32 2012-05-21  David S. Miller  <davem@davemloft.net>
33
34         * Makefules (o-iterator): Remove .s cases.
35         (compile-command.s): Delete.
36         (COMPILE.s): Delete.
37         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
38
39 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
40
41         * configure.in (libc_cv_predef_stack_protector): Only consider
42         "foobar" and "__stack_chk_fail" lines in libc_undefs.
43         * configure: Regenerated.
44
45 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
46
47         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
48         New macro.  Use R*LP on int and pointer.
49         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
50         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
51         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
52         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
53
54         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
55         [__WORDSIZE_TIME64_COMPAT32] instead of
56         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
57         (struct utmp): Likewise.
58         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
59         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
60         Renamed to ...
61         (__WORDSIZE_TIME64_COMPAT32): This.
62         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
63         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
64         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
65         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
66         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
67         (__WORDSIZE_TIME64_COMPAT32): New macro.
68
69 2012-05-21  Andreas Jaeger  <aj@suse.de>
70
71         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
72         only if [SHARED]. Add prototype for __wcschr_ia32.
73
74 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75
76         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
77         of %rbp unmolested in the jmp_buf while mangling the low bits.
78         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
79         unmolested high bits of %rbp while demangling the low bits.
80         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
81
82 2012-05-21  Andreas Jaeger  <aj@suse.de>
83
84         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
85         * sunrpc/svc_simple.c: Use it for registerrpc.
86         * sunrpc/xcrypt.c: Use it for passwd2des.
87
88         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
89
90 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
91
92         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
93         Don't define if [__SYSCALL_WORDSIZE != 32].
94         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
95         New macro.
96
97 2012-05-21  Bruno Haible  <bruno@clisp.org>
98             Andreas Jaeger  <aj@suse.de>
99
100         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
101         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
102         inptr and inend for must_buffer_ch.
103         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
104         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
105         * stdio-common/Makefile (tests): Remove bug15.
106         (bug15-ENV): Remove macro.
107         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
108         anymore.
109
110 2012-05-19  Andreas Jaeger  <aj@suse.de>
111             Roland McGrath  <roland@hack.frob.com>
112
113         * manual/contrib.texi: Completely rewritten. It contains now an
114         alphabetical list of contributors and their contributions.
115
116 2012-05-21  Richard Henderson  <rth@twiddle.net>
117
118         * misc/getauxval.c (__getauxval): Use unsigned long int.
119         * misc/sys/auxv.h: Include <sys/cdefs.h>.
120         (getauxval): Use unsigned long int.
121
122 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
123
124         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
125
126 2012-05-21  Roland McGrath  <roland@hack.frob.com>
127
128         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
129         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
130         __alignof__ (long double).
131
132 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
133
134         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
135
136 2012-05-20  Richard Henderson  <rth@twiddle.net>
137
138         * misc/getauxval.c: New file.
139         * misc/sys/auxv.h: New file.
140         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
141         (routines): Add getauxval.
142         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
143         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
144         * elf/dl-sysdep.c (_dl_auxv): Remove.
145         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
146         * elf/dl-support.c (_dl_auxv): New variable.
147         (_dl_aux_init): Initialize it.
148         * manual/startup.texi (Auxiliary Vector): New node.
149         * sysdeps/generic/bits/hwcap.h: New file.
150         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
151         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
152         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
153         * sysdeps/sparc/sysdep.h: ... here.  Include it.
154         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
155         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
157         Update.
158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
159         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
160         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
161         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
162         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
163         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
164         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
165         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
166
167 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
168
169         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
170
171 2012-05-19  David S. Miller  <davem@davemloft.net>
172
173         * sysdeps/sparc/fpu/libm-test-ulps: Update.
174
175 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
176
177         [BZ #14123]
178         * math/s_ccosh.c: Include <float.h>
179         (__ccosh): Avoid internal overflow calculating sinh and cosh
180         values before multiplying by sin and cos values.
181         * math/s_ccoshf.c: Likewise.
182         * math/s_ccoshl.c: Likewise.
183         * math/s_csin.c: Likewise.
184         * math/s_csinf.c: Likewise.
185         * math/s_csinl.c: Likewise.
186         * math/s_csinh.c: Likewise.
187         * math/s_csinhf.c: Likewise.
188         * math/s_csinhl.c: Likewise.
189         * math/libm-test.inc (ccos_test): Add more tests.
190         (ccosh_test): Likewise.
191         (csin_test): Likewise.
192         (csinh_test): Likewise.
193         * sysdeps/i386/fpu/libm-test-ulps: Update.
194         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
195
196 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
197
198         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
199         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
200
201         * sysdeps/x86_64/x32/_itoa.h: Add comment.
202
203 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
204
205         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
206         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
207         * sysdeps/powerpc/soft-fp/Versions: Likewise.
208         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
209         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
210         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
211         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
212         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
213         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
214         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
215         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
216         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
217         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
218         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
219         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
220         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
221         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
222         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
223         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
224         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
225         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
226         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
227         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
228         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
229         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
230         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
231         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
232         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
233         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
234         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
235         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
236
237 2012-05-18  Andreas Jaeger  <aj@suse.de>
238
239         * csu/.gitignore: Delete.
240
241 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
242
243         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
244         (timex): Use __syscall_slong_t.
245
246 2012-05-18  Andreas Jaeger  <aj@suse.de>
247             Carlos O'Donell  <carlos_odonell@mentor.com>
248
249         * manual/install.texi (Configuring and compiling): Update
250         description about files modified in the source directory.
251         * INSTALL: Regenerated.
252
253 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
254
255         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
256         value.  Use "or" to set return value to -1.
257         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
258         negate return value.
259
260 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
261
262         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
263         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
264         failure if the compiler has Graphite support disabled.
265         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
266         Likewise.
267         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
268         CFLAGS-memmove.c): Likewise.
269         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
270         Likewise.
271
272 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
273
274         * sysdeps/x86_64/x32/_itoa.h: New file.
275
276         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
277         getdents system call only if kernel and user dirents have the
278         same d_ino and d_off.
279
280         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
281         LLONG_MAX != LONG_MAX.
282         (_itoa_word): Use _ITOA_WORD_TYPE on value.
283         (_fitoa_word): Likewise.
284
285         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
286         years.
287         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
288         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
289         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
290
291         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
292         include <bits/wordsize.h>.  Check __x86_64__ instead of
293         __WORDSIZE.
294         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
295         if __x86_64__ is defined.  Use anonymous union on fpstate.
296
297         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
298         anonymous union.
299
300 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
301
302         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
303         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
304         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
305         Refer to _rtld_local_ro instead of _rtld_global_ro.
306         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
307         Likewise.
308         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
309         Likewise.
310         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
311         Likewise.
312         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
313         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
314         of _rtld_global, and rtld_progname instead of _dl_argv[0].
315
316         * sysdeps/powerpc/powerpc32/dl-machine.c
317         (__elf_machine_runtime_setup) [PROF]: Don't reference
318         _dl_prof_resolve.
319
320 2012-05-18  Andreas Jaeger  <aj@suse.de>
321
322         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
323         function only available for GCCs before 3.4 since GCC 3.4
324         introduced a builtin.
325         (lrint): Likewise.
326         (llrintf): Likewise.
327         (llrint): Likewise.
328         (fmaxf): Likewise.
329         (fmax): Likewise.
330         (fminf): Likewise.
331         (fmin): Likewise.
332         (rint): Likewise.
333         (rintf): Likewise.
334         (nearbyint): Likewise.
335         (nearbyintf): Likewise.
336         (ceil): Likewise.
337         (ceilf): Likewise.
338         (floor): Likewise.
339         (floorf): Likewise.
340
341 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
342
343         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
344         on both fields and cast pointer to __syscall_ulong_t.
345
346         * bits/types.h (__fsword_t): New type.
347         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
348         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
349         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
350         (__FSWORD_T_TYPE): Likewise.
351         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
352         (__FSWORD_T_TYPE): Likewise.
353         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
354         (__FSWORD_T_TYPE): Likewise.
355         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
356         (__FSWORD_T_TYPE): Likewise.
357         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
358         __SWORD_TYPE with __fsword_t.
359         (statfs64): Likewise.
360
361 2012-05-17  David S. Miller  <davem@davemloft.net>
362
363         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
364
365 2012-05-17  Andreas Jaeger  <aj@suse.de>
366
367         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
368         warning.
369
370 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
371
372         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
373
374 2012-05-17  Andreas Jaeger  <aj@suse.de>
375
376         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
377         when it is used.
378
379 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
380
381         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
382
383 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
384
385         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
386         * sysdeps/x86_64/tst-mallocalign1.c: New file.
387
388 2012-05-17  Andreas Jaeger  <aj@suse.de>
389             Carlos O'Donell  <carlos_odonell@mentor.com>
390
391         [BZ #14059]
392         * sysdeps/x86_64/multiarch/init-arch.h
393         (bit_YMM_Usable): Rename to...
394         (bit_AVX_Usable): ... this.
395         (bit_FMA4_Usable): New macro.
396         (bit_XMM_state): New macro.
397         (bit_YMM_state): New macro.
398         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
399         [__ASSEMBLER__] (index_AVX_Usable): ... this.
400         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
401         (CPUID_OSXSAVE): New macro.
402         (CPUID_AVX): New macro.
403         (CPUID_FMA4): New macro.
404         (index_YMM_Usable): Rename to...
405         (index_AVX_Usable): ... this.
406         (HAS_AVX): Use HAS_ARCH_FEATURE.
407         (HAS_FMA4): Likewise.
408         (HAS_YMM_USABLE): Remove.
409         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
410         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
411         are present.
412         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
413         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
414         * sysdeps/x86_64/multiarch/Makefile: Likewise.
415         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
416         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
417
418 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
419
420         * math/libm-test.c: Support platforms without multiple rounding modes.
421         * math/bug-nextafter.c: Support platforms without FP exceptions.
422         * math/bug-nexttoward.c: Likewise.
423         * math/test-fenv.c: Likewise.
424         * math/test-misc.c: Likewise.
425         * stdlib/bug-getcontext.c: Likewise.
426
427 2012-05-17  Andreas Jaeger  <aj@suse.de>
428
429         * manual/examples/search.c (critter_cmp): Change signature to
430         avoid warnings.
431         * manual/string.texi (Collation Functions): Likewise.
432
433 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
434
435         * bits/types.h: Fold copyright years.
436         * bits/typesizes.h: Likewise.
437         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
438         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
439         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
440         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
441         * time/time.h: Likewise.
442
443 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
444
445         [BZ #208]
446         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
447         in instead of returning them.  Return void.
448         (__libc_mallinfo): Accumulate over all arenas.
449         (__malloc_stats): Adjust for change in int_mallinfo interface.
450
451 2012-05-16  Roland McGrath  <roland@hack.frob.com>
452
453         [BZ #10375]
454         * configure.in (NM): Add AC_CHECK_TOOL for it.
455         (libc_extra_cflags): New substituted variable.
456         Check for -fstack-protector being used implicitly.
457         * configure: Regenerated.
458         * config.make.in (config-extra-cflags): New variable,
459         gets @libc_extra_cflags@.
460         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
461
462         [BZ #10375]
463         * configure.in: Check for _FORTIFY_SOURCE being predefined.
464         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
465         * configure: Regenerated.
466         * config.make.in (CPPUNDEFS): New substituted variable.
467         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
468         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
469         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
470
471 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
472
473         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
474         (mq_attr): Use __syscall_slong_t.
475
476 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
477
478         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
479         Check __x86_64__ instead of __WORDSIZE.
480         (_STAT_VER_LINUX): Likewise.
481         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
482         __syscall_ulong_t and __syscall_slong_t.
483         (stat64): Likewise.
484
485 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
486
487         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
488
489 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
490
491         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
492
493 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
494
495         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
496         __syscall_ulong_t.
497
498         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
499         include <bits/wordsize.h>.  Check __x86_64__ instead of
500         __WORDSIZE.
501         (greg_t): Use "__extension__ long long int" if __x86_64__ is
502         defined.
503         (mcontext_t): Replace "unsigned long" with "unsigned long long".
504
505         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
506         include <bits/wordsize.h>.  Check __x86_64__ instead of
507         __WORDSIZE.
508         (user_regs_struct): Use "__extension__ unsigned long long"
509         instead of "unsigned long" if __x86_64__ is defined.
510         (user): Likewise.  Pad after pointer field if __ILP32__ is
511         defined.
512
513 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
514
515         * configure.in (makeinfo): Require version 4.5 or later.  Allow
516         versions 5 to 9.
517         * configure: Regenerated.
518         * manual/install.texi (texinfo): Increase version requirement to
519         4.5 or later.
520         * INSTALL: Regenerated.
521
522         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
523
524 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
525
526         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
527
528         * sysdeps/x86_64/x32/ffs.c: New file.
529
530         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
531         __syscall_ulong_t.
532         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
533         defined.  Use __syscall_ulong_t.
534         (shminfo): Use __syscall_ulong_t.
535         (shm_info): Likewise.
536
537         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
538         __syscall_ulong_t.
539
540         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
541         <bits/wordsize.h>.
542         (msgqnum_t): Use __syscall_ulong_t.
543         (msglen_t): Likewise.
544         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
545         __syscall_ulong_t.
546
547         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
548         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
549
550         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
551
552         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
553         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
554
555         * sysvipc/sys/msg.h (msgbuf): Replace long int with
556         __syscall_slong_t.
557
558         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
559         include <bits/wordsize.h>.  Check __x86_64__ instead of
560         __WORDSIZE.
561
562         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
563         "unsigned long long int" if __x86_64__ is defined.
564         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
565
566         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
567         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
568         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
569
570         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
571         <stdint.h>.
572         (GET_PC): Cast to uintptr_t first.
573         (GET_FRAME): Likewise.
574         (GET_STACK): Likewise.
575
576         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
577         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
578         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
579         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
580         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
581         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
582         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
583         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
584         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
585         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
586         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
587         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
588         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
589         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
590         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
591         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
592         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
593         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
594         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
595         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
596         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
597         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
598         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
599         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
600         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
601         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
602         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
603         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
604         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
605
606 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
607
608         * Makerules (+depfiles): Also collect depfiles from .oS in
609         $(extra-objs).
610         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
611         .oS, $(libnldbl-routines)).
612
613         * Makerules (native-compile-mkdep-flags): Define.
614         * sunrpc/Makefile (extra-objs): Add $(addprefix
615         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
616         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
617         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
618         calling $(make-target-directory).
619
620 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
621
622         * bits/types.h (__snseconds_t): Removed.
623         * time/time.h (struct timespec): Replace __snseconds_t with
624         __syscall_slong_t.
625         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
626         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
627         Likewise.
628         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
629         (__SNSECONDS_T_TYPE): Likewise.
630         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
631         (__SNSECONDS_T_TYPE): Likewise.
632         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
633         (__SNSECONDS_T_TYPE): Likewise.
634
635 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
636
637         * sysdeps/mach/hurd/bits/typesizes.h
638         (__SYSCALL_SLONG_TYPE): New macro.
639         (__SYSCALL_ULONG_TYPE): Likewise.
640
641 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
642
643         * bits/types.h (__syscall_slong_t): New type.
644         (__syscall_ulong_t): Likewise.
645
646         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
647         (__SYSCALL_ULONG_TYPE): Likewise.
648         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
649         (__SYSCALL_SLONG_TYPE): Likewise.
650         (__SYSCALL_ULONG_TYPE): Likewise.
651         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
652         (__SYSCALL_SLONG_TYPE): Likewise.
653         (__SYSCALL_ULONG_TYPE): Likewise.
654         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
655         (__SYSCALL_SLONG_TYPE): Likewise.
656         (__SYSCALL_ULONG_TYPE): Likewise.
657
658 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
659
660         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
661         Add sigaltstack-offsets.sym.
662         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
663         <sigaltstack-offsets.h>.
664         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
665         longjmp_msg pointer.
666         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
667         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
668         signal stack.
669         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
670
671 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
672
673         * elf/stackguard-macros.h: Remove file.
674         * sysdeps/generic/stackguard-macros.h: New file.
675         * sysdeps/i386/stackguard-macros.h: Likewise.
676         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
677         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
678         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
679         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
680         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
681         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
682         * sysdeps/x86_64/stackguard-macros.h: Likewise.
683         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
684         <elf/stackguard-macros.h>.
685
686         [BZ #14109]
687         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
688         __aligned__ in attribute.
689         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
690         (gregset_t): Likewise.
691
692 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
693
694         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
695         * sysdeps/x86_64/64/Implies-after: Here.  New file.
696         * sysdeps/x86_64/x32/Implies-after: New file.
697
698 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
699
700         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
701         and access return value for _dl_profile_fixup.  Use R10_LP to
702         load frame size.
703
704 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
705
706         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
707
708 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
709
710         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
711         * sysdeps/x86_64/x32/sysdep.h: New file.
712
713 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
714
715         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
716         * sysdeps/x86_64/setjmp.S: Likewise.
717
718 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
719
720         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
721         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
722         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
723         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
724         remove unused global constant.
725
726 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
727
728         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
729         include of <not-cancel.h>.
730
731 2012-05-15  Roland McGrath  <roland@hack.frob.com>
732
733         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
734
735 2012-05-15  Jeff Law  <law@redhat.com>
736             Andreas Jaeger  <aj@suse.de>
737
738         [BZ #13594]
739         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
740         out from...
741         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
742         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
743         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
744         code changing __hst_map_handle.map.
745
746 2012-05-15  Roland McGrath  <roland@hack.frob.com>
747
748         * configure.in (sysnames): Look for Implies-before and Implies-after
749         files.
750         * configure: Regenerated.
751
752 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
753
754         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
755         8-byte data alignment with LP_SIZE alignment.
756
757 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
758
759         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
760         into R10_LP.
761
762 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
763
764         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
765
766 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
767
768         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
769         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
770         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
771         Likewise.
772         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
773
774 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
775
776         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
777         (stackinfo_sub_sp): Likewise.
778
779 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
780
781         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
782         RAX_LP.
783
784 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
785
786         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
787         into R*_LP.
788
789 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
790
791         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
792         sizes into R*_LP.
793
794 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
795
796         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
797
798 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
799
800         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
801         into R11_LP and load __x86_64_shared_cache_size_half into
802         R8_LP.
803
804 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
805
806         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
807         R8_LP.
808
809 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
810
811         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
812         logb for POWER7.
813         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
814         logbf for POWER7.
815         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
816         logbl for POWER7.
817         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
818         powerpc32/power7/fpu/s_logb.c via #include.
819         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
820         powerpc32/power7/fpu/s_logbf.c via #include.
821         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
822         powerpc32/power7/fpu/s_logbl.c via #include.
823
824 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
825
826         * README.libm: Remove file.
827
828 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
829
830         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
831         count for x32.  Use R*_LP and omit operand-size suffix.
832
833 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
834
835         * shlib-versions: Move x86_64-.*-linux.* entries to ...
836         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
837         * sysdeps/x86_64/x32/shlib-versions: New file.
838
839 2012-05-14  Roland McGrath  <roland@hack.frob.com>
840
841         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
842         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
843         Use _dl_fatal_printf instead.
844
845 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
846
847         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
848         set if not set by the user.  Do not allow for being unset.
849         * sysdeps/unix/sysv/linux/configure: Regenerated.
850
851 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
852
853         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
854         the `q' suffix from lea and replace .quad with ASM_ADDR.
855
856 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
857
858         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
859         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
860         instead of $17.
861         (PTR_DEMANGLE): Likewise.
862
863 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
864
865         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
866         (LP_OP): Likewise.
867         (ASM_ADDR): Likewise.
868         (RAX_LP): Likewise.
869         (RBP_LP): Likewise.
870         (RBX_LP): Likewise.
871         (RCX_LP): Likewise.
872         (RDI_LP): Likewise.
873         (RSI_LP): Likewise.
874         (RSP_LP): Likewise.
875         (R8_LP): Likewise.
876         (R9_LP): Likewise.
877         (R10_LP): Likewise.
878         (R10_LP): Likewise.
879         (R11_LP): Likewise.
880         (R12_LP): Likewise.
881         (R13_LP): Likewise.
882         (R14_LP): Likewise.
883         (R15_LP): Likewise.
884
885 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
886
887         * sysdeps/x86_64/x32/dl-machine.h: New file.
888
889 2012-05-14  Andreas Jaeger  <aj@suse.de>
890
891         * manual/Makefile (subdir): Remove export of subdir.
892         (all): Remove target.
893         (.PHONY): Remove all from list.
894         (mkinstalldirs): Remove.
895         (.PHONY): Remove installdirs from list.
896         ($(inst_infodir)/libc.info): Use make-target-directory.
897         (installdirs): Remove.
898         (subdir_%): Remove.
899         (glibc-targets): Remove.
900         (lib): Remove.
901         (stubs): Remove.
902         ($(objpfx)stubs ../po/manual.pot): Remove.
903         ($(objpfx)stamp%): Remove.
904         (make-target-directory): Remove.
905         (subdir_install): Remove.
906         (routines): Remove.
907         (aux): Remove.
908         (sources): Remove.
909         (objects): Remove.
910         (headers): Remove.
911
912         [BZ #13750]
913         * manual/.gitignore: Remove, it's not needed anymore.
914         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
915         all files in it.
916         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
917         directory.
918         (texis): Renamed to $(objpfx)texis.
919         (texis-path): New, contains path to generated files.
920         (chapters.%): Use texis-path for complete path, add extra argument
921         libc-texinfo.sh.
922         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
923         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
924         (summary,texi, stamp-summary): Use complete path of
925         files. Generate files in build dir.
926         (dir-add.texi): Build in build dir.
927         (libm-err.texi,stamp-libm-err): Likewise.
928         (version.texi, stamp-version): Likewise.
929         (.%c.texi): Likewise.
930         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
931         (mostlyclean): Remove target.
932         (realclean): Remove target.
933         (generated): Add new variable with contents from mostlyclean and
934         realclean, remove entries duplicated in common-mostlyclean, add
935         stamp-libm-err and stamp-version.
936         (generated-dirs): Add libc directory.
937         ($(inst_infodir)/libc.info): Install files from build dir.
938
939         * manual/install.texi (Configuring and compiling): Adjust since
940         the info files are not part of the tar ball anymore.
941
942 2012-05-14  Andreas Jaeger  <aj@suse.de>
943
944         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
945         variable.
946
947 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
948
949         [BZ #13717]
950         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
951         to 2.2.0 where earlier.
952         * sysdeps/unix/sysv/linux/configure: Regenerated.
953         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
954         Remove conditional code.
955         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
956         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
957         Remove conditional code.
958         [!__NR_lchown]: Likewise.
959         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
960         [__NR_lchown]: Likewise.
961         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
962         comment referencing __ASSUME_LCHOWN_SYSCALL.
963         * sysdeps/unix/sysv/linux/i386/sigaction.c
964         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
965         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
966         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
967         Remove conditional code.
968         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
969         (__protocol_available): Remove #if 0 code.
970         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
971         conditional code.
972         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
973         * sysdeps/unix/sysv/linux/kernel-features.h
974         (__ASSUME_GETCWD_SYSCALL): Don't define.
975         (__ASSUME_REALTIME_SIGNALS): Likewise.
976         (__ASSUME_PREAD_SYSCALL): Likewise.
977         (__ASSUME_PWRITE_SYSCALL): Likewise.
978         (__ASSUME_POLL_SYSCALL): Likewise.
979         (__ASSUME_LCHOWN_SYSCALL): Likewise.
980         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
981         non-SPARC.
982         (__ASSUME_SIOCGIFNAME): Don't define.
983         (__ASSUME_MSG_NOSIGNAL): Likewise.
984         (__ASSUME_SENDFILE): Define unconditionally.
985         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
986         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
987         conditional code.
988         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
989         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
990         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
991         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
992         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
993         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
994         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
996         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
997         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
999         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1000         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
1002         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1003         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
1005         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1006         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
1008         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1009         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
1011         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1012         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
1014         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1015         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
1017         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1018         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1019         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
1020         Remove conditional code.
1021         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1022         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1023         Remove conditional code.
1024         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1025         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
1026         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
1027         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1028         Remove conditional code.
1029         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1030         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
1031         Remove conditional code.
1032         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1033         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
1034         Remove conditional code.
1035         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1036         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1037         Remove conditional code.
1038         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1039         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1040         Remove conditional code.
1041         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1042         * sysdeps/unix/sysv/linux/sh/pwrite64.c
1043         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1044         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1045         * sysdeps/unix/sysv/linux/sigaction.c
1046         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1047         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1048         * sysdeps/unix/sysv/linux/sigpending.c
1049         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1050         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1051         * sysdeps/unix/sysv/linux/sigprocmask.c
1052         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1053         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1054         * sysdeps/unix/sysv/linux/sigsuspend.c
1055         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1056         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1057         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1058         (__libc_missing_rt_sigs): Remove.
1059         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
1060         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
1061         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
1062         Remove conditional code.
1063         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
1064         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
1065         return 1.
1066         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
1067         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
1068         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
1069         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
1070
1071 2012-05-14  Andreas Jaeger  <aj@suse.de>
1072
1073         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
1074         it's not used in glibc.
1075         (__coshm1): Likewise.
1076         (__acosh1p): Likewise.
1077         (__sgn): Likewise.
1078
1079         * manual/string.texi (Copying and Concatenation): Add missing
1080         variable in concat example.
1081         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
1082
1083 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1084
1085         [BZ #14103]
1086         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
1087         __builtin_clzl with __builtin_clzll.
1088
1089 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1090
1091         [BZ #14104]
1092         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
1093         libc_freeres_ptr.
1094
1095 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1096
1097         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
1098         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
1099         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
1100         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
1101
1102 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
1103
1104         * NEWS: Update ia64 info.
1105
1106 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
1107
1108         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
1109         used as bcopy.
1110
1111 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1112
1113         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
1114         * sysdeps/unix/syscalls.list (dup3): Likewise.
1115         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
1116         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
1117
1118 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1119
1120         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
1121         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
1122
1123 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1124
1125         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
1126         thread pointer.
1127         (TLS_IE): Use mov/add instead of movq/addq to load thread
1128         pointer.
1129         (TLS_GD_PREFIX): New.
1130         (TLS_GD): Use it.
1131
1132 2012-05-11  David S. Miller  <davem@davemloft.net>
1133
1134         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
1135         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
1136         (_FPU_SETCW): Likewise.
1137
1138 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1139
1140         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
1141         is 32-byte aligned.
1142
1143 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
1144
1145         [BZ #11837]
1146         * iconvdata/gb18030.c: Update tables.
1147         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
1148         characters specially.
1149         (BODY for TO_LOOP): Add encoding of missing ranges.
1150
1151 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
1152
1153         [BZ #13673]
1154         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
1155         * sysdeps/mach/hurd/dup3.c: Likewise.
1156         * sysdeps/mach/hurd/readlinkat.c: Likewise.
1157         * sysdeps/powerpc/memmove.c:: Likewise.
1158
1159 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1160
1161         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
1162         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
1163
1164 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1165
1166         * elf/elf.h (R_X86_64_RELATIVE64): New.
1167         (R_X86_64_NUM): Updated.
1168         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1169         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
1170         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
1171         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
1172         tst-quad1pie tst-quad2pie
1173         (modules-names): Add tst-quadmod1 tst-quadmod2.
1174         ($(objpfx)tst-quad1): New dependency.
1175         ($(objpfx)tst-quad2): Likewise.
1176         ($(objpfx)tst-quad1pie): Likewise.
1177         ($(objpfx)tst-quad2pie): Likewise.
1178         * sysdeps/x86_64/tst-quad1.c: New file.
1179         * sysdeps/x86_64/tst-quad1pie.c: New file.
1180         * sysdeps/x86_64/tst-quad2.c: Likewise.
1181         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
1182         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
1183         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
1184         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
1185         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
1186
1187 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1188
1189         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
1190         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
1191         * streams/stropts.h (t_scalar_t): Define type.
1192
1193         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
1194         (_PATH_PRESERVE): Set to "/var/lib".
1195         (_PATH_RWHODIR): Set to "/var/spool/rwho".
1196
1197         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
1198         instead of int.
1199
1200         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
1201         if __dir_mkfile succeeded.
1202
1203         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
1204         checking for _hurd_dtablesize.  Unlock it right after having
1205         finished _hurd_dtable allocation.
1206
1207 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1208
1209         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
1210         * sysdeps/mach/hurd/configure: Regenerated.
1211         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
1212         special-casing to...
1213         * sysdeps/gnu/configure.in: ... this new file.
1214         * sysdeps/unix/sysv/linux/configure: Regenerated.
1215         * sysdeps/gnu/configure: New generated file.
1216
1217         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
1218         for Linux: use nsec instead of usec, as well as:
1219         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
1220         members of type struct timespec.
1221         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
1222         New macros.
1223         (struct stat64): Likewise.
1224         (_STATBUF_ST_NSEC): New macro.
1225         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
1226
1227         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1228         __strtoul_internal rather than strtoul.
1229
1230 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1231
1232         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
1233         and reject them.
1234
1235 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1236
1237         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
1238         which preserves existing values.
1239         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
1240
1241 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1242
1243         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
1244         TIMEOUT values.  Return EINVAL for NFDS values either negative or
1245         greater than FD_SETSIZE.
1246
1247 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1248
1249         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
1250         allocated, call __vm_protect to finish enabling the existing space, and
1251         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
1252         allocate the remainder.
1253
1254 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1255
1256         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
1257         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
1258
1259 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1260
1261         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
1262         sysdeps/mach/hurd/readlink.c.
1263
1264         * posix/tst-sysconf.c (posix_options): Only use
1265         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
1266         _POSIX_SYNCHRONIZED_IO when they are defined
1267         * sysdeps/mach/hurd/bits/posix_opt.h:
1268         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
1269         (_XOPEN_REALTIME): Undefine macro.
1270         (_XOPEN_REALTIME_THREADS): Undefine macro.
1271         (_XOPEN_SHM): Undefine macro.
1272         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
1273         macro to -1.
1274         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
1275         macro to -1.
1276         (_POSIX_ASYNC_IO): Undefine macro.
1277         (_POSIX_PRIORITIZED_IO): Undefine macro.
1278         (_POSIX_SPIN_LOCKS): Define macro to -1.
1279
1280         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
1281         SA_NODEFER, SA_RESETHAND.
1282         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
1283         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
1284         F_DUPFD_CLOEXEC.
1285
1286 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1287
1288         * elf/Makefile (pldd-modules): Define unconditionally.
1289
1290 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1291
1292         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
1293
1294 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1295
1296         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1297         Return ENOENT when name is empty.
1298         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
1299
1300 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1301
1302         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
1303
1304         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
1305
1306 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1307
1308         Fix mlock in all cases except non-readable pages.
1309         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
1310         instead of VM_PROT_ALL as parameter to __vm_wire function.
1311
1312         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
1313         (__mkdir): When path is `/', just fail with EEXIST.
1314         * sysdeps/mach/hurd/mkdirat.c: Likewise.
1315
1316 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1317
1318         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
1319         <sys/uio.h> (for writev).
1320         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
1321         and <sys/param.h> (for MIN).
1322
1323 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1324
1325         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
1326         REQUESTED_TIME.  Properly set the remaining time and return EINTR
1327         if interrupted.
1328
1329 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1330
1331         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
1332         Depend on against $(link-rpcuserlibs).
1333
1334 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1335
1336         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
1337         (__libc_stack_end): Do not use attribute_relro.
1338         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
1339         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
1340         to libthread-provided value.
1341         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
1342         attribute_relro.
1343
1344 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1345
1346         [BZ #3748]
1347         * bits/libc-lock.h (__libc_once_get): New macro.
1348         * sysdeps/mach/bits/libc-lock.h: Likewise.
1349         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1350         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
1351         instead of using implementation details.
1352
1353         * libio/fileops.c: Unconditionally include <kernel-features.h>.
1354         * libio/freopen.c: Likewise.
1355         * libio/freopen64.c: Likewise.
1356         * misc/syslog.c: Likewise.
1357         * nscd/connections.c: Likewise.
1358         * nscd/netgroupcache.c: Likewise.
1359         * sysdeps/posix/getcwd.c: Likewise.
1360
1361 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1362
1363         * math/w_ilogbf.c: Add #include <limits.h>.
1364
1365 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1366
1367         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
1368         path instead of returning without unlocking.
1369
1370         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
1371         immediate-write ioctls.
1372         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
1373
1374 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1375
1376         * sysdeps/mach/hurd/i386/init-first.c (init): Use
1377         __builtin_frame_address instead of making assumptions about the
1378         location of the return address relative to DATA.  Force early load of
1379         the return address.
1380         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
1381         __builtin_frame_address.
1382
1383         dup3 for GNU Hurd.
1384         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
1385         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
1386         implement dup3 and do some further code clean-ups.
1387         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
1388         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
1389
1390 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1391
1392         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
1393
1394         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
1395         HURD_CRITICAL_END around holding _hurd_dtable_lock.
1396         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
1397         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
1398         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
1399         d->port.lock.
1400
1401         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
1402         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
1403         when handler == SIG_ERR, not when handler != SIG_ERR.
1404
1405 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1406
1407         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
1408         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
1409         definitions.
1410
1411         accept4 for GNU Hurd.
1412         * include/sys/socket.h (__libc_accept4): New prototype.
1413         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
1414         to implement __libc_accept4.
1415         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
1416         __libc_accept4.
1417         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
1418
1419         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
1420         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
1421         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
1422         signal-defines.sym.
1423
1424 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1425
1426         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
1427
1428 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1429
1430         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
1431         assertion on O_CLOEXEC flag.
1432         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
1433         * hurd/intern-fd.c: Likewise.
1434         * hurd/port2fd.c: Likewise.
1435
1436 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1437
1438         [BZ #3906]
1439         * bits/in.h (IPV6_PKTINFO): Define new macro.
1440         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
1441
1442 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1443
1444         [BZ #13954]
1445         [BZ #13955]
1446         [BZ #13956]
1447         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
1448         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1449         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
1450         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1451         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1452         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1453         * math/libm-test.inc (logb_test) : Additional logb tests.
1454
1455 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
1456             Andreas Jaeger  <aj@suse.de>
1457
1458         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
1459         * configure: Regenerated.
1460         * config.h.in (LINK_OBSOLETE_RPC): New macro.
1461         * config.make.in (link-obsolete-rpc): New substituted variable.
1462         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
1463         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
1464         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1465         (shared-only-routines): Don't set it under [link-obsolete-rpc],
1466         so that libc.a contains the symbols.
1467         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1468         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
1469         * sunrpc/auth_none.c: Likewise.
1470         * sunrpc/auth_unix.c: Likewise.
1471         * sunrpc/authdes_prot.c: Likewise.
1472         * sunrpc/authuxprot.c: Likewise.
1473         * sunrpc/clnt_gen.c: Likewise.
1474         * sunrpc/clnt_perr.c: Likewise.
1475         * sunrpc/clnt_raw.c: Likewise.
1476         * sunrpc/clnt_simp.c: Likewise.
1477         * sunrpc/clnt_tcp.c: Likewise.
1478         * sunrpc/clnt_udp.c: Likewise.
1479         * sunrpc/clnt_unix.c: Likewise.
1480         * sunrpc/des_crypt.c: Likewise.
1481         * sunrpc/des_soft.c: Likewise.
1482         * sunrpc/get_myaddr.c: Likewise.
1483         * sunrpc/key_call.c: Likewise.
1484         * sunrpc/key_prot.c: Likewise.
1485         * sunrpc/netname.c: Likewise.
1486         * sunrpc/pm_getmaps.c: Likewise.
1487         * sunrpc/pm_getport.c: Likewise.
1488         * sunrpc/pmap_clnt.c: Likewise.
1489         * sunrpc/pmap_prot.c: Likewise.
1490         * sunrpc/pmap_prot2.c: Likewise.
1491         * sunrpc/pmap_rmt.c: Likewise.
1492         * sunrpc/publickey.c: Likewise.
1493         * sunrpc/rpc_cmsg.c: Likewise.
1494         * sunrpc/rpc_common.c: Likewise.
1495         * sunrpc/rpc_dtable.c: Likewise.
1496         * sunrpc/rpc_prot.c: Likewise.
1497         * sunrpc/rpc_thread.c: Likewise.
1498         * sunrpc/rtime.c: Likewise.
1499         * sunrpc/svc.c: Likewise.
1500         * sunrpc/svc_auth.c: Likewise.
1501         * sunrpc/svc_raw.c: Likewise.
1502         * sunrpc/svc_run.c: Likewise.
1503         * sunrpc/svc_tcp.c: Likewise.
1504         * sunrpc/svc_udp.c: Likewise.
1505         * sunrpc/svc_unix.c: Likewise.
1506         * sunrpc/svcauth_des.c: Likewise.
1507         * sunrpc/xcrypt.c: Likewise.
1508         * sunrpc/xdr.c: Likewise.
1509         * sunrpc/xdr_array.c: Likewise.
1510         * sunrpc/xdr_float.c: Likewise.
1511         * sunrpc/xdr_intXX_t.c: Likewise.
1512         * sunrpc/xdr_mem.c: Likewise.
1513         * sunrpc/xdr_rec.c: Likewise.
1514         * sunrpc/xdr_ref.c: Likewise.
1515         * sunrpc/xdr_sizeof.c: Likewise.
1516         * sunrpc/xdr_stdio.c: Likewise.
1517
1518 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1519
1520         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
1521         change.  Update copyright years.
1522
1523 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1524
1525         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
1526
1527 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
1528             Joseph Myers  <joseph@codesourcery.com>
1529             Paul Pluzhnikov  <ppluzhnikov@google.com>
1530
1531         [BZ #14012]
1532         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
1533         requiring rpcgen.
1534         [cross-compiling] (extra-libs): Likewise.
1535         [cross-compiling] (extra-libs-others): Likewise.
1536         [cross-compiling] (librpcsvc-routines): Likewise.
1537         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
1538         [cross-compiling] (omit-deps): Likewise.
1539         (sunrpc-CPPFLAGS): New variable.
1540         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
1541         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
1542         (cross-rpcgen-objs): New variable.
1543         (extra-objs): Append $(cross-rpcgen-objs).
1544         ($(cross-rpcgen-objs)): New rule.
1545         ($(objpfx)cross-rpcgen): Likewise.
1546         (rpcgen-cmd): Define to use $(built-program-file).  Expand
1547         comment.
1548         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
1549         ($(objpfx)x%.stmp): Likewise.
1550         * sunrpc/proto.h [IS_IN_build] (_): Define.
1551         [IS_IN_build] (_libc_intl_domainname): Likewise.
1552
1553 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1554
1555         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
1556         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
1557         and R_X86_64_TPOFF64.
1558
1559 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1560
1561         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
1562         sysdeps/unix/sysv/syscalls.list.
1563         (stime): Likewise.
1564         (utime): Likewise.
1565         * sysdeps/unix/sysv/syscalls.list: Remove file.
1566
1567 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1568
1569         [BZ #3440]
1570         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
1571         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
1572         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
1573         (__LC_IDENTIFICATION): Make these macros useful in #if
1574         expressions, as required by C99.
1575
1576 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
1577
1578         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
1579         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
1580         after this.
1581
1582 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1583
1584         * stdlib/longlong.h: Updated from GCC.
1585
1586 2012-05-09  Andreas Jaeger  <aj@suse.de>
1587
1588         * nscd/nscd.c (run_modes): Make named enum, reorder so that
1589         default is first entry.
1590         (run_mode): Set type.
1591         (main): Remove informal message about syslog.
1592         (options): Fix typo.
1593
1594         [BZ #14053]
1595         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
1596         to asm.
1597         (lrint): Likewise.
1598         (llrintf): Likewise.
1599         (llrint): Likewise.
1600         (rint): Likewise.
1601         (rintf): Likewise.
1602         (nearbyint): Likewise.
1603         (nearbyintf): Likewise.
1604
1605 2012-05-09  Andreas Jaeger  <aj@suse.de>
1606             Pedro Alves  <palves@redhat.com>
1607
1608         * nscd/nscd.c (run_mode): Use enum.
1609         (main): Cleanup coding style issue.
1610
1611 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
1612             Andreas Jaeger  <aj@suse.de>
1613
1614         * nscd/nscd.c (go_background): Replaced with...
1615         (run_mode): ... this.
1616         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
1617         (options): Add -F --foreground.
1618         (main): Implement it.
1619         (parse_opt): Parse it.
1620
1621 2012-05-09  Andreas Jaeger  <aj@suse.de>
1622
1623         [BZ #14083]
1624         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
1625         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
1626         -Wconversion warning.
1627         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
1628         Likewise.
1629
1630 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
1631
1632         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
1633         == 0.
1634         (LC_ALL): Use macro-int-constant.
1635         (LC_COLLATE): Likewise.
1636         (LC_CTYPE): Likewise.
1637         (LC_MESSAGES): Likewise.
1638         (LC_MONETARY): Likewise.
1639         (LC_NUMERIC): Likewise.
1640         (LC_TIME): Likewise.
1641         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
1642         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1643         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1644         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
1645         Specify type.
1646         [C99-based standards] (float_t): Expect type.
1647         [C99-based standards] (double_t): Expect type.
1648         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
1649         type.
1650         [C99-based standards] (HUGE_VALL): Likewise.
1651         [C99-based standards] (INFINITY): Likewise.
1652         [C99-based standards] (NAN): Likewise.
1653         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
1654         [C99-based standards] (FP_NAN): Likewise.
1655         [C99-based standards] (FP_NORMAL): Likewise.
1656         [C99-based standards] (FP_SUBNORMAL): Likewise.
1657         [C99-based standards] (FP_ZERO): Likewise.
1658         [C99-based standards] (FP_FAST_FMA): Use
1659         optional-macro-int-constant.  Specify type.  Require == 1.
1660         [C99-based standards] (FP_FAST_FMAF): Likewise.
1661         [C99-based standards] (FP_FAST_FMAL): Likewise.
1662         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
1663         [C99-based standards] (FP_ILOGBNAN): Likewise.
1664         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
1665         Specify type.
1666         [C99-based standards] (MATH_ERREXCEPT): Likewise.
1667         [C99-based standards] (math_errhandling): Specify type.
1668         [ISO99 || ISO11] (signgam): Do not allow.
1669         [non-C99-based standards] (copysignf): Do not allow.
1670         [non-C99-based standards] (exp2f): Likewise.
1671         [non-C99-based standards] (log2f): Likewise.
1672         [non-C99-based standards] (modff): Allow.
1673         [non-C99-based standards] (erff): Do not allow.
1674         [non-C99-based standards] (erfcf): Likewise.
1675         [non-C99-based standards] (gammaf): Likewise.
1676         [non-C99-based standards] (hypotf): Likewise.
1677         [non-C99-based standards] (j0f): Likewise.
1678         [non-C99-based standards] (j1f): Likewise.
1679         [non-C99-based standards] (jnf): Likewise.
1680         [non-C99-based standards] (lgammaf): Likewise.
1681         [non-C99-based standards] (tgammaf): Likewise.
1682         [non-C99-based standards] (y0f): Likewise.
1683         [non-C99-based standards] (y1f): Likewise.
1684         [non-C99-based standards] (ynf): Likewise.
1685         [non-C99-based standards] (isnanf): Likewise.
1686         [non-C99-based standards] (acoshf): Likewise.
1687         [non-C99-based standards] (asinhf): Likewise.
1688         [non-C99-based standards] (atanhf): Likewise.
1689         [non-C99-based standards] (cbrtf): Likewise.
1690         [non-C99-based standards] (expm1f): Likewise.
1691         [non-C99-based standards] (ilogbf): Likewise.
1692         [non-C99-based standards] (log1pf): Likewise.
1693         [non-C99-based standards] (logbf): Likewise.
1694         [non-C99-based standards] (nextafterf): Likewise.
1695         [non-C99-based standards] (remainderf): Likewise.
1696         [non-C99-based standards] (rintf): Likewise.
1697         [non-C99-based standards] (scalbf): Likewise.
1698         [non-C99-based standards] (copysignl): Likewise.
1699         [non-C99-based standards] (exp2l): Likewise.
1700         [non-C99-based standards] (log2l): Likewise.
1701         [non-C99-based standards] (modfl): Allow.
1702         [non-C99-based standards] (erfl): Do not allow.
1703         [non-C99-based standards] (erfcl): Likewise.
1704         [non-C99-based standards] (gammal): Likewise.
1705         [non-C99-based standards] (hypotl): Likewise.
1706         [non-C99-based standards] (j0l): Likewise.
1707         [non-C99-based standards] (j1l): Likewise.
1708         [non-C99-based standards] (jnl): Likewise.
1709         [non-C99-based standards] (lgammal): Likewise.
1710         [non-C99-based standards] (tgammal): Likewise.
1711         [non-C99-based standards] (y0l): Likewise.
1712         [non-C99-based standards] (y1l): Likewise.
1713         [non-C99-based standards] (ynl): Likewise.
1714         [non-C99-based standards] (isnanl): Likewise.
1715         [non-C99-based standards] (acoshl): Likewise.
1716         [non-C99-based standards] (asinhl): Likewise.
1717         [non-C99-based standards] (atanhl): Likewise.
1718         [non-C99-based standards] (cbrtl): Likewise.
1719         [non-C99-based standards] (expm1l): Likewise.
1720         [non-C99-based standards] (ilogbl): Likewise.
1721         [non-C99-based standards] (log1pl): Likewise.
1722         [non-C99-based standards] (logbl): Likewise.
1723         [non-C99-based standards] (nextafterl): Likewise.
1724         [non-C99-based standards] (remainderl): Likewise.
1725         [non-C99-based standards] (rintl): Likewise.
1726         [non-C99-based standards] (scalbl): Likewise.
1727         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1728         [non-C99-based standards] (FP_*): Do not allow.
1729         [C99-based standards] (FP_*): Change to
1730         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1731         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1732         allow.
1733         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
1734         (SIG_ERR): Likewise.
1735         [X/Open-based standards] (SIG_HOLD): Likewise.
1736         (SIG_IGN): Likewise.
1737         (SIGABRT): Use macro-int-constant.  Specify type.  Require
1738         positive value.
1739         (SIGFPE): Likewise.
1740         (SIGILL): Likewise.
1741         (SIGINT): Likewise.
1742         (SIGSEGV): Likewise.
1743         (SIGTER): Likewise.
1744         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
1745         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
1746         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
1747         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
1748         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
1749         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
1750         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
1751         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
1752         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
1753         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
1754         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
1755         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
1756         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
1757         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
1758         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
1759         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
1760         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
1761         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
1762         [X/Open-based standards] (SIGTRAP): Likewise.
1763         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
1764         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
1765         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
1766         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
1767         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1768         allow.
1769
1770 2012-05-08  Ian Wienand  <ianw@vmware.com>
1771
1772         [BZ #14080]
1773         * time/tzset.c (__tzset_parse_tz): Update default rules for
1774         daylight time changes in the Energy Policy Act of 2005.
1775
1776 2012-05-09  Andreas Jaeger  <aj@suse.de>
1777
1778         [BZ #13983]
1779         * elf/ldconfig.c (parse_conf): Change string to make clear that
1780         ldconfig only issued a warning if ld.so.conf does not exist.
1781
1782 2012-05-08  David S. Miller  <davem@davemloft.net>
1783
1784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
1785         movxtod instead of popping the value on the stack.
1786
1787         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1788
1789 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
1790
1791         * config.h.in: Add HAVE_ARM_PCS_VFP.
1792
1793 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
1794
1795         [BZ #13979]
1796         * include/features.h: Warn if user requests __FORTIFY_SOURCE
1797         checking but the checks are disabled for any reason.
1798
1799 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1800
1801         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
1802         and ELF64_R_TYPE with ELFW(R_TYPE).
1803
1804 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
1805
1806         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
1807         (ulimit): Likewise.
1808
1809         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
1810         (settimeofday): Likewise.
1811
1812 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
1813
1814         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
1815         a struct th_u2 inside the union, and move tu_block/tu_code into
1816         a new th_u3 union of tu_block/tu_code inside of that.  Move
1817         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
1818         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
1819         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
1820         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
1821         (th_stuff): Change to th_u1.tu_stuff.
1822         (th_data): Define.
1823         (th_msg): Change to th_u1.th_u2.tu_data.
1824
1825 2012-05-07  David S. Miller  <davem@davemloft.net>
1826
1827         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1828
1829         [BZ #14074]
1830         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
1831         (SETUP_PIC_REG): Use it.
1832         (SETUP_PIC_REG_LEAF): Use it.
1833
1834 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
1835
1836         [BZ #13885]
1837         [BZ #13923]
1838         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1839         USE_AS_EXPM1L.
1840         (EXPL_FINITE): Likewise.
1841         (FLDLOG): Likewise.
1842         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1843         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1844         e_expl.S.
1845         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1846         USE_AS_EXPM1L.
1847         (EXPL_FINITE): Likewise.
1848         (FLDLOG): Likewise.
1849         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1850         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1851         e_expl.S.
1852         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
1853         test of -max_value argument for long double.
1854         * sysdeps/i386/fpu/libm-test-ulps: Update.
1855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1856
1857 2012-05-06  David S. Miller  <davem@davemloft.net>
1858
1859         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
1860         quad soft-float symbols whose references which are compiler
1861         generated.
1862         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
1863
1864 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
1865
1866         [BZ #13884]
1867         [BZ #13914]
1868         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1869         USE_AS_EXP10L.
1870         (EXPL_FINITE): Likewise.
1871         (FLDLOG): Likewise.
1872         (c0): Likewise.
1873         (c1): Likewise.
1874         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1875         Adjust comments for base varying.
1876         (__expl_finite): Change alias to EXPL_FINITE.
1877         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
1878         e_expl.S.
1879         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
1880         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1881         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1882         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
1883         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1884         USE_AS_EXP10L.
1885         (EXPL_FINITE): Likewise.
1886         (FLDLOG): Likewise.
1887         (c0): Likewise.
1888         (c1): Likewise.
1889         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1890         Adjust comments for base varying.
1891         (__expl_finite): Change alias to EXPL_FINITE.
1892         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
1893         tests for bugs.
1894         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1895
1896         [BZ #14064]
1897         * math/libm-test.inc (check_float_internal): Correct ulp
1898         calculation for subnormal expected results.
1899
1900 2012-05-06  Andreas Jaeger  <aj@suse.de>
1901
1902         * Makeconfig (+math-flags): New, set to -frounding-math.
1903         (+cflags): Add +math-flags so that all of glibc gets compiled with
1904         it.
1905
1906         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
1907
1908 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
1909
1910         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
1911         Disable one test.
1912
1913         [BZ #13787]
1914         [BZ #13922]
1915         [BZ #14036]
1916         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
1917         (__ieee754_expl): Allow for and saturate large arguments.
1918         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
1919         (u_threshold): Likewise.
1920         (__exp): Call __ieee754_exp before checking for overflow and
1921         underflow.
1922         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
1923         (u_threshold): Likewise.
1924         (__expf): Call __ieee754_expf before checking for overflow and
1925         underflow.
1926         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
1927         (u_threshold): Likewise.
1928         (__expl): Call __ieee754_expl before checking for overflow and
1929         underflow.
1930         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
1931         (__ieee754_expl): Allow for and saturate large arguments.
1932         * math/libm-test.inc (exp_test): Add another test.  Do not allow
1933         missing overflow exception on overflow.
1934         (expm1_test): Do not allow missing overflow exception on overflow.
1935
1936         * sysdeps/i386/fpu/e_expl.c: Move to ...
1937         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
1938         rather than using inline asm.
1939         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
1940         * sysdeps/x86_64/fpu/e_expl.S: Copy from
1941         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
1942
1943         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
1944         (nice): Likewise.
1945         (poll): Likewise.
1946         (signal): Likewise.
1947         (time): Likewise.
1948         (times): Likewise.
1949
1950 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1951
1952         * sysdeps/unix/syscalls.list (adjtime): Add entry from
1953         sysdeps/unix/common/syscalls.list.
1954         (fchmod): Likewise.
1955         (fchown): Likewise.
1956         (ftruncate): Likewise.
1957         (getrusage): Likewise.
1958         (gettimeofday): Likewise.
1959         (setpgid): Likewise.
1960         (setregid): Likewise.
1961         (setreuid): Likewise.
1962         (sigaction): Likewise.
1963         (truncate): Likewise.
1964         (vhangup): Likewise.
1965         * sysdeps/unix/common/syscalls.list: Remove file.
1966         * sysdeps/unix/bsd/Implies: Don't include unix/common.
1967         * sysdeps/unix/sysv/linux/Implies: Likewise.
1968
1969 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1970
1971         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
1972         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
1973         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
1974         Moved to ...
1975         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
1976         Here.
1977         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
1978         to ...
1979         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
1980         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
1981         to ...
1982         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
1983         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
1984         to ...
1985         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
1986         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
1987         to ...
1988         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
1989         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
1990         to ...
1991         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
1992         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
1993         to ...
1994         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
1995         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
1996         to ...
1997         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
1998         Here.
1999         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
2000         to ...
2001         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
2002         Here.
2003         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
2004         to ...
2005         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
2006         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
2007         Moved to ...
2008         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
2009         Here.
2010         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
2011         to ...
2012         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
2013
2014 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2015
2016         * sysdeps/unix/common/bits/dirent.h: Remove file.
2017         * sysdeps/unix/common/bits/fcntl.h: Likewise.
2018
2019         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
2020         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
2021         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
2022         * sysdeps/unix/bsd/isatty.c: Likewise.
2023         * sysdeps/unix/bsd/tcdrain.c: Likewise.
2024         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
2025         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
2026
2027 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2028
2029         [BZ #13563]
2030         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
2031         long double comparison inaccuracies.
2032         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
2033         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2034
2035 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
2036
2037         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
2038         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
2039
2040 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2041
2042         [BZ #14049]
2043         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
2044         nonzero digits before rounding a hex value.
2045         * stdlib/tst-strtod.c (tests): Add another test.
2046
2047 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2048
2049         * sysdeps/s390/fpu/libm-test-ulps: Update.
2050
2051 2012-05-03  Andreas Jaeger  <aj@suse.de>
2052
2053         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
2054         does not get optimized out.
2055         (malloc_opt_barrier): New.
2056
2057 2012-05-03  Andreas Jaeger  <aj@suse.de>
2058             Roland McGrath  <roland@hack.frob.com>
2059
2060         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
2061         intermediate file deletion.
2062         (generated): Add .symlist files.
2063
2064 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
2065
2066         [BZ #13775]
2067         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
2068         Redirect under this condition.
2069         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2070         [__USE_GNU] (__dprintf_chk): Not under this condition.
2071         [__USE_GNU] (__vdprintf_chk): Likewise.
2072         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
2073         under this condition.
2074         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2075         [__USE_XOPEN2K8] (dprintf): Define under this condition.
2076         [__USE_XOPEN2K8] (vdprintf): Likewise.
2077         [__USE_GNU] (__dprintf_chk): Not under this condition.
2078         [__USE_GNU] (__vdprintf_chk): Likewise.
2079         [__USE_GNU] (dprintf): Likewise.
2080         [__USE_GNU] (vdprintf): Likewise.
2081
2082 2012-05-03  Roland McGrath  <roland@hack.frob.com>
2083
2084         * elf/Makefile (common-generated): Set this instead of generated for
2085         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
2086         $(all-built-dso)-derived lists.
2087
2088 2012-05-03  Andreas Jaeger  <aj@suse.de>
2089
2090         * sysdeps/i386/fpu/libm-test-ulps: Update.
2091
2092         * FAQ: Removed.
2093         * FAQ.in: Likewise.
2094         * scripts/gen-FAQ.pl: Likewise.
2095         * manual/install.texi (Installation): Point to online location of
2096         FAQ.
2097         * Makefile (files-for-dist): Remove FAQ.
2098         (FAQ): Remove.
2099
2100 2012-05-02  Allan McRae  <allan@archlinux.org>
2101
2102         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
2103         (LDFLAGS-reldepmod5.so): Likewise.
2104         (LDFLAGS-reldep6mod1.so): Likewise.
2105         (LDFLAGS-reldep6mod4.so): Likewise.
2106         (LDFLAGS-reldep8mod3.so): Likewise.
2107         (LDFLAGS-unload4mod1.so): Likewise.
2108         (LDFLAGS-unload4mod2.so): Likewise.
2109         (LDFLAGS-tst-initorder): Likewise.
2110         (LDFLAGS-tst-initordera2.so): Likewise.
2111         (LDFLAGS-tst-initordera3.so): Likewise.
2112         (LDFLAGS-tst-initordera4.so): Likewise.
2113         (LDFLAGS-tst-initorderb2.so): Likewise.
2114         (LDFLAGS-noload): Likewise.
2115         (LDFLAGS-next): Likewise.
2116         (LDFLAGS-order2mod1.so): Likewise.
2117         (LDFLAGS-order2mod2.so): Likewise.
2118         (LDFLAGS-tst-initorder2): Likewise.
2119         (LDFLAGS-tst-initorder2a.so): Likewise.
2120         (LDFLAGS-tst-initorder2b.so): Likewise.
2121         (LDFLAGS-tst-initorder2c.so): Likewise.
2122         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
2123
2124 2012-05-02  David S. Miller  <davem@davemloft.net>
2125
2126         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2127
2128 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
2129
2130         [BZ #14055]
2131         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
2132
2133 2012-05-02  Andreas Jaeger  <aj@suse.de>
2134
2135         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
2136         since we manipulate rounding mode.
2137         (CPPFLAGS-test-idouble.c): Likewise.
2138         (CPPFLAGS-test-ifloat.c): Likewise.
2139         (CFLAGS-test-ldouble.c): Likewise.
2140         (CFLAGS-test-double.c): Likewise.
2141         (CFLAGS-test-float.c): Likewise.
2142         (CFLAGS-test-misc.c): Likewise.
2143         (CFLAGS-test-test-fenv.c): Likewise.
2144
2145 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2146
2147         [BZ #2550]
2148         [BZ #2570]
2149         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
2150         comparisons to determine direction to adjust input.
2151
2152 2012-05-01  Roland McGrath  <roland@hack.frob.com>
2153
2154         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
2155         output to the target.
2156
2157         * scripts/localplt.awk: New file.
2158         * elf/Makefile ($(objpfx)check-localplt): Target removed.
2159         (check-localplt-CFLAGS): Variable removed.
2160         ($(all-built-dso:=.jmprel)): New static pattern rule.
2161         (generated): Add those targets.
2162         (localplt-built-dso): New variable.
2163         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
2164
2165         * elf/check-localplt.c: File removed.
2166
2167         * scripts/check-execstack.awk: New file.
2168         * elf/Makefile ($(objpfx)check-execstack): Target removed.
2169         (check-execstack-CFLAGS): Variable removed.
2170         ($(objpfx)check-execstack.h): Target removed.
2171         ($(objpfx)execstack-default): New target.
2172         (generated): Add that instead of check-execstack.h.
2173         ($(all-built-dso:=.phdr)): New static pattern rule.
2174         (generated): Add those targets.
2175         * elf/check-execstack.c: File removed.
2176
2177         * scripts/check-textrel.awk: New file.
2178         * elf/Makefile ($(objpfx)check-textrel): Target removed.
2179         (check-textrel-CFLAGS): Variable removed.
2180         (all-built-dso): Use := to define.o
2181         ($(all-built-dso:=.dyn)): New static pattern rule.
2182         (generated): Add those targets.
2183         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
2184         * config.make.in (READELF): New substituted variable.
2185         * elf/check-textrel.c: File removed.
2186
2187 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2188
2189         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2190         allow.
2191         * conform/data/ctype.h-data [C99-based standards] (isblank):
2192         Expect function.
2193         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
2194         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
2195         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2196         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
2197         Specify type.  Require positive value.
2198         (EILSEQ): Likewise.
2199         (ERANGE): Likewise.
2200         [ISO || POSIX] (EILSEQ): Do not expect.
2201         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
2202         Specify type.  Require positive value.
2203         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
2204         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
2205         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
2206         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
2207         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
2208         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
2209         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
2210         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
2211         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
2212         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
2213         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
2214         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
2215         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
2216         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
2217         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
2218         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
2219         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
2220         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
2221         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
2222         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
2223         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
2224         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
2225         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
2226         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
2227         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
2228         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
2229         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
2230         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
2231         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
2232         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
2233         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
2234         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
2235         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
2236         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
2237         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
2238         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
2239         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
2240         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
2241         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
2242         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
2243         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
2244         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
2245         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
2246         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
2247         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
2248         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
2249         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
2250         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
2251         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
2252         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
2253         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
2254         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
2255         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
2256         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
2257         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
2258         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
2259         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
2260         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
2261         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
2262         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
2263         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
2264         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
2265         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
2266         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
2267         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
2268         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
2269         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
2270         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
2271         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
2272         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
2273         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
2274         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
2275         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
2276         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
2277         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
2278         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
2279         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
2280         Require >= 2.
2281         (FLT_ROUNDS): Expect as macro, not constant.
2282         (FLT_MANT_DIG): Use macro-int-constant.
2283         (DBL_MANT_DIG): Likewise.
2284         (LDBL_MANT_DIG): Likewise.
2285         (FLT_DIG): Likewise.
2286         (DBL_DIG): Likewise.
2287         (LDBL_DIG): Likewise.
2288         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
2289         (DBL_MIN_EXP): Likewise.
2290         (LDBL_MIN_EXP): Likewise.
2291         (FLT_MAX_EXP): Use macro-int-constant.
2292         (DBL_MAX_EXP): Likewise.
2293         (LDBL_MAX_EXP): Likewise.
2294         (FLT_MAX_10_EXP): Likewise.
2295         (DBL_MAX_10_EXP): Likewise.
2296         (LDBL_MAX_10_EXP): Likewise.
2297         (FLT_MAX): Use macro-constant.
2298         (DBL_MAX): Likewise.
2299         (LDBL_MAX): Likewise.
2300         (FLT_EPSILON): Use macro-constant.  Give upper bound.
2301         (DBL_EPSILON): Likewise.
2302         (LDBL_EPSILON): Likewise.
2303         (FLT_MIN): Likewise.
2304         (DBL_MIN): Likewise.
2305         (LDBL_MIN): Likewise.
2306         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
2307         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
2308         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
2309         [ISO11] (FLT_HAS_SUBNORM): Likewise.
2310         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
2311         [ISO11] (DBL_DECIMAL_DIG): Likewise.
2312         [ISO11] (FLT_DECIMAL_DIG): Likewise.
2313         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
2314         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
2315         [ISO11] (FLT_TRUE_MIN): Likewise.
2316         [ISO11] (LDBL_TRUE_MIN): Likewise.
2317         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2318         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
2319         (SCHAR_MIN): Use macro-int-constant.  Specify type.
2320         (SCHAR_MAX): Likewise.
2321         (UCHAR_MAX): Likewise.
2322         (CHAR_MIN): Likewise.
2323         (CHAR_MAX): Likewise.
2324         (MB_LEN_MAX): Use macro-int-constant.
2325         (SHRT_MIN): Use macro-int-constant.  Specify type.
2326         (SHRT_MAX): Likewise.
2327         (USHRT_MAX): Likewise.
2328         (INT_MAX): Likewise.
2329         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
2330         bound negative.
2331         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2332         bound with "U".
2333         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2334         bound with "L".
2335         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
2336         bound negative.  Suffix upper bound with "L".
2337         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2338         bound with "UL".
2339         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
2340         Specify type.
2341         [C99-based standards] (LLONG_MAX): Likewise.
2342         [C99-based standards] (ULLONG_MAX): Likewise.
2343         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
2344         == 0.
2345         [ISO11] (max_align_t): Require type.
2346         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2347
2348         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
2349         from $CFLAGS, without defining away __attribute__ calls.
2350         (checknamespace): Use $CFLAGS_namespace.
2351
2352         * conform/conformtest.pl (@keywords): Only include C99 keywords
2353         for standards based on C99 or C11.
2354
2355         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
2356         Disable tests.
2357         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
2358         UNIX98]: Likewise.
2359
2360         * conform/conformtest.pl: Handle "macro-int-constant" and test for
2361         usability of symbols in #if.
2362
2363         * conform/conformtest.pl: If macro or constant types start
2364         "promoted:", expect the symbol to be of the following type
2365         promoted by the integer promotions.
2366
2367         * conform/conformtest.pl: Parse all "constant" and "macro" lines
2368         in one place.  Also handle "macro-constant".
2369
2370         * conform/conformtest.pl: Only accept expected macro values with
2371         "==".  Parse all "macro" lines in one place.
2372         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
2373
2374         * conform/conformtest.pl: Handle braced types on "constant" lines
2375         instead of handling "typed-constant".
2376         * conform/data/signal.h-data: Use "constant" instead of
2377         "typed-constant".
2378
2379         * conform/conformtest.pl: Handle "optional-" at start of lines in
2380         one place rather than duplicating several cases.  Handle each
2381         format of "macro" line with initial "optional-".
2382
2383         * conform/conformtest.pl: Only accept expected constant or
2384         optional-constant values with "==".  Parse all "constant" lines in
2385         one place.  Parse all "optional-constant" lines in one place.
2386         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
2387         * conform/data/fmtmsg.h-data: Likewise.
2388         * conform/data/netinet/in.h-data: Likewise.
2389         * conform/data/tar.h-data: Likewise.
2390         * conform/data/limits.h-data: Use "==" form on "constant" and
2391         "optional-constant" lines.
2392
2393         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
2394         Use -std=c99 for XOPEN2K.
2395         (@knownproblems): Remove.
2396         (newtoken): Don't check %isknown.
2397
2398         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
2399         Do not expect macro.
2400         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
2401         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
2402         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
2403         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
2404         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
2405         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
2406         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
2407         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
2408         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
2409         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
2410         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
2411         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
2412         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
2413         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
2414         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
2415         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
2416         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
2417         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
2418         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
2419         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
2420         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
2421         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
2422         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
2423         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
2424         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
2425         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
2426         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
2427         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
2428         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
2429         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
2430         [XPG3] (acosh): Likewise.
2431         [XPG3] (asinh): Likewise.
2432         [XPG3] (atanh): Likewise.
2433         [XPG3] (cbrt): Likewise.
2434         [XPG3] (expm1): Likewise.
2435         [XPG3] (ilogb): Likewise.
2436         [XPG3] (log1p): Likewise.
2437         [XPG3] (logb): Likewise.
2438         [XPG3] (nextafter): Likewise.
2439         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
2440         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
2441         [XPG3] (remainder): Likewise.
2442         [XPG3] (rint): Likewise.
2443         [XPG3 || XPG4 || UNIX98] (round): Likewise.
2444         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
2445         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
2446         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
2447         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
2448         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
2449         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
2450         [UNIX98 || XOPEN2K] (scalb): Expect.
2451         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
2452         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
2453         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
2454         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
2455         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
2456         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
2457         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
2458         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
2459         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
2460         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
2461         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
2462         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
2463         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
2464         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
2465         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
2466         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
2467         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
2468         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
2469         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
2470         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
2471         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
2472         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
2473         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
2474         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
2475         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
2476         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
2477         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
2478         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
2479         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
2480         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
2481         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
2482         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
2483         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
2484         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
2485         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
2486         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
2487         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
2488         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
2489         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
2490         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
2491         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
2492         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
2493         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
2494         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
2495         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
2496         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
2497         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
2498         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
2499         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
2500         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
2501         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
2502         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
2503         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
2504         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
2505         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
2506         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
2507         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
2508         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
2509         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
2510         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
2511         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
2512         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
2513         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
2514         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
2515         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
2516         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
2517         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
2518         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
2519         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
2520         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
2521         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
2522         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
2523         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
2524         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
2525         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
2526         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
2527         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
2528         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
2529         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
2530         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
2531         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
2532         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
2533         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
2534         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
2535         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
2536         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
2537         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
2538         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
2539         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
2540         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
2541         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
2542         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
2543         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
2544         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
2545         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
2546         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
2547         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
2548         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
2549         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
2550         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
2551         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
2552         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
2553         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
2554         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
2555         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
2556         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
2557         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
2558         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
2559         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
2560         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
2561         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
2562         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
2563         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
2564         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
2565         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
2566         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
2567         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
2568         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
2569         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
2570         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
2571         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
2572         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
2573         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
2574         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
2575         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
2576         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
2577         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
2578         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
2579         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
2580         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
2581         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
2582         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
2583         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
2584         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
2585         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
2586         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
2587         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
2588
2589         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
2590         _XOPEN_SOURCE_EXTENDED for XPG4.
2591
2592         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
2593
2594         * Makeconfig (localtime): Remove variable.
2595         (inst_localtime-file): Likewise.
2596
2597 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2598
2599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
2600         Update.
2601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2602         Update.
2603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
2604         Update.
2605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2606         Update.
2607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
2608         Update.
2609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
2610         Update.
2611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2612         Update.
2613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
2614         Update.
2615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2616         Update.
2617
2618 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2619
2620         [BZ #2550]
2621         [BZ #2570]
2622         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
2623         comparisons to determine direction to adjust input.
2624         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2625         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
2626         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
2627         Likewise.
2628         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
2629         Likewise.
2630         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2631         Likewise.
2632         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2633         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
2634         Likewise.
2635         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
2636         Likewise.
2637         * math/libm-test.inc (nexttoward_test): Add more tests.
2638
2639 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2640
2641         [BZ #14040]
2642         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
2643         in version GLIBC_2.1, not GLIBC_2.0.
2644         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
2645         Likewise.
2646
2647 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
2648
2649         [BZ #13942]
2650         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
2651         (1 - x) * (1 + x).
2652         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2653         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
2654         * math/libm-test.inc (acos_test): Add more tests.
2655         (asin_test): Likewise.
2656         * sysdeps/i386/fpu/libm-test-ulps: Update.
2657         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2658
2659         [BZ #14034]
2660         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
2661         of square root.
2662         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
2663         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2664         * math/libm-test.inc (acos_test_tonearest): New function.
2665         (acos_test_towardzero): Likewise.
2666         (acos_test_downward): Likewise.
2667         (acos_test_upward): Likewise.
2668         (asin_test_tonearest): Likewise.
2669         (asin_test_towardzero): Likewise.
2670         (asin_test_downward): Likewise.
2671         (asin_test_upward): Likewise.
2672         (main): Call the new functions.
2673         * sysdeps/i386/fpu/libm-test-ulps: Update.
2674         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2675
2676         [BZ #13884]
2677         [BZ #13924]
2678         * math/e_exp10.c: Include <float.h>.
2679         (__ieee754_exp10): Handle underflow here rather than multiplying
2680         large negative argument by M_LN10.
2681         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
2682         of __ieee754_expf.
2683         * math/e_exp10l.c: Include <float.h>.
2684         (__ieee754_exp10l): Handle underflow here rather than multiplying
2685         large negative argument by M_LN10l.
2686         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
2687         spurious overflow exception on underflow.
2688
2689 2012-04-29  Marek Polacek  <polacek@redhat.com>
2690
2691         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
2692         (__fortify_function): New macro.
2693         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
2694         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
2695         __extern_always_inline.
2696         * libio/bits/stdio2.h: Likewise.
2697         * libio/bits/stdio.h: Likewise.
2698         * string/string.h: Likewise.
2699         * string/bits/string3.h: Likewise.
2700         * include/stdio.h: Likewise.
2701         * stdlib/bits/stdlib.h: Likewise.
2702         * stdlib/stdlib.h: Likewise.
2703         * rt/bits/mqueue2.h: Likewise.
2704         * rt/mqueue.h: Likewise.
2705         * posix/bits/unistd.h: Likewise.
2706         * posix/unistd.h: Likewise.
2707         * io/bits/poll2.h: Likewise.
2708         * io/bits/fcntl2.h: Likewise.
2709         * io/fcntl.h: Likewise.
2710         * io/sys/poll.h: Likewise.
2711         * misc/bits/syslog.h: Likewise.
2712         * misc/bits/syslog-ldbl.h: Likewise.
2713         * misc/sys/syslog.h: Likewise.
2714         * socket/bits/socket2.h: Likewise.
2715         * socket/sys/socket.h: Likewise.
2716         * debug/tst-chk1.c: Likewise.
2717         * wcsmbs/bits/wchar2.h: Likewise.
2718         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2719         * wcsmbs/wchar.h: Likewise.
2720
2721 2012-04-29  Andreas Jaeger  <aj@suse.de>
2722
2723         * Makerules (tests): Remove enable-check-abi protection.
2724         (check-abi-warn): Remove.
2725         (check-abi-%): Remove check-abi-warn usage.
2726
2727         * configure.in: Remove check-abi configure option.
2728         * configure: Regenerated.
2729         * config.make.in (enable-check-abi): Remove.
2730
2731 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2732
2733         [BZ #14033]
2734         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
2735         double functions to double *_finite functions.
2736
2737         [BZ #13941]
2738         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
2739         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
2740         LDBL_MIN_EXP.
2741         * stdio-common/Makefile (tests): Add tst-sprintf3.
2742         * stdio-common/tst-sprintf3.c: New file.
2743
2744         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
2745         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
2746
2747 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2748
2749         * conform/conformtest.pl: Remove duplicate typed-constant
2750         handling.
2751
2752 2012-04-28  David S. Miller  <davem@davemloft.net>
2753
2754         * Makerules (%.abilist): Add vpath on sysdep_dirs.
2755         (check-abi-%): Remove AWK script prerequisite and explicit
2756         abilist directory.
2757         (check-abi): Rewrite to just diff the symlist with the abilist.
2758         (config-tls, config-abi-config): Delete, no longer used.
2759         (update-abi-%): Remove AWK script and explicit abilist directory.
2760         (update-abi): Rewrite to simply compare and conditionally copy the
2761         symlist and the sysdep abilist file.  Remove update-abi-config
2762         checks.
2763         * abilist/ld.abilist: Remove.
2764         * abilist/libBrokenLocale.abilist: Remove.
2765         * abilist/libanl.abilist: Remove.
2766         * abilist/libcrypt.abilist: Remove.
2767         * abilist/libdl.abilist: Remove.
2768         * abilist/librt.abilist: Remove.
2769         * abilist/libthread_db.abilist: Remove.
2770         * abilist/libutil.abilist: Remove.
2771         * scripts/extract-abilist.awk: Remove.
2772         * scripts/merge-abilist.awk: Remove.
2773         * sysdeps/generic/libcidn.abilist: New file.
2774         * sysdeps/generic/libnss_compat.abilist: New file.
2775         * sysdeps/generic/libnss_db.abilist: New file.
2776         * sysdeps/generic/libnss_dns.abilist: New file.
2777         * sysdeps/generic/libnss_files.abilist: New file.
2778         * sysdeps/generic/libnss_hesiod.abilist: New file.
2779         * sysdeps/generic/libnss_nis.abilist: New file.
2780         * sysdeps/generic/libnss_nisplus.abilist: New file.
2781         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
2782         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
2783         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
2784         file.
2785         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
2786         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
2787         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
2788         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
2789         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
2790         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
2791         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
2792         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
2793         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
2794         file.
2795         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
2796         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
2797         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
2798         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
2799         file.
2800         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
2801         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
2802         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
2803         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
2804         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
2805         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
2806         file.
2807         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
2808         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
2809         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
2810         file.
2811         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
2812         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
2813         New file.
2814         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
2815         New file.
2816         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
2817         New file.
2818         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
2819         New file.
2820         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
2821         New file.
2822         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
2823         New file.
2824         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
2825         New file.
2826         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
2827         New file.
2828         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
2829         New file.
2830         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
2831         New file.
2832         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
2833         New file.
2834         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
2835         New file.
2836         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
2837         New file.
2838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
2839         file.
2840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
2841         New file.
2842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
2843         New file.
2844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
2845         file.
2846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
2847         New file.
2848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
2849         New file.
2850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
2851         file.
2852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
2853         New file.
2854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2855         New file.
2856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
2857         New file.
2858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
2859         New file.
2860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
2861         New file.
2862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
2863         New file.
2864         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
2865         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
2866         file.
2867         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
2868         New file.
2869         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
2870         file.
2871         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
2872         file.
2873         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
2874         file.
2875         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
2876         file.
2877         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
2878         file.
2879         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2880         New file.
2881         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
2882         file.
2883         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
2884         file.
2885         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
2886         New file.
2887         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
2888         file.
2889         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
2890         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
2891         file.
2892         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
2893         New file.
2894         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
2895         file.
2896         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
2897         file.
2898         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
2899         file.
2900         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
2901         file.
2902         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
2903         file.
2904         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2905         New file.
2906         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
2907         file.
2908         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
2909         file.
2910         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
2911         New file.
2912         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
2913         file.
2914         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2915         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
2916         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
2917         file.
2918         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
2919         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
2920         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
2921         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
2922         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
2923         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
2924         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
2925         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
2926         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
2927         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
2928         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
2929         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
2930         file.
2931         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
2932         New file.
2933         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
2934         file.
2935         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
2936         file.
2937         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
2938         file.
2939         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
2940         file.
2941         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
2942         file.
2943         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2944         New file.
2945         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
2946         New file.
2947         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
2948         file.
2949         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
2950         New file.
2951         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
2952         file.
2953         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
2954         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
2955         file.
2956         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
2957         New file.
2958         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
2959         file.
2960         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
2961         file.
2962         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
2963         file.
2964         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
2965         file.
2966         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
2967         file.
2968         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2969         New file.
2970         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
2971         New file.
2972         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
2973         file.
2974         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
2975         New file.
2976         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
2977         file.
2978
2979 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2980
2981         * conform/conformtest.pl: Fix typo in handling typed-constant from
2982         allow-header.
2983
2984 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
2985
2986         * README: Cut down references to pre-2.6 Linux kernels and
2987         Linuxthreads.  Update lists of configurations in libc and ports
2988         and sort alphabetically.  Say "or newer" with Linux kernel version
2989         requirements.
2990
2991         * config.h.in [IS_IN_build]: Allow compiling without optimization.
2992
2993 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2994
2995         [BZ #887]
2996         * math/libm-test.inc (logb_test_downward): New test to expose
2997         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
2998         rounding mode.
2999
3000 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3001
3002         [BZ #14027]
3003         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
3004         to be done.
3005         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
3006         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
3007
3008 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
3009
3010         * sysdeps/unix/i386/brk.S: Remove file.
3011         * sysdeps/unix/i386/dl-brk.S: Likewise.
3012         * sysdeps/unix/i386/pipe.S: Likewise.
3013         * sysdeps/unix/i386/sigreturn.S: Likewise.
3014         * sysdeps/unix/i386/syscall.S: Likewise.
3015         * sysdeps/unix/i386/vfork.S: Likewise.
3016         * sysdeps/unix/i386/wait.S: Likewise.
3017
3018         * sysdeps/unix/common/tcsendbrk.c: Move to ...
3019         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
3020
3021         * configure.in (arm*-none*): Do not allow without
3022         --enable-hacker-mode.
3023         (netbsd*): Remove case setting base_os.
3024         (386bsd*): Likewise.
3025         (freebsd*): Likewise.
3026         (bsdi*): Likewise.
3027         (osf*): Likewise.
3028         (sunos*): Likewise.
3029         (ultrix*): Likewise.
3030         (newsos*): Likewise.
3031         (dynix*): Likewise.
3032         (*bsd*): Likewise.
3033         (sysv*): Likewise.
3034         (isc*): Likewise.
3035         (esix*): Likewise.
3036         (sco*): Likewise.
3037         (minix*): Likewise.
3038         (irix4*): Likewise.
3039         (irix6*): Likewise.
3040         (solaris[2-9]*): Likewise.
3041         (none): Likewise.
3042         * configure: Regenerated.
3043
3044 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3045
3046         [BZ #11521]
3047         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
3048         overflow or cancellation in calculating denominator.
3049         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
3050         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
3051         down expression to avoid unexpected rounding in newer GCCs.
3052         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
3053
3054 2012-04-26  David S. Miller  <davem@davemloft.net>
3055
3056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
3057         long-double compat symbols.
3058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
3062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3063         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
3064         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
3065         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
3066         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
3067         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
3068         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
3069         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
3070         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3071
3072 2012-04-25  David S. Miller  <davem@davemloft.net>
3073
3074         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
3075         HWCAP_* values only after the memory barriers have been defined.
3076         (atomic_full_barrier): Define.
3077         (atomic_read_barrier): Define.
3078         (atomic_write_barrier): Define.
3079
3080 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3081
3082         * shlib-versions: Add libgcc_s version information.
3083         * sysdeps/generic/libgcc_s.h: Remove.
3084         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
3085         libgcc_s.h.
3086         * sysdeps/gnu/unwind-resume.c: Likewise.
3087         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
3088
3089 2012-04-25  David S. Miller  <davem@davemloft.net>
3090
3091         * sysdeps/unix/sparc/brk.S: Delete.
3092         * sysdeps/unix/sparc/dl-brk.S: Delete.
3093         * sysdeps/unix/sparc/pipe.S: Delete.
3094         * sysdeps/unix/sparc/sysdep.S: Delete.
3095         * sysdeps/unix/sparc/sysdep.h: Delete.
3096         * sysdeps/unix/sparc/vfork.S: Delete.
3097         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
3098         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
3099         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
3100         ret_ERRVAL, r0, r1, MOVE): Define.
3101         (JUMPTARGET): Remove.
3102         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
3103         sysdeps/unix/sparc/sysdep.h
3104         (ENTRY, END): Remove.
3105         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3106
3107 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
3108
3109         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
3110         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
3111         -DIS_IN_build.
3112
3113         * timezone/README: Update upstream location and email address for
3114         tzcode and tzdata.
3115         * timezone/zdump.c: Update from tzcode 2012b.
3116         * timezone/zic.c: Likewise.
3117
3118         * configure.in (libc_cv_as_needed): Remove test.
3119         * configure: Regenerated.
3120         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
3121         conditional definition.
3122         [$(have-as-needed) != yes] (no-as-needed): Likewise.
3123         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
3124         * config.make.in (have-as-needed): Remove variable.
3125
3126 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3127             Paul Pluzhnikov  <ppluzhnikov@google.com>
3128
3129         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
3130         strings correctly.
3131
3132 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3133
3134         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
3135         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
3136         * sysdeps/sh/strlen.S: Likewise.
3137
3138 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3139
3140         * sysdeps/unix/fork.S: Remove file.
3141         * sysdeps/unix/i386/fork.S: Likewise.
3142         * sysdeps/unix/sparc/fork.S: Likewise.
3143
3144         * sysdeps/unix/system.c: Remove file.
3145         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
3146
3147         * sysdeps/unix/getegid.S: Remove file.
3148         * sysdeps/unix/geteuid.S: Likewise.
3149
3150 2012-04-24  Roland McGrath  <roland@hack.frob.com>
3151
3152         * scripts/check-localplt.awk: New file.
3153         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
3154         of diff.
3155         * scripts/data/localplt-generic.data: Add a comment.
3156
3157         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
3158         NODE when __dir_mkfile failed.
3159         * sysdeps/mach/hurd/symlinkat.c: Likewise.
3160         Reported by Ludovic Courtès <ludo@gnu.org>.
3161
3162 2012-04-24  Andreas Jaeger  <aj@suse.de>
3163
3164         * Makerules (common-clean): Also remove gen-as-const-headers
3165         files.
3166
3167 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3168
3169         * Makerules (native-compile): Do not change working directory for
3170         build.  Use $(OUTPUT_OPTION) in command.
3171         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
3172
3173 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3174
3175         [BZ #13886]
3176         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
3177         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
3178         * math/libm-test.inc (floor_test): Add more tests.
3179         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
3180
3181 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3182
3183         * sysdeps/unix/getdents.c: Remove file.
3184         * sysdeps/unix/sysv/getdents.c: Likewise.
3185         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
3186
3187         * sysdeps/unix/syscalls.list (madvise): Add syscall from
3188         sysdeps/unix/mman/syscalls.list.
3189         (mmap): Likewise.
3190         (mprotect): Likewise.
3191         (msync): Likewise.
3192         (munmap): Likewise.
3193         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
3194         * sysdeps/unix/mman/syscalls.list: Remove.
3195         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
3196
3197         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
3198         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
3199         * configure: Regenerated.
3200         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
3201         $(libgcc_s_suffix).
3202         * config.make.in (libgcc_s_suffix): Remove variable.
3203
3204 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
3205
3206         * sysdeps/unix/sysv/gethostname.c: Move to ...
3207         * sysdeps/posix/gethostname.c: ... here.
3208
3209         * sysdeps/unix/execve.S: Remove file.
3210
3211         * sysdeps/unix/_exit.S: Remove file.
3212
3213 2012-04-23  Andreas Jaeger  <aj@suse.de>
3214
3215         [BZ #13739]
3216         * manual/Makefile: Remove make dist support, there's no
3217         need for a stand-alone documentation tar ball.
3218         (TEXI2DVI): Define always, it's not in Makeconfig.
3219         (dist): Removed.
3220         (tar-it): Removed.
3221         (edition): Removed.
3222         (glibc-doc-$(edition).tar): Removed
3223         (%.Z): Removed.
3224         (%.gz): Removed.
3225         (%.uu): Removed.
3226         (ETAGS): Remove, it's in Makeconfig.
3227         (move-if-change): Remove, it's in Makeconfig.
3228
3229 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3230
3231         [BZ #13970]
3232         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
3233         (strtod, strtof, strtold, strtol, strtoul, strtoq)
3234         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
3235         (strtod_l, strtof_l, strtold_l): Remove __wur.
3236         It is not necessarily an error to ignore strtol's return value.
3237         One can reliably look at the stored endptr to decide whether
3238         the number had valid syntax.
3239
3240 2012-04-21  Andreas Jaeger  <aj@suse.de>
3241
3242         [BZ #13739]
3243         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
3244
3245 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
3246
3247         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
3248         * sysdeps/unix/sysv/Versions: Remove file.
3249
3250 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
3251
3252         [BZ #13927]
3253         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3254
3255 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
3256
3257         [BZ #7064]
3258         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
3259         version from __vm86.
3260
3261 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
3262
3263         * sysdeps/unix/common/lxstat.c: Remove file.
3264         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
3265
3266         * sysdeps/unix/sysv/Makefile: Remove file.
3267
3268         * sysdeps/unix/sysv/direct.h: Remove file.
3269
3270         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
3271         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
3272         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
3273         * sysdeps/unix/sysv/bits/signum.h: Likewise.
3274         * sysdeps/unix/sysv/bits/stat.h: Likewise.
3275         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
3276         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
3277
3278         * sysdeps/unix/sysv/setrlimit.c: Remove file.
3279
3280         * sysdeps/unix/xmknod.c: Remove file.
3281         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
3282
3283         * sysdeps/unix/sysv/settimeofday.c: Remove file.
3284
3285         * sysdeps/unix/sysv/i386/time.S: Remove file.
3286
3287         * sysdeps/unix/fxstat.c: Remove file.
3288         * sysdeps/unix/xstat.c: Likewise.
3289         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
3290
3291         * sysdeps/unix/sysv/sigaction.c: Remove file.
3292
3293         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
3294         (sysdep_headers): Remove variable.
3295         [termio.h not in sysdep_headers] (generated): Likewise.
3296         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
3297         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
3298         * sysdeps/unix/sysv/tcdrain.c: Likewise.
3299         * sysdeps/unix/sysv/tcflow.c: Likewise.
3300         * sysdeps/unix/sysv/tcflush.c: Likewise.
3301         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
3302         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
3303         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
3304         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
3305         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
3306
3307         * sysdeps/unix/siglist.c: Remove file.
3308
3309         * sysdeps/unix/getppid.S: Remove file.
3310
3311         * sysdeps/unix/mkdir.c: Remove file.
3312         * sysdeps/unix/rmdir.c: Likewise.
3313
3314 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
3315
3316         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
3317         ERR_MAX value.
3318         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
3319         errlist-compat value.
3320
3321 2012-04-18  David S. Miller  <davem@davemloft.net>
3322
3323         * sysdeps/generic/memcopy.h (reg_char): Delete.
3324         * debug/strcat_chk.c: Use char, not reg_char.
3325         * debug/strcpy_chk.c: Likewise.
3326         * debug/strncat_chk.c: Likewise.
3327         * debug/strncpy_chk.c: Likewise.
3328         * string/memchr.c: Likewise.
3329         * string/memrchr.c: Likewise.
3330         * string/rawmemchr.c: Likewise.
3331         * string/strcat.c: Likewise.
3332         * string/strchr.c: Likewise.
3333         * string/strchrnul.c: Likewise.
3334         * string/strcmp.c: Likewise.
3335         * string/strcpy.c: Likewise.
3336         * string/strncat.c: Likewise.
3337         * string/strncmp.c: Likewise.
3338         * string/strncpy.c: Likewise.
3339
3340 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3341
3342         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
3343         __builtin_memcopy is called when src and dest ranges are known to not
3344         overlap.
3345
3346 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3347
3348         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
3349         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
3350         fwd_align_merge macro call.
3351         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
3352         bwd_align_merge macro call.
3353         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3354
3355 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3356
3357         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
3358         bwd_align_merge macros.
3359         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
3360         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
3361         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3362
3363 2012-04-18  David S. Miller  <davem@davemloft.net>
3364
3365         * sysdeps/sparc/sparc64/memcopy.h: Delete.
3366
3367 2012-04-18  Andreas Jaeger  <aj@suse.de>
3368
3369         [BZ# 6794]
3370         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
3371         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
3372         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3373
3374         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
3375         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
3376         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3377
3378         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
3379         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
3380         Adjust for changed ldbl-128 files.
3381
3382         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
3383         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
3384         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3385
3386 2012-04-17  David S. Miller  <davem@davemloft.net>
3387
3388         * sysdeps/sparc/sparc32/memcopy.h: Delete.
3389
3390 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
3391
3392         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
3393         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
3394         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
3395         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
3396         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3397         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
3398
3399 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3400
3401         [BZ #6794]
3402         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
3403         * math/libm-test.inc: Add ilogb errno and exception tests.
3404         * math/w_ilogb.c: New file: ilogb wrapper.
3405         * math/w_ilogbf.c: New file: ilogbf wrapper.
3406         * math/w_ilogbl.c: New file: ilogbl wrapper.
3407         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
3408         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
3409         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
3410         exception being thrown with 0.0 as argument.
3411         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
3412         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
3413         exception being thrown with 0.0 as argument.
3414         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
3415         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3416         exception being thrown with 0.0 as argument.
3417         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
3418         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3419         exception being thrown with 0.0 as argument.
3420         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
3421         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
3422         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
3423         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
3424         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
3425         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
3426         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
3427         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
3428         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
3429
3430 2012-04-17  Petr Baudis  <pasky@ucw.cz>
3431
3432         * include/sys/uio.h: Change __vector to __iovec to avoid clash
3433         with altivec.
3434
3435 2012-04-16  Marek Polacek  <polacek@redhat.com>
3436
3437         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
3438
3439 2012-04-16  Marek Polacek  <polacek@redhat.com>
3440
3441         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
3442         operands of fdivp instruction.
3443
3444 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3445
3446         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
3447         * elf/tst-auditmod3b.c: Likewise.
3448         * elf/tst-auditmod4b.c: Likewise.
3449         * elf/tst-auditmod5b.c: Likewise.
3450         * elf/tst-auditmod6b.c: Likewise.
3451         * elf/tst-auditmod6c.c: Likewise.
3452         * elf/tst-auditmod7b.c: Likewise.
3453         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
3454         * sysdeps/x86_64/preconfigure.in: Likewise.
3455         * sysdeps/x86_64/preconfigure: Regenerated.
3456
3457 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3458
3459         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
3460         __ILP32__.
3461
3462 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
3463
3464         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3465         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
3466
3467 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
3468
3469         [BZ #13973]
3470         * locale/iso-639.def: Fix gl language name. Spotted by
3471         Yaron Shahrabani.
3472
3473 2012-04-12  Roland McGrath  <roland@hack.frob.com>
3474
3475         [BZ #2074]
3476         * libio/libio.h (__io_write_fn): Update comment.
3477
3478 2012-04-12  Petr Baudis  <pasky@ucw.cz>
3479
3480         [BZ #2074]
3481         * stdio.texi (Hook Functions): The user provided writer function
3482         is not allowed to return -1.
3483
3484 2012-04-11  David S. Miller  <davem@davemloft.net>
3485
3486         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3487
3488 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
3489
3490         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
3491         Add a leading slash to rtkaio.
3492
3493 2012-04-11  Jim Meyering  <meyering@redhat.com>
3494
3495         [BZ #11959]
3496         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
3497         It is not necessarily an error to ignore fwrite's return
3498         value.  One can reliably use ferror to test for errors after
3499         the fact.
3500
3501 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3502
3503         * bits/types.h (__snseconds_t): New type.
3504         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
3505
3506         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
3507         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3508         (__SNSECONDS_T_TYPE): Likewise.
3509         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3510         (__SNSECONDS_T_TYPE): Likewise.
3511         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3512         (__SNSECONDS_T_TYPE): Likewise.
3513
3514 2012-04-10  Andreas Jaeger  <aj@suse.de>
3515
3516         [BZ #2636]
3517         * manual/time.texi (Processor Time): Return type of times is
3518         elapsed real time since an arbitrary point in the past.
3519         (CPU Time): Move CLK_TCK from here...
3520         (Processor Time): ...to here.  Correct description.
3521         * manual/conf.texi (Constants for Sysconf): Correct description of
3522         _SC_CLK_TCK.
3523
3524 2012-04-10  David S. Miller  <davem@davemloft.net>
3525
3526         [BZ #13967]
3527         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
3528         where the is a gap between DT_REL(A) and DT_JMPREL.
3529
3530 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3531
3532         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
3533         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3534         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3535
3536 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3537
3538         * elf/dl-support.c (_dl_inhibit_cache): New variable.
3539         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
3540         (dl_main): Handle --inhibit-cache.
3541         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
3542         _dl_inhibit_cache.
3543         * elf/dl-load.c (_dl_map_object): Use it.
3544         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
3545
3546 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3547
3548         [BZ #13872]
3549         * sysdeps/i386/fpu/e_powl.S (p78): New object.
3550         (__ieee754_powl): Saturate large exponents rather than testing for
3551         overflow of y*log2(x).
3552         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3553         * math/libm-test.inc (pow_test): Do not permit spurious overflow
3554         exceptions.
3555
3556         [BZ #11521]
3557         * math/s_ctan.c: Include <float.h>.
3558         (__ctan): Avoid internal overflow or cancellation in calculating
3559         denominator.
3560         * math/s_ctanf.c: Likewise.
3561         * math/s_ctanl.c: Likewise.
3562         * math/s_ctanh.c: Likewise.
3563         * math/s_ctanhf.c: Likewise.
3564         * math/s_ctanhl.c: Likewise.
3565         * math/libm-test.inc (ctan_test): Add more tests.
3566         (ctanh_test): Likewise.
3567         * sysdeps/i386/fpu/libm-test-ulps: Update.
3568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3569
3570 2012-04-09  Andreas Jaeger  <aj@suse.de>
3571
3572         [BZ #6894]
3573         * manual/filesys.texi (Directory Entries): Mention that d_namlen
3574         is an optional BSD extension.
3575
3576         [BZ #10254]
3577         * manual/stdio.texi (Opening Streams): Document additional fopen
3578         parameters.
3579
3580 2012-04-09  Roland McGrath  <roland@hack.frob.com>
3581
3582         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
3583         %eax without telling the compiler.
3584
3585 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
3586
3587         [BZ # 13963]
3588         * manual/install.texi: Use sourceware.org.
3589
3590 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3591
3592         [BZ #13873]
3593         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
3594         (__ieee754_pow): Generate overflow and underflow using huge*huge
3595         and tiny*tiny rather than just returning constant infinity or zero
3596         for large exponents.
3597         * math/libm-test.inc (pow_test): Require overflow exceptions for
3598         applicable cases of large exponents.
3599
3600         [BZ #706]
3601         * sysdeps/i386/fpu/e_pow.S (p10): New object.
3602         (__ieee754_pow): Use iterative multiplication algorithm only for
3603         integer exponents with absolute value below 1024.  Check for odd
3604         integer exponents when using algorithm for real exponents.
3605         * math/libm-test.inc (pow_test): Add more tests.
3606         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3607
3608 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
3609
3610         [BZ #13705]
3611         * math/libm-test.inc (exp_test): Do not allow overflow exception
3612         on underflow test.
3613
3614 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
3615
3616         [BZ #13705]
3617         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
3618         instead of __kernel_standard_f.
3619
3620 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
3621
3622         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
3623         * sysdeps/x86_64/memset_chk.S: Likewise.
3624
3625 2012-04-08  Andreas Jaeger  <aj@suse.de>
3626
3627         [BZ #10153]
3628         * manual/startup.texi (Environment Access): Describe return value
3629         for putenv and setenv.
3630
3631         [BZ #6895]
3632         * manual/filesys.texi (Directory Entries): Add description for
3633         DT_LNK.
3634
3635         [BZ #6890]
3636         * manual/filesys.texi (Directory Entries): Clarify that it's file
3637         system not operating system in the description of DT_UNKNOWN.
3638
3639         [BZ #6578]
3640         * manual/syslog.texi (closelog): Fix reference, it's openlog.
3641
3642 2012-04-08  Stephen Compall  <s11@member.fsf.org>
3643
3644         [BZ #6649]
3645         * manual/llio.texi (Opening and Closing Files): Add cross
3646         reference to explain mode argument.
3647
3648 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
3649
3650         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
3651         * sysdeps/x86_64/memset_chk.S: Likewise.
3652
3653 2012-04-07  David S. Miller  <davem@davemloft.net>
3654
3655         * elf/elf.h (R_SPARC_WDISP10): Define.
3656         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
3657         R_SPARC_SIZE32.
3658         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3659         R_SPARC_SIZE64 and R_SPARC_H34.
3660
3661 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
3662
3663         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
3664         conditions and remove no longer applicable assertion.
3665
3666 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3667
3668         * bits/byteswap.h: Include <features.h>.
3669         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3670         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3671
3672 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3673
3674         * bits/byteswap.h (__bswap_16): Removed.
3675         Include <bits/byteswap-16.h> to get __bswap_16.
3676         * sysdeps/i386/bits/byteswap.h: Likewise.
3677         * sysdeps/s390/bits/byteswap.h: Likewise.
3678         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3679         * bits/byteswap-16.h: New file.
3680         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3681         * sysdeps/s390/bits/byteswap-16.h: Likewise.
3682         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
3683         * string/Makefile (headers): Add bits/byteswap-16.h.
3684
3685 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3686
3687         [BZ #13895]
3688         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
3689         extra indirection.
3690         * nss/Makefile (tests-static, tests): Add tst-nss-static.
3691         * nss/tst-nss-static.c: New.
3692
3693 2012-04-06  Robert Millan  <rmh@gnu.org>
3694
3695         [BZ #6486]
3696         * manual/llio.texi (File Position Primitive): lseek
3697         refers to WHENCE when it really means OFFSET.
3698
3699 2012-04-06  Andreas Jaeger  <aj@suse.de>
3700
3701         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
3702         strncmp declarations.
3703
3704         * abilist/libc.abilist: Add __poll and __ppoll.
3705
3706 2012-04-05  David S. Miller  <davem@davemloft.net>
3707
3708         * scripts/check-local-headers.sh: Accept a host triplet in the
3709         path matched by the exclude regexp.
3710
3711         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
3712         definition.
3713         * sysdeps/powerpc/powerpc32/dl-machine.h
3714         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
3715         * sysdeps/s390/s390-32/dl-machine.h
3716         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3717         * sysdeps/sparc/sparc32/dl-machine.h
3718         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3719         * sysdeps/sparc/sparc64/dl-machine.h
3720         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3721
3722         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
3723         lazy binding.
3724         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
3725         undefined symbol errors.
3726
3727         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
3728         DT_NEEDED entries.
3729
3730 2012-04-05  Michael Matz  <matz@suse.de>
3731
3732         [BZ #13592]
3733         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
3734
3735 2012-04-05  Andreas Jaeger  <aj@suse.de>
3736
3737         [BZ #13908]
3738         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
3739         comment.
3740
3741 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3742
3743         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
3744         which ROUND is no valid rounding mode.
3745
3746 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3747
3748         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
3749         read again.
3750         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
3751
3752 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3753
3754         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
3755         an exception using FPU order intentionally.
3756
3757 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3758
3759         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
3760         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
3761         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
3762         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
3763
3764 2012-04-05  Simon Josefsson  <simon@josefsson.org>
3765
3766         [BZ #12340]
3767         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
3768         EINVAL when BUFLEN is too smal.
3769
3770 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
3771
3772         [BZ #13553]
3773         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
3774         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3775
3776 2012-04-03  Andreas Jaeger  <aj@suse.de>
3777
3778         [BZ #13938]
3779         * manual/setjmp.texi (System V contexts): Fix sentence.
3780
3781         [BZ #13926]
3782         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
3783         New macro for this case.
3784         [!__GNUC__] (__bswap_64): New inline function for this case.
3785         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3786         * bits/byteswap.h: Likewise.
3787         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
3788         ull, guard with __GLIBC_HAVE_LONG_LONG.
3789
3790         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
3791         __GLIBC_HAVE_LONG_LONG.
3792
3793         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
3794         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
3795
3796 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3797
3798         [BZ #13691]
3799         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
3800         inptr and inend, rather than using last_ch.
3801
3802 2012-04-02  David S. Miller  <davem@davemloft.net>
3803
3804         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
3805         * stdio-common/printf-parse.h (read_int): Change return type to
3806         'int', return -1 on INT_MAX overflow.
3807         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
3808         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
3809         overflows INT_MAX.  Check for overflow of in-format-string precision
3810         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
3811         SIZE_MAX not INT_MAX for integer overflow test.
3812         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
3813         skip the construct in the format string but do not record anything.
3814         * stdio-common/bug22.c: Adjust to test both width/prevision
3815         INT_MAX overflow as well as total length INT_MAX overflow.  Check
3816         explicitly for proper errno values.
3817
3818 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
3819
3820         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
3821         CHAR_MAX.
3822         * string/test-strcmp.c [! WIDE]: Likewise.
3823         * time/tst-mktime2.c: Likewise for INT_MAX.
3824         * string/test-string.h: #include <sys/param.h> for MIN.
3825
3826         * csu/init-first.c (__libc_init_first): Call __ctype_init.
3827         * sysdeps/i386/init-first.c (init): Likewise.
3828         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
3829         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
3830         * sysdeps/sh/init-first.c (init): Likewise.
3831
3832 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
3833
3834         * po/ru.po: Update from translation team.
3835         * po/vi.po: Likewise.
3836
3837 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
3838
3839         * resolv/nss_dns/dns-host.c: Merge copyright years.
3840
3841 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3842
3843         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
3844         Optimize memcpy with prefetch if
3845         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
3846         src, dst pointers have unequal 16 byte alignments.
3847
3848 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3849
3850         [BZ #13928]
3851         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
3852         from a CNAME entry and return the minimum ttl for the query.
3853         (gaih_getanswer_slice): Likewise.
3854
3855 2012-03-30  Jeff Law  <law@redhat.com>
3856
3857         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
3858         due to long keys.
3859         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
3860         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
3861
3862         * resolv/nss_dns/dns-host.c: Update copyright year.
3863
3864 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
3865
3866         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
3867         requests to save a system call.  Fix check that all bytes are sent.
3868
3869         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
3870         comments for sendmmsg.
3871
3872 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3873
3874         [BZ #13691]
3875         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
3876         with only 1 character between 0x0041 and 0x01b0.
3877         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
3878         * wcsmbs/tst-mbsnrtowcs.c: New file.
3879
3880 2012-03-29  David S. Miller  <davem@davemloft.net>
3881
3882         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
3883         small copies by hand.
3884
3885 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3886
3887         [BZ #13761]
3888         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
3889         _nss_compat_initgroups_dyn): Fall back to malloc/free
3890         for large group memberships.
3891
3892 2012-03-28  David S. Miller  <davem@davemloft.net>
3893
3894         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
3895         that branches into memcpy.
3896         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3897         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
3898         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3899         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
3900         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
3901         bits.
3902         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
3903         implementation too.
3904         * sysdeps/sparc/mempcpy.S: New file.
3905
3906         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
3907         the IFUNC routine in the libc case.
3908         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3909
3910         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
3911         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
3912         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
3913         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
3914         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
3915         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
3916         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
3917         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
3918
3919         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
3920         loop to 256 bytes instead of 64 bytes and fix test signedness.
3921
3922         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
3923         * sysdeps/sparc/sparc32/Makefile: rather than here...
3924         * sysdeps/sparc/sparc64/Makefile: and here.
3925
3926 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
3927
3928         * malloc/mallocbug.c: Avoid warnings about unused variables.
3929
3930 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3931
3932         [BZ #13760]
3933         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
3934         in the right place. Discard and retry query if response is
3935         larger than input buffer size.
3936
3937 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
3938
3939         [BZ #369]
3940         [BZ #2678]
3941         [BZ #3866]
3942         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
3943         x for large integer exponent.
3944         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3945         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
3946         sign of result as needed afterwards.
3947         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3948         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
3949         result for underflowing pow the same as for overflow.
3950         (__kernel_standard_l): Handle powl overflow and underflow here
3951         rather than calling __kernel_standard.
3952         * math/libm-test.inc (pow_test): Add more tests.
3953
3954         [BZ #3868]
3955         [BZ #13879]
3956         [BZ #13910]
3957         [BZ #13911]
3958         [BZ #13912]
3959         [BZ #13913]
3960         [BZ #13915]
3961         [BZ #13916]
3962         [BZ #13917]
3963         [BZ #13918]
3964         [BZ #13919]
3965         [BZ #13920]
3966         [BZ #13921]
3967         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
3968         * sysdeps/ieee754/k_standard.c: Include <float.h>.
3969         (__kernel_standard_l): New function.
3970         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
3971         __kernel_standard.
3972         * math/w_acosl.c (__acosl): Likewise.
3973         * math/w_asinl.c (__asinl): Likewise.
3974         * math/w_atan2l.c (__atan2l): Likewise.
3975         * math/w_atanhl.c (__atanhl): Likewise.
3976         * math/w_coshl.c (__coshl): Likewise.
3977         * math/w_exp10l.c (__exp10l): Likewise.
3978         * math/w_exp2l.c (__exp2l): Likewise.
3979         * math/w_fmodl.c (__fmodl): Likewise.
3980         * math/w_hypotl.c (__hypotl): Likewise.
3981         * math/w_j0l.c (__j0l, __y0l): Likewise.
3982         * math/w_j1l.c (__j1l, __y1l): Likewise.
3983         * math/w_jnl.c (__jnl, __ynl): Likewise.
3984         * math/w_lgammal.c (__lgammal): Likewise.
3985         * math/w_log10l.c (__log10l): Likewise.
3986         * math/w_log2l.c (__log2l): Likewise.
3987         * math/w_logl.c (__logl): Likewise.
3988         * math/w_powl.c (__powl): Likewise.
3989         * math/w_remainderl.c (__remainderl): Likewise.
3990         * math/w_scalbl.c (sysv_scalbl): Likewise.
3991         * math/w_sinhl.c (__sinhl): Likewise.
3992         * math/w_sqrtl.c (__sqrtl): Likewise.
3993         * math/w_tgammal.c (__tgammal): Likewise.
3994         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
3995         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
3996         * math/libm-test.inc (acos_test): Add more tests.
3997         (acosh_test): Likewise.
3998         (asin_test): Likewise.
3999         (atanh_test): Likewise.
4000         (exp_test): Likewise.
4001         (exp10_test): Likewise.
4002         (exp2_test): Likewise.
4003         (expm1_test): Likewise.
4004         (lgamma_test): Likewise.
4005         (log_test): Likewise.
4006         (log10_test): Likewise.
4007         (log1p_test): Likewise.
4008         (log2_test): Likewise.
4009         (pow_test): Do not allow some spurious overflow exceptions.
4010         (sqrt_test): Add more tests.
4011         (tgamma_test): Likewise.
4012         (y0_test): Likewise.
4013         (y1_test): Likewise.
4014         (yn_test): Likewise.
4015
4016 2012-03-27  Anton Blanchard  <anton@samba.org>
4017
4018         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
4019         MAP_HUGETLB.
4020         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4021         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4022         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4023
4024 2012-03-27  David S. Miller  <davem@davemloft.net>
4025
4026         * conform/Makefile: Run run-conformtest.sh using $(BASH).
4027
4028         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
4029         have-as-vis3 check.
4030
4031 2012-03-27  Andreas Jaeger  <aj@suse.de>
4032
4033         * sysdeps/x86_64/elf/configure.in: Moved to ...
4034         * sysdeps/x86_64/configure.in: ... here.
4035         * sysdeps/x86_64/elf/start.S: Moved to ...
4036         * sysdeps/x86_64/start.S: ... here.
4037         * sysdeps/x86_64/elf/configure: Delete.
4038
4039         * sysdeps/x86_64/configure.in: Merge contents from
4040         sysdeps/i386/configure.in (without i686 check).
4041
4042         * sysdeps/i386/elf/Versions: Merge into ...
4043         * sysdeps/i386/Versions: ... this.
4044         * sysdeps/i386/elf/Versions: Delete file.
4045         * sysdeps/i386/elf/start.S: Moved to ...
4046         * sysdeps/i386/start.S: ...here.
4047         * sysdeps/i386/elf/configure.in: Merge into...
4048         * sysdeps/i386/configure.in: ...here.
4049         * sysdeps/i386/elf/configure.in: Delete file.
4050         * sysdeps/i386/elf/configure: Delete file.
4051
4052         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
4053         * debug/backtracesyms.c: ... here.
4054         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
4055         * debug/backtracesymsfd.c: ... here.
4056         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
4057         * sysdeps/generic/ifunc-sel.h: ... here.
4058
4059         * sysdeps/unix/i386/start.c: Delete file.
4060         * sysdeps/unix/sparc/start.c: Delete file.
4061         * sysdeps/unix/start.c: Delete file.
4062
4063         * sysdeps/sh/elf/configure.in: Moved to ...
4064         * sysdeps/sh/configure.in: ... here.
4065         * sysdeps/sh/elf/start.S: Moved to ...
4066         * sysdeps/sh/start.S: ... here.
4067         * sysdeps/sh/elf/configure: Delete file.
4068
4069         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
4070         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
4071         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
4072         * sysdeps/powerpc/powerpc64/entry.h: ... here.
4073         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
4074         * sysdeps/powerpc/powerpc64/start.S: here.
4075         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
4076         * sysdeps/powerpc/powerpc64/Makefile: ... this.
4077         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
4078         * sysdeps/powerpc/powerpc64/configure.in: ... this.
4079         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
4080
4081         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
4082         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
4083         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
4084         * sysdeps/powerpc/powerpc32/start.S: ... here.
4085         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
4086         * sysdeps/powerpc/powerpc32/configure.in: ... this.
4087         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
4088
4089         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
4090         * sysdeps/powerpc/ifunc-sel.h: ... here.
4091         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
4092         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
4093
4094         * sysdeps/sparc/elf/configure.in: Moved to ...
4095         * sysdeps/sparc/configure.in: ... here.
4096         * sysdeps/sparc/elf/configure: Delete file.
4097         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
4098         * sysdeps/sparc/sparc32/start.S: ... here.
4099         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
4100         * sysdeps/sparc/sparc64/start.S: ... here.
4101         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
4102         * sysdeps/sparc/sparc32/Makefile: ... this.
4103         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
4104         * sysdeps/sparc/sparc64/Makefile: ... this.
4105
4106         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
4107         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
4108         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
4109         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
4110         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
4111         * sysdeps/s390/s390-32/setjmp.S: ... here.
4112         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
4113         * sysdeps/s390/s390-32/configure.in: ... here.
4114         * sysdeps/s390/s390-32/elf/configure: Delete file.
4115         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
4116         * sysdeps/s390/s390-32/start.S: ... here.
4117
4118         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
4119         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
4120         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
4121         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
4122         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
4123         * sysdeps/s390/s390-64/setjmp.S: ... here.
4124         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
4125         * sysdeps/s390/s390-64/configure.in: ... here
4126         * sysdeps/s390/s390-64/elf/configure: Delete file.
4127         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
4128         * sysdeps/s390/s390-64/start.S: ... here.
4129         * sysdeps/s390/s390-64/elf/configure: Delete.
4130
4131         * configure.in: Remove support for elf directories in sysdeps.
4132
4133         * configure: Regenerated.
4134         * sysdeps/i386/configure: Regenerated.
4135         * sysdeps/powerpc/powerpc32/configure: Regenerated.
4136         * sysdeps/powerpc/powerpc64/configure: Regenerated.
4137         * sysdeps/s390/s390-32/configure: Regenerated.
4138         * sysdeps/s390/s390-64/configure: Regenerated.
4139         * sysdeps/sh/configure: Regenerated.
4140         * sysdeps/sparc/configure: Regenerated.
4141         * sysdeps/x86_64/configure: Regenerated.
4142
4143 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
4144
4145         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4146
4147         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
4148         denormal result into account.
4149
4150 2012-03-25  Roland McGrath  <roland@hack.frob.com>
4151
4152         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
4153         Reported by Allan McRae <allan@archlinux.org>.
4154
4155 2012-03-23  Jeff Law  <law@redhat.com>
4156
4157         * nss/getnssent.c (__nss_getent): Fix typo.
4158
4159 2012-03-23  David S. Miller  <davem@davemloft.net>
4160
4161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4162
4163 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
4164
4165         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
4166         to pad to uint64_t for each field.
4167         (dl_tls_index): Replace unsigned long with uint64_t.
4168
4169 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
4170         Paul Pluzhnikov  <ppluzhnikov@google.com>
4171
4172         [BZ #6528]
4173         * grp/Makefile (otherlibs): Don't set it.
4174         * inet/Makefile (otherlibs): Likewise.
4175         * login/Makefile (otherlibs): Likewise.
4176         * nscd/Makefile (otherlibs): Likewise.
4177         * posix/Makefile (otherlibs): Likewise.
4178         * pwd/Makefile (otherlibs): Likewise.
4179         * rt/Makefile (otherlibs): Likewise.
4180         * sunrpc/Makefile (otherlibs): Likewise.
4181         * nss/Makefile (otherlibs): Likewise.
4182         Add libnss_files to routines and static-only-routines.
4183         ($(objpfx)getent): Remove rule.
4184         * resolv/Makefile: Add libnss_dns and libresolv to routines and
4185         static-only-routines.
4186
4187 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4188
4189         [BZ #13892]
4190         * math/s_cexp.c: Include <float.h>.
4191         (__cexp): Handle exp result overflowing not necessarily
4192         overflowing both real and imaginary parts of result.
4193         * math/s_cexpf.c: Likewise.
4194         * math/s_cexpl.c: Likewise.
4195         * math/libm-test.inc (cexp_test): Add more tests.
4196         * sysdeps/i386/fpu/libm-test-ulps: Update.
4197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4198
4199 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4200
4201         * include/link.h (ELFW): New macro.
4202         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
4203         Replace ELF64_R_TYPE with ELFW(R_TYPE).
4204
4205 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4206
4207         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
4208         with uint64_t.
4209
4210 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4211
4212         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
4213         declaration.
4214         (struct La_x32_retval): Likewise.
4215
4216 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4217
4218         * sysdeps/x86_64/preconfigure.in: New file.
4219         * sysdeps/x86_64/preconfigure: New generated file.
4220
4221 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4222
4223         [BZ #13824]
4224         * math/e_exp2l.c: Include <float.h>.
4225         (__ieee754_exp2l): Handle overflow and underflow cases
4226         separately.  Only pass fractional part of argument to
4227         __ieee754_expl.
4228         * math/libm-test.inc (exp2_test): Add more tests.
4229
4230         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
4231         negating x to take absolute value.
4232         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
4233         Likewise.
4234         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4235         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
4236         Likewise.
4237         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
4238         computing low part if x was negated.
4239         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4240
4241 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4242
4243         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
4244         la_x32_gnu_pltexit.
4245         (pltexit): Cast int_retval to ptrdiff_t.
4246         * elf/tst-auditmod3b.c: Likewise.
4247         * elf/tst-auditmod4b.c: Likewise.
4248         * elf/tst-auditmod5b.c: Likewise.
4249         * elf/tst-auditmod6b.c: Likewise.
4250         * elf/tst-auditmod6c.c: Likewise.
4251         * elf/tst-auditmod7b.c: Likewise.
4252
4253         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
4254         and x32_gnu_pltexit.
4255
4256         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
4257         __ELF_NATIVE_CLASS.
4258         (La_x32_regs): New macro.
4259         (La_x32_retval): Likewise.
4260         (la_x32_gnu_pltenter): New function prototype.
4261         (la_x32_gnu_pltexit): Likewise.
4262
4263 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
4264
4265         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
4266         exponent.
4267
4268         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4269
4270         * configure.in (libc_cv_cc_nofma): Check for option to disable
4271         generation of FMA instructions.
4272         * configure: Regenerate.
4273         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
4274         * sysdeps/ieee754/dbl-64/Makefile: New file.
4275         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4276         Remove brandred-fma4.
4277         (CFLAGS-brandred-fma4.c): Remove.
4278         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
4279         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
4280         define.
4281         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
4282         define.
4283
4284 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4285
4286         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4287         LLONG_MAX != LONG_MAX.
4288         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4289         (_fitoa_word): Likewise.
4290         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
4291         LLONG_MAX != LONG_MAX.
4292         * stdio-common/_itowa.h: Include <_itoa.h>.
4293         (_itowa_word): Use _ITOA_WORD_TYPE on value.
4294         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
4295         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
4296         only if not defined.
4297         (_ITOA_WORD_TYPE): Likewise.
4298         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4299         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
4300
4301 2012-03-21  David S. Miller  <davem@davemloft.net>
4302
4303         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4304
4305 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4306
4307         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
4308         of x86_64 when setting libc_cv_slibdir, libdir and
4309         libc_cv_localedir.
4310         * sysdeps/unix/sysv/linux/configure: Regenerated.
4311
4312 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4313
4314         * manual/lang.texi (Old Varargs): Remove section.
4315         (How Variadic): Update menu.
4316         (va_start): Do not mention varargs.h.
4317
4318 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4319             Joseph Myers  <joseph@codesourcery.com>
4320
4321         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
4322         link test.
4323         * configure: Regenerated.
4324
4325 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4326
4327         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
4328         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
4329         conformtest.pl
4330
4331 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4332
4333         * NOTES: Remove.
4334         * Makefile (files-for-dist): Remove NOTES.
4335         (NOTES): Remove rule.
4336         * README: Don't refer to NOTES.
4337         * manual/creature.texi: Don't include macros.texi.
4338         * manual/intro.texi (creature.texi): Remove comment referring to
4339         NOTES.
4340
4341         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
4342         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
4343         * configure: Regenerated.
4344         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
4345         LIBC_TRY_CC_OPTION.
4346         (libc_cv_as_i686): Likewise.
4347         (libc_cv_cc_avx): Likewise.
4348         (libc_cv_cc_sse2avx): Likewise.
4349         (libc_cv_cc_fma4): Likewise.
4350         (libc_cv_cc_novzeroupper): Likewise.
4351         * sysdeps/i386/configure: Regenerated.
4352
4353         [BZ #13883]
4354         * sysdeps/i386/fpu/s_cexp.S: Remove.
4355         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4356         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4357         * math/libm-test.inc (cexp_test): Add more tests.
4358         * sysdeps/i386/fpu/libm-test-ulps: Update.
4359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4360
4361 2012-03-21  Allan McRae  <allan@archlinux.org>
4362
4363         * timezone/Makefile: Do not install iso3166.tab and zone.tab
4364
4365 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4366
4367         [BZ #13871]
4368         * math/w_exp2.c: Do not include <float.h>.
4369         (o_threshold, u_threshold): Remove.
4370         (__exp2): Calculate result before checking finiteness and calling
4371         __kernel_standard.
4372         * math/w_exp2f.c: Likewise.
4373         * math/w_exp2l.c: Likewise.
4374         * math/libm-test.inc (exp2_test): Require overflow exception for
4375         1e6 input.
4376
4377         [BZ #3866]
4378         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
4379         range of signed 64-bit integers before using fistpll.  Remove
4380         checks for whether integers fit in mantissa bits.
4381         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
4382         the range of signed 32-bit integers before using fistpl.  Remove
4383         checks for whether integers fit in mantissa bits.
4384         * sysdeps/i386/fpu/e_powl.S (p64): New object.
4385         (__ieee754_powl): Test for y outside the range of signed 64-bit
4386         integers before using fistpll.  Reduce 64-bit values to 63-bit
4387         ones as needed.
4388         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
4389         divide-by-zero is raised for zero to large negative powers.
4390         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
4391         (__ieee754_powl): Test for y outside the range of signed 64-bit
4392         integers before using fistpll.  Reduce 64-bit values to 63-bit
4393         ones as needed.
4394         * math/libm-test.inc (pow_test): Add more tests.
4395
4396 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4397
4398         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
4399         <stdio-common/_itoa.h>.
4400         * debug/segfault.c: Likewise.
4401         * elf/dl-cache.c: Likewise.
4402         * elf/dl-minimal.c: Likewise.
4403         * elf/dl-misc.c: Likewise.
4404         * elf/dl-sysdep.c: Likewise.
4405         * elf/dl-version.c: Likewise.
4406         * elf/rtld.c: Likewise.
4407         * hurd/hurdsock.c: Likewise.
4408         * hurd/lookup-retry.c: Likewise.
4409         * malloc/malloc.c: Likewise.
4410         * malloc/mtrace.c: Likewise.
4411         * nscd/nscd_getgr_r.c: Likewise.
4412         * nscd/nscd_getpw_r.c: Likewise.
4413         * nscd/nscd_getserv_r.c: Likewise.
4414         * posix/getopt_init.c: Likewise.
4415         * posix/wordexp.c: Likewise.
4416         * stdio-common/_itoa.c: Likewise.
4417         * stdio-common/printf_fphex.c: Likewise.
4418         * stdio-common/vfprintf.c: Likewise.
4419         * string/_strerror.c: Likewise.
4420         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4421         * sysdeps/i386/i686/hp-timing.h: Likewise.
4422         * sysdeps/mach/_strerror.c: Likewise.
4423         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
4424         * sysdeps/mach/hurd/sethostid.c: Likewise.
4425         * sysdeps/mach/hurd/xmknodat.c: Likewise.
4426         * sysdeps/mach/xpg-strerror.c: Likewise.
4427         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4428         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4429         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
4430         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
4431         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4432         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
4433         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4434         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4435         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
4436         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
4437         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
4438         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4439         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
4440         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4441         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4442         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4443         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
4444         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
4445         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4446         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4447         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
4448
4449         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
4450
4451         * stdio-common/_itoa.h: Moved to ...
4452         * sysdeps/generic/_itoa.h: Here.
4453
4454         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
4455
4456         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
4457         instead of "_itoa.h" and "_itowa.h".
4458         * stdio-common/vfprintf.: Likewise.
4459
4460 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4461
4462         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
4463         <bits/wordsize.h>.
4464         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
4465         (__signbit): Likwise.
4466         (llrintf): Likwise.
4467         (llrint): Likwise.
4468
4469 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4470
4471         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
4472         __WORDSIZE != 64.
4473
4474 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
4475
4476         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
4477         OVERFLOW_EXCEPTION_OK.
4478         * math/libm-test.inc ("Philosophy"): Update comment about
4479         exception testing.
4480         (OVERFLOW_EXCEPTION): Define.
4481         (OVERFLOW_EXCEPTION_OK): Likewise.
4482         (INVALID_EXCEPTION_OK): Renumber.
4483         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4484         (IGNORE_ZERO_INF_SIGN): Likewise.
4485         (test_exceptions): Handle FE_OVERFLOW.
4486         (exp10_test): Expect overflow exceptions.
4487         (exp2_test): Likewise.
4488         (expm1_test): Likewise.
4489         (nextafter_test): Likewise.
4490         (pow_test): Likewise.
4491         (scalbn_test): Likewise.
4492         (scalbln_test): Likewise.
4493
4494 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4495
4496         * sysdeps/x86_64/bits/atomic.h
4497         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
4498         64bit integer.
4499         (atomic_exchange_acq): Likewise.
4500         (__arch_exchange_and_add_body): Likewise.
4501         (__arch_add_body): Likewise.
4502         (atomic_add_negative): Likewise.
4503         (atomic_add_zero): Likewise.
4504
4505 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4506
4507         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
4508         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
4509
4510 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4511
4512         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
4513         Check __x86_64__ instead of __WORDSIZE.
4514
4515 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4516
4517         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
4518
4519 2012-03-19  David S. Miller  <davem@davemloft.net>
4520
4521         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4522
4523         * sysdeps/sparc/fpu/fenv_private.h: New file.
4524         * sysdeps/sparc/fpu/math_private.h: Use it.
4525         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
4526         Remove.
4527         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
4528         (libc_feholdexcept_setroundl): Remove.
4529         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
4530         Remove.
4531         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
4532         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
4533
4534 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4535
4536         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
4537         int64_t instead of long int.
4538         (INSERT_WORDS64): Likwise.
4539
4540 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4541
4542         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
4543         _Unwind_GetCFA return to _Unwind_Ptr first.
4544
4545 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
4546
4547         [BZ #13629]
4548         * math/s_clog.c: Include <float.h>.
4549         (__clog): Scale large or subnormal inputs.
4550         * math/s_clogf.c: Likewise.
4551         * math/s_clogl.c: Likewise.
4552         * math/s_clog10.c: Include <float.h>.
4553         (M_LOG10_2): Define.
4554         (__clog10): Scale large or subnormal inputs.
4555         * math/s_clog10f.c: Likewise.
4556         * math/s_clog10l.c: Likewise.
4557         * math/libm-test.inc (clog_test): Add more tests.
4558         (clog10_test): Likewise.
4559         * sysdeps/i386/fpu/libm-test-ulps: Update.
4560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4561
4562         [BZ #11451]
4563         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
4564         x and y.
4565         * math/libm-test.inc (atan2_test): Add another test.
4566
4567         * Makerules (common-objdir-compile): Remove.
4568         * sysdeps/unix/Makefile (config-generated): Do not add
4569         $(unix-generated) to variable.
4570         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
4571         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
4572         Remove rule.
4573         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
4574         Likewise.
4575         [generic bits/local_lim.h] (before-compile): Do not append to
4576         variable.
4577         [generic bits/local_lim.h] (common-generated): Likewise.
4578         [generic sys/param.h] (before-compile): Do not append to variable.
4579         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
4580         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
4581         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
4582         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
4583         include.
4584         [generic sys/param.h] (sys/param.h-includes): Remove variable.
4585         [generic sys/param.h] (sys/param.h-includes): Remove rule.
4586         [generic sys/param.h] ($(addprefix
4587         $(common-objpfx),$(sys/param.h-includes))): Likewise.
4588         [generic sys/param.h] (common-generated): Do not append to
4589         variable.
4590         [generic sys/param.h] (sysdep_headers): Likewise.
4591         [generic bits/errno.h] (before-compile): Do not append to
4592         variable.
4593         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
4594         rule.
4595         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
4596         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
4597         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
4598         [generic bits/errno.h] (common-generated): Do not append to
4599         variable.
4600         [generic bits/ioctls.h] (before-compile): Do not append to
4601         variable.
4602         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
4603         rule.
4604         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
4605         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
4606         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
4607         rule.
4608         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
4609         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
4610         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
4611         [generic bits/ioctls.h] (common-generated): Do not append to
4612         variable.
4613         [generic sys/syscall.h] (syscall.h): Remove variable.
4614         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
4615         rule.
4616         [generic sys/syscall.h] (before-compile): Do not append to
4617         variable.
4618         [generic sys/syscall.h] (common-generated): Likewise.
4619         * sysdeps/unix/errnos-tmpl.c: Remove file.
4620         * sysdeps/unix/errnos.awk: Likewise.
4621         * sysdeps/unix/ioctls-tmpl.c: Likewise.
4622         * sysdeps/unix/ioctls.awk: Likewise.
4623         * sysdeps/unix/mk-local_lim.c: Likewise.
4624         * sysdeps/unix/snarf-ioctls: Likewise.
4625
4626 2012-03-19  Richard Henderson  <rth@twiddle.net>
4627
4628         * sysdeps/i386/fpu/fenv_private.h: New file.
4629         * sysdeps/i386/fpu/math_private.h: Use it.
4630         (math_opt_barrier, math_force_eval): Remove.
4631         (libc_feholdexcept_setround_53bit): Remove.
4632         (libc_feupdateenv_53bit): Remove.
4633         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4634         (math_opt_barrier, math_force_eval): Remove.
4635         (libc_feholdexcept): Remove.
4636         (libc_feholdexcept_setround): Remove.
4637         (libc_fetestexcept, libc_fesetenv): Remove.
4638         (libc_feupdateenv_test): Remove.
4639         (libc_feupdateenv, libc_feholdsetround): Remove.
4640         (libc_feresetround): Remove.
4641
4642         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
4643         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
4644
4645         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
4646         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
4647         (libc_feupdateenv_testl): New.
4648         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
4649         (libc_feupdateenv_testf): New.
4650         (libc_feupdateenv): Use libc_feupdateenv_test.
4651         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
4652         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
4653
4654         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
4655         (libc_feholdsetroundf, libc_feholdsetroundl): New.
4656         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
4657         (libc_feresetround_noex): New.
4658         (libc_feresetround_noexf): New.
4659         (libc_feresetround_noexl): New.
4660         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
4661         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
4662         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
4663         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
4664         SET_RESTORE_ROUND.
4665         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4666         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
4667         (__cos): Likewise.
4668         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
4669         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
4670         SET_RESTORE_ROUND_NOEX.
4671         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
4672         SET_RESTORE_ROUND_NOEXF.
4673         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
4674         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
4675         (libc_feholdsetroundf): New.
4676         (libc_feresetround, libc_feresetroundf): New.
4677
4678         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
4679         (libc_feholdexcept_setround_53bit): Convert from macro to function.
4680         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
4681
4682         * sysdeps/generic/math_private.h: Include <fenv.h>.
4683         (default_libc_feholdexcept): New.
4684         (default_libc_feholdexcept_setround): New.
4685         (default_libc_fesetenv, default_libc_feupdateenv): New.
4686         (libc_feholdexcept): Only define if undefined.
4687         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
4688         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
4689         (libc_feholdexcept_setroundl): Likewise.
4690         (libc_feholdexcept_setround_53bit): Likewise.
4691         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
4692         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
4693         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
4694         (libc_feupdateenv_53bit): Likewise.
4695         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
4696         (libc_feholdexcept): Convert from macro to inline function.
4697         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
4698         (libc_fesetenv, libc_feupdateenv): Likewise.
4699
4700         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
4701         not previously defined.
4702         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
4703         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
4704         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
4705         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
4706         * sysdeps/ieee754/flt-32/math_private.h: New file.
4707         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
4708         math_private.h below SET_FLOAT_WORD.
4709         (__isnan, __isinf_ns, __finite): Remove.
4710         (__isnanf, __isinf_nsf, __finitef): Remove.
4711
4712 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
4713
4714         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4715
4716 2012-03-17  David S. Miller  <davem@davemloft.net>
4717
4718         [BZ #6471]
4719         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
4720         for 2.16.
4721
4722 2012-03-16  David S. Miller  <davem@davemloft.net>
4723
4724         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
4725         warnings.
4726
4727         [BZ #6471]
4728         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
4729         properly.
4730         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
4731         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
4732         sysdep_routines when subdir is sysvipc.
4733         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
4734         __getshmlba helper.
4735
4736         * sysdeps/sparc/fpu/libm-test/ulps: Update.
4737
4738 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4739
4740         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
4741         [__LP64__].
4742
4743 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4744
4745         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
4746         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
4747         (__lround): Renamed to ...
4748         (__llround): This.  Replace long int with long long int.
4749         Define lround functions as aliases of llround functions.
4750         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
4751
4752 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4753
4754         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4755         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
4756         adresses to uintptr_t.  Replace "long int" and "unsigned long
4757         int" with "greg_t" on va_arg.
4758
4759 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4760
4761         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
4762         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
4763
4764         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
4765         Move e_machine check before EI_CLASS check.  Handle x32
4766         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
4767         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
4768         SKIP_EM_IA_64 and include
4769         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
4770
4771         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
4772         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
4773         (add_system_dir): New macro.
4774
4775         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
4776         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
4777
4778 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4779
4780         [BZ #2551]
4781         [BZ #2552]
4782         [BZ #2553]
4783         [BZ #2554]
4784         [BZ #2562]
4785         [BZ #2563]
4786         [BZ #2565]
4787         [BZ #2566]
4788         [BZ #2576]
4789         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
4790         (y0): Likewise.
4791         * math/w_j0f.c (j0f): Likewise.
4792         (y0f): Likewise.
4793         * math/w_j0l.c (__j0l): Likewise.
4794         (__y0l): Likewise.
4795         * math/w_j1.c (j1): Likewise.
4796         (y1): Likewise.
4797         * math/w_j1f.c (j1f): Likewise.
4798         (y1f): Likewise.
4799         * math/w_j1l.c (__j1l): Likewise.
4800         (__y1l): Likewise.
4801         * math/w_jn.c (jn): Likewise.
4802         (yn): Likewise.
4803         * math/w_jnf.c (jnf): Likewise.
4804         (ynf): Likewise.
4805         * math/w_jnl.c (__jnl): Likewise.
4806         (__ynl): Likewise.
4807         * math/libm-test.inc (j0_test): Add more tests.
4808         (j1_test): Likewise.
4809         (jn_test): Likewise.  Add trailing semicolon to existing test.
4810         (y0_test): Likewise.
4811         (y1_test): Likewise.
4812         * sysdeps/i386/fpu/libm-test-ulps: Update.
4813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4814
4815         [BZ #13851]
4816         [BZ #13854]
4817         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
4818         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
4819         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
4820         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
4821         (__tanl): Set errno for infinite argument.
4822         * sysdeps/i386/fpu/mptan.c: Remove.
4823         * sysdeps/i386/fpu/s_tan.S: Likewise.
4824         * sysdeps/i386/fpu/s_tanl.S: Likewise.
4825         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
4826         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
4827         * math/libm-test.inc (tan_test): Add more tests and enable more
4828         tests for double and long double.
4829         * sysdeps/i386/fpu/libm-test-ulps: Update.
4830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4831
4832 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4833
4834         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
4835         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
4836
4837 2012-03-16  Roland McGrath  <roland@hack.frob.com>
4838
4839         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
4840         * configure.in: Use it for both main tree and add-ons.
4841         * configure: Regenerated.
4842
4843 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4844
4845         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
4846
4847 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4848
4849         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
4850         in comment.
4851
4852         [BZ #13851]
4853         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
4854         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
4855         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4856         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
4857         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
4858         infinite argument.
4859         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
4860         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
4861         != 0 for prec == 2.
4862         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
4863         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
4864         * sysdeps/i386/fpu/s_cosl.S: Likewise.
4865         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
4866         * sysdeps/i386/fpu/s_sinl.S: Likewise.
4867         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
4868         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
4869         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
4870         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
4871         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
4872         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
4873         * math/libm-test.inc (cos_test): Add more tests and enable more
4874         tests for long double.
4875         (sin_test): Likewise.
4876         (sincos_test): Likewise.
4877         * sysdeps/i386/fpu/libm-test-ulps: Update.
4878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4879
4880 2012-03-16  David S. Miller  <davem@davemloft.net>
4881
4882         * sysdeps/sparc/fpu/math_private.h: New file.
4883
4884 2012-03-15  David S. Miller  <davem@davemloft.net>
4885
4886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
4887         file.
4888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
4889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
4890         file.
4891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
4892         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
4893         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
4894         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
4895         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
4896         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
4897         sysdep routines.
4898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4899
4900         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
4901         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
4902
4903         * sysdeps/sparc/sparc-ifunc.h: New file.
4904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
4905         sparc-ifunc.h
4906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4908         Likewise.
4909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
4910         Likewise.
4911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
4912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
4913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4915         Likewise.
4916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
4921         Likewise.
4922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
4923         Likewise.
4924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
4926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
4927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
4928         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4929         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4930         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
4931         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
4932         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4933         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4934         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4935         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4936         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4937         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4938         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
4939         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
4940         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
4941         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
4942         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
4943         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
4944         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
4945         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
4946         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
4947         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
4948
4949 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4950
4951         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
4952         scaling.
4953         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4954
4955 2012-03-15  Andreas Jaeger  <aj@suse.de>
4956
4957         [BZ #13852]
4958         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
4959         ieee754/flt-32 implementation for sin, cos and sincos.
4960         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
4961         * sysdeps/i386/fpu/s_cosf.S: Likewise.
4962         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
4963         * sysdeps/i386/fpu/s_sinf.S: Likewise.
4964         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
4965         ieee754/flt-32 implementation for tan.
4966
4967         * math/libm-test.inc (cos_test): Enable some large input tests for
4968         float as well
4969         (sin_test): Likewise.
4970         (sincos_test): Likewise.
4971         (tan_test): Add tests for large input.
4972
4973         * sysdeps/i386/fpu/libm-test-ulps: Update.
4974
4975 2012-03-15  Andreas Jaeger  <aj@suse.de>
4976
4977         [BZ #13658]
4978         * math/libm-test.inc (cos_test): Add more test cases.
4979         (sin_test): Likewise.
4980         (sincos_test): Likewise.
4981
4982 2012-03-15  Andreas Jaeger  <aj@suse.de>
4983
4984         [BZ #13837]
4985         * math/libm-test.inc (cos_test): Add a test case for large input
4986         value.
4987         (sin_test): Likewise.
4988         (sincos_test): Likewise.
4989
4990 2012-03-15  Andreas Jaeger  <aj@suse.de>,
4991         Joseph Myers  <joseph@codesourcery.com>
4992
4993         [BZ #13658]
4994         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
4995         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
4996         * sysdeps/i386/fpu/branred.c: Likewise.
4997         * sysdeps/i386/fpu/dosincos.c: Likewise.
4998         * sysdeps/i386/fpu/mpa.c: Likewise.
4999         * sysdeps/i386/fpu/s_cos.S: Likewise.
5000         * sysdeps/i386/fpu/s_sin.S: Likewise.
5001         * sysdeps/i386/fpu/s_sincos.S: Likewise.
5002         * sysdeps/i386/fpu/sincos32.c: Likewise.
5003
5004         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
5005         Define.
5006         (libc_feupdateenv_53bit): Define.
5007         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
5008         Define.
5009         (libc_feupdateenv_53bit): Define.
5010
5011         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
5012         53 bit (without extend i386 double precision).
5013
5014         * math/libm-test.inc (sincos_test): Add tests for large input.
5015         (sin): Likewise.
5016         (cos): Likewise.
5017
5018         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
5019
5020 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5021
5022         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5023
5024 2012-03-15  David S. Miller  <davem@davemloft.net>
5025
5026         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
5027         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
5028         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
5029         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
5030         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
5031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
5032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
5033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
5034         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
5035         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
5036         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
5037         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
5038         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
5039         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
5040         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
5041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
5042         file.
5043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
5044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
5045         file.
5046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
5047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
5048         file.
5049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
5050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
5051         file.
5052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
5053         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
5054         fmin/fmax sysdep routines.
5055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5056
5057 2012-03-14  David S. Miller  <davem@davemloft.net>
5058
5059         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
5060         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
5061         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
5062         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
5063         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
5064         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
5065         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
5066         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
5067         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
5068         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
5069         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
5070         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
5071         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
5072         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
5073         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
5074         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
5075         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
5076         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
5077         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
5078         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
5079         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
5080         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
5081         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
5082         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
5083         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
5084         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
5085         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
5086         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
5087         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
5088         routines.
5089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
5090         file.
5091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
5092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
5093         file.
5094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
5095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
5096         file.
5097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
5098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
5099         file.
5100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
5101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
5102         file.
5103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
5104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
5105         file.
5106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
5107         file.
5108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
5109         file.
5110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
5111         file.
5112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
5113         New file.
5114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
5115         file.
5116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
5117         file.
5118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
5119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
5120         file.
5121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
5122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
5123         file.
5124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
5125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
5126         file.
5127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
5128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
5129         VIS3 routines.
5130
5131         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5132         New file.
5133
5134         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5135
5136         * sysdeps/sparc/configure.in: New file.
5137         * sysdeps/sparc/configure: Generate.
5138         * configure.in (libc_cv_sparc_as_vis3): Substitute.
5139         * configure: Regenerate.
5140         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
5141         * config.make.in (have-as-vis3): New.
5142         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
5143         available use -Av9d instead of -Av9a.
5144         * sysdeps/sparc/sparc64/Makefile: Likewise.
5145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
5146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
5147         New file.
5148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
5149         file.
5150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
5151         New file.
5152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
5153         file.
5154         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
5155         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
5156         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
5157         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
5158         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
5159
5160         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
5161         fzeros/fnegs to load 0x80000000 into a float register instead of
5162         using the stack.
5163         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
5164
5165 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5166
5167         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5168         bits/syscall.h.
5169         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
5170         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
5171         ($(inst_includedir)/bits/syscall.h): Remove rule.
5172         ($(objpfx)bits/syscall.d): Include instead of
5173         $(objpfx)syscall-list.d.
5174         (generated): Change syscall-list.h and syscall-list.d to
5175         bits/syscall.h and bits/syscall.d.
5176
5177 2012-03-14  Roland McGrath  <roland@hack.frob.com>
5178
5179         [BZ #13846]
5180         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
5181
5182 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5183
5184         [BZ #13841]
5185         * math/s_csqrt.c: Include <float.h>.
5186         (__csqrt): Scale large or subnormal inputs.
5187         * math/s_csqrtf.c: Likewise.
5188         * math/s_csqrtl.c: Likewise.
5189         * math/libm-test.inc (csqrt_test): Add more tests.
5190         * sysdeps/i386/fpu/libm-test-ulps: Update.
5191         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5192
5193         [BZ #13840]
5194         * math/libm-test.inc (hypot_test): Add more tests.
5195
5196 2012-03-13  David S. Miller  <davem@davemloft.net>
5197
5198         [BZ #13840]
5199         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
5200         double-precision for the calculation instead of scaling.
5201
5202 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
5203
5204         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
5205         manipulate bits before adding and subtracting TWO52[sx].
5206         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
5207         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5208         Likewise.
5209         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
5210
5211 2012-03-13  David S. Miller  <davem@davemloft.net>
5212
5213         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
5214         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
5215         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
5216         rtld-global-offsets.h
5217         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5218
5219         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
5220         large parameters.
5221
5222         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
5223
5224         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
5225         'err' in the ifdef scope in which it is actually used.
5226
5227         * nss/nss_db/db-init.c: Include string.h
5228
5229 2012-03-12  David S. Miller  <davem@davemloft.net>
5230
5231         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
5232         masking out of the most significant byte of random value used.
5233         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5234         Fix coding style in previous change.
5235
5236         * sysdeps/unix/sysv/linux/kernel-features.h
5237         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
5238         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
5239         expression.
5240         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
5241         later.
5242
5243 2012-03-11  David S. Miller  <davem@davemloft.net>
5244
5245         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
5246         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
5247         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
5248         for 'resultvar' otherwise things get truncated on 64-bit.
5249
5250         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5251         Fix masking out of the most significant byte of random value used.
5252
5253         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5254
5255 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
5256
5257         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5258
5259 2012-03-09  David S. Miller  <davem@davemloft.net>
5260
5261         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
5262         variables with appropriate CPP guards.
5263         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
5264         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
5265         on resulting framesize and the management of the outregs buffer for pltexit.
5266         Preserve floating point return values across _dl_call_pltexit call.
5267         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
5268         framesize and the management of the outregs buffer for pltexit.
5269         Preserve floating point return values across _dl_call_pltexit
5270         call.
5271         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
5272         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
5273         (print_exit): Fix format string for return register value.
5274
5275 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
5276
5277         * sunrpc/Makefile (others): Add rpcgen.
5278         ($(objpfx)rpcgen): Remove special build rule and dependency on
5279         libc.
5280         * sunrpc/rpcgen.c: New file.
5281
5282 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
5283
5284         [BZ #13673]
5285         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
5286         * stdio-common/bug-vfprintf-nargs.c: Likewise.
5287         * sysdeps/i386/crti.S: Likewise.
5288         * sysdeps/i386/crtn.S: Likewise.
5289         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
5290         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
5291         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
5292         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
5293         * sysdeps/sh/crti.S: Likewise.
5294         * sysdeps/sh/crtn.S: Likewise.
5295         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5296
5297         [BZ #13673]
5298         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
5299         with URL.
5300         * locale/programs/locfile-kw.gperf: Likewise.
5301         * locale/programs/charmap-kw.h: Regenerated.
5302         * locale/programs/locfile-kw.h: Likewise.
5303
5304         [BZ #13673]
5305         * intl/plural.y: Replace FSF snail mail address with URL.
5306         * intl/plural.c: Regenerated.
5307
5308 2012-03-09  Richard Henderson  <rth@twiddle.net>
5309
5310         * include/math_private.h: Remove file.
5311         * math/math_private.h: Move file ...
5312         * sysdeps/generic/math_private.h: ... here.
5313
5314         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
5315         * sysdeps/powerpc/fpu/math_private.h: Likewise.
5316         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5317
5318         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
5319         and <math_private.h>.
5320         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5321         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5322         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5323         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5324         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5325         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
5326         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5327         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5328         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
5329         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5330         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5331         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5332         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
5333         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5334         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
5335         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
5336         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5337         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5338         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
5339         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
5340         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5341         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
5342         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
5343         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5344         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
5345         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5346         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
5347         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5348         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5349         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5350         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
5351         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5352         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5353         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5354         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5355         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5356         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5357         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5358         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5359         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5360         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
5361         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5362         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5363         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5364         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
5365         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5366         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
5367         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
5368         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5369         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5370         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
5371         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
5372         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
5373         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5374         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
5375         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5376         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5377         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
5378         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
5379         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
5380         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5381         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
5382         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5383         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5384         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5385         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5386         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5387         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5388         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
5389         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
5390         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5391         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5392         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5393         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5394         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
5395         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5396         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
5397         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5398         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
5399         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
5400         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5401         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
5402         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5403         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5404         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5405         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
5406         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
5407         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5408         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
5409         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5410         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5411         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
5412         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5413         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
5414         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
5415         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
5416         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5417         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
5418         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
5419         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5420         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
5421         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
5422         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
5423         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
5424         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5425         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
5426         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
5427         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
5428         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5429         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5430         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5431         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5432         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
5433         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5434         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5435         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5436         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5437         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5438         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5439         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5440         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5441         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5442         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5443         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
5444         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5445         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5446         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
5447         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5448         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5449         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
5450         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
5451         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5452         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5453         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
5454         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
5455         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5456         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
5457         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5458         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
5459         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5460         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5461         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5462         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5463         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
5464         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
5465         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5466         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5467         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5468         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5469         * sysdeps/ieee754/k_standard.c: Likewise.
5470         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
5471         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5472         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5473         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5474         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5475         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5476         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5477         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5478         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5479         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5480         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5481         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5482         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5483         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5484         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5485         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5486         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5487         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5488         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5489         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5490         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5491         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5492         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5493         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5494         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5495         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5496         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5497         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5498         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5499         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5500         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5501         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5502         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5503         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5504         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5505         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5506         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5507         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
5508         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5509         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5510         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5511         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5512         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5513         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5514         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5515         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5516         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5517         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5518         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5519         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5520         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5521         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5522         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5523         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5524         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5525         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5526         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
5527         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5528         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5529         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5530         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5531         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5532         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5533         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
5534         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5535         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5536         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
5537         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
5538         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
5539         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
5540         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
5541         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5542         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
5543         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
5544         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
5545         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
5546         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
5547         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
5548         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5549         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5550         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5551         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
5552         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5553         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5554         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
5555         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5556         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5557         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
5558         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5559         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5560         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
5561         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5562         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
5563         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5564         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5565         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5566         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
5567         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
5568         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
5569         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
5570         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5571         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5572         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5573         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5574         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
5575         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5576         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5577         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
5578         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
5579         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5580         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5581         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5582         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
5583         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5584         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
5585         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5586         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
5587         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5588         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5589         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
5590         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
5591         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5592         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
5593         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
5594         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5595         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5596         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5597         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5598         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5599         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5600         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5601         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5602         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5603         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
5604         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5605         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5606         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
5607         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5608         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5609         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
5610         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
5611         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5612         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
5613         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
5614         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5615         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5616         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5617         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5618         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5619         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
5620         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5621         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5622         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5623         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5624         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
5625         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
5626         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5627         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5628         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5629         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
5630         * sysdeps/ieee754/s_lib_version.c: Likewise.
5631         * sysdeps/ieee754/s_matherr.c: Likewise.
5632         * sysdeps/ieee754/s_signgam.c: Likewise.
5633         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5634         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5635         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
5636         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
5637         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
5638         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5639         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
5640         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
5641         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5642         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
5643         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
5644         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
5645         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5646         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5647         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
5648         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5649         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5650         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5651         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5652         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5653         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5654
5655 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5656
5657         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
5658         * sunrpc/rpc_main.c: Likewise.
5659         * sunrpc/rpc_svcout.c: Likewise.
5660
5661 2012-03-09  David S. Miller  <davem@davemloft.net>
5662
5663         * include/math_private.h: New file.
5664
5665 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5666
5667         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
5668         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
5669         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
5670         from <bits/socket_type.h>.
5671         (enum __socket_type): Don't define here.
5672         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
5673         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5674         bits/socket_type.h.
5675
5676         [BZ #13566]
5677         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
5678         checking __USE_GNU.
5679
5680         * Makerules ($(inst_includedir)/%.h): New rule.
5681         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
5682         (install-others): Remove variable setting.
5683         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
5684
5685 2012-03-08  Richard Henderson  <rth@twiddle.net>
5686
5687         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
5688         from macro to inline function; merge with the
5689         !__LIBC_INTERNAL_MATH_INLINES version.
5690         (__ieee754_sqrtf): Likewise.
5691
5692         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
5693         to inline function.
5694         (__rintf, __floor, __floorf): Likewise.
5695
5696         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
5697         macro to inline function.
5698         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
5699
5700         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
5701         not <math/math_private.h>.
5702
5703 2012-03-08  David S. Miller  <davem@davemloft.net>
5704
5705         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
5706         copyright year.
5707         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5708
5709 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
5710
5711         * resolv/gai_misc.c (handle_requests): Fix struct timespec
5712         normalization.
5713         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
5714         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
5715
5716 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
5717
5718         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
5719         be defined individually, they must be defined as a block.  Define
5720         S for printing a string instead of hidint the different by using a
5721         macro for adding the 'l'.
5722         * stdio-common/tst-fphex-wide.c: Adjust.
5723
5724 2012-03-07  Marek Polacek  <polacek@redhat.com>
5725
5726         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
5727
5728 2012-03-08  Marek Polacek  <polacek@redhat.com>
5729
5730         [BZ #13806]
5731         * stdio-common/Makefile (tests): Add tst-fphex-wide.
5732         * stdio-common/tst-fphex.c: Define a few macros to make the
5733         test reusable.  Use them.
5734         * stdio-common/tst-fphex-wide.c: New file.
5735
5736 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
5737
5738         [BZ #6911]
5739         * manual/macros.texi (gnusystems): New macro.
5740         (nongnusystems): Likewise.
5741         (gnulinuxhurdsystems): Likewise.
5742         (gnuhurdsystems): Likewise..
5743         (gnulinuxsystems): Likewise.
5744         * manual/charset.texi: Use new macros or @theglibc{} to refer to
5745         variants of the GNU system, not "GNU system".
5746         * manual/conf.texi: Likewise.
5747         * manual/errno.texi: Likewise.  Update example of errno macro
5748         expansion.
5749         * manual/filesys.texi: Likewise.
5750         (getumask): Document as specific to GNU/Hurd.
5751         * manual/install.texi: Likewise.  Reword some references to
5752         GNU/Linux.
5753         * manual/intro.texi: Likewise.
5754         * manual/io.texi: Likewise.
5755         (File Name Portability): Detail which constraints are inapplicable
5756         to all GNU systems and which are only inapplicable to GNU/Hurd.
5757         * manual/job.texi: Likewise.
5758         * manual/llio.texi: Likewise.
5759         (O_NOCTTY): Document as present on GNU/Linux.
5760         * manual/maint.texi: Likewise.
5761         * manual/memory.texi: Likewise.
5762         * manual/pattern.texi: Likewise.
5763         * manual/pipe.texi: Likewise.
5764         * manual/process.texi: Likewise.
5765         * manual/resource.texi: Likewise.
5766         (RUSAGE_CHILDREN): Remove statement about specifying a particular
5767         child on GNU/Hurd.
5768         * manual/setjmp.texi: Likewise.
5769         * manual/signal.texi: Likewise.
5770         * manual/startup.texi: Likewise.
5771         * manual/stdio.texi: Likewise.
5772         * manual/terminal.texi: Likewise.
5773         (ONLCR): Document as POSIX.
5774         (OXTABS): Document availability on GNU/Linux as XTABS.
5775         (ONOEOT): Document availability separately from other bits.
5776         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
5777         * manual/time.texi: Likewise.
5778         * manual/users.texi: Likewise.
5779         * INSTALL: Regenerated.
5780         * sysdeps/gnu/errlist.c: Regenerated.
5781
5782         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
5783         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
5784         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
5785         puts.
5786         * configure: Regenerated.
5787
5788 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
5789
5790         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
5791         default includes instead of AC_HEADER_CHECK.
5792         * sysdeps/i386/configure: Regenerated.
5793
5794         [BZ #10716]
5795         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
5796         * math/s_cacoshf.c (__cacoshf): Likewise.
5797         * math/s_cacoshl.c (__cacoshl): Likewise.
5798         * math/s_casinh.c (__casinh): Set signs of result from argument.
5799         * math/s_casinhf.c (__casinhf): Likewise.
5800         * math/s_casinhl.c (__casinhl): Likewise.
5801         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
5802         (casinh_test): Add more tests.
5803         * sysdeps/i386/fpu/libm-test-ulps: Update.
5804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5805
5806 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
5807
5808         * po/zh_TW.po: Update from translation team.
5809
5810         * login/Makefile (distribute): Remove variable.
5811         * catgets/Makefile: Likewise.
5812         * mach/Makefile: Likewise.
5813         * malloc/Makefile: Likewise.
5814         * misc/Makefile: Likewise.
5815         * iconv/Makefile: Likewise.
5816         * nscd/Makefile: Likewise.
5817         * hurd/Makefile: Likewise.
5818         * manual/Makefile: Likewise.
5819         * locale/Makefile: Likewise.
5820         * intl/Makefile: Likewise.
5821         * conform/Makefile: Likewise.
5822         * nss/Makefile: Likewise.
5823         * time/Makefile: Likewise.
5824         * soft-fp/Makefile: Likewise.
5825         * dirent/Makefile: Likewise.
5826         * gmon/Makefile: Likewise.
5827         * po/Makefile: Likewise.
5828         * rt/Makefile: Likewise.
5829         * socket/Makefile: Likewise.
5830         * math/Makefile: Likewise.
5831         * signal/Makefile: Likewise.
5832         * debug/Makefile: Likewise.
5833         * elf/Makefile: Likewise.
5834         * timezone/Makefile: Likewise.
5835         * stdlib/Makefile: Likewise.
5836         * iconvdata/Makefile: Likewise.
5837         * sunrpc/Makefile: Likewise.
5838         * io/Makefile: Likewise.
5839         * argp/Makefile: Likewise.
5840         * inet/Makefile: Likewise.
5841         * hesiod/Makefile: Likewise.
5842         * grp/Makefile: Likewise.
5843         * csu/Makefile: Likewise.
5844         * wctype/Makefile: Likewise.
5845         * crypt/Makefile: Likewise.
5846         * libio/Makefile: Likewise.
5847         * string/Makefile: Likewise.
5848         * nis/Makefile: Likewise.
5849         * resolv/Makefile: Likewise.
5850         * stdio-common/Makefile: Likewise.
5851         * wcsmbs/Makefile: Likewise.
5852         * dlfcn/Makefile: Likewise.
5853         * posix/Makefile: Likewise.
5854
5855         [BZ #6959]
5856         * timezone/Makefile: Don't install timezone files, just the programs
5857         and scripts.
5858
5859 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
5860
5861         * nss/databases.def: Add missing gshadow entry.
5862
5863         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
5864
5865 2012-03-06  Marek Polacek  <polacek@redhat.com>
5866
5867         [BZ #13726]
5868         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
5869         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5870         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
5871         * stdio-common/tst-long-dbl-fphex.c: New file.
5872
5873 2012-03-06  David S. Miller  <davem@davemloft.net>
5874
5875         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5876         (set_obp_int): New function.
5877         (get_obp_int): New function.
5878         (__get_clockfreq_via_dev_openprom): Likewise.
5879         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5880         Avoid unused variable warnings on 'val' and use builtin_expect.
5881         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
5882         __builtin_expect.
5883         (INLINE_CLONE_SYSCALL): Likewise.
5884
5885 2012-03-05  David S. Miller  <davem@davemloft.net>
5886
5887         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5888
5889 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
5890
5891         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5892
5893         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
5894         only for |x| >= 40.
5895         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5896
5897 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5898
5899         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
5900         Replace gettimeofday with __vdso_gettimeofday.
5901
5902         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5903         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
5904         __vdso_clock_gettime and __vdso_getcpu.
5905
5906         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
5907         time with __vdso_time.
5908
5909 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5910
5911         * manual/lang.texi (size_t): Note types to which size_t may be
5912         equivalent with the GNU C Library, but do not describe when
5913         differences between them are significant.
5914
5915 2012-03-05  Andreas Jaeger  <aj@suse.de>
5916
5917         * sysdeps/i386/fpu/libm-test-ulps: Update.
5918
5919 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5920
5921         [BZ #3976]
5922         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
5923         (__ieee754_pow): Save and restore rounding mode and use
5924         round-to-nearest for main computations.
5925         * math/libm-test.inc (pow_test_tonearest): New function.
5926         (pow_test_towardzero): Likewise.
5927         (pow_test_downward): Likewise.
5928         (pow_test_upward): Likewise.
5929         (main): Call the new functions.
5930         * sysdeps/i386/fpu/libm-test-ulps: Update.
5931         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5932
5933         [BZ #3976]
5934         * math/libm-test.inc (cosh_test_tonearest): New function.
5935         (cosh_test_towardzero): Likewise.
5936         (cosh_test_downward): Likewise.
5937         (cosh_test_upward): Likewise.
5938         (sinh_test_tonearest): Likewise.
5939         (sinh_test_towardzero): Likewise.
5940         (sinh_test_downward): Likewise.
5941         (sinh_test_upward): Likewise.
5942         (main): Call the new functions.
5943         * sysdeps/i386/fpu/libm-test-ulps: Update.
5944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5945
5946 2012-03-05  Tom de Vries  <tom@codesourcery.com>
5947
5948         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
5949         default stack guard is set in last bytes.
5950         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
5951
5952 2012-03-05  Kees Cook  <keescook@chromium.org>
5953
5954         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
5955
5956         [BZ #13656]
5957         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
5958         possibly allocate from heap instead of stack.
5959         * stdio-common/bug-vfprintf-nargs.c: New file.
5960         * stdio-common/Makefile (tests): Add nargs overflow test.
5961
5962 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
5963
5964         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5965
5966 2012-03-03  Marek Polacek  <polacek@redhat.com>
5967
5968         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
5969         * math/math_private.h: Likewise.
5970         * stdlib/tst-strtod.c: Likewise.
5971         * sysdeps/i386/i486/bits/atomic.h: Likewise.
5972         * sysdeps/x86_64/bits/atomic.h: Likewise.
5973
5974 2012-03-02  David S. Miller  <davem@davemloft.net>
5975
5976         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
5977         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
5978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
5979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
5980         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
5981         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
5982         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
5983         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
5984
5985 2012-03-02  Roland McGrath  <roland@hack.frob.com>
5986
5987         [BZ #13792]
5988         * manual/examples/README: New file, says the example source files
5989         can be used under GPL>=2.
5990         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
5991         line containing just "*/".
5992         * manual/examples/add.c: Add copyright header (GPL>=2).
5993         * manual/examples/argp-ex1.c: Likewise.
5994         * manual/examples/argp-ex2.c: Likewise.
5995         * manual/examples/argp-ex3.c: Likewise.
5996         * manual/examples/argp-ex4.c: Likewise.
5997         * manual/examples/atexit.c: Likewise.
5998         * manual/examples/db.c: Likewise.
5999         * manual/examples/dir.c: Likewise.
6000         * manual/examples/dir2.c: Likewise.
6001         * manual/examples/execinfo.c: Likewise.
6002         * manual/examples/filecli.c: Likewise.
6003         * manual/examples/filesrv.c: Likewise.
6004         * manual/examples/fmtmsgexpl.c: Likewise.
6005         * manual/examples/genpass.c: Likewise.
6006         * manual/examples/inetcli.c: Likewise.
6007         * manual/examples/inetsrv.c: Likewise.
6008         * manual/examples/isockad.c: Likewise.
6009         * manual/examples/longopt.c: Likewise.
6010         * manual/examples/memopen.c: Likewise.
6011         * manual/examples/memstrm.c: Likewise.
6012         * manual/examples/mkfsock.c: Likewise.
6013         * manual/examples/mkisock.c: Likewise.
6014         * manual/examples/mygetpass.c: Likewise.
6015         * manual/examples/pipe.c: Likewise.
6016         * manual/examples/popen.c: Likewise.
6017         * manual/examples/rprintf.c: Likewise.
6018         * manual/examples/search.c: Likewise.
6019         * manual/examples/select.c: Likewise.
6020         * manual/examples/setjmp.c: Likewise.
6021         * manual/examples/sigh1.c: Likewise.
6022         * manual/examples/sigusr.c: Likewise.
6023         * manual/examples/stpcpy.c: Likewise.
6024         * manual/examples/strdupa.c: Likewise.
6025         * manual/examples/strftim.c: Likewise.
6026         * manual/examples/strncat.c: Likewise.
6027         * manual/examples/subopt.c: Likewise.
6028         * manual/examples/swapcontext.c: Likewise.
6029         * manual/examples/termios.c: Likewise.
6030         * manual/examples/testopt.c: Likewise.
6031         * manual/examples/testpass.c: Likewise.
6032         * manual/examples/timeval_subtract.c: Likewise.
6033
6034         [BZ #13792]
6035         * manual/time.texi (Elapsed Time): Move timeval_subtract example
6036         function to ...
6037         * manual/timeval_subtract.c.texi: ... here, new file.
6038
6039 2012-03-02  David S. Miller  <davem@davemloft.net>
6040
6041         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
6042
6043 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
6044
6045         [BZ #3976]
6046         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
6047         (__sin): Save and restore rounding mode and use round-to-nearest
6048         for all computations.
6049         (__cos): Save and restore rounding mode and use round-to-nearest
6050         for all computations.
6051         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
6052         <fenv.h>.
6053         (tan): Save and restore rounding mode and use round-to-nearest for
6054         all computations.
6055         * math/libm-test.inc (cos_test_tonearest): New function.
6056         (cos_test_towardzero): Likewise.
6057         (cos_test_downward): Likewise.
6058         (cos_test_upward): Likewise.
6059         (sin_test_tonearest): Likewise.
6060         (sin_test_towardzero): Likewise.
6061         (sin_test_downward): Likewise.
6062         (sin_test_upward): Likewise.
6063         (tan_test_tonearest): Likewise.
6064         (tan_test_towardzero): Likewise.
6065         (tan_test_downward): Likewise.
6066         (tan_test_upward): Likewise.
6067         (main): Call the new functions.
6068         * sysdeps/i386/fpu/libm-test-ulps: Update.
6069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6070
6071         [BZ #10135]
6072         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
6073         small n, then large n, before computing and testing k+n.
6074         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6075         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6076         Likewise.
6077         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6078         Likewise.
6079         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
6080         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6081         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6082         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6083         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6084         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6085         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6086         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
6087         * math/libm-test.inc (scalbn_test): Add more tests.
6088         (scalbln_test): Likewise.
6089
6090         * manual/filesys.texi (mode_t): Describe constraints on size and
6091         signedness, not exact equivalence to a particular type.
6092         (ino_t): Likewise.
6093         (ino64_t): Likewise.
6094         (dev_t): Likewise.
6095         (nlink_t): Likewise.
6096         (blkcnt_t): Likewise.
6097         (blkcnt64_t): Likewise.
6098         * manual/llio.texi (off_t): Likewise.
6099
6100         [BZ #3976]
6101         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
6102         (__ieee754_exp): Save and restore rounding mode and use
6103         round-to-nearest for all computations.
6104         * math/libm-test.inc (exp_test_tonearest): New function.
6105         (exp_test_towardzero): Likewise.
6106         (exp_test_downward): Likewise.
6107         (exp_test_upward): Likewise.
6108         (main): Call the new functions.
6109         * sysdeps/i386/fpu/libm-test-ulps: Update.
6110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6111
6112 2012-03-01  Chris Demetriou  <cgd@google.com>
6113
6114         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
6115         have predictable order.
6116
6117 2012-03-01  David S. Miller  <davem@davemloft.net>
6118
6119         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
6120
6121         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
6122         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
6123         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
6124         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
6125
6126         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
6127         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
6128         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
6129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
6130         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
6131         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
6132         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
6133         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
6134         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
6135
6136         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6137
6138         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
6139         * sysdeps/sparc/fpu/libm-test-ulps: to here.
6140         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
6141
6142         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
6143         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6144         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6145         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
6146         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
6147         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
6148         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
6149         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6150         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6151         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
6152         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
6153         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6154         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6155         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6156         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6157         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6158         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
6159         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
6160         * sysdeps/sparc/elf/configure: Regenerated.
6161
6162 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
6163
6164         * configure.in (AS, LD): Require binutils 2.20 or later.
6165         * configure: Regenerated.
6166         * manual/install.texi (Tools for Compilation): Give binutils 2.20
6167         as required minimum version.
6168         * INSTALL: Regenerated.
6169
6170         [BZ #2541]
6171         [BZ #4108]
6172         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
6173         before squaring exponent.
6174         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
6175         bottom long double and 27 bits of top long double before squaring
6176         exponent.
6177         * math/libm-test.inc (erfc_test): Add more tests.
6178         * sysdeps/i386/fpu/libm-test-ulps: Update.
6179         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6181
6182 2012-03-01  Kai Tietz  <ktietz@redhat.com>
6183
6184         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
6185         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
6186         containing bit-fields.
6187         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6188         * soft-fp/single.h (_FP_UNION_S): Likewise.
6189         * soft-fp/double.h (_FP_UNION_D): Likewise.
6190
6191 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6192
6193         [BZ #13786]
6194         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
6195         not include ../strcmp.S.
6196         [USE_AS_STRNCASECMP_L]: Likewise.
6197         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
6198         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
6199         * sysdeps/i386/i686/multiarch/strncase_l-c.c
6200         (__strncasecmp_l_ia32): Define as alias to
6201         __strncasecmp_l_nonascii.
6202
6203         [BZ #5794]
6204         * math/libm-test.inc (expm1_test): Add test for bug 5794.
6205         * sysdeps/i386/fpu/libm-test-ulps: Update.
6206         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6207
6208         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
6209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6210
6211 2012-02-29  Jeff Law  <law@redhat.com>
6212
6213         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
6214         out of bounds read.
6215
6216 2012-02-29  Marek Polacek  <polacek@redhat.com>
6217
6218         [BZ #13706]
6219         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
6220         * elf/Makefile: Add rules to run tst-unused-dep.out.
6221
6222 2012-02-28  David S. Miller  <davem@davemloft.net>
6223
6224         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
6225         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
6226         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
6227         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
6228         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
6229         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
6230
6231 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6232
6233         * math/libm-test.inc (llround_test): Move one test from
6234         lround_test.  Use TEST_f_L in moved test.
6235         (lround_test): Move misplaced test to llround_test.  Add testcase
6236         from bug 2561.
6237
6238 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
6239
6240         * sysdeps/x86_64/fpu/e_expf.S: New file.
6241         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
6242
6243 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
6244
6245         [BZ #13637]
6246         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
6247         of remain_len that may cause incomplete multi-byte character and
6248         false match.
6249         * posix/bug-regex33.c: New file.
6250         * posix/Makefile (tests): Add bug-regex33.
6251
6252 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
6253
6254         * manual/macros.texi: New file.
6255         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
6256         * manual/libc.texinfo: Include macros.texi.
6257         * manual/creatute.texi: Likewise.
6258         * manual/install.texi: Likewise.
6259         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
6260         @glibcadj{} in references to the GNU C Library.
6261         * manual/charset.texi: Likewise.
6262         * manual/conf.texi: Likewise.
6263         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
6264         when not using those macros.
6265         * manual/creature.texi: Likewise.
6266         * manual/crypt.texi: Likewise.
6267         * manual/errno.texi: Likewise.
6268         * manual/filesys.texi: Likewise.
6269         * manual/header.texi: Likewise.
6270         * manual/install.texi: Likewise.
6271         * manual/intro.texi: Likewise.
6272         * manual/io.texi: Likewise.
6273         * manual/job.texi: Likewise.
6274         * manual/lang.texi: Likewise.
6275         * manual/libc.texiinfo: Likewise.
6276         * manual/llio.texi: Likewise.
6277         * manual/locale.texi: Likewise.
6278         * manual/maint.texi: Likewise.
6279         * manual/math.texi: Likewise.
6280         * manual/memory.texi: Likewise.
6281         * manual/message.texi: Likewise.
6282         * manual/nss.texi: Likewise.
6283         * manual/pattern.texi: Likewise.
6284         * manual/process.texi: Likewise.
6285         * manual/resource.texi: Likewise.
6286         * manual/search.texi: Likewise.
6287         * manual/setjmp.texi: Likewise.
6288         * manual/signal.texi: Likewise.
6289         * manual/socket.texi: Likewise.
6290         * manual/startup.texi: Likewise.
6291         * manual/stdio.texi: Likewise.
6292         * manual/string.texi: Likewise.
6293         * manual/sysinfo.texi: Likewise.
6294         * manual/syslog.texi: Likewise.
6295         * manual/terminal.texi: Likewise.
6296         * manual/time.texi: Likewise.
6297         * manual/users.texi: Likewise.
6298         * INSTALL: Regenerated.
6299         * NOTES: Regenerated.
6300         * sysdeps/gnu/errlist.c: Regenerated.
6301
6302 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
6303
6304         * include/dirent.h: Include <dirstream.h> before
6305         <dirent/dirent.h>.
6306
6307 2012-02-28  David S. Miller  <davem@davemloft.net>
6308
6309         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
6310         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
6311         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
6312         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
6313
6314 2012-02-27  David S. Miller  <davem@davemloft.net>
6315
6316         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
6317         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
6318         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
6319         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
6320
6321         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
6322         frame pointer instead of stack pointer relative arg slot.
6323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6324         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6325         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6326
6327 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
6328
6329         [BZ #3992]
6330         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
6331
6332 2012-02-27  David S. Miller  <davem@davemloft.net>
6333
6334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
6335         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
6338         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6339         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6340         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
6341         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
6342
6343 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6344
6345         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
6346         later.  Allow versions 5-9.
6347         * configure: Regenerated.
6348         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
6349         required minimum version and 4.6 as recommended version.  Do not
6350         mention bugs in GCC 2.7 and 2.8.
6351         * INSTALL: Regenerated.
6352
6353 2012-02-27  David S. Miller  <davem@davemloft.net>
6354
6355         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
6356         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
6357         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
6358         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
6359         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
6360         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
6361         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
6362         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
6363
6364         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
6365         manipulate bits before adding and subtracting TWO112[sx].
6366         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6367
6368 2012-02-27  Roland McGrath  <roland@hack.frob.com>
6369
6370         [BZ #13775]
6371         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
6372         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
6373         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
6374         being in POSIX, because they are in 1003.1-2008.
6375
6376         * rt/tst-aio.c: Include <fcntl.h>.
6377         * rt/tst-aio7.c: Likewise.
6378         * rt/tst-aio64.c: Likewise.
6379
6380         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
6381
6382 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6383
6384         * manual/install.texi (--with-headers): Describe headers as
6385         interface headers, not private headers.
6386         (Specific advice for GNU/Linux systems): Describe use of headers
6387         from "make headers_install", not private headers from older
6388         kernels.
6389         * INSTALL: Regenerated.
6390         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
6391         Change to 2.6.19.
6392         * sysdeps/unix/sysv/linux/configure: Regenerated.
6393
6394         * manual/llio.texi (fclean): Remove documentation.
6395
6396         * manual/Makefile (libc-texi-generated): New variable.  Include
6397         version.texi.
6398         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
6399         $(libc-texi-generated), not duplicated list of files.
6400         (version.texi, stamp-version): New rules.
6401         (realclean): Remove $(libc-texi-generated), not individual files
6402         from that list.  Do not remove dir-add.texinfo.
6403         * manual/libc.texinfo: Comment out uses of edition numbers and
6404         references to printed manual.  Remove last-updated dates.
6405         (EDITION): Comment out.
6406         (ISBN): Likewise.
6407         (VERSION, UPDATED): Remove.
6408         (version.texi): Include.
6409
6410 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6411
6412         * sysdeps/posix/spawni.c: Include <signal.h>.
6413         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
6414         * sysdeps/pthread/aio_fsync.c: Likewise.
6415
6416 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
6417
6418         * conform/Makefile (tests): Run only when not cross-compiling and
6419         when fast-check is not defined.
6420
6421         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
6422         * conform/data/limits.h-data: Fixes for POSIX2008.
6423         * conform/run-conformtest.sh: Run all tests.
6424         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
6425         headers.
6426         * include/bits/dlfcn.h: Likewise.
6427         * include/langinfo.h: Likewise.
6428         * include/monetary.h: Likewise.
6429         * include/sys/poll.h: Likewise.
6430
6431         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
6432         for __USE_GNU.
6433         * posix/spawn.h: Define __need_sigset_t.
6434         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
6435         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
6436         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
6437         to get sigevent_t only.
6438         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
6439         only for __USE_GNU.
6440         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6441         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6442         process_vm_writev only for __USE_GNU.
6443         * termios/termios.h: Declare tcgetsid also for POSIX2008.
6444
6445         * conform/Makefile: For now ignore errors from run-conformtest.
6446         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
6447         POSIX to avoid namespace pollution.  Don't prepend headers.
6448         * conform/data/aio.h-data: Fixes for POSIX testing.
6449         * conform/data/fcntl.h-data: Likewise.
6450         * conform/data/glob.h-data: Likewise.
6451         * conform/data/grp.h-data: Likewise.
6452         * conform/data/pthread.h-data: Likewise.
6453         * conform/data/pwd.h-data: Likewise.
6454         * conform/data/signal.h-data: Likewise.
6455         * conform/data/spawn.h-data: Likewise.
6456         * conform/data/stdio.h-data: Likewise.
6457         * conform/data/stdlib.h-data: Likewise.
6458         * conform/data/stropts.h-data: Likewise.
6459         * conform/data/sys/mman.h-data: Likewise.
6460         * conform/data/sys/stat.h-data: Likewise.
6461         * conform/data/sys/types.h-data: Likewise.
6462         * conform/data/sys/wait.h-data: Likewise.
6463         * conform/data/time.h-data: Likewise.
6464         * conform/data/unistd.h-data: Likewise.
6465         * conform/data/utime.h-data: Likewise.
6466
6467         * io/sys/stat.h: fchmod was always in POSIX.
6468         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
6469         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
6470         * rt/aio.h: Define __need_timespec before including <time.h>.
6471         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
6472         struct.  Add forward declaration of pthread_attr_t and use it in
6473         sigevent.
6474         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6475         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6476         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
6477         always remove CLK_TCK definition.
6478
6479 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
6480
6481         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
6482
6483 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
6484
6485         * conform/run-conformtest.sh: New file.
6486         * conform/Makefile: Run run-conformtest for tests.
6487         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
6488         support.
6489
6490         * conform/data/uchar.h-data: New file.
6491         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
6492         * conform/data/arpa/inet.h-data: Likewise.
6493         * conform/data/assert.h-data: Likewise.
6494         * conform/data/complex.h-data: Likewise.
6495         * conform/data/cpio.h-data: Likewise.
6496         * conform/data/ctype.h-data: Likewise.
6497         * conform/data/dirent.h-data: Likewise.
6498         * conform/data/dlfcn.h-data: Likewise.
6499         * conform/data/errno.h-data: Likewise.
6500         * conform/data/fcntl.h-data: Likewise.
6501         * conform/data/float.h-data: Likewise.
6502         * conform/data/fmtmsg.h-data: Likewise.
6503         * conform/data/fnmatch.h-data: Likewise.
6504         * conform/data/ftw.h-data: Likewise.
6505         * conform/data/glob.h-data: Likewise.
6506         * conform/data/grp.h-data: Likewise.
6507         * conform/data/iconv.h-data: Likewise.
6508         * conform/data/inttypes.h-data: Likewise.
6509         * conform/data/langinfo.h-data: Likewise.
6510         * conform/data/libgen.h-data: Likewise.
6511         * conform/data/limits.h-data: Likewise.
6512         * conform/data/locale.h-data: Likewise.
6513         * conform/data/math.h-data: Likewise.
6514         * conform/data/monetary.h-data: Likewise.
6515         * conform/data/mqueue.h-data: Likewise.
6516         * conform/data/ndbm.h-data: Likewise.
6517         * conform/data/net/if.h-data: Likewise.
6518         * conform/data/netdb.h-data: Likewise.
6519         * conform/data/netinet/in.h-data: Likewise.
6520         * conform/data/nl_types.h-data: Likewise.
6521         * conform/data/poll.h-data: Likewise.
6522         * conform/data/pthread.h-data: Likewise.
6523         * conform/data/pwd.h-data: Likewise.
6524         * conform/data/regex.h-data: Likewise.
6525         * conform/data/sched.h-data: Likewise.
6526         * conform/data/search.h-data: Likewise.
6527         * conform/data/semaphore.h-data: Likewise.
6528         * conform/data/setjmp.h-data: Likewise.
6529         * conform/data/signal.h-data: Likewise.
6530         * conform/data/spawn.h-data: Likewise.
6531         * conform/data/stdarg.h-data: Likewise.
6532         * conform/data/stdio.h-data: Likewise.
6533         * conform/data/stdlib.h-data: Likewise.
6534         * conform/data/string.h-data: Likewise.
6535         * conform/data/strings.h-data: Likewise.
6536         * conform/data/stropts.h-data: Likewise.
6537         * conform/data/sys/ipc.h-data: Likewise.
6538         * conform/data/sys/mman.h-data: Likewise.
6539         * conform/data/sys/msg.h-data: Likewise.
6540         * conform/data/sys/resource.h-data: Likewise.
6541         * conform/data/sys/select.h-data: Likewise.
6542         * conform/data/sys/sem.h-data: Likewise.
6543         * conform/data/sys/shm.h-data: Likewise.
6544         * conform/data/sys/socket.h-data: Likewise.
6545         * conform/data/sys/stat.h-data: Likewise.
6546         * conform/data/sys/statvfs.h-data: Likewise.
6547         * conform/data/sys/time.h-data: Likewise.
6548         * conform/data/sys/timeb.h-data: Likewise.
6549         * conform/data/sys/times.h-data: Likewise.
6550         * conform/data/sys/types.h-data: Likewise.
6551         * conform/data/sys/uio.h-data: Likewise.
6552         * conform/data/sys/un.h-data: Likewise.
6553         * conform/data/sys/utsname.h-data: Likewise.
6554         * conform/data/sys/wait.h-data: Likewise.
6555         * conform/data/syslog.h-data: Likewise.
6556         * conform/data/tar.h-data: Likewise.
6557         * conform/data/termios.h-data: Likewise.
6558         * conform/data/utime.h-data: Likewise.
6559         * conform/data/utmpx.h-data: Likewise.
6560         * conform/data/varargs.h-data: Likewise.
6561         * conform/data/wchar.h-data: Likewise.
6562         * conform/data/wctype.h-data: Likewise.
6563         * conform/data/wordexp.h-data: Likewise.
6564
6565         * include/stropts.h: New file.
6566         * include/uchar.h: New file.
6567         * include/aio.h: Changes to allow conformtest.pl to use the headers.
6568         * include/assert.h: Likewise.
6569         * include/ctype.h: Likewise.
6570         * include/dirent.h: Likewise.
6571         * include/dlfcn.h: Likewise.
6572         * include/fcntl.h: Likewise.
6573         * include/fnmatch.h: Likewise.
6574         * include/glob.h: Likewise.
6575         * include/grp.h: Likewise.
6576         * include/libio.h: Likewise.
6577         * include/locale.h: Likewise.
6578         * include/math.h: Likewise.
6579         * include/net/if.h: Likewise.
6580         * include/netdb.h: Likewise.
6581         * include/netinet/in.h: Likewise.
6582         * include/pthread.h: Likewise.
6583         * include/pwd.h: Likewise.
6584         * include/regex.h: Likewise.
6585         * include/sched.h: Likewise.
6586         * include/search.h: Likewise.
6587         * include/setjmp.h: Likewise.
6588         * include/signal.h: Likewise.
6589         * include/stdio.h: Likewise.
6590         * include/stdlib.h: Likewise.
6591         * include/string.h: Likewise.
6592         * include/sys/cdefs.h: Likewise.
6593         * include/sys/mman.h: Likewise.
6594         * include/sys/msg.h: Likewise.
6595         * include/sys/resource.h: Likewise.
6596         * include/sys/select.h: Likewise.
6597         * include/sys/socket.h: Likewise.
6598         * include/sys/stat.h: Likewise.
6599         * include/sys/statvfs.h: Likewise.
6600         * include/sys/time.h: Likewise.
6601         * include/sys/times.h: Likewise.
6602         * include/sys/uio.h: Likewise.
6603         * include/sys/utsname.h: Likewise.
6604         * include/sys/wait.h: Likewise.
6605         * include/termios.h: Likewise.
6606         * include/time.h: Likewise.
6607         * include/ulimit.h: Likewise.
6608         * include/unistd.h: Likewise.
6609         * include/utime.h: Likewise.
6610         * include/wchar.h: Likewise.
6611         * include/wctype.h: Likewise.
6612         * include/wordexp.h: Likewise.
6613
6614         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
6615
6616         * time/time.h: TIME_UTC must be a macro.
6617         Make timespec_get available for ISO C11 only as well.
6618
6619 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
6620
6621         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
6622         Reported by Peng Haitao <penght@cn.fujitsu.com>.
6623
6624 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6625
6626         * configure.in: Use -o not -a in test for unsupported multi-arch.
6627
6628 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6629
6630         * manual/texinfo.tex: Update to version 2012-01-19.16.
6631
6632 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6633
6634         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
6635
6636 2012-02-24  Roland McGrath  <roland@hack.frob.com>
6637
6638         [BZ #13738]
6639         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
6640         * manual/fdl-1.3.texi: New file.
6641         * manual/fdl-1.1.texi: File removed.
6642
6643         [BZ #13738]
6644         * manual/libc.texinfo (FDL_VERSION): New @set.
6645         Use it for mention of FDL in cover text.
6646         (Documentation License): Use it in @include file name.
6647
6648 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6649             Roland McGrath  <roland@hack.frob.com>
6650
6651         [BZ #5461]
6652         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
6653         not LONG_LONG_MAX and LONG_LONG_MIN.
6654         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
6655         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
6656         name.
6657         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
6658
6659 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6660
6661         [BZ #2547]
6662         [BZ #11365]
6663         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
6664         manipulate bits before adding and subtracting TWO23[sx].
6665         * math/libm-test.inc (nearbyint_test): Add more tests.
6666
6667 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6668
6669         [BZ #2548]
6670         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
6671         bits before adding and subtracting TWO23[sx].
6672         * math/libm-test.inc (rint_test): Add more tests.
6673         (rint_test_tonearest): Likewise.
6674         (rint_test_towardzero): Likewise.
6675         (rint_test_downward): Likewise.
6676         (rint_test_upward: Likewise.
6677
6678 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6679
6680         [BZ #10110]
6681         * include/stdc-predef.h: New file.  Extracted from features.h.
6682         * include/features.h: Include stdc-predef.h.
6683         * Makefile (headers): Add stdc-predef.h.
6684         * CONFORMANCE (Compiler limitations): Update.
6685
6686 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6687
6688         * manual/libc.texinfo (VERSION, UPDATED): Revert.
6689
6690 2012-02-21  David S. Miller  <davem@davemloft.net>
6691
6692         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
6693         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6694
6695 2012-02-20  David S. Miller  <davem@davemloft.net>
6696
6697         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
6698         using a normal save/restore sequence, rather than allocating a
6699         dummy stack frame just to store a frame pointer and restore.
6700         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6701
6702 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6703
6704         * manual/install.texi: Fix stray word in line-wrapped comment.
6705
6706 2012-02-20  David S. Miller  <davem@davemloft.net>
6707
6708         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
6709         both binutils and gcc support GOTDATA.
6710
6711         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
6712         "rd %pc" in the PIC register setup sequences.
6713
6714         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
6715         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
6716         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6717         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6718         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6719         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6720         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6721         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6722         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6723         (SYSCALL_ERROR_HANDLER): Likewise.
6724         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6725         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6726         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6727         (SYSCALL_ERROR_HANDLER): Likewise.
6728
6729         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
6730         (HAVE_GCC_GOTDATA): New.
6731         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
6732         relocation support in both binutils and gcc.
6733         * sysdeps/sparc/elf/configure: Regenerate.
6734
6735         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
6736         * sysdeps/sparc/sparc32/elf/configure: Delete.
6737         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
6738         * sysdeps/sparc/sparc64/elf/configure: Delete.
6739         * sysdeps/sparc/elf/configure.in: New file.
6740         * sysdeps/sparc/elf/configure: Generate.
6741
6742         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
6743         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
6744         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6745         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
6746         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
6747
6748 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6749
6750         * manual/install.texi: Do not mention specific glibc version
6751         numbers.
6752         * manual/libc.texinfo (VERSION, UPDATED): Update.
6753         (@copying): Use @copyright{} and range of years.
6754
6755 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6756
6757         [BZ #13695]
6758         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
6759         [crti.S not in sysdirs] (generated): Do not append.
6760         [crti.S not in sysdirs] (omit-deps): Likewise.
6761         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
6762         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
6763         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
6764         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
6765         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
6766         Likewise.
6767         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
6768         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
6769         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
6770         * csu/defs.awk: Remove file.
6771         * sysdeps/generic/initfini.c: Likewise.
6772         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
6773         variable.
6774         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
6775         Likewise.
6776
6777 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6778
6779         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
6780         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
6781         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
6782         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
6783         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6784         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
6785         <bits/epoll.h>.
6786         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
6787         (__EPOLL_PACKED): Define to empty if not defined by
6788         <bits/epoll.h>.
6789         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
6790         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6791         bits/epoll.h.
6792
6793 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6794
6795         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
6796         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
6797         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
6798         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
6799         <bits/timerfd.h>.
6800         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
6801         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6802         bits/timerfd.h.
6803
6804 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6805
6806         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
6807         in C locale.
6808         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6809         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6810         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
6811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6812
6813 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
6814
6815         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6816         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6817
6818 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
6819
6820         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
6821         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
6822         defined.
6823         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
6824         Likewise.
6825         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
6826         entry for 2.16.
6827
6828 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
6829
6830         * math/w_acos.c: Use non-signaling floating-point comparisons.
6831         * math/w_acosf.c: Likewise.
6832         * math/w_acosh.c: Likewise.
6833         * math/w_acoshf.c: Likewise.
6834         * math/w_acoshl.c: Likewise.
6835         * math/w_acosl.c: Likewise.
6836         * math/w_asin.c: Likewise.
6837         * math/w_asinf.c: Likewise.
6838         * math/w_asinl.c: Likewise.
6839         * math/w_atanh.c: Likewise.
6840         * math/w_atanhf.c: Likewise.
6841         * math/w_atanhl.c: Likewise.
6842         * math/w_exp2.c: Likewise.
6843         * math/w_exp2f.c: Likewise.
6844         * math/w_exp2l.c: Likewise.
6845         * math/w_j0.c: Likewise.
6846         * math/w_j0f.c: Likewise.
6847         * math/w_j0l.c: Likewise.
6848         * math/w_j1.c: Likewise.
6849         * math/w_j1f.c: Likewise.
6850         * math/w_j1l.c: Likewise.
6851         * math/w_jn.c: Likewise.
6852         * math/w_jnf.c: Likewise.
6853         * math/w_log.c: Likewise.
6854         * math/w_log10.c: Likewise.
6855         * math/w_log10f.c: Likewise.
6856         * math/w_log10l.c: Likewise.
6857         * math/w_log2.c: Likewise.
6858         * math/w_log2f.c: Likewise.
6859         * math/w_log2l.c: Likewise.
6860         * math/w_logf.c: Likewise.
6861         * math/w_logl.c: Likewise.
6862         * math/w_sqrt.c: Likewise.
6863         * math/w_sqrtf.c: Likewise.
6864         * math/w_sqrtl.c: Likewise.
6865         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6866         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
6867         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6868         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6869         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6870
6871 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6872
6873         [BZ #9739]
6874         * manual/string.texi (strnlen): Use correct parameter name in
6875         equivalent expression.
6876
6877 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6878
6879         [BZ #11174]
6880         * manual/users.texi (seteuid): Consistently use neweuid for
6881         argument name.
6882
6883 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6884
6885         [BZ #13704]
6886         * manual/nss.texi (Services in the NSS configuration): Correct
6887         list of services in example configuration file.
6888
6889 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
6890
6891         [BZ #11322]
6892         * manual/arith.texi: Remove statements about negative zero
6893         behaving identically to zero.
6894
6895 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6896
6897         [BZ #5993]
6898         * manual/install.texi: Do not document upgrading from libc5.
6899
6900 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6901
6902         [BZ #4596]
6903         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
6904
6905 2012-02-18  David S. Miller  <davem@davemloft.net>
6906
6907         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
6908         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
6909         %o7 across the call.
6910         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
6911         instead.
6912         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
6913         SETUP_PIC_REG_LEAF.
6914         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6915         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
6916         * sysdeps/sparc/crtn.S: Likewise.
6917
6918 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
6919
6920         * aout/Makefile: Remove.
6921
6922 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
6923
6924         [BZ #13058]
6925         * manual/examples/argp-ex1.c (main): Format definition in GNU
6926         style.
6927         * manual/examples/argp-ex2.c (main): Likewise.
6928         * manual/examples/argp-ex3.c (main): Likewise.
6929         * manual/examples/argp-ex4.c (main): Likewise.
6930         * manual/examples/longopt.c (main): Use new-style prototype
6931         definition.
6932         * manual/examples/strncat.c (main): Specify return type and use
6933         (void) for arguments.
6934         * manual/examples/subopt.c (main): Use char **argv argument.
6935
6936 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6937
6938         [BZ #5077]
6939         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
6940         rounding modes.
6941
6942 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
6943
6944         [BZ #6907]
6945         * manual/string.texi (strchr): Change when strchrnul is
6946         recommended.
6947
6948 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
6949
6950         [BZ #174]
6951         * manual/locale.texi (setlocale): Document LOCPATH.
6952
6953 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6954
6955         [BZ #10210]
6956         * manual/process.texi (execle): Move @dots{} before last argument.
6957
6958 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
6959
6960         [BZ #12047]
6961         * manual/charset.texi (Generic Charset Conversion): Fix typo
6962         (LC_TYPE -> LC_CTYPE).
6963
6964 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
6965
6966         [BZ #5805]
6967         * manual/arith.texi (scalbn): Use @var{} on parameter names.
6968         (scalbnf): Likewise.
6969         (scalbnl): Likewise.
6970         (scalbln): Likewise.
6971         (scalblnf): Likewise.
6972         (scalblnl): Likewise.
6973         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
6974         (vwarnx): Likewise.
6975         (verr): Likewise.
6976         (verrx): Likewise.
6977         * manual/filesys.texi (telldir): Use braces around return type.
6978         * manual/llio.texi (mmap): Add space after comma.
6979         (mmap64): Likewise.
6980         * manual/math.texi (jn): Use @var{} on parameter names.
6981         (jnf): Likewise.
6982         (jnl): Likewise.
6983         (yn): Likewise.
6984         (ynf): Likewise.
6985         (ynl): Likewise.
6986         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
6987         line.
6988         * manual/resource.texi (ulimit): Use @dots{} instead of literal
6989         "...".
6990         (sched_get_priority_min): Remove semicolon on @deftypefun line.
6991         (sched_get_priority_max): Likewise.
6992         * manual/signal.texi (sigvec): Add space after comma.
6993         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
6994         names.
6995         (if_indextoname): Likewise.
6996         (if_freenameindex): Likewise.
6997         (sendto): Use ',' instead of '.' in prototype.
6998         * manual/startup.texi (syscall): Use @dots{} instead of literal
6999         "...".
7000         * manual/stdio.texi (__fpending): Separate initial words of
7001         paragraph from @deftypefun line.
7002         * manual/syslog.texi (syslog): Use @dots{} instead of literal
7003         "...".
7004         (vsyslog): Use @var{} on parameter names.
7005         * manual/terminal.texi (stty): Use @var{} on parameter names.
7006         * manual/users.texi (getutmp): Use @var{} on parameter names.
7007         (getutmpx): Likewise.
7008
7009 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7010
7011         [BZ #6884]
7012         * manual/stdio.texi (fopen): Fix typos in description of
7013         ",ccs=STRING".
7014
7015 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
7016
7017         [BZ #4026]
7018         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
7019         get clock_id definition.
7020
7021 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
7022
7023         [BZ #4822]
7024         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
7025         (madvise): Cast every argument to void on its own.
7026
7027 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7028
7029         [BZ #9902]
7030         * manual/startup.texi (Exit Status): Fix typo.
7031
7032 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7033
7034         [BZ #10140]
7035         * manual/examples/argp-ex1.c: Include <stdlib.h>.
7036         * manual/examples/argp-ex2.c: Likewise.
7037         * manual/examples/argp-ex3.c: Likewise.
7038
7039 2012-02-16  Richard Henderson  <rth@redhat.com>
7040
7041         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
7042         * sysdeps/s390/s390-32/initfini.c: Remove.
7043         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
7044         * sysdeps/s390/s390-64/initfini.c: Remove.
7045
7046 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7047
7048         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
7049         compiler output for sysdeps/generic/initfini.c.
7050         * sysdeps/sh/elf/initfini.c: Remove file.
7051
7052 2012-02-16  David S. Miller  <davem@davemloft.net>
7053
7054         [BZ #11494]
7055         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
7056
7057         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
7058         * sysdeps/sparc/crti.S: New file.
7059         * sysdeps/sparc/crtn.S: New file.
7060         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
7061         * sysdeps/sparc/sparc64/Makefile: Likewise.
7062
7063 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
7064
7065         [BZ #3335]
7066         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
7067
7068 2012-02-15  Roland McGrath  <roland@hack.frob.com>
7069
7070         [BZ #4822]
7071         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
7072
7073         * mach/devstream.c (cookie_io_functions_t): Macro removed.
7074         (write, read, close): Likewise.
7075         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7076
7077 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
7078
7079         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
7080         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
7081         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
7082         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
7083         <bits/signalfd.h>.
7084         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
7085         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7086         bits/signalfd.h.
7087
7088 2012-02-14  Marek Polacek  <polacek@redhat.com>
7089
7090         * sysdeps/x86_64/crti.S: New file.
7091         * sysdeps/x86_64/crtn.S: New file.
7092         * sysdeps/x86_64/elf/initfini.c: Remove file.
7093
7094 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7095
7096         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
7097         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
7098         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
7099         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
7100         <bits/inotify.h>.
7101         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
7102         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7103         bits/inotify.h.
7104
7105 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7106
7107         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
7108         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
7109         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
7110         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
7111         <bits/eventfd.h>.
7112         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
7113         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7114         bits/eventfd.h.
7115
7116 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
7117
7118         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
7119         __feraiseexcept instead of feraiseexcept.
7120
7121         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
7122         nanosleep invocations.
7123         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
7124         strings, and add error checking for a nanosleep invocations.
7125
7126 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7127
7128         Replace FSF snail mail address with URLs, as per GNU coding standards.
7129         Most of the snail mail addresses were wrong anyway, and omitting
7130         them makes the source code easier to maintain.  Almost all of the
7131         changes are to license notices and to locale LC_IDENTIFICATION
7132         addresses, except for this one:
7133         * manual/libc.texinfo: In "Published by", give the FSF's URL,
7134         not its snail mail address.
7135
7136 2012-02-09  Richard Henderson  <rth@twiddle.net>
7137
7138         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
7139         of kernel-features.h.
7140
7141         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
7142
7143 2012-02-08  Marek Polacek  <polacek@redhat.com>
7144
7145         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
7146         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
7147         * sysdeps/gnu/_G_config.h: Likewise.
7148         * sysdeps/generic/_G_config.h: Likewise.
7149
7150 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
7151
7152         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
7153         tests.
7154         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7155
7156         * sysdeps/powerpc/powerpc32/crti.S: New file.
7157         * sysdeps/powerpc/powerpc32/crtn.S: New file.
7158         * sysdeps/powerpc/powerpc64/crti.S: New file.
7159         * sysdeps/powerpc/powerpc64/crtn.S: New file.
7160
7161         * Makeconfig (have-initfini): Don't set.
7162         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
7163         * configure.in (nopic_initfini): Don't substitute.
7164         * config.h.in (HAVE_INITFINI): Don't #undef.
7165         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
7166         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
7167
7168 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
7169
7170         Support crti.S and crtn.S provided directly by architectures.
7171         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
7172         [crti.S in sysdirs] (omit-deps): Likewise.
7173         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
7174         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
7175         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
7176         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
7177         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
7178         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
7179         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
7180         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
7181         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
7182         compiler output for sysdeps/generic/initfini.c.
7183         * sysdeps/i386/elf/Makefile: Remove file.
7184         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
7185
7186 2012-02-07  Marek Polacek  <polacek@redhat.com>
7187
7188         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
7189         * sysdeps/gnu/_G_config.h: Likewise.
7190         * sysdeps/mach/hurd/_G_config.h: Likewise.
7191
7192 2012-02-07  Marek Polacek  <polacek@redhat.com>
7193
7194         * math/Makefile (tests): Add tst-CMPLX2.
7195         * math/tst-CMPLX2.c: New file.
7196
7197 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
7198
7199         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7200
7201         * math/libm-test.inc (jn_test): Add missing L suffix.
7202
7203 2012-02-06  Marek Polacek  <polacek@redhat.com>
7204
7205         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
7206         * sysdeps/i386/fpu/e_powf.S: Likewise.
7207         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7208         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7209         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7210         * sysdeps/i386/fpu/e_pow.S: Likewise.
7211         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
7212         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7213         * sysdeps/i386/fpu/s_expm1.S: Likewise.
7214         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
7215         * sysdeps/i386/fpu/e_log2.S: Likewise.
7216         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7217         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7218         * sysdeps/i386/fpu/e_powl.S: Likewise.
7219         * sysdeps/i386/fpu/s_log1p.S: Likewise.
7220         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7221         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
7222         * sysdeps/i386/fpu/e_logl.S: Likewise.
7223         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
7224         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
7225         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
7226         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
7227         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7228         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7229         * sysdeps/i386/fpu/e_log.S: Likewise.
7230         * sysdeps/i386/fpu/s_cexp.S: Likewise.
7231         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7232         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
7233         * sysdeps/i386/fpu/e_logf.S: Likewise.
7234         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7235         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7236         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
7237         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
7238         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7239         * sysdeps/i386/fpu/e_log10.S: Likewise.
7240         * sysdeps/i386/fpu/s_frexp.S: Likewise.
7241         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7242         * sysdeps/i386/fpu/s_asinh.S: Likewise.
7243         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
7244         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7245         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
7246         * sysdeps/i386/asm-syntax.h: Likewise.
7247         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7248         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7249         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7250         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
7251         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
7252         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7253         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
7254         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
7255         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7256         * sysdeps/powerpc/sysdep.h: Likewise.
7257         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7258         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7259
7260 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7261
7262         [BZ #411]
7263         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
7264
7265 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7266
7267         * sysdeps/i386/sysdep.h: Include <features.h>.
7268         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
7269         version.
7270
7271 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
7272
7273         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
7274         Define.
7275         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
7276         LOAD_PIC_REG_STR.
7277
7278 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7279
7280         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
7281         (SETUP_PIC_REG): Use GET_PC_THUNK.
7282         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
7283         macro.
7284
7285 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7286
7287         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
7288         for non-PIC compilation.
7289         (SETUP_PIC_REG): Add .p2align directive.
7290         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
7291         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
7292         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7293         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7294         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
7295         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7296         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
7297         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
7298         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7299         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7300         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7301         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7302         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7303         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7304         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7305         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7306         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7307         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7308         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7309         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7310         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7311         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7312         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7313         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7314         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
7315         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
7316         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7317         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7318         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7319         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7320         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7321         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7322         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7323         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7324         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7325         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7326         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7327         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7328         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7329         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7330         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7331
7332 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7333
7334         * math/tst-CMPLX.c: Include <stdio.h>.
7335
7336 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
7337
7338         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
7339         float.
7340         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7341         * sysdeps/sparc/bits/mathdef.h: Likewise.
7342
7343 2012-01-31  Marek Polacek  <polacek@redhat.com>
7344
7345         * libio/libio.h: Don't define _PARAMS.
7346         * locale/programs/config.h: Don't define PARAMS.
7347         * stdlib/strtol_l.c: Likewise.
7348         (__strtol_l): Remove PARAMS from the prototype.
7349
7350 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
7351
7352         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
7353         names.  Just use the correct names.  Remove unnecessary wrapper
7354         functions.
7355         * malloc/arena.c: Likewise.
7356         * malloc/hooks.c: Likewise.
7357
7358         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
7359         ARENA_TEST says not to.  Simplify test for creation of a new arena.
7360         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
7361
7362 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
7363
7364         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
7365         into tail calls.
7366         (update_get_addr): New function.
7367         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
7368         GET_ADDR_MODULE parameter.
7369
7370 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7371
7372         * crypt/cert.c: Remove __STDC__ conditionals.
7373         * crypt/crypt-entry.c: Likewise.
7374         * crypt/crypt_util.c: Likewise.
7375         * libio/filedoalloc.c: Likewise.
7376         * libio/fileops.c: Likewise.
7377         * libio/genops.c: Likewise.
7378         * libio/iofclose.c: Likewise.
7379         * libio/iofdopen.c: Likewise.
7380         * libio/iofopen.c: Likewise.
7381         * libio/iofopen64.c: Likewise.
7382         * libio/iogetdelim.c: Likewise.
7383         * libio/iopopen.c: Likewise.
7384         * libio/obprintf.c: Likewise.
7385         * libio/oldfileops.c: Likewise.
7386         * libio/oldiofclose.c: Likewise.
7387         * libio/oldiofdopen.c: Likewise.
7388         * libio/oldiofopen.c: Likewise.
7389         * libio/oldiopopen.c: Likewise.
7390         * libio/wfiledoalloc.c: Likewise.
7391         * libio/wgenops.c: Likewise.
7392         * locale/programs/xmalloc.c: Likewise.
7393         * misc/syslog.c: Likewise.
7394         * stdio-common/xbug.c: Likewise.
7395         * string/memchr.c: Likewise.
7396         * string/memcmp.c: Likewise.
7397         * string/memrchr.c: Likewise.
7398         * string/rawmemchr.c: Likewise.
7399         * sysdeps/posix/getcwd.c: Likewise.
7400         * time/strftime_l.c: Likewise.
7401
7402 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7403
7404         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
7405         * config.make.in (config-cflags-sse2avx): Define.
7406         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
7407         Fix typo.
7408
7409 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
7410
7411         * scripts/config.guess: Update from upstream config git repository.
7412         * scripts/config.sub: Likewise.
7413
7414 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
7415
7416         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
7417         (EM_NUM): Update.
7418         (R_TILEPRO_*, R_TILEGX_*): New macros.
7419
7420         * scripts/firstversions.awk: Fix bug in version range handling.
7421
7422         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
7423
7424         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
7425
7426         * include/sys/epoll.h: New file.
7427         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
7428         libc_hidden_def.
7429
7430 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
7431
7432         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
7433         Avoid unnecessary __WORDSIZE == 64 test.
7434         (fmaxf): Use VEX format if possible.
7435         (fmax): Likewise.
7436         (fminf): Likewise.
7437         (fmin): Likewise.
7438
7439         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
7440         * math/math_private.h: Remove libc_fegetround* and
7441         libc_fesetround*.
7442         * sysdeps/i386/configure.in: Check for -msse2avx.
7443         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
7444         also if SSE2AVX is defined.
7445         Remove libc_fegetround* and libc_fesetround*.
7446         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
7447         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
7448         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
7449         of HAS_YMM_USABLE.
7450         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7451         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7452         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7453         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7454         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7455
7456         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
7457
7458 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7459
7460         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
7461         size is not set.
7462         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7463
7464 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
7465
7466         [BZ #13618]
7467         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
7468         relocation.
7469         * Makeconfig (libm): Define.
7470         * elf/Makefile: Add rules to build and run tst-relsort1.
7471         * elf/tst-relsort1.c: New file.
7472         * elf/tst-relsort1mod1.c: New file.
7473         * elf/tst-relsort1mod2.c: New file.
7474
7475 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
7476
7477         * math/s_ldexp.c: Remove __STDC__ conditionals.
7478         * math/s_ldexpf.c: Likewise.
7479         * math/s_ldexpl.c: Likewise.
7480         * math/s_nextafter.c: Likewise.
7481         * math/s_nexttowardf.c: Likewise.
7482         * math/s_significand.c: Likewise.
7483         * math/s_significandf.c: Likewise.
7484         * math/s_significandl.c: Likewise.
7485         * math/w_jnl.c: Likewise.
7486         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7487         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7488         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7489         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7490         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7491         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7492         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
7493         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7494         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7495         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7496         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7497         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7498         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7499         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7500         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7501         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7502         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7503         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7504         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7505         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7506         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7507         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7508         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7509         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7510         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7511         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7512         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7513         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7514         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7515         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7516         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7517         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7518         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7519         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7520         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7521         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7522         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7523         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7524         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7525         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7526         * sysdeps/ieee754/k_standard.c: Likewise.
7527         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7528         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7529         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7530         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7531         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7532         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7533         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7534         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7535         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7536         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7537         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7538         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7539         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7540         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7541         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7542         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7543         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7544         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7545         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7546         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7547         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7548         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7549         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7550         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7551         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7552         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7553         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7554         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7555         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7556         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7557         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7558         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7559         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7560         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7561         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7562         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7563         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7564         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7565         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7566         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7567         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7568         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7569         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7570         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7571         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7572         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
7573         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7574         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7575         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7576         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7577         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7578         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7579         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7580         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7581         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7582         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7583         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7584         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7585         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7586         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7587         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7588         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7589         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7590         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7591         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7592         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7593         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7594         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7595         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7596         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7597         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7598         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7599         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7600         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7601         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7602         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7603         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7604         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7605         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7606         * sysdeps/ieee754/s_matherr.c: Likewise.
7607         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7608         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7609         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7610         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7611
7612 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7613
7614         * crypt/md5.h: Remove __STDC__ conditionals.
7615         * libio/libioP.h: Likewise.
7616         * locale/programs/config.h: Likewise.
7617         * sysdeps/generic/sysdep.h: Likewise.
7618         * sysdeps/i386/asm-syntax.h: Likewise.
7619         * sysdeps/s390/asm-syntax.h: Likewise.
7620         * sysdeps/unix/sysdep.h: Likewise.
7621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7623
7624 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7625
7626         * libio/libio.h: Remove __STDC__ conditionals.
7627         * malloc/obstack.h: Likewise.
7628         * math/complex.h: Likewise.
7629         * math/math.h: Likewise.
7630         * sysdeps/generic/_G_config.h: Likewise.
7631         * sysdeps/gnu/_G_config.h: Likewise.
7632         * sysdeps/mach/hurd/_G_config.h: Likewise.
7633         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7634         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7635         * sysdeps/sparc/bits/mathdef.h: Likewise.
7636
7637 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
7638
7639         [BZ #13583]
7640         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
7641         Clean up HAS_* macros.
7642         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
7643         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
7644         possible.
7645         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
7646         HAS_AVX.
7647         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7648         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7649         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7650         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7651         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7652
7653 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
7654
7655         * elf/tst-unique3.cc (gets): Remove declaration.
7656         * elf/tst-unique3lib.cc (gets): Likewise.
7657         * elf/tst-unique3lib2.cc (gets): Likewise.
7658         * elf/tst-unique4.cc (gets): Likewise.
7659
7660 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
7661
7662         * include/stdio.h: Add C++ protection.  Add gets declarations and
7663         definitions.
7664         * debug/tst-chk1.c: Don't declare gets here.
7665         * stdio-common/tst-gets.c: Likewise.
7666
7667 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7668
7669         * posix/glob: Remove directory.
7670
7671 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7672
7673         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
7674
7675 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
7676
7677         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
7678         of the non-standard EPFNOSUPPORT.
7679
7680 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7681
7682         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
7683         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
7684         ANYWHERE set to 1 only on KERN_NO_SPACE error.
7685
7686 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
7687
7688         * wcsmbs/uchar.h: Test __STDC_VERSION__.
7689
7690 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
7691
7692         * nscd/aicache.c (addhstaiX): Do not cache negative results of
7693         transient errors.
7694         * nscd/grpcache.c (cache_addgr): Likewise.
7695         * nscd/hstcache.c (cache_addhst): Likewise.
7696         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7697         * nscd/pwdcache.c (cache_addpw): Likewise.
7698         * nscd/servicescache.c (cache_addserv): Likewise.
7699
7700 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
7701
7702         * malloc/malloc.c: Various cleanups.
7703         * malloc/hooks.c: Likewise.
7704
7705         * stdlib/Makefile (tests): Add bug-fmtmsg1.
7706         * stdlib/bug-fmtmsg1.c: New file.
7707
7708         * stdlib/fmtmsg.c (init): Add missing unlock.
7709         Patch by Peng Haitao <penght@cn.fujitsu.com>.
7710
7711 2012-01-12  Marek Polacek  <polacek@redhat.com>
7712
7713         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
7714         and _GNU_SOURCE.
7715
7716 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7717
7718         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
7719         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
7720         macro to ensure uniqueness of label name.
7721         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7722         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7723
7724 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
7725
7726         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
7727
7728         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
7729         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7730         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7731         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
7732
7733 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
7734
7735         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
7736
7737         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
7738         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7739         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7740
7741         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
7742
7743         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
7744         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7745         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7746         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
7747
7748         * math/bits/math-finite.h: Add ldexp support.
7749
7750 2012-01-10  Marek Polacek  <polacek@redhat.com>
7751
7752         * locale/programs/localedef.h (show_archive_content): Add noreturn
7753         attribute.
7754
7755 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
7756
7757         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
7758
7759 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7760
7761         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
7762
7763         * io/Makefile (headers): Add bits/poll2.h.
7764
7765 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
7766
7767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
7768         typo #include statement.
7769
7770 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7771
7772         * include/sys/cdefs.h: Define __attribute_alloc_size.
7773         * catgets/gencat.c: Add alloc_size attribute and apply consistently
7774         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
7775         * elf/pldd.c: Likewise.
7776         * iconv/iconv_charmap.c: Likewise.
7777         * iconv/iconvconfig.c: Likewise.
7778         * iconv/strtab.c: Likewise.
7779         * locale/programs/locale.c: Likewise.
7780         * locale/programs/localedef.h: Likewise.
7781         * locale/programs/simple-hash.c: Likewise.
7782         * nscd/nscd.h: Likewise.
7783         * nss/makedb.c: Likewise.
7784         * sysdeps/generic/ldconfig.h: Likewise.
7785         * locale/programs/localedef.c: Remove xmalloc prototype.
7786         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
7787
7788 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7789
7790         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
7791         appropriate.
7792
7793 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7794
7795         * math/Makefile (tests): Add tst-CMPLX.
7796         * math/tst-CMPLX.c: New file.
7797
7798         * math/complex.h (CMPLXL): Fix typo.
7799
7800         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
7801         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
7802         GLIBC_2.16.
7803         * debug/tst-chk1.c: Add poll and ppoll tests.
7804         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
7805         * include/sys/poll.h: Add hidden proto for ppoll.
7806         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
7807         * sysdeps/mach/hurd/ppoll.c: Likewise.
7808         * io/ppoll.c: Likewise.
7809         * debug/poll_chk.c: New file.
7810         * debug/ppoll_chk.c: New file.
7811         * include/bits/poll2.h: New file.
7812         * io/bits/poll2.h: New file.
7813
7814         [BZ #1350]
7815         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
7816
7817         * configure.in: static is always set to yes.  Remove.
7818         * config.make.in: Don't set build-static.
7819         * Makeconfig: Remove use of build-static.
7820         * dlfcn/Makefile: Likewise.
7821         * elf/Makefile: Likewise.
7822         * math/Makefile: Likewise.
7823         * misc/Makefile: Likewise.
7824         * nptl/Makefile: Likewise.
7825         * sysdeps/mach/hurd/Makefile: Likewise.
7826
7827         * configure.in: PWD_P is not used anymore.
7828         * config.make.in: Remove PWD_P entry.
7829
7830         * configure.in: Remove last remnants of RANLIB.
7831         No need to check for signed size_t anymore.
7832         Don't set libc_commonpagesize and libc_relro_required here for Alpha
7833         and IA-64.
7834         Remove __builtin_expect test because we require at least gcc 3.4.
7835         * aclocal.m4: Likewise.
7836
7837         * wcsmbs/mbrtoc16.c: Implement using towc function.
7838         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
7839         * wcsmbs/wcsmbsload.c: Likewise.
7840         * iconv/gconv_simple.c: Likewise.
7841         * iconv/gconv_int.h: Likewise.
7842         * iconv/gconv_builtin.h: Likewise.
7843         * iconv/iconv_prog.c: Remove CHAR16 handling.
7844
7845         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
7846
7847         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
7848
7849         * configure.in: Remove --with-elf and --enable-bounded options.
7850         Dont set base_machine for ia64.  More non-ELF conditions removed.
7851         Remove testing and setting of leading underscore information.
7852         * config.make.in (build-bounded): Set to no.
7853         * config.h.in: Remove NO_UNDERSCORES entry.
7854         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
7855         them.
7856         * csu/start.c: Remove !NO_UNDERSCORE code.
7857         * locale/localeinfo.h: Likewise.
7858         * sysdeps/generic/machine-gmon.h: Likewise.
7859         * sysdeps/generic/sysdep.h: Likewise.
7860         * sysdeps/i386/sysdep.h: Likewise.
7861         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7862         * sysdeps/mach/sysdep.h: Likewise.
7863         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7864         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7865         * sysdeps/sh/sysdep.h: Likewise.
7866         * sysdeps/sparc/sparc32/alloca.S: Likewise.
7867         * sysdeps/unix/i386/sysdep.S: Likewise.
7868         * sysdeps/unix/sparc/start.c: Likewise.
7869         * sysdeps/unix/sparc/sysdep.S: Likewise.
7870         * sysdeps/unix/sparc/sysdep.h: Likewise.
7871         * sysdeps/unix/start.c: Likewise.
7872         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7873         * sysdeps/x86_64/sysdep.h: Likewise.
7874
7875 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
7876
7877         [BZ #13553]
7878         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
7879         for non-gcc.
7880         * argp/argp-fmtstream.h: Use const instead __const.
7881         * argp/argp.h: Likewise.
7882         * assert/assert.h: Likewise.
7883         * bits/fenv.h: Likewise.
7884         * bits/sched.h: Likewise.
7885         * bits/sigset.h: Likewise.
7886         * bits/sigthread.h: Likewise.
7887         * catgets/nl_types.h: Likewise.
7888         * conform/data/pthread.h-data: Likewise.
7889         * crypt/crypt-private.h: Likewise.
7890         * crypt/crypt.h: Likewise.
7891         * crypt/crypt_util.c: Likewise.
7892         * ctype/ctype.h: Likewise.
7893         * debug/execinfo.h: Likewise.
7894         * debug/mbsnrtowcs_chk.c: Likewise.
7895         * debug/mbsrtowcs_chk.c: Likewise.
7896         * debug/wcsnrtombs_chk.c: Likewise.
7897         * debug/wcsrtombs_chk.c: Likewise.
7898         * debug/wcstombs_chk.c: Likewise.
7899         * dirent/dirent.h: Likewise.
7900         * dlfcn/dlfcn.h: Likewise.
7901         * elf/neededtest4.c: Likewise.
7902         * grp/grp.h: Likewise.
7903         * gshadow/gshadow.h: Likewise.
7904         * iconv/gconv.h: Likewise.
7905         * iconv/gconv_int.h: Likewise.
7906         * iconv/gconv_simple.c: Likewise.
7907         * iconv/iconv.h: Likewise.
7908         * iconv/loop.c: Likewise.
7909         * iconv/skeleton.c: Likewise.
7910         * include/aio.h: Likewise.
7911         * include/aliases.h: Likewise.
7912         * include/argz.h: Likewise.
7913         * include/arpa/inet.h: Likewise.
7914         * include/assert.h: Likewise.
7915         * include/dirent.h: Likewise.
7916         * include/dlfcn.h: Likewise.
7917         * include/execinfo.h: Likewise.
7918         * include/fcntl.h: Likewise.
7919         * include/fenv.h: Likewise.
7920         * include/glob.h: Likewise.
7921         * include/grp.h: Likewise.
7922         * include/libintl.h: Likewise.
7923         * include/mntent.h: Likewise.
7924         * include/netdb.h: Likewise.
7925         * include/pwd.h: Likewise.
7926         * include/rpc/netdb.h: Likewise.
7927         * include/sched.h: Likewise.
7928         * include/search.h: Likewise.
7929         * include/shadow.h: Likewise.
7930         * include/signal.h: Likewise.
7931         * include/stdio.h: Likewise.
7932         * include/stdlib.h: Likewise.
7933         * include/string.h: Likewise.
7934         * include/sys/socket.h: Likewise.
7935         * include/sys/stat.h: Likewise.
7936         * include/sys/statfs.h: Likewise.
7937         * include/sys/statvfs.h: Likewise.
7938         * include/sys/syslog.h: Likewise.
7939         * include/sys/time.h: Likewise.
7940         * include/sys/uio.h: Likewise.
7941         * include/time.h: Likewise.
7942         * include/unistd.h: Likewise.
7943         * include/utmp.h: Likewise.
7944         * include/wchar.h: Likewise.
7945         * include/wctype.h: Likewise.
7946         * inet/aliases.h: Likewise.
7947         * inet/arpa/inet.h: Likewise.
7948         * inet/netinet/ether.h: Likewise.
7949         * inet/netinet/in.h: Likewise.
7950         * intl/libintl.h: Likewise.
7951         * io/bits/fcntl2.h: Likewise.
7952         * io/fcntl.h: Likewise.
7953         * io/ftw.h: Likewise.
7954         * io/sys/poll.h: Likewise.
7955         * io/sys/stat.h: Likewise.
7956         * io/sys/statfs.h: Likewise.
7957         * io/sys/statvfs.h: Likewise.
7958         * io/utime.h: Likewise.
7959         * libio/bits/stdio.h: Likewise.
7960         * libio/bits/stdio2.h: Likewise.
7961         * libio/libio.h: Likewise.
7962         * libio/libioP.h: Likewise.
7963         * libio/stdio.h: Likewise.
7964         * locale/lc-ctype.c: Likewise.
7965         * locale/locale.h: Likewise.
7966         * login/utmp.h: Likewise.
7967         * malloc/arena.c: Likewise.
7968         * malloc/malloc.c: Likewise.
7969         * malloc/malloc.h: Likewise.
7970         * malloc/mcheck.c: Likewise.
7971         * malloc/mtrace.c: Likewise.
7972         * math/bits/mathcalls.h: Likewise.
7973         * math/fenv.h: Likewise.
7974         * math/math_private.h: Likewise.
7975         * misc/bits/error.h: Likewise.
7976         * misc/bits/syslog.h: Likewise.
7977         * misc/err.h: Likewise.
7978         * misc/error.h: Likewise.
7979         * misc/fstab.h: Likewise.
7980         * misc/mntent.h: Likewise.
7981         * misc/regexp.h: Likewise.
7982         * misc/search.h: Likewise.
7983         * misc/sgtty.h: Likewise.
7984         * misc/sys/mman.h: Likewise.
7985         * misc/sys/syslog.h: Likewise.
7986         * misc/sys/uio.h: Likewise.
7987         * misc/sys/xattr.h: Likewise.
7988         * misc/ttyent.h: Likewise.
7989         * nis/rpcsvc/ypclnt.h: Likewise.
7990         * nss/nss.h: Likewise.
7991         * posix/bits/unistd.h: Likewise.
7992         * posix/fnmatch.h: Likewise.
7993         * posix/glob.h: Likewise.
7994         * posix/sched.h: Likewise.
7995         * posix/spawn.h: Likewise.
7996         * posix/sys/wait.h: Likewise.
7997         * posix/unistd.h: Likewise.
7998         * posix/wordexp.h: Likewise.
7999         * pwd/pwd.h: Likewise.
8000         * resolv/netdb.h: Likewise.
8001         * resource/sys/resource.h: Likewise.
8002         * rt/aio.h: Likewise.
8003         * rt/bits/mqueue2.h: Likewise.
8004         * rt/mqueue.h: Likewise.
8005         * shadow/shadow.h: Likewise.
8006         * signal/signal.h: Likewise.
8007         * socket/send.c: Likewise.
8008         * socket/sendto.c: Likewise.
8009         * socket/sys/socket.h: Likewise.
8010         * stdio-common/printf.h: Likewise.
8011         * stdlib/bits/stdlib.h: Likewise.
8012         * stdlib/fmtmsg.h: Likewise.
8013         * stdlib/monetary.h: Likewise.
8014         * stdlib/stdlib.h: Likewise.
8015         * stdlib/ucontext.h: Likewise.
8016         * streams/stropts.h: Likewise.
8017         * string/argz.h: Likewise.
8018         * string/bits/string2.h: Likewise.
8019         * string/string.h: Likewise.
8020         * string/strings.h: Likewise.
8021         * sunrpc/rpc/auth.h: Likewise.
8022         * sunrpc/rpc/auth_des.h: Likewise.
8023         * sunrpc/rpc/clnt.h: Likewise.
8024         * sunrpc/rpc/netdb.h: Likewise.
8025         * sunrpc/rpc/pmap_clnt.h: Likewise.
8026         * sunrpc/rpc/xdr.h: Likewise.
8027         * sysdeps/generic/inttypes.h: Likewise.
8028         * sysdeps/generic/net/if.h: Likewise.
8029         * sysdeps/generic/sys/swap.h: Likewise.
8030         * sysdeps/gnu/net/if.h: Likewise.
8031         * sysdeps/gnu/utmpx.h: Likewise.
8032         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
8033         * sysdeps/i386/i486/bits/string.h: Likewise.
8034         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
8035         * sysdeps/s390/bits/string.h: Likewise.
8036         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
8037         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
8038         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8039         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
8040         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8041         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8042         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8043         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
8044         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
8045         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
8046         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
8047         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8048         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
8049         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8050         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8051         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
8052         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
8053         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8054         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
8055         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
8056         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8057         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
8058         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
8059         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
8060         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
8061         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
8062         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
8063         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8064         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
8065         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
8066         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
8067         * sysvipc/sys/ipc.h: Likewise.
8068         * sysvipc/sys/msg.h: Likewise.
8069         * sysvipc/sys/sem.h: Likewise.
8070         * sysvipc/sys/shm.h: Likewise.
8071         * termios/termios.h: Likewise.
8072         * time/sys/time.h: Likewise.
8073         * time/time.h: Likewise.
8074         * wcsmbs/bits/wchar2.h: Likewise.
8075         * wcsmbs/uchar.h: Likewise.
8076         * wcsmbs/wchar.h: Likewise.
8077         * wctype/wctype.h: Likewise.
8078
8079         [BZ #13551]
8080         * Makeconfig: Remove all but ELF support including AIX support.
8081         * Makerules: Likewise.
8082         * config.h.in: Likewise.
8083         * config.make.in: Likewise.
8084         * configure: Likewise.
8085         * configure.in: Likewise.
8086         * csu/Makefile: Likewise.
8087         * csu/version.c: Likewise.
8088         * debug/Makefile: Likewise.
8089         * dlfcn/Makefile: Likewise.
8090         * elf/Makefile: Likewise.
8091         * extra-lib.mk: Likewise.
8092         * iconv/Makefile: Likewise.
8093         * include/libc-symbols.h: Likewise.
8094         * include/shlib-compat.h: Likewise.
8095         * resolv/Makefile: Likewise.
8096         * resolv/res_libc.c: Likewise.
8097         * rt/Makefile: Likewise.
8098         * sysdeps/i386/asm-syntax.h: Likewise.
8099         * sysdeps/i386/sysdep.h: Likewise.
8100         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8101         * sysdeps/mach/sysdep.h: Likewise.
8102         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
8103         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
8104         * sysdeps/s390/asm-syntax.h: Likewise.
8105         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8106         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8107         * sysdeps/sh/sysdep.h: Likewise.
8108         * sysdeps/unix/sparc/sysdep.h: Likewise.
8109         * sysdeps/wordsize-32/divdi3.c: Likewise.
8110         * sysdeps/x86_64/sysdep.h: Likewise.
8111
8112         * argp/Versions: Remove _argp_unlock_xxx.
8113
8114         [BZ #13559]
8115         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
8116         * abilist/libBrokenLocale.abilist: Likewise.
8117         * abilist/libanl.abilist: Likewise.
8118         * abilist/libc.abilist: Likewise.
8119         * abilist/libcrypt.abilist: Likewise.
8120         * abilist/libdl.abilist: Likewise.
8121         * abilist/libm.abilist: Likewise.
8122         * abilist/libnsl.abilist: Likewise.
8123         * abilist/libpthread.abilist: Likewise.
8124         * abilist/libresolv.abilist: Likewise.
8125         * abilist/librt.abilist: Likewise.
8126         * abilist/libthread_db.abilist: Likewise.
8127         * abilist/libutil.abilist: Likewise.
8128         * abilist/libnss_db.abilist: New file.
8129
8130         * scripts/abilist.awk: Add support for indirect functions.
8131
8132         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
8133
8134         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
8135
8136         * shlib-versions: Remove entries for ports architectures.
8137
8138         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
8139         files in ports.
8140         * elf/stackguard-macros.h: Remove support for IA-64.
8141         * elf/tst-auditmod1.c: Likewise.
8142         * sysdeps/generic/ldsodefs.h: Likewise.
8143
8144         * sysdeps/unix/sysv/linux/configure.in: Ports should define
8145         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
8146         configure files.
8147
8148         [BZ #13552]
8149         * configure.in: Remove --enable-omitfp support.
8150         * FAQ.in: Adjust.
8151         * config.make.in: Likewise.
8152         * Makeconfig: Likewise.
8153         * manual/install.texi: Likewise.
8154
8155         In case anyone cares, the IA-64 architecture could move to ports.
8156         * sysdeps/ia64/*: Removed.
8157         * sysdeps/unix/sysv/linux/ia64/*: Removed.
8158         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
8159
8160         [BZ #13555]
8161         * configure.in: Remove entries for unsupported architectures.
8162
8163         [BZ #13533]
8164         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
8165         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
8166         routines.
8167         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
8168         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
8169         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
8170         fall back to using wcrtomb.
8171         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
8172         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
8173         renaming.
8174         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
8175         * wcsmbs/tst-c16c32-1.c: New file.
8176
8177         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
8178         local variable.
8179
8180         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
8181
8182         * elf/tst-unique3.cc: Add explicit declaration of gets.
8183         * elf/tst-unique3lib.cc: Likewise.
8184         * elf/tst-unique3lib2.cc: Likewise.
8185         * elf/tst-unique4.cc: Likewise.
8186
8187         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
8188
8189 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
8190
8191         [BZ #13566]
8192         * assert/assert.h (static_assert): Don't define for C++.
8193         * libio/stdio.h (gets): Do declare for C++ <= C++11.
8194         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
8195
8196 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
8197
8198         * iconv/loop.c (single loop): Fix assertion in storing of
8199         remaining bytes.
8200
8201         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
8202
8203 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
8204
8205         * posix/getconf.c: Update copyright year.
8206         * nss/getent.c: Likewise.
8207         * nss/makedb.c: Likewise.
8208         * iconv/iconvconfig.c: Likewise.
8209         * iconv/iconv_prog.c: Likewise.
8210         * elf/ldconfig.c: Likewise.
8211         * elf/pldd.c: Likewise.
8212         * elf/sotruss.ksh: Likewise.
8213         * catgets/gencat.c: Likewise.
8214         * csu/version.c: Likewise.
8215         * elf/ldd.bash.in: Likewise.
8216         * elf/sprof.c (print_version): Likewise.
8217         * locale/programs/locale.c: Likewise.
8218         * locale/programs/localedef.c: Likewise.
8219         * login/programs/pt_chown.c: Likewise.
8220         * nscd/nscd.c (print_version): Likewise.
8221         * debug/xtrace.sh: Likewise.
8222         * malloc/memusage.sh: Likewise.
8223         * malloc/mtrace.pl: Likewise.
8224         * debug/catchsegv.sh: Likewise.
8225
8226 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
8227
8228         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
8229         pure attribute.
8230
8231 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
8232
8233         [BZ #13533]
8234         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
8235         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
8236         transformations.
8237         * iconv/gconv_int.h: Likewise.
8238         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
8239         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
8240         from libc for GLIBC_2.16.
8241         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
8242         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
8243         * wcsmbs/uchar.h: Really define mbstate_t.
8244         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
8245         * wcsmbs/c16rtomb.c: New file.
8246         * wcsmbs/mbrtoc16.c: New file.
8247         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
8248         for C/POSIX locale.
8249         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
8250         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
8251
8252         * wcsmbs/wchar.h: Add missing __restrict.
8253
8254 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8255
8256         [BZ #13532]
8257         * time/Makefile (routines): Add timespec_get.
8258         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
8259         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
8260         timespec for ISO C11.
8261         * time/timespec_get.c: New file.
8262         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
8263         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
8264
8265         [BZ #13531]
8266         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
8267         * stdlib/stdlib.h: Declare aligned_alloc.
8268         * Versions.def: Add GLIBC_2.16 for libc.
8269         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
8270
8271         [BZ 13527]
8272         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
8273         ISO C11.
8274
8275         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
8276         code.
8277
8278         [BZ #13528]
8279         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
8280
8281         [BZ #13529]
8282         * assert/assert.h (static_assert): Define.
8283
8284         * version.h: Update for 2.16 development version.
8285
8286         [BZ #13526]
8287         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
8288         _ISOC11_SOURCE.
8289
8290         * version.h (RELEASE): Bump for 2.15 release.
8291         * include/features.h (__GLIBC_MINOR__): Bump to 15.
8292
8293         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
8294         Patch by Marek Polacek <mpolacek@redhat.com>.
8295
8296         * bits/byteswap.h: Protect long long constants with __extension__.
8297         * sysdeps/i386/bits/byteswap.h: Likewise.
8298         * sysdeps/ia64/bits/byteswap.h: Likewise.
8299         * sysdeps/s390/bits/byteswap.h: Likewise.
8300         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8301
8302 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8303
8304         [BZ #13540]
8305         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
8306         destination buffer.
8307         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
8308
8309 2011-12-23  Marek Polacek  <polacek@redhat.com>
8310
8311         * elf/dl-addr.c (determine_info): Add inline keyword.
8312         * elf/tst-auditmod4b.c (check_avx): Likewise.
8313         * elf/tst-auditmod6b.c (check_avx): Likewise.
8314         * elf/tst-auditmod6c.c (check_avx): Likewise.
8315         * elf/tst-auditmod7b.c (check_avx): Likewise.
8316
8317 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8318
8319         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
8320         !__SSE_MATH__.
8321
8322 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8323
8324         [BZ #13540]
8325         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
8326         processing for last bytes.
8327
8328 2011-08-06  Bruno Haible  <bruno@clisp.org>
8329
8330         [BZ #13061]
8331         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
8332         U+0385, not to U+1FEE.
8333
8334         [BZ #13062]
8335         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
8336         entry for U+00A5 U+0301.
8337
8338 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8339
8340         [BZ #13166]
8341         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
8342         buffer for the output is too small.
8343
8344         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
8345         optimization.
8346
8347         [BZ #13185]
8348         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
8349         SSE flags if possible.
8350
8351 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8352
8353         [BZ #13540]
8354         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
8355         processing for last bytes.
8356
8357 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
8358
8359         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
8360         (syscall-list-default-options, syscall-list-default-condition)
8361         (syscall-list-includes): Define.
8362         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
8363         list of ABIs and options and #if conditions for each ABI.  Do not
8364         handle common syscalls between ABIs specially.
8365         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
8366         Remove.
8367         (syscall-list-variants, syscall-list-32bit-options)
8368         (syscall-list-32bit-condition, syscall-list-64bit-options)
8369         (syscall-list-64bit-condition): Define.
8370         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
8371         (syscall-list-variants, syscall-list-32bit-options)
8372         (syscall-list-32bit-condition, syscall-list-64bit-options)
8373         (syscall-list-64bit-condition): Define.
8374         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
8375         Remove.
8376         (syscall-list-variants, syscall-list-32bit-options)
8377         (syscall-list-32bit-condition, syscall-list-64bit-options)
8378         (syscall-list-64bit-condition): Define.
8379         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
8380         Remove.
8381         (syscall-list-variants, syscall-list-32bit-options)
8382         (syscall-list-32bit-condition, syscall-list-64bit-options)
8383         (syscall-list-64bit-condition): Define.
8384
8385 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8386
8387         * locale/iso-639.def: Add brx entry.
8388
8389         [BZ #13328]
8390         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
8391         Proposed by Mariusz_Cukr <marcukr@op.pl>.
8392
8393         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
8394         __feraiseexcept_renamed.
8395
8396 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8397
8398         [BZ #13538]
8399         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
8400         EPOLLET with unsigned values.
8401         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8402         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8403
8404         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
8405         to large cancellation.
8406         * math/s_cacoshf.c: Likewise.
8407         * math/s_cacoshl.c: Likewise.
8408
8409 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
8410
8411         [BZ #13305]
8412         [BZ #12786]
8413         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
8414         * math/s_cacoshf.c: Likewise.
8415         * math/s_cacoshl.c: Likewise.
8416
8417 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8418
8419         [BZ #13439]
8420         * iconv/gconv.h: Define __GCONV_SWAP.
8421         * iconvdata/unicode.c: The swap bit must be stored in __flags.
8422         * iconvdata/utf-16.c: Likewise.
8423         * iconvdata/utf-32.c: Likewise.
8424
8425 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
8426
8427         [BZ #13524]
8428         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
8429         numerator after shifting it by one limb.
8430
8431 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
8432
8433         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
8434         under [__USE_EXTERN_INLINES].
8435
8436 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8437
8438         [BZ #13446]
8439         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
8440
8441 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8442
8443         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
8444         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
8445         optimized code.
8446         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
8447         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
8448         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
8449         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
8450         for strncasecmp/strncasecmp_l compilation.
8451         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
8452         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
8453
8454 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
8455
8456         [BZ #13484]
8457         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
8458         of __asm__.
8459
8460 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8461
8462         [BZ #13506]
8463         * time/tzfile.c (__tzfile_read): Check values from file header.
8464
8465 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8466
8467         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
8468         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
8469         * powerpc/powerpc32/dl-start.S: Likewise.
8470         * powerpc/powerpc32/elf/start.S: Likewise.
8471         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8472         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
8473         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
8474         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
8475         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8476         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
8477         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
8478         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
8479         * powerpc/powerpc32/fpu/s_round.S: Likewise.
8480         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8481         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8482         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8483         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
8484         * powerpc/powerpc32/memset.S: Likewise.
8485         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8486         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8487         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8488         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8489         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8490         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
8491         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
8492         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
8493         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
8494         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
8495         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
8496         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8497         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8498
8499 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8500
8501         * math/libm-test.inc: Added more nearbyint tests.
8502         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
8503         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
8504         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
8505         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
8506
8507 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
8508
8509         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
8510         FD_CLOEXEC.
8511
8512 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8513
8514         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
8515         Add wcscpy-ssse3 wcscpy-c.
8516         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
8517         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
8518         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
8519         * sysdeps/x86_64/wcschr.S: New file.
8520         * sysdeps/x86_64/wcsrchr.S: New file.
8521         * string/test-strcmp.c: Remove checking of wcscmp function for
8522         wrong alignments.
8523         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
8524         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
8525         wcsrchr-sse2 wcsrchr-c.
8526         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
8527         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
8528         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
8529         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
8530         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
8531         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
8532         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
8533         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
8534         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
8535         * wcsmbc/wcschr.c (WCSCHR): New macro.
8536
8537 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8538
8539         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
8540         * wcsmbs/test-wcsrchr.c: New file.
8541         * string/test-strrchr.c: Add wcsrchr support.
8542         (WIDE): New macro.
8543         * wcsmbs/test-wcscpy.c: New file.
8544         * string/test-strcpy.c: Add wcscpy support.
8545         (WIDE): New macro.
8546
8547 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
8548
8549         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
8550         the inner loop.
8551
8552 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
8553
8554         [BZ #13472]
8555         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
8556
8557 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
8558
8559         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
8560         Minor optimizations.
8561
8562         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
8563         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
8564         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8565
8566 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
8567
8568         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
8569         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
8570         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
8571         for gcc to avoid warnings.
8572         * inet/Makefile (tests): Add tst-checks.
8573         * inet/tst-checks.c: New file.
8574
8575         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
8576         warning.
8577
8578         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
8579         __wmemcmp_sse2.
8580
8581         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
8582         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
8583
8584         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
8585
8586 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
8587
8588         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
8589         problem.
8590
8591         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
8592
8593 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
8594
8595         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
8596         conditional on GCC version.
8597         (__arch_compare_and_exchange_val_8_acq)
8598         (__arch_compare_and_exchange_val_16_acq)
8599         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
8600         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
8601         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
8602
8603 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
8604
8605         * sysdeps/sh/backtrace.c: New file.
8606
8607 2011-12-02  Andreas Schwab  <schwab@redhat.com>
8608
8609         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
8610         parenthesis.
8611
8612 2011-12-01  Andreas Schwab  <schwab@redhat.com>
8613
8614         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
8615         falling back to utime.
8616
8617 2011-11-30  Andreas Schwab  <schwab@redhat.com>
8618
8619         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
8620         expectations for float.
8621
8622 2011-11-29  Andreas Schwab  <schwab@redhat.com>
8623
8624         * locale/weight.h (findidx): Add parameter len.
8625         * locale/weightwc.h (findidx): Likewise.
8626         * posix/fnmatch_loop.c (FCT): Adjust caller.
8627         * posix/regcomp.c (build_equiv_class): Likewise.
8628         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
8629         * posix/regexec.c (check_node_accept_bytes): Likewise.
8630         * string/strcoll_l.c (STRCOLL): Likewise.
8631         * string/strxfrm_l.c (STRXFRM): Likewise.
8632
8633 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
8634
8635         * Makefile.in: Remove CVSOPT handling.
8636         * configure.in: Remove use of AC_REVISION.
8637         * iconvdata/Makefile (distribute): No need to filter out CVS.
8638         * scripts/list-sources.sh: Remove CVS, subversion and monotone
8639         handling.
8640
8641 2011-11-16  Andreas Schwab  <schwab@redhat.com>
8642
8643         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
8644         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
8645         [USE_AS_STRNCASECMP_L]: Likewise.
8646         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
8647         NO_TLS_DIRECT_SEG_REFS.
8648         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
8649         Fix argument offsets for non-PIC.
8650         [USE_AS_STRNCASECMP_L]: Likewise.
8651         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
8652         NO_TLS_DIRECT_SEG_REFS.
8653
8654 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8655
8656         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
8657         O_CLOEXEC.
8658         * locale/loadlocale.c (_nl_load_locale): Likewise.
8659
8660 2011-11-15  Andreas Schwab  <schwab@redhat.com>
8661
8662         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
8663         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
8664         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
8665         (SYSCALL_GETTIME): Set errno on error.
8666
8667         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
8668         count references to noai6ai_cached.
8669
8670 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8671
8672         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
8673
8674         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
8675         FD_CLOEXEC for /proc/self/maps.
8676
8677         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
8678         FD_CLOEXEC for /proc/meminfo.
8679
8680         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
8681         gai.conf.
8682
8683         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
8684         FD_CLOEXEC for given file.
8685
8686         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
8687
8688         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
8689         FD_CLOEXEC for /etc/hosts.
8690         (_gethtent): Likewise.
8691
8692         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
8693
8694         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
8695         cancellation and set FD_CLOEXEC for /etc/netgroup.
8696
8697         * nss/nss_files/files-key.c (search): Don't allow cancellation when
8698         reading /etc/publickey.
8699
8700         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
8701         allow cancellation when reading /etc/group.
8702
8703         * nss/nss_files/files-alias.c (internal_setent): Don't allow
8704         cancellation.
8705         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
8706
8707         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
8708         when using data file.
8709
8710         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
8711
8712         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
8713         (write_nis_obj): Use "c" and "e" in fopen.
8714
8715         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
8716
8717         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
8718
8719         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
8720
8721         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
8722
8723         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
8724         locale.alias.
8725
8726         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
8727
8728         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
8729
8730         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
8731
8732         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
8733         file parsing and set FD_CLOEXEC.
8734
8735 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8736
8737         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
8738
8739 2011-11-14  Andreas Schwab  <schwab@redhat.com>
8740
8741         * malloc/arena.c (arena_get2): Don't call reused_arena when
8742         _int_new_arena failed.
8743
8744 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8745
8746         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
8747         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
8748         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
8749         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8750         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8751         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
8752         to compile strcasecmp and strncasecmp.
8753         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
8754         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
8755
8756         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
8757
8758 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
8759
8760         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
8761         locale-defines.sym to gen-as-const-headers.
8762         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
8763         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
8764         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
8765         to compile strcasecmp and strncasecmp.
8766         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
8767         strcasecmp_l and strncasecmp_l.
8768         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
8769         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
8770         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
8771         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
8772         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
8773         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
8774         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
8775         * sysdeps/i386/i686/multiarch/strncase.S: New file.
8776         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
8777         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
8778         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
8779
8780 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
8781
8782         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
8783         result of SYSDEP_GETTIME_CPU to retval.
8784         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
8785         parameter list to macro.  Remove trailing semicolon.  Adjust users.
8786
8787         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
8788         variable.
8789
8790         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
8791         mantissa words.
8792         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8793
8794         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
8795         from unused variable.
8796
8797         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
8798         DWARF definitions.
8799         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
8800         for assembling.
8801
8802         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
8803         over namespaces.
8804
8805         * sunrpc/rpc_prot.c (rejected): Fix case value.
8806
8807         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
8808         unsigned long long int to avoid warnings in shift.
8809
8810         * posix/regex_internal.c (re_string_reconstruct): Actually use result
8811         of use of trans.
8812         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
8813         variable tmp.
8814
8815         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
8816         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
8817         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
8818
8819         * nis/nis_table.c (nis_list): Use variable of correct type for
8820         result of __follow_path call.
8821
8822 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8823
8824         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
8825         of math functions ceil, trunc, floor, round, and sqrt, when
8826         avaliable on the platform.
8827         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
8828         name clash.
8829         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8830         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8831         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8832
8833 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
8834
8835         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
8836         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8837
8838 2011-11-11  Roland McGrath  <roland@hack.frob.com>
8839
8840         * include/unistd.h: Fix __readlink return type.
8841         Reported by Chris Metcalf <cmetcalf@tilera.com>.
8842
8843 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
8844
8845         * stdlib/ucontext.h: Undo last change for makecontext.
8846
8847 2011-11-11  Andreas Schwab  <schwab@redhat.com>
8848
8849         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
8850
8851         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
8852         * setjmp/setjmp.h: Mark functions as non-leaf.
8853         * setjmp/bits/setjmp2.h: Likewise.
8854         * stdlib/ucontext.h: Likewise.
8855
8856 2011-11-10  Andreas Schwab  <schwab@redhat.com>
8857
8858         * malloc/arena.c (_int_new_arena): Don't increment narenas.
8859         (reused_arena): Don't check arena limit.
8860         (arena_get2): Atomically check arena limit.
8861
8862 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
8863
8864         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
8865         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
8866
8867         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
8868         instructions.
8869
8870 2011-11-07  Andreas Schwab  <schwab@redhat.com>
8871
8872         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
8873         handler when locking.
8874
8875         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8876         Fix size of allocated buffer.
8877
8878 2011-11-04  Andreas Schwab  <schwab@redhat.com>
8879
8880         [BZ #10103]
8881         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
8882         declarations for long double functions.
8883         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
8884
8885         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
8886
8887 2011-11-03  Andreas Schwab  <schwab@redhat.com>
8888
8889         * nscd/nscd.c (main): Don't start AVC thread until credentials are
8890         installed.
8891
8892         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
8893         is disabled.
8894
8895 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8896
8897         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
8898
8899 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8900
8901         * include/alloca.h (stackinfo_alloca_round): Define.
8902         (extend_alloca): Use it.
8903         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
8904         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
8905         here.
8906
8907         * scripts/check-local-headers.sh: Ignore libaudit.h.
8908
8909         * nscd/Makefile (extra-objs): Make recursively expanded.
8910
8911 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
8912
8913         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
8914         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
8915
8916         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
8917         * posix/tst-rfc3484-2.c: Likewise.
8918         * posix/tst-rfc3484-3.c: Likewise.
8919
8920         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8921         process_vm_writev.
8922         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
8923         process_vm_writev.
8924         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
8925         process_vm_writev from libc using GLIBC_2.15 version.
8926
8927         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
8928
8929 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
8930
8931         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
8932         stack usage.
8933
8934 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
8935
8936         [BZ #13367]
8937         * nss/getent.c (initgroups_keys): Show error message in case no group
8938         names are given.
8939
8940         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
8941         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
8942         __bump_nl_timestamp.
8943         * nscd/connections (nscd_init): When host database is served open
8944         netlink socket and request notification about configuration changes.
8945         (main_loop_poll): Track netlink file descriptor and bump timestamp
8946         in case data becomes available.
8947         (main_loop_epoll): Likewise.
8948         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
8949         (database_pers_head): Add extra_data fileds.
8950         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
8951         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
8952         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
8953         Adjust caller.
8954         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
8955         in6ai data, call __free_in6ai.
8956         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
8957         Add -DHAVE_NETLINK.
8958         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
8959         interface information.  Reuse previous data if netlink timestamp
8960         is not changed.
8961         (__bump_nl_timestamp): New function.
8962         (__free_in6ai): New function.
8963
8964 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
8965
8966         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
8967         close_not_cancel_no_status here.
8968         (__check_pf): Reorganize code a bit to not call close twice if OOM.
8969
8970 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8971
8972         [BZ #13276]
8973         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
8974         return value.
8975
8976         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
8977         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
8978         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
8979
8980 2011-07-03  Andreas Jaeger  <aj@suse.de>
8981
8982         [BZ #10709]
8983         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
8984         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
8985         * math/libm-test.inc (sin_test): Add test case.
8986
8987 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8988
8989         [BZ #13337]
8990         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
8991         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
8992
8993         * elf/chroot_canon.c (chroot_canon): Cleanups.
8994
8995         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
8996
8997         [BZ #13335]
8998         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
8999         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9000
9001         * string/test-strchr.c: Make usable for strchrnul testing.
9002         * string/test-strchrnul.c: New file.
9003         * string/Makefile (strop-tests): Add strchrnul.
9004
9005         * po/it.po: Update from translation team.
9006         * po/es.po: Likewise.
9007
9008 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
9009
9010         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
9011         the three constants needed as parameters.  Drop the others.
9012         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
9013         __m128i_strloadu_tolower.
9014         Create and initialize variable zero and use it in all the places
9015         where _mm_setzero_si128 was used.
9016
9017         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
9018         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
9019         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
9020         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
9021         anymore.
9022         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
9023         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
9024         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
9025         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
9026         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
9027         __mpranred, __mptan.
9028         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
9029         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
9030         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
9031         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
9032         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
9033         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
9034         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
9035         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
9036         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
9037
9038 2011-10-28  Andreas Schwab  <schwab@redhat.com>
9039
9040         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
9041         redefine if SHARED.
9042         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
9043
9044         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
9045         wide char related routines to wcsmbs subdir.
9046
9047 2011-10-27  Andreas Schwab  <schwab@redhat.com>
9048
9049         [BZ #13344]
9050         * misc/sys/cdefs.h (__THROWNL): Define.
9051         * posix/unistd.h: Use __THREADNL instead of __THREAD
9052         for memory synchronization functions.
9053
9054 2011-10-26  Roland McGrath  <roland@hack.frob.com>
9055
9056         [BZ #13349]
9057         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
9058         doesn't exist.
9059         * manual/stdio.texi (Obstack Streams): Node removed.
9060
9061 2011-10-26  Andreas Schwab  <schwab@redhat.com>
9062
9063         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
9064         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9065         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9066
9067         * math/math_private.h (math_force_eval): Allow non-addressable
9068         arguments.
9069         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
9070
9071 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9072
9073         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
9074         file is not needed.
9075
9076         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
9077         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9078         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9079         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9080         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9081         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9082         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9083         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
9084         Add AVX variants.
9085         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
9086         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
9087         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
9088         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
9089         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
9090         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
9091         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
9092         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
9093         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
9094         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
9095         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
9096         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
9097         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
9098         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
9099         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
9100         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
9101         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
9102         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
9103         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
9104
9105         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
9106         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
9107
9108         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
9109         place.  Use VEX encoding when compiling for AVX.
9110
9111 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9112
9113         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
9114         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9115
9116         * string/test-strchr.c (do_test): Don't generate NUL bytes.
9117
9118 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9119
9120         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
9121         useless if() expression.
9122         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9123         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9124         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9125         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9126         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9127         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9128         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9129         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9130         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9131         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9132         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9133         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9134         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9135         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9136         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9137         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9138         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9139         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9140         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9141
9142         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
9143
9144 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9145
9146         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
9147         condition.
9148         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9149
9150 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9151
9152         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
9153         .text section.  Avoid duplicate constants.
9154         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9155         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9156         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9157         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9158         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9159         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9160         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9161         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9162         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
9163         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
9164         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
9165         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9166         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
9167         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
9168         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
9169         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
9170         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
9171         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
9172         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9173         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9174         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9175         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9176         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9177         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
9178         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
9179         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
9180         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
9181         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
9182         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
9183         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
9184         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
9185         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
9186         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9187         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
9188         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
9189         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
9190         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
9191         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
9192         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
9193         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
9194         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
9195         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
9196         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
9197         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
9198         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
9199
9200 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
9201
9202         * sysdeps/x86_64/dla.h: Move to ...
9203         * sysdeps/x86_64/fpu/dla.h: ...here.
9204         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
9205         situations.  Use __builtin_fma only for gcc 4.6 and up.
9206
9207         * config.make.in: Add have-mfma4 entry.
9208         * configure.in: Substitute libc_cv_cc_fma4.
9209         * math/Makefile (dbl-only-routines): Add sincostab.
9210         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
9211         Use __sincostab not sincos.
9212         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
9213         name is a macro.
9214         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9215         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9216         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9217         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
9218         using __copysign.
9219         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
9220         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
9221         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
9222         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
9223         and __inv.
9224         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
9225         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
9226         __copysign.
9227         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
9228         define aliases when function name is a macro.
9229         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
9230         sysdeps/ieee754/dbl-64/sincos.tbl.
9231         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
9232         fma4-enabled routines.
9233         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
9234         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
9235         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
9236         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
9237         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
9238         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
9239         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
9240         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
9241         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
9242         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
9243         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
9244         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
9245         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
9246         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
9247         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
9248         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
9249         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
9250         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
9251         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
9252         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
9253         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
9254         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
9255         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
9256         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
9257         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
9258         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
9259         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
9260         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
9261         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
9262         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
9263
9264         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
9265         rename.
9266         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9267         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9268         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9269         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9270         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9271         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9272         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9273         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9274
9275 2011-10-24  Andreas Schwab  <schwab@redhat.com>
9276
9277         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
9278
9279 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9280
9281         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
9282
9283         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
9284         prediction.
9285         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
9286
9287         * string/strnlen.c: Don't define STRNLEN, reverse logic.
9288         Remove unused variable magic_bits.
9289         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
9290
9291         * string/strnlen.c: Define and use STRNLEN macro.
9292         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
9293         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
9294         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
9295         * wcsmbs/wcslen.c: Define and use WCSLEN.
9296         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
9297         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
9298         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
9299         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
9300         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
9301         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
9302         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9303
9304 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9305
9306         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9307         strnlen-sse2-no-bsf.
9308         Rename strlen-no-bsf to strlen-sse2-no-bsf.
9309         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
9310         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
9311         Add strnlen support.
9312         (USE_AS_STRNLEN): New macro.
9313         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
9314         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
9315         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
9316         * sysdeps/x86_64/wcslen.S: New file.
9317
9318 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9319
9320         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9321         XMM-moves are used for copying on small sizes.
9322
9323 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9324
9325         * wcsmbs/Makefile (strop-tests): Add wcschr.
9326         * wcsmbs/test-wcschr.c: New file.
9327         * string/test-strchr.c: Update.
9328         Add wcschr support.
9329         (WIDE): New macro.
9330
9331 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9332
9333         * wcsmbs/Makefile (strop-tests): Add wcslen.
9334         * wcsmbs/test-wcslen.c: New file.
9335         * string/test-strlen.c: Update.
9336         Add wcslen support.
9337         (WIDE): New macro.
9338
9339 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9340
9341         * po/it.po: Update from translation team.
9342
9343 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9344
9345         * sysdeps/x86_64/wcscmp.S: Update.
9346         Fix wrong comparison semantics.
9347         wcscmp shall use signed comparison not unsigned.
9348         Don't use substraction to avoid overflow bug.
9349         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
9350         * wcsmbc/wcscmp.c: Likewise.
9351         * string/test-strcmp.c: Likewise.
9352         Add new tests to check cases with negative values.
9353
9354 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9355
9356         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
9357         * sysdeps/x86_64/dla.h: ...here.  New file.
9358         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
9359         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9360         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9361         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9362         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9363         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9364         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9365         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9366         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9367
9368 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9369
9370         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
9371         __ynl_finite aliases.
9372
9373 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9374
9375         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9376
9377         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
9378         define DLA_FMA.
9379         [DLA_FMA] (EMULV): Use DLA_FMA.
9380         [DLA_FMA] (MUL12): Use EMULV.
9381         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
9382         that are not needed.
9383         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9384         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9385         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9386         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9387         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9388         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9389         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9390
9391 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
9392
9393         * math/s_nan.c: Undef __nan.
9394         * math/s_nanf.c: Undef __nanf.
9395         * math/s_nanl.c: Undef __nanl.
9396         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
9397         "math_private.h".
9398
9399 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9400
9401         * math/s_catan.c: Add branch predictions.
9402         * math/s_catanf.c: Likewise.
9403         * math/s_catanh.c: Likewise.
9404         * math/s_catanhf.c: Likewise.
9405         * math/s_catanhl.c: Likewise.
9406         * math/s_catanl.c: Likewise.
9407         * math/s_cexp.c: Likewise.
9408         * math/s_cexpf.c: Likewise.
9409         * math/s_cexpl.c: Likewise.
9410         * math/s_clog.c: Likewise.
9411         * math/s_clog10.c: Likewise.
9412         * math/s_clog10f.c: Likewise.
9413         * math/s_clog10l.c: Likewise.
9414         * math/s_clogf.c: Likewise.
9415         * math/s_clogl.c: Likewise.
9416         * math/s_csqrt.c: Likewise.
9417         * math/s_csqrtf.c: Likewise.
9418         * math/s_csqrtl.c: Likewise.
9419         * math/s_ctanf.c: Likewise.
9420         * math/s_ctanh.c: Likewise.
9421         * math/s_ctanhf.c: Likewise.
9422         * math/s_ctanhl.c: Likewise.
9423         * math/s_ctanl.c: Likewise.
9424
9425         * math/math_private.h: Define __nan, __nanf, __nanl.
9426         * math/s_cacosh.c: Include <math_private.h>.
9427         * math/s_cacoshl.c: Likewise.
9428         * math/s_casinh.c: Likewise.
9429         * math/s_casinhf.c: Likewise.
9430         * math/s_casinhl.c: Likewise.
9431         * math/s_ccos.c: Rely entire on ccosh.
9432         * math/s_ccosf.c: Rely entire on ccoshf.
9433         * math/s_ccosl.c: Rely entirely on ccoshl.
9434         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
9435         Remove tests for FE_INVALID.
9436         * math/s_ccoshf.c: Likewise.
9437         * math/s_ccoshl.c: Likewise.
9438         * math/s_csin.c: Likewise.
9439         * math/s_csinf.c: Likewise.
9440         * math/s_csinh.c Likewise.
9441         * math/s_csinhf.c: Likewise.
9442         * math/s_csinhl.c: Likewise.
9443         * math/s_csinl.c: Likewise.
9444         * math/s_ctan.c: Likewise.
9445         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
9446         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
9447         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
9448
9449 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
9450
9451         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
9452         compilation problems.
9453
9454         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
9455         __builtin_expect.
9456
9457 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
9458
9459         * sysdeps/i386/configure.in: Test for -mfma4 option.
9460         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
9461         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
9462         COMMON_CPUID_INDEX_80000001.
9463         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
9464         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
9465         use it if FMA3 is not supported.
9466         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
9467
9468         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
9469         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
9470
9471 2011-10-20  Andreas Schwab  <schwab@redhat.com>
9472
9473         [BZ #12892]
9474         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
9475         it would create a cycle with a link time dependency.
9476
9477 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
9478
9479         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
9480         instruction.
9481         * string/Makefile (strop-tests): Add rawmemchr.
9482         * string/test-rawmemchr.c: New file.
9483
9484         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
9485         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
9486         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
9487         when compiling str{,n}casecmp and when AVX is available.  Hook up
9488         new optimized code in initializers.
9489
9490 2011-10-19  Andreas Schwab  <schwab@redhat.com>
9491
9492         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
9493         __feraiseexcept instead of feraiseexcept.
9494
9495 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
9496
9497         * math/math_private.h: Define defaults for libc_fetestexcept and
9498         libc_feupdateenv.
9499         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
9500         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9501         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9502         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9503         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9504         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9505         libc_fetestexcept and libc_feupdateenv.
9506
9507         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
9508         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
9509         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
9510         * sysdeps/x86_64/fpu/math_private.h: Define special version of
9511         libc_feholdexcept_setround.
9512
9513         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
9514         Add s_nearbyint-c and s_nearbyintf-c.
9515         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
9516         nearbyintf inlines.
9517         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
9518         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
9519         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
9520         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
9521
9522         * math/math_private.h: Define defaults for libc_fegetround,
9523         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
9524         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
9525         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
9526         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
9527         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
9528         standard functions.
9529         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9530         Remove comments and hacks for old compiler versions.
9531         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9532         libc_fegetround, libc_fesetround, libc_feholdexcept, and
9533         libc_feholdexceptl.
9534
9535 2011-10-18  Andreas Schwab  <schwab@redhat.com>
9536
9537         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
9538         (__feraiseexcept_renamed): Add __NTH.
9539         (feraiseexcept): Add __NTH.  Rename local variables to fix
9540         namespace violations.
9541
9542 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
9543
9544         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
9545
9546         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
9547
9548         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
9549         recently added interfaces.
9550         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9551
9552         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
9553         about macro parameter expansion.
9554
9555         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
9556         __NO_MATH_INLINES is defined.  Cleanups.
9557
9558         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
9559         and __floorf is target has SSE4.1.
9560         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
9561         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
9562         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
9563         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
9564
9565         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
9566         name.
9567         (floorf): Likewise.
9568
9569         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
9570
9571 2011-10-17  Andreas Schwab  <schwab@redhat.com>
9572
9573         * misc/sys/cdefs.h: Fix last change.
9574
9575         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
9576         database lookup.
9577
9578 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
9579
9580         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
9581
9582         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
9583         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9584         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9585         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9586         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9587         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9588         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9589         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9590         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9591         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
9592         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
9593         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
9594         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
9595         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
9596         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
9597         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
9598         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
9599         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
9600         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
9601         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
9602         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
9603         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
9604
9605         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
9606         ceil, ceilf, floor, floorf.
9607
9608         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
9609         Perform IRELATIVE relocations last.
9610
9611         * elf/do-rel.h: Add another parameter nrelative, replacing the
9612         local variable with the same name.  Change name of the function
9613         to end in Rel or Rela (uppercase).
9614         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
9615         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
9616         elf_dynamic_do_##reloc function.
9617
9618 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9619
9620         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
9621         is sufficient, at least on modern CPUs.
9622
9623         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
9624
9625         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
9626         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
9627
9628         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
9629         __expl_finite.
9630         * math/bits/math-finite.h: Add entries for exp.
9631         * math/e_expl.c: Add __*_finite alias.
9632         * sysdeps/i386/fpu/e_exp.S: Likewise.
9633         * sysdeps/i386/fpu/e_expf.S: Likewise.
9634         * sysdeps/i386/fpu/e_expl.c: Likewise.
9635         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9636         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9637         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9638         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9639         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
9640         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9641         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9642
9643         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
9644         is sufficient, at least on modern CPUs.
9645
9646         * ctype/ctype-info.c (__ctype_init): Define.
9647         * include/ctype.h (__ctype_init): Declare.
9648         (__ctype_b_loc): The variable is always initialized.
9649         (__ctype_toupper_loc): Likewise.
9650         (__ctype_tolower_loc): Likewise.
9651         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
9652         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
9653
9654 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
9655
9656         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
9657
9658         * configure.in: Also look in $cxxmachine/include for C++ system
9659         headers.
9660
9661 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9662
9663         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
9664         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
9665         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
9666         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
9667         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
9668         (USE_AS_WMEMCMP): New macro.
9669         Fixing indents.
9670         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
9671         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
9672         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
9673         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
9674         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9675         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
9676         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
9677         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
9678         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
9679         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
9680         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
9681         (USE_AS_WMEMCMP): New macro.
9682         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
9683         * sysdeps/string/test-memcmp.c: Update.
9684         Fix simple_wmemcmp.
9685         Add new tests.
9686         * wcsmbs/wmemcmp.c: Update.
9687         (WMEMCMP): New macro.
9688         Fix overflow bug.
9689
9690 2011-10-12  Andreas Jaeger  <aj@suse.de>
9691
9692         [BZ #13268]
9693         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
9694
9695 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9696
9697         * libio/iofwide.c (do_length): Avoid warning.
9698
9699         * ctype/ctype.h (__isctype_f): Add missing __THROW.
9700
9701 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
9702
9703         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
9704
9705         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
9706         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
9707         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
9708         * sysdeps/i386/i686/fpu/e_log.S: New file.
9709         * sysdeps/i386/i686/fpu/e_logf.S: New file.
9710         * sysdeps/i386/i686/fpu/e_logl.S: New file.
9711
9712         * ctype/ctype.h: Add support for inlined isXXX functions when
9713         compiling C++ code.
9714
9715 2011-10-14  Andreas Schwab  <schwab@redhat.com>
9716
9717         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9718
9719         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
9720
9721 2011-10-13  Roland McGrath  <roland@hack.frob.com>
9722
9723         [BZ #13291]
9724         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
9725
9726 2011-10-13  Andreas Schwab  <schwab@redhat.com>
9727
9728         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
9729         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
9730         feraiseexcept.
9731
9732         * sysdeps/x86_64/memrchr.S: Check for zero size.
9733
9734         * string/stratcliff.c: Add memrchr tests.
9735
9736 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9737
9738         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9739         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
9740         rawmemchr-sse2 rawmemchr-sse2-bsf.
9741         * sysdeps/i386/i686/multiarch/memchr.S: New file.
9742         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
9743         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9744         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
9745         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
9746         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
9747         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
9748         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
9749         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
9750         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
9751         * string/memrchr.c (MEMRCHR): New macro.
9752
9753 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
9754
9755         Add integration with gcc's -ffinite-math-only and optimize wrapper
9756         functions in libm.
9757         * Versions.def: Define GLIBC_2.15 version for libm.
9758         * math/Makefile (headers): Add bits/math-finite.h.
9759         * math/bits/math-finite.h: New file.
9760         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
9761         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
9762         * math/e_acoshl.c: Add __*_finite alias.
9763         * math/e_acosl.c: Likewise.
9764         * math/e_asinl.c: Likewise.
9765         * math/e_atan2l.c: Likewise.
9766         * math/e_atanhl.c: Likewise.
9767         * math/e_coshl.c: Likewise.
9768         * math/e_exp10.c: Likewise.
9769         * math/e_exp10f.c: Likewise.
9770         * math/e_exp10l.c: Likewise.
9771         * math/e_exp2l.c: Likewise.
9772         * math/e_fmodl.c: Likewise.
9773         * math/e_gammal_r.c: Likewise.
9774         * math/e_hypotl.c: Likewise.
9775         * math/e_j0l.c: Likewise.
9776         * math/e_j1l.c: Likewise.
9777         * math/e_jnl.c: Likewise.
9778         * math/e_lgammal_r.c: Likewise.
9779         * math/e_log10l.c: Likewise.
9780         * math/e_log2l.c: Likewise.
9781         * math/e_logl.c: Likewise.
9782         * math/e_powl.c: Likewise.
9783         * math/e_sinhl.c: Likewise.
9784         * math/e_sqrtl.c: Likewise.
9785         * math/e_scalb.c: Completely rewritten and optimized.
9786         * math/e_scalbf.c: Likewise.
9787         * math/e_scalbl.c: Likewise.
9788         * math/w_acos.c: Likewise.
9789         * math/w_acosf.c: Likewise.
9790         * math/w_acosl.c: Likewise.
9791         * math/w_acosh.c: Likewise.
9792         * math/w_acoshf.c: Likewise.
9793         * math/w_acoshl.c: Likewise.
9794         * math/w_asin.c: Likewise.
9795         * math/w_asinf.c: Likewise.
9796         * math/w_asinl.c: Likewise.
9797         * math/w_atan2.c: Likewise.
9798         * math/w_atan2f.c: Likewise.
9799         * math/w_atan2l.c: Likewise.
9800         * math/w_atanh.c: Likewise.
9801         * math/w_atanhf.c: Likewise.
9802         * math/w_atanhl.c: Likewise.
9803         * math/w_exp10.c: Likewise.
9804         * math/w_exp10f.c: Likewise.
9805         * math/w_exp10l.c: Likewise.
9806         * math/w_fmod.c: Likewise.
9807         * math/w_fmodf.c: Likewise.
9808         * math/w_fmodl.c: Likewise.
9809         * math/w_j0.c: Likewise.
9810         * math/w_j0f.c: Likewise.
9811         * math/w_j0l.c: Likewise.
9812         * math/w_j1.c: Likewise.
9813         * math/w_j1f.c: Likewise.
9814         * math/w_j1l.c: Likewise.
9815         * math/w_jn.c: Likewise.
9816         * math/w_jnf.c: Likewise.
9817         * math/w_log.c: Likewise.
9818         * math/w_logf.c: Likewise.
9819         * math/w_logl.c: Likewise.
9820         * math/w_log10.c: Likewise.
9821         * math/w_log10f.c: Likewise.
9822         * math/w_log10l.c: Likewise.
9823         * math/w_log2.c: Likewise.
9824         * math/w_log2f.c: Likewise.
9825         * math/w_log2l.c: Likewise.
9826         * math/w_pow.c: Likewise.
9827         * math/w_powf.c: Likewise.
9828         * math/w_powl.c: Likewise.
9829         * math/w_remainder.c: Likewise.
9830         * math/w_remainderf.c: Likewise.
9831         * math/w_remainderl.c: Likewise.
9832         * math/w_scalb.c: Likewise.
9833         * math/w_scalbf.c: Likewise.
9834         * math/w_scalbl.c: Likewise.
9835         * math/w_sqrt.c: Likewise.
9836         * math/w_sqrtf.c: Likewise.
9837         * math/w_sqrtl.c: Likewise.
9838         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
9839         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
9840         used.
9841         * math/math_private.h: Declare __kernel_standard_f.
9842         * math/w_cosh.c: Remove cruft and optimize a bit.
9843         * math/w_coshf.c: Likewise.
9844         * math/w_coshl.c: Likewise.
9845         * math/w_exp2.c: Likewise.
9846         * math/w_exp2f.c: Likewise.
9847         * math/w_exp2l.c: Likewise.
9848         * math/w_hypot.c: Likewise.
9849         * math/w_hypotf.c: Likewise.
9850         * math/w_hypotl.c: Likewise.
9851         * math/w_lgamma.c: Likewise.
9852         * math/w_lgamma_r.c: Likewise.
9853         * math/w_lgammaf.c: Likewise.
9854         * math/w_lgammaf_r.c: Likewise.
9855         * math/w_lgammal.c: Likewise.
9856         * math/w_lgammal_r.c: Likewise.
9857         * math/w_sinh.c: Likewise.
9858         * math/w_sinhf.c: Likewise.
9859         * math/w_sinhl.c: Likewise.
9860         * math/w_tgamma.c: Likewise.
9861         * math/w_tgammaf.c: Likewise.
9862         * math/w_tgammal.c: Likewise.
9863         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9864         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9865         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
9866         Minor optimizations.  Pretty printing.  Remove cruft.
9867         * sysdeps/i386/fpu/e_acosf.S: Likewise.
9868         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9869         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9870         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9871         * sysdeps/i386/fpu/e_acosl.c: Likewise.
9872         * sysdeps/i386/fpu/e_asin.S: Likewise.
9873         * sysdeps/i386/fpu/e_asinf.S: Likewise.
9874         * sysdeps/i386/fpu/e_atan2.S: Likewise.
9875         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
9876         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
9877         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9878         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9879         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9880         * sysdeps/i386/fpu/e_exp10.S: Likewise.
9881         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
9882         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
9883         * sysdeps/i386/fpu/e_exp2.S: Likewise.
9884         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
9885         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
9886         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9887         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
9888         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9889         * sysdeps/i386/fpu/e_hypot.S: Likewise.
9890         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
9891         * sysdeps/i386/fpu/e_log.S: Likewise.
9892         * sysdeps/i386/fpu/e_log10.S: Likewise.
9893         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9894         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9895         * sysdeps/i386/fpu/e_log2.S: Likewise.
9896         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9897         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9898         * sysdeps/i386/fpu/e_logf.S: Likewise.
9899         * sysdeps/i386/fpu/e_logl.S: Likewise.
9900         * sysdeps/i386/fpu/e_pow.S: Likewise.
9901         * sysdeps/i386/fpu/e_powf.S: Likewise.
9902         * sysdeps/i386/fpu/e_powl.S: Likewise.
9903         * sysdeps/i386/fpu/e_remainder.S: Likewise.
9904         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
9905         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
9906         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9907         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9908         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9909         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
9910         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
9911         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
9912         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9913         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9914         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9915         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9916         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9917         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9918         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9919         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9920         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9921         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9922         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9923         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9924         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9925         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9926         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9927         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9928         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9929         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9930         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9931         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9932         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9933         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9934         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9935         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9936         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9937         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9938         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9939         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9940         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9941         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9942         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9943         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9944         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9945         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9946         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9947         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9948         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9949         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9950         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9951         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9952         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9953         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9954         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9955         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9956         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9957         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9958         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9959         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9960         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9961         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9962         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9963         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9964         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9965         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9966         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9967         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9968         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9969         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9970         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9971         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9972         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9973         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9974         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9975         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9976         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9977         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9978         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9979         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9980         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9981         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9982         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9983         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9984         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9985         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9986         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9987         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9988         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
9989         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9990         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9991         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9992         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9993         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9994         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9995         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9996         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9997         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9998         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9999         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10000         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10001         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10002         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10003         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10004         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10005         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10006         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10007         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10008         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10009         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
10010         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
10011         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
10012         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
10013         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
10014         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
10015         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
10016         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10017         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10018         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10019         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10020         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
10021         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10022         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
10023         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
10024         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
10025         (__isnanf): Likewise.
10026         (__isinf_ns): Likewise.
10027         (__isinf_nsf): Likewise.
10028         (__finite): Likewise.
10029         (__finitef): Likewise.
10030         (__ieee754_sqrt): Define as macro.
10031         (__ieee754_sqrtf): Define as macro.
10032         (__ieee754_sqrtl): Define as macro.
10033         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
10034         inlined copy.
10035         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
10036         __FINITE_MATH_ONLY__ consistent.
10037         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
10038
10039 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
10040
10041         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
10042         of rawmemchr.
10043
10044         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
10045
10046 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
10047
10048         * po/ja.po: Update from translation team.
10049
10050 2011-10-08  Roland McGrath  <roland@hack.frob.com>
10051
10052         * locale/programs/locarchive.c (prepare_address_space): New function.
10053         (create_archive, enlarge_archive, open_archive): Use it.
10054
10055         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
10056         inside [SHARED], where it is used.
10057
10058         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
10059
10060         * nss/getent.c (netgroup_keys): Remove unused variable.
10061         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10062
10063 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
10064
10065         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
10066         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
10067         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
10068         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
10069         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
10070         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
10071         * math/Makefile (libm-calls): Add s_isinf_ns.
10072         * math/divtc3.c: Use __isinf_nsl instead of isinf.
10073         * math/multc3.c: Likewise.
10074         * math/s_casin.c: Likewise.
10075         * math/s_casinf.c: Likewise.
10076         * math/s_casinl.c: Likewise.
10077         * math/s_ccos.c: Likewise.
10078         * math/s_ccosf.c: Likewise.
10079         * math/s_ccosl.c: Likewise.
10080         * math/s_ctan.c: Likewise.
10081         * math/s_ctanf.c: Likewise.
10082         * math/s_ctanh.c: Likewise.
10083         * math/s_ctanhf.c: Likewise.
10084         * math/s_ctanhl.c: Likewise.
10085         * math/s_ctanl.c: Likewise.
10086         * math/w_fmod.c: Likewise.
10087         * math/w_fmodf.c: Likewise.
10088         * math/w_fmodl.c: Likewise.
10089         * math/w_remainder.c: Likewise.
10090         * math/w_remainderf.c: Likewise.
10091         * math/w_remainderl.c: Likewise.
10092         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
10093         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
10094         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
10095         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
10096         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
10097         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
10098         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
10099         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
10100
10101         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
10102         of the number.
10103         * stdio-common/printf_fphex.c: Likewise.
10104         * stdio-common/printf_size.c: Likewise.
10105
10106         * math/e_exp10.c: Include math_private.h using <...> not "...".
10107         * math/e_exp10f.c: Likewise.
10108         * math/e_exp10l.c: Likewise.
10109         * math/e_exp2l.c: Likewise.
10110         * math/e_j0l.c: Likewise.
10111         * math/e_j1l.c: Likewise.
10112         * math/e_jnl.c: Likewise.
10113         * math/e_lgammal_r.c: Likewise.
10114         * math/e_rem_pio2l.c: Likewise.
10115         * math/e_scalb.c: Likewise.
10116         * math/e_scalbf.c: Likewise.
10117         * math/e_scalbl.c: Likewise.
10118         * math/k_cosl.c: Likewise.
10119         * math/k_sinl.c: Likewise.
10120         * math/k_tanl.c: Likewise.
10121         * math/s_cacoshf.c: Likewise.
10122         * math/s_catan.c: Likewise.
10123         * math/s_catanf.c: Likewise.
10124         * math/s_catanh.c: Likewise.
10125         * math/s_catanhf.c: Likewise.
10126         * math/s_catanhl.c: Likewise.
10127         * math/s_catanl.c: Likewise.
10128         * math/s_ccosh.c: Likewise.
10129         * math/s_ccoshf.c: Likewise.
10130         * math/s_ccoshl.c: Likewise.
10131         * math/s_cexp.c: Likewise.
10132         * math/s_cexpf.c: Likewise.
10133         * math/s_cexpl.c: Likewise.
10134         * math/s_clog.c: Likewise.
10135         * math/s_clog10.c: Likewise.
10136         * math/s_clog10f.c: Likewise.
10137         * math/s_clog10l.c: Likewise.
10138         * math/s_clogf.c: Likewise.
10139         * math/s_clogl.c: Likewise.
10140         * math/s_csin.c: Likewise.
10141         * math/s_csinf.c: Likewise.
10142         * math/s_csinh.c: Likewise.
10143         * math/s_csinhf.c: Likewise.
10144         * math/s_csinhl.c: Likewise.
10145         * math/s_csinl.c: Likewise.
10146         * math/s_csqrt.c: Likewise.
10147         * math/s_csqrtf.c: Likewise.
10148         * math/s_csqrtl.c: Likewise.
10149         * math/s_ctan.c: Likewise.
10150         * math/s_ctanf.c: Likewise.
10151         * math/s_ctanh.c: Likewise.
10152         * math/s_ctanhf.c: Likewise.
10153         * math/s_ctanhl.c: Likewise.
10154         * math/s_ctanl.c: Likewise.
10155         * math/s_ldexp.c: Likewise.
10156         * math/s_ldexpf.c: Likewise.
10157         * math/s_ldexpl.c: Likewise.
10158         * math/s_significand.c: Likewise.
10159         * math/s_significandf.c: Likewise.
10160         * math/s_significandl.c: Likewise.
10161         * math/w_acos.c: Likewise.
10162         * math/w_acosf.c: Likewise.
10163         * math/w_acosh.c: Likewise.
10164         * math/w_acoshf.c: Likewise.
10165         * math/w_acoshl.c: Likewise.
10166         * math/w_acosl.c: Likewise.
10167         * math/w_asin.c: Likewise.
10168         * math/w_asinf.c: Likewise.
10169         * math/w_asinl.c: Likewise.
10170         * math/w_atan2.c: Likewise.
10171         * math/w_atan2f.c: Likewise.
10172         * math/w_atan2l.c: Likewise.
10173         * math/w_atanh.c: Likewise.
10174         * math/w_atanhf.c: Likewise.
10175         * math/w_atanhl.c: Likewise.
10176         * math/w_cosh.c: Likewise.
10177         * math/w_coshf.c: Likewise.
10178         * math/w_coshl.c: Likewise.
10179         * math/w_dremf.c: Likewise.
10180         * math/w_exp10.c: Likewise.
10181         * math/w_exp10f.c: Likewise.
10182         * math/w_exp10l.c: Likewise.
10183         * math/w_exp2.c: Likewise.
10184         * math/w_exp2f.c: Likewise.
10185         * math/w_fmod.c: Likewise.
10186         * math/w_fmodf.c: Likewise.
10187         * math/w_fmodl.c: Likewise.
10188         * math/w_hypot.c: Likewise.
10189         * math/w_hypotf.c: Likewise.
10190         * math/w_hypotl.c: Likewise.
10191         * math/w_j0.c: Likewise.
10192         * math/w_j0f.c: Likewise.
10193         * math/w_j0l.c: Likewise.
10194         * math/w_j1.c: Likewise.
10195         * math/w_j1f.c: Likewise.
10196         * math/w_j1l.c: Likewise.
10197         * math/w_jn.c: Likewise.
10198         * math/w_jnf.c: Likewise.
10199         * math/w_jnl.c: Likewise.
10200         * math/w_lgamma.c: Likewise.
10201         * math/w_lgamma_r.c: Likewise.
10202         * math/w_lgammaf.c: Likewise.
10203         * math/w_lgammaf_r.c: Likewise.
10204         * math/w_lgammal.c: Likewise.
10205         * math/w_lgammal_r.c: Likewise.
10206         * math/w_log.c: Likewise.
10207         * math/w_log10.c: Likewise.
10208         * math/w_log10f.c: Likewise.
10209         * math/w_log10l.c: Likewise.
10210         * math/w_log2.c: Likewise.
10211         * math/w_log2f.c: Likewise.
10212         * math/w_log2l.c: Likewise.
10213         * math/w_logf.c: Likewise.
10214         * math/w_logl.c: Likewise.
10215         * math/w_pow.c: Likewise.
10216         * math/w_powf.c: Likewise.
10217         * math/w_powl.c: Likewise.
10218         * math/w_remainder.c: Likewise.
10219         * math/w_remainderf.c: Likewise.
10220         * math/w_remainderl.c: Likewise.
10221         * math/w_scalb.c: Likewise.
10222         * math/w_scalbf.c: Likewise.
10223         * math/w_scalbl.c: Likewise.
10224         * math/w_sinh.c: Likewise.
10225         * math/w_sinhf.c: Likewise.
10226         * math/w_sinhl.c: Likewise.
10227         * math/w_sqrt.c: Likewise.
10228         * math/w_sqrtf.c: Likewise.
10229         * math/w_sqrtl.c: Likewise.
10230         * math/w_tgamma.c: Likewise.
10231         * math/w_tgammaf.c: Likewise.
10232         * math/w_tgammal.c: Likewise.
10233
10234         * po/ja.po: Update from translation team.
10235
10236 2011-09-29  Andreas Jaeger  <aj@suse.de>
10237
10238         [BZ #13179]
10239         * sunrpc/netname.c (netname2host): Fix logic.
10240
10241         [BZ #6779]
10242         [BZ #6783]
10243         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
10244         correctly.
10245         * math/w_remainder.c (__remainder): Likewise.
10246         * math/w_remainderf.c (__remainderf): Likewise.
10247         * math/libm-test.inc (remainder_test): Add test cases.
10248
10249 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10250
10251         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
10252         sdiv_qrnnd.
10253
10254 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10255
10256         * string/test-memcmp.c: Avoid unncessary #defines.
10257         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10258
10259 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10260
10261         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
10262         Use new sse2 version for core i3 - i7 as it's faster
10263         than sse42 version.
10264         (bit_Prefer_PMINUB_for_stringop): New.
10265         * sysdeps/x86_64/rawmemchr.S: Update.
10266         Replace with faster SSE2 version.
10267         * sysdeps/x86_64/memrchr.S: New file.
10268         * sysdeps/x86_64/memchr.S: Update.
10269         Replace with faster SSE2 version.
10270
10271 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
10272
10273         * elf/dl-load.c (lose): Add cast to avoid warning.
10274
10275 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10276
10277         * po/ca.po: Update from translation team.
10278
10279         * inet/getnetgrent_r.c: Hook up nscd.
10280         * nscd/Makefile (routines): Add nscd_netgroup.
10281         (nscd-modules): Add netgroupcache.
10282         (CFLAGS-netgroupcache.c): Define.
10283         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
10284         (cache_search): Add const to second parameter.
10285         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
10286         INNETGR.
10287         (dbs): Add netgrdb entry.
10288         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
10289         (verify_persistent_db): Handle netgrdb.
10290         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
10291         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
10292         GETFDNETGR.
10293         (netgroup_response_header): Define.
10294         (innetgroup_response_header): Define.
10295         (datahead): Add netgroup_response_header and innetgroup_response_header
10296         elements.
10297         * nscd/nscd.conf: Add entries for netgroup cache.
10298         * nscd/nscd.h (dbtype): Add netgrdb.
10299         (_PATH_NSCD_NETGROUP_DB): Define.
10300         (netgroup_iov_disabled): Declare.
10301         (xmalloc, xcalloc, xrealloc): Move declarations here.
10302         (cache_search): Adjust prototype.
10303         Add netgroup-related prototypes.
10304         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
10305         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
10306         (__nscd_innetgr): Declare.
10307         * nscd/selinux.c (perms): Use access_vector_t as element type and
10308         add netgroup-related initializers.
10309         * nscd/netgroupcache.c: New file.
10310         * nscd/nscd_netgroup.c: New file.
10311         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
10312         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
10313         For four parameters use innetgr.
10314         * nss/nss_files/files-init.c: Add definition and callback for netgr.
10315         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
10316         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
10317         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
10318
10319         * nscd/connections.c (register_traced_file): Don't register file
10320         for disabled databases.
10321
10322 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
10323
10324         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
10325
10326         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
10327         from tree and freeing node.
10328
10329 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
10330
10331         * nss/nsswitch.c (__nss_database_lookup): Handle
10332         nss_parse_service_list out of memory case.
10333
10334 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
10335
10336         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
10337         out of memory case.
10338
10339 2011-10-04  Andreas Schwab  <schwab@redhat.com>
10340
10341         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
10342         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
10343         pass it down.
10344         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
10345         elf_machine_rela, elf_machine_lazy_rel.
10346         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
10347         (ELF_DYNAMIC_DO_REL): Likewise.
10348         (ELF_DYNAMIC_DO_RELA): Likewise.
10349         (ELF_DYNAMIC_RELOCATE): Likewise.
10350         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
10351         to ELF_DYNAMIC_DO_REL.
10352         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
10353         (dl_main): In trace mode always set __RTLD_NOIFUNC.
10354         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
10355         elf_machine_rela.
10356         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
10357         skip_ifunc, don't call ifunc function if non-zero.
10358         (elf_machine_rela): Likewise.
10359         (elf_machine_lazy_rel): Likewise.
10360         (elf_machine_lazy_rela): Likewise.
10361         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
10362         (elf_machine_lazy_rel): Likewise.
10363         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10364         Likewise.
10365         (elf_machine_lazy_rel): Likewise.
10366         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10367         Likewise.
10368         (elf_machine_lazy_rel): Likewise.
10369         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
10370         (elf_machine_lazy_rel): Likewise.
10371         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
10372         (elf_machine_lazy_rel): Likewise.
10373         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10374         (elf_machine_lazy_rel): Likewise.
10375         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10376         (elf_machine_lazy_rel): Likewise.
10377         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10378         (elf_machine_lazy_rel): Likewise.
10379         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10380         (elf_machine_lazy_rel): Likewise.
10381
10382 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
10383
10384         * nss/nss_files/files-init.c (_nss_files_init): Use static
10385         initialization for all the *_traced_file variables.
10386
10387 2011-09-28  Andreas Schwab  <schwab@redhat.com>
10388
10389         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10390
10391 2011-09-27  Roland McGrath  <roland@hack.frob.com>
10392
10393         [BZ #13226]
10394         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
10395
10396 2011-09-27  Andreas Schwab  <schwab@redhat.com>
10397
10398         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10399         Reread the line before reparsing it.
10400
10401 2011-09-26  Andreas Schwab  <schwab@redhat.com>
10402
10403         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
10404
10405 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
10406             Maxim Kuvyrkov  <maxim@codesourcery.com>
10407             Joseph Myers  <joseph@codesourcery.com>
10408
10409         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
10410         if needed for __stack_chk_guard.
10411
10412 2011-09-19  Roland McGrath  <roland@hack.frob.com>
10413
10414         * sysdeps/posix/spawni.c (script_execute): Always define it.
10415         It will be optimized away if unused.
10416         (maybe_script_execute): New function.
10417         (__spawni): Call it.
10418
10419         * Makerules: Don't include tls.make.
10420         (config-tls): Always set to thread.
10421         * tls.make.c: File removed.
10422
10423 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
10424
10425         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
10426         * config.make.in (CPPFLAGS-config): New substituted variable.
10427
10428 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10429
10430         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
10431
10432         [BZ #13192]
10433         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
10434         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
10435
10436 2011-09-15  Roland McGrath  <roland@hack.frob.com>
10437
10438         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
10439         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
10440         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10441         (CALL_FAIL): Likewise.
10442         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
10443         (CALL_FAIL): Macro removed.
10444         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
10445
10446 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10447
10448         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
10449         for __FINITE_MATH_ONLY__ == 1.
10450
10451 2011-09-15  Andreas Schwab  <schwab@redhat.com>
10452
10453         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
10454         __ieee754_sqrt instead of sqrt.
10455         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
10456         __ieee754_sqrtf instead of sqrtf.
10457         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
10458         __floorf instead of floorf.
10459         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
10460         __floorf, __truncf instead of floorf, truncf.
10461
10462 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
10463
10464         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
10465
10466         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
10467         __extern_always_inline.
10468         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
10469         32-bit.
10470
10471 2011-09-14  Andreas Schwab  <schwab@redhat.com>
10472
10473         * elf/rtld.c (dl_main): Also relocate in dependency order when
10474         doing symbol dependency testing.
10475
10476 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
10477
10478         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10479         Always define `refsym'.
10480
10481 2011-09-13  Andreas Schwab  <schwab@redhat.com>
10482
10483         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
10484         (__FD_ELT): Renamed from __FDELT.
10485         * misc/bits/select2.h (__FD_ELT): Likewise.
10486         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
10487         __FD_MASK instead of __FDELT, __FDMASK.
10488         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10489         Likewise.
10490         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10491         Likewise.
10492
10493         * elf/Makefile (gen-ldd): Fix pattern.
10494
10495         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
10496         (init_tls): Likewise.
10497
10498 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
10499
10500         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
10501
10502 2011-09-12  Andreas Schwab  <schwab@redhat.com>
10503
10504         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
10505         `struct cmsghdr *' instead of `void *'.
10506         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
10507         Likewise.
10508
10509 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
10510
10511         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
10512         if non-absolute.
10513         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
10514         ldd_rewrite_script.
10515
10516 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
10517
10518         * configure.in: Remove --with-tls option.
10519         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
10520         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
10521         out in case it is missing.
10522         * sysdeps/ia64/elf/configure.in: Likewise.
10523         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
10524         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
10525         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
10526         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10527         * sysdeps/sh/elf/configure.in: Likewise.
10528         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
10529         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10530         * sysdeps/x86_64/elf/configure.in: Likewise.
10531         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
10532         * sysdeps/mach/hurd/tls.h: Likewise.
10533
10534         [BZ #13067]
10535         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
10536
10537         [BZ #13090]
10538         * configure.in: Fix use of AC_INIT.
10539
10540         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
10541
10542 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
10543
10544         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
10545         __set_errno.
10546         * malloc/hooks.c: Likewise.
10547
10548         [BZ #11929]
10549         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
10550         variables statically.
10551         (narenas): Initialize.
10552         (list_lock): Initialize.
10553         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
10554         initializtion of main_arena and list_lock.  Small cleanups.
10555         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
10556         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
10557         Add initializers to main_arena and mp_.
10558         (malloc_state): Remove pagesize member.  Change all users to use
10559         GLRO(dl_pagesize).
10560
10561         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
10562         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
10563         is always initialized.
10564
10565         * malloc/malloc.c: Removed unused configurations and dead code.
10566         * malloc/arena.c: Likewise.
10567         * malloc/hooks.c: Likewise.
10568         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
10569
10570         * include/tls.h: Removed.  USE___THREAD must always be defined.
10571         * bits/libc-tsd.h: Don't handle !USE___THREAD.
10572         * elf/dl-libc.c: Likewise.
10573         * elf/dl-tsd.c: Likewise.
10574         * include/errno.h: Likewise.
10575         * include/netdb.h: Likewise.
10576         * include/resolv.h: Likewise.
10577         * inet/herrno-loc.c: Likewise.
10578         * inet/herrno.c: Likewise.
10579         * malloc/arena.c: Likewise.
10580         * malloc/hooks.c: Likewise.
10581         * malloc/malloc.c: Likewise.
10582         * resolv/res-state.c: Likewise.
10583         * resolv/res_libc.c: Likewise.
10584         * sysdeps/i386/dl-machine.h: Likewise.
10585         * sysdeps/ia64/dl-machine.h: Likewise.
10586         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10587         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10588         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10589         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10590         * sysdeps/sh/dl-machine.h: Likewise.
10591         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10592         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10593         * sysdeps/unix/i386/sysdep.S: Likewise.
10594         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10595         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10596         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10597         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10598         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10599         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10600         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10601         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10602         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10603         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10604         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10605         * sysdeps/x86_64/dl-machine.h: Likewise.
10606         * tls.make.c: Likewise.
10607
10608         * configure.in: Remove --with-__thread option.  Make tests for
10609         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
10610         tls_model attribute fail if no support is available.  Remove
10611         USE_IN_LIBIO.
10612         * Makeconfig: Adjust for dropped configure option.  All features are
10613         now mandatory.
10614         * Makerules: Likewise.
10615         * Versions.def: Likewise.
10616         * argp/argp-fmtstream.c: Likewise.
10617         * argp/argp-fmtstream.h: Likewise.
10618         * argp/argp-help.c: Likewise.
10619         * assert/assert.c: Likewise.
10620         * config.h.in: Likewise.
10621         * config.make.in: Likewise.
10622         * configure: Likewise.
10623         * configure.in: Likewise.
10624         * csu/Versions: Likewise.
10625         * csu/init.c: Likewise.
10626         * elf/tst-audit2.c: Likewise.
10627         * elf/tst-tls10.c: Likewise.
10628         * elf/tst-tls10.h: Likewise.
10629         * elf/tst-tls11.c: Likewise.
10630         * elf/tst-tls12.c: Likewise.
10631         * elf/tst-tls14.c: Likewise.
10632         * elf/tst-tlsmod11.c: Likewise.
10633         * elf/tst-tlsmod12.c: Likewise.
10634         * elf/tst-tlsmod13.c: Likewise.
10635         * elf/tst-tlsmod13a.c: Likewise.
10636         * elf/tst-tlsmod14a.c: Likewise.
10637         * elf/tst-tlsmod15b.c: Likewise.
10638         * elf/tst-tlsmod16a.c: Likewise.
10639         * elf/tst-tlsmod16b.c: Likewise.
10640         * elf/tst-tlsmod7.c: Likewise.
10641         * elf/tst-tlsmod8.c: Likewise.
10642         * elf/tst-tlsmod9.c: Likewise.
10643         * gmon/gmon.c: Likewise.
10644         * grp/fgetgrent_r.c: Likewise.
10645         * grp/putgrent.c: Likewise.
10646         * hurd/fopenport.c: Likewise.
10647         * include/libc-symbols.h: Likewise.
10648         * include/tls.h: Likewise.
10649         * intl/gettextP.h: Likewise.
10650         * intl/loadinfo.h: Likewise.
10651         * locale/global-locale.c: Likewise.
10652         * locale/localeinfo.h: Likewise.
10653         * mach/devstream.c: Likewise.
10654         * malloc/arena.c: Likewise.
10655         * malloc/set-freeres.c: Likewise.
10656         * misc/err.c: Likewise.
10657         * misc/getttyent.c: Likewise.
10658         * misc/mntent_r.c: Likewise.
10659         * posix/getopt.c: Likewise.
10660         * posix/wordexp.c: Likewise.
10661         * pwd/fgetpwent_r.c: Likewise.
10662         * resolv/Versions: Likewise.
10663         * resolv/res_hconf.c: Likewise.
10664         * shadow/fgetspent_r.c: Likewise.
10665         * shadow/putspent.c: Likewise.
10666         * stdio-common/printf_fphex.c: Likewise.
10667         * stdio-common/tmpfile.c: Likewise.
10668         * stdlib/abort.c: Likewise.
10669         * stdlib/fmtmsg.c: Likewise.
10670         * sunrpc/auth_unix.c: Likewise.
10671         * sunrpc/clnt_perr.c: Likewise.
10672         * sunrpc/clnt_tcp.c: Likewise.
10673         * sunrpc/clnt_udp.c: Likewise.
10674         * sunrpc/clnt_unix.c: Likewise.
10675         * sunrpc/openchild.c: Likewise.
10676         * sunrpc/svc_simple.c: Likewise.
10677         * sunrpc/svc_tcp.c: Likewise.
10678         * sunrpc/svc_udp.c: Likewise.
10679         * sunrpc/svc_unix.c: Likewise.
10680         * sunrpc/xdr.c: Likewise.
10681         * sunrpc/xdr_array.c: Likewise.
10682         * sunrpc/xdr_rec.c: Likewise.
10683         * sunrpc/xdr_ref.c: Likewise.
10684         * sunrpc/xdr_stdio.c: Likewise.
10685
10686 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10687
10688         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10689
10690 2011-07-03  Andreas Jaeger  <aj@suse.de>
10691
10692         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
10693         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
10694         regenerate with gen-libm-tests.pl.
10695
10696 2010-05-12  Petr Baudis  <pasky@suse.cz>
10697
10698         [BZ #11589]
10699         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
10700         around j0() zero points by switching to j1().
10701         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10702         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10703         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10704         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10705
10706 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10707
10708         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
10709         instead of 0.
10710         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
10711         instead of 0.                              .
10712         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10713         Patch in part by Pavel Roskin <proski@gnu.org>.
10714
10715         [BZ #13138]
10716         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
10717         realloc.
10718         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
10719         Free memory block if necessary.
10720
10721         [BZ #12847]
10722         * libio/genops.c (INTDEF): For string streams the _lock pointer can
10723         be NULL.  Don't lock in this case.
10724
10725 2011-09-09  Roland McGrath  <roland@hack.frob.com>
10726
10727         * elf/elf.h (ELFOSABI_GNU): New macro.
10728         (ELFOSABI_LINUX): Define to that.
10729
10730 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
10731
10732         * string/strncat.c (strncat): Undef the symbol in case it has been
10733         defined in bits/string.h.
10734
10735 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10736
10737         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
10738
10739         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
10740         link map.
10741
10742 2011-08-17  Andreas Jaeger  <aj@suse.de>
10743
10744         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
10745
10746 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10747             Ian Lance Taylor  <iant@google.com>
10748
10749         * math/libm-test.inc (lround_test): New testcase.
10750         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
10751
10752 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
10753
10754         * Makefile: Remove support for automatic cvs check-ins.
10755         * Makerules: Likewise.
10756         * config.make.in: Likewise.
10757         * configure.in: Likewise.
10758         * intl/Makefile: Likewise.
10759         * locale/Makefile: Likewise.
10760         * po/Makefile: Likewise.
10761         * posix/Makefile: Likewise.
10762         * sysdeps/gnu/Makefile: Likewise.
10763         * sysdeps/mach/hurd/Makefile: Likewise.
10764         * sysdeps/sparc/sparc32/Makefile: Likewise.
10765
10766         [BZ #13118]
10767         * posix/Makefile (bug-regex32-ENV): Define.
10768         Patch by John Stanley <jpsinthemix@verizon.net>.
10769
10770         * misc/Makefile (headers): Add bits/select2.h.
10771         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
10772         * misc/bits/select2.h: New file.
10773         * include/bits/select2.h: New file.
10774         * debug/Makefile (routines): Add fdelt_chk.
10775         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
10776         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
10777         FD_ISSET.
10778         * debug/fdelt_chk.c: New file.
10779
10780         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
10781         * wcsmbs/test-wmemcmp.c: Likewise.
10782         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
10783         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
10784
10785 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10786
10787         * string/Makefile (strop-tests): Add memcmp.
10788         * string/test-wmemcmp.c: New file.
10789         * string/test-memcmp.c: Add wmemcmp support.
10790
10791 2011-09-08  Roland McGrath  <roland@hack.frob.com>
10792
10793         [BZ #13153]
10794         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
10795         2011-07-19 change.
10796
10797         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
10798         garbage value in a __mach_port_mod_refs call in the cases of the
10799         task-self and thread-self ports.
10800
10801 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10802
10803         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
10804
10805 2011-09-08  Andreas Schwab  <schwab@redhat.com>
10806
10807         * elf/dl-load.c (lose): Check for non-null L.
10808
10809 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10810
10811         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
10812
10813         * elf/dl-libc.c (dlerror_run): Pass back error code from
10814         dl_catch_error.
10815
10816         [BZ #13123]
10817         * elf/dl-load.c (lose): Free l_origin if it is valid.
10818
10819         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
10820         names.
10821         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
10822         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10823         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10824         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10825         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
10826         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
10827
10828 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10829
10830         * sysdeps/powerpc/fpu/e_hypot.c: New file.
10831         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
10832         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
10833         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
10834         * sysdeps/powerpc/fpu/k_cosf.c: New file.
10835         * sysdeps/powerpc/fpu/k_sinf.c: New file.
10836         * sysdeps/powerpc/fpu/s_cosf.c: New file.
10837         * sysdeps/powerpc/fpu/s_sinf.c: New file.
10838         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
10839         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
10840
10841 2011-08-15  Alan Modra  <amodra@gmail.com>
10842
10843         [BZ #13092]
10844         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
10845         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
10846         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
10847         ppc_mcount to static-only-routines.
10848         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
10849         __mcount_internal.
10850         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
10851         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
10852
10853 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
10854
10855         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
10856         for finite and infinity parameters.
10857
10858 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10859
10860         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
10861         and add nop instructions for throughput optimization.
10862         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10863
10864 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
10865
10866         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
10867         aligned copy for power7 with vector-scalar instructions.
10868         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
10869
10870 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
10871
10872         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
10873         AVX check.
10874
10875 2011-09-07  Andreas Schwab  <schwab@redhat.com>
10876
10877         [BZ #13144]
10878         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
10879         last change.
10880
10881 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10882
10883         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10884         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
10885         syscall wrapper around clock_gettime in __vdso_clock_gettime.
10886         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
10887         clock_gettime.
10888
10889 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10890
10891         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
10892         Forgot to demangle the pointer.
10893
10894         * sysdeps/i386/sysdep.h: Define atom_text_section.
10895         * sysdeps/x86_64/sysdep.h: Likewise.
10896         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
10897         section with atom_text_section.
10898         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10899         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10900         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
10901         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
10902         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
10903
10904         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
10905         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
10906         already be defined.  Change to take two parameters and don't assign
10907         result to variable.  Adjust all users.
10908         Define INTERNAL_GETTIME if not already defined.
10909         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
10910         call.
10911         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
10912         HAVE_CLOCK_GETTIME_VSYSCALL.
10913         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
10914
10915         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
10916         gettimeofday vsyscall, just use time.
10917
10918 2011-09-06  Andreas Schwab  <schwab@redhat.com>
10919
10920         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
10921         <errno.h>.
10922
10923 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10924
10925         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
10926         syscall on x86-64.
10927         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
10928         syscall.
10929         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
10930         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
10931         syscall if possible.
10932
10933 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10934
10935         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
10936         e_ident.  Don't pass to find_mapsXX.
10937         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
10938
10939 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10940
10941         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10942         strchr-sse2-no-bsf strrchr-sse2-no-bsf
10943         * sysdeps/x86_64/multiarch/strchr.S: Update.
10944         Check bit_slow_BSF bit.
10945         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
10946         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
10947         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
10948
10949 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10950
10951         [BZ #13134]
10952         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
10953         before glibc 2.15.
10954         (tryshell): Define.
10955         (__spawni): Change last parameter to be flag.  Test
10956         SPAWN_XFLAGS_USE_PATH flag to use path or not.
10957         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
10958         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
10959         * posix/spawni.c: Likewise.
10960         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
10961         * posix/spawnp.c: Likewise.  Change normal version to use
10962         SPAWN_XFLAGS_USE_PATH.
10963         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
10964         SPAWN_XFLAGS_TRY_SHELL.
10965
10966         [BZ #13150]
10967         * posix/glob.h: Remove gcc 1.x support.
10968
10969         [BZ #13068]
10970         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
10971
10972 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10973
10974         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10975         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
10976         strrchr-sse2-bsf
10977         * sysdeps/i386/i686/multiarch/strchr.S: New file.
10978         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
10979         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
10980         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
10981         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
10982         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
10983
10984 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10985
10986         * sysdeps/x86_64/wcscmp.S: New file.
10987
10988         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
10989         wcscmp-c wcscmp-sse2
10990         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
10991         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
10992         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
10993         * wcsmbs/wcscmp.c: Allow renaming.
10994
10995 2011-09-05  David S. Miller  <davem@davemloft.net>
10996
10997         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
10998         stack slot, rather than the struct return pointer slot.
10999         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
11000         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
11001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
11002         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
11003
11004 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11005
11006         * po/ja.po: Update from translation team.
11007
11008         [BZ #13144]
11009         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
11010         kernel in 64-bit binaries.
11011
11012 2011-09-01  David S. Miller  <davem@davemloft.net>
11013
11014         * elf/elf.h (HWCAP_SPARC_*): Move to..
11015         * sysdeps/sparc/sysdep.h: this new file and add new values.
11016         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
11017         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
11018         _DL_HWCAP_COUNT to 24.
11019         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
11020         entries.
11021         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
11022         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
11023         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
11024         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
11025         instead of magic constants.
11026         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11027
11028 2011-08-31  David S. Miller  <davem@davemloft.net>
11029
11030         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
11031         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
11032         Reimplement to do errno handling inline.
11033         (SYSCALL_ERROR_HANDLER): New macro.
11034         (__SYSCALL_STRING): Do not do errno handling in asm.
11035         (__CLONE_SYSCALL_STRING): Delete.
11036         (__INTERNAL_SYSCALL_STRING): Delete.
11037         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
11038         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
11039         (PSEUDO): Reimplement to do errno handling inline.
11040         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
11041         (SYSCALL_ERROR_HANDLER): New macro.
11042         (__SYSCALL_STRING): Do not do errno handling in asm.
11043         (__CLONE_SYSCALL_STRING): Delete.
11044         (__INTERNAL_SYSCALL_STRING): Delete.
11045         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
11046         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
11047         i386.
11048         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
11049         (inline_syscall*): Add 'err' argument.
11050         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
11051         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
11052         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
11053         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
11054
11055         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
11056         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
11057
11058 2011-08-30  Andreas Schwab  <schwab@redhat.com>
11059
11060         * elf/rtld.c (dl_main): Relocate objects in dependency order.
11061
11062 2011-08-29  Jiri Olsa <jolsa@redhat.com>
11063
11064         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
11065         directive.
11066
11067 2011-08-24  David S. Miller  <davem@davemloft.net>
11068
11069         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
11070
11071 2011-08-24  Andreas Schwab  <schwab@redhat.com>
11072
11073         * elf/Makefile: Add rules to build and run unload8 test.
11074         * elf/unload8.c: New file.
11075         * elf/unload8mod1.c: New file.
11076         * elf/unload8mod1x.c: New file.
11077         * elf/unload8mod2.c: New file.
11078         * elf/unload8mod3.c: New file.
11079
11080         * elf/dl-close.c (_dl_close_worker): Reset private search list if
11081         it wasn't used.
11082
11083 2011-08-23  David S. Miller  <davem@davemloft.net>
11084
11085         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
11086         subtract stack bias.
11087         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
11088         %sp not %fp in calculations.
11089         (_JMPBUF_UNWINDS_ADJ): Likewise.
11090
11091         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
11092         (aio_suspend): Call it to force an exception region around the
11093         AIO_MISC_WAIT() invocation.
11094
11095 2011-08-23  Andreas Schwab  <schwab@redhat.com>
11096
11097         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
11098         backslash.
11099
11100 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
11101
11102         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
11103         protection macro.
11104         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
11105         and <dl-machine.h>.
11106         (Elf64_FuncDesc): Remove.
11107
11108 2011-08-22  David S. Miller  <davem@davemloft.net>
11109
11110         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
11111         sigaltstack check, add missing cfi directives.
11112         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
11113         missing cfi directives, and sigaltstack handling.
11114
11115 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11116
11117         [BZ #11724]
11118         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
11119         object is seen twice.
11120         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11121
11122         * elf/Makefile (distribute): Add tst-initorder2.c.
11123         (tests): Add tst-initorder2.
11124         (modules-names): Add tst-initorder2a tst-initorder2b
11125         tst-initorder2c tst-initorder2d.  Add rules to build them.
11126         ($(objpfx)tst-initorder2.out): New rule.
11127         * elf/tst-initorder2.c: New file.
11128         * elf/tst-initorder2.exp: New file.
11129
11130 2011-08-22  Andreas Schwab  <schwab@redhat.com>
11131
11132         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
11133
11134         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
11135         dependencies back to end of function.
11136
11137         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11138         $(elfobjdir)/ld.so.
11139
11140 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
11141
11142         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
11143         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
11144         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11145         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11146         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
11147         of __vdso_gettimeofday.
11148         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
11149         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
11150         attribute_hidden.
11151         (_libc_vdso_platform_setup): Remove initialization of
11152         __vdso_gettimeofday and __vdso_time.
11153
11154 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11155
11156         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
11157         and fgetc_unlocked.
11158         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
11159         getc_unlocked.
11160
11161         * elf/dl-open.c (add_to_global): Report additions to the global scope
11162         for LD_DEBUG=scopes.
11163         (dl_open_worker): Also print scope of newly loaded dependencies.
11164         (_dl_show_scope): Indicate if there is no scope.
11165
11166         [BZ #13114]
11167         * stdio-common/Makefile (tests): Add bug24.
11168         * stdio-common/bug24.c: New file.
11169
11170 2011-08-19  Andreas Jaeger  <aj@suse.de>
11171
11172         [BZ #13114]
11173         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
11174         non-existant file when using close-on-exec mode.
11175
11176 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11177
11178         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
11179         the very first instruction.
11180
11181         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
11182         the CFI state in the end.
11183         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
11184         inclusion of dl-trampoline.h.
11185         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
11186
11187 2011-08-19  Andreas Schwab  <schwab@redhat.com>
11188
11189         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
11190         expectations for long double.
11191
11192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
11193         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
11194
11195 2011-08-14  David S. Miller  <davem@davemloft.net>
11196
11197         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
11198         artificual limit depends upon the system page size.
11199
11200 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11201
11202         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
11203         * resolv/Makefile: Define CFLAGS-libresolv.
11204
11205 2011-08-17  Andreas Schwab  <schwab@redhat.com>
11206
11207         * nss/makedb.c (compute_tables): Make variables used in nested
11208         function static.
11209
11210 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11211
11212         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
11213         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
11214         if buffer was too small.
11215
11216         * elf/pldd.c (main): Attach to all threads in the process.
11217         Rewrite /proc handling to use *at functions.
11218
11219 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
11220
11221         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
11222         specifies first scope to show.
11223         (dl_open_worker): Update callers.  Move printing scope of new
11224         object to before the relocation.
11225         * elf/rtld.c (dl_main): Update _dl_show_scope call.
11226         * sysdeps/generic/ldsodefs.h: Update declaration.
11227
11228         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
11229         string for the scope number.
11230
11231 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
11232
11233         * nscd/servicescache.c (cache_addserv): Make sure written is always
11234         initialized.
11235
11236 2011-08-14  Roland McGrath  <roland@hack.frob.com>
11237
11238         * sysdeps/i386/i486/bits/atomic.h
11239         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
11240         statement expression, so as to suppress "set but not used" warning.
11241         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
11242
11243         * string/strncat.c (STRNCAT): Use prototype definition.
11244
11245         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
11246         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
11247         -Iprograms here.
11248         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
11249         (localedef-modules): Add localedef.
11250         (locale-modules): Add locale.
11251
11252         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
11253         * elf/rtld.c (dl_main): Invert order of assignment in last change,
11254         to avoid a warning.
11255
11256 2011-08-14  David S. Miller  <davem@davemloft.net>
11257
11258         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
11259         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
11260
11261 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
11262
11263         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
11264         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
11265         * elf/rtld.c (dl_main): Set l_name of vDSO.
11266         Call _dl_show_scope when DL_DEBUG_SCOPES.
11267         (process_dl_debug): Recognize scopes flag and also set it for all.
11268         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
11269         Declare _dl_show_scope.
11270
11271         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
11272         (do_dlopen): Pass caller_dlopen to dl_open.
11273         (__libc_dlopen_mode): Initialize caller_dlopen.
11274
11275         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
11276         of libc.  Make tolower call locale-independent.  Optimize a bit by
11277         using isdigit instead of isalnum.
11278         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
11279
11280 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
11281
11282         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
11283         was a dependency or dynamically loaded.
11284
11285 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
11286
11287         * intl/l10nflist.c: Allow architecture-specific pop function.
11288         * sysdeps/x86_64/l10nflist.c: New file.
11289
11290         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
11291         classification.
11292
11293 2011-08-10  Andreas Schwab  <schwab@redhat.com>
11294
11295         * include/dirent.h: Add libc_hidden_proto for scandirat and
11296         scandirat64.  Don't declare __scandirat64.
11297         * dirent/scandirat.c: Add libc_hidden_def.
11298         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
11299         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
11300
11301 2011-08-10  David S. Miller  <davem@davemloft.net>
11302
11303         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
11304         enum.
11305         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11306         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11307         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11308
11309 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
11310
11311         * Versions.def [libc]: Add GLIBC_2.15.
11312         * dirent/Makefile (routines): Add scandirat and scandirat64.
11313         * dirent/Versions [libc]: Export scandirat and scandirat64 for
11314         GLIBC_2.15.
11315         * dirent/dirent.h: Declare scandirat and scandirat64.
11316         * dirent/scandirat.c: New file.
11317         * dirent/scandirat64.c: New file.
11318         * sysdeps/wordsize-64/scandirat.c: New file.
11319         * sysdeps/wordsize-64/scandirat64.c: New file.
11320         * dirent/opendir.c: Define opendirat.
11321         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
11322         using scandirat.
11323         * dirent/scandir64.c: Adjust for scandir.c change.
11324         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
11325         __scandirat64, and __scandir_cancel_handler.
11326         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
11327         additional parameter and use openat instead of open (outside of ld.so).
11328         Add new __opendir as wrapper around __opendirat.
11329         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
11330         here without requiring old scandirat implementation.
11331
11332 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
11333
11334         * dirent/scandir.c (cancel_handler): Renamed to
11335         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
11336         defined.  Adjust users.
11337         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
11338         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
11339
11340 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
11341
11342         * string/test-string.h (IMPL): Use __STRING to expand name and then
11343         stringify it.
11344
11345         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
11346         of cleanups.
11347
11348 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11349
11350         * string/Makefile: Update.
11351         (strop-tests): Append strncat.
11352         * string/test-wcscmp.c: New file.
11353         New comprehensive test for wcscmp.
11354         * string/test-strcmp.c: Update.
11355         (WIDE): New define.
11356
11357 2011-07-22  Andreas Schwab  <schwab@redhat.com>
11358
11359         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
11360         line.
11361
11362 2011-07-26  Andreas Schwab  <schwab@redhat.com>
11363
11364         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11365         encoding to ACE if AI_IDN.
11366
11367 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
11368
11369         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
11370         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
11371
11372 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11373
11374         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
11375         Fix overflow bug in strncat.
11376         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
11377
11378         * string/test-strncat.c: Update.
11379         Add new tests for checking overflow bugs.
11380
11381 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11382
11383         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11384         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
11385         * sysdeps/i386/i686/multiarch/strcat.S: New file.
11386         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
11387         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
11388         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
11389         * sysdeps/i386/i686/multiarch/strncat.S: New file.
11390         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
11391         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
11392
11393         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
11394         (USE_AS_STRCAT): Define.
11395         Add strcat and strncat support.
11396         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11397
11398 2011-07-25  Andreas Schwab  <schwab@redhat.com>
11399
11400         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
11401         __n bigger than INT_MAX+1.
11402         (__strncmp_g): Likewise.
11403
11404 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
11405
11406         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
11407         * libio/stido.h: Likewise.
11408
11409         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
11410         (AF_NFC): Define.
11411         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
11412         (AF_NFC): Define.
11413
11414         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
11415         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11416         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11417         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11418         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11419
11420         [BZ #13021]
11421         * scripts/test-installation.pl: Don't expect libnss_test1 to be
11422         installed.
11423
11424         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
11425         typo.
11426         (_dl_x86_64_save_sse): Likewise.
11427
11428 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
11429
11430         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
11431         OSXSAVE.
11432         (_dl_x86_64_save_sse): Likewise.
11433
11434         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
11435
11436         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
11437
11438 2011-07-21  Andreas Schwab  <schwab@redhat.com>
11439
11440         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
11441         change.
11442         (_dl_x86_64_save_sse): Use correct AVX check.
11443
11444 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11445
11446         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
11447         bug in strncpy/strncat.
11448         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
11449
11450 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
11451
11452         * string/tester.c (test_strcat): Add tests for different alignments
11453         of source and destination.
11454         (test_strncat): Likewise.
11455
11456 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11457
11458         [BZ #12852]
11459         * posix/glob.c (glob): Check passed in values before using them in
11460         expressions to avoid some overflows.
11461         (glob_in_dir): Likewise.
11462
11463         [BZ #13007]
11464         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
11465         check for AVX enablement so that we don't crash with old kernels and
11466         new hardware.
11467         * elf/tst-audit4.c: Add same checks here.
11468         * elf/tst-audit6.c: Likewise.
11469
11470         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
11471
11472 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
11473
11474         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
11475
11476 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11477
11478         * po/cs.po: Update from translation team.
11479         * po/bg.po: Likewise.
11480
11481 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
11482
11483         * misc/sys/cdefs.h: Add support for const attribute.
11484         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
11485         to gnu_dev_{major,minor,makedev} functions.
11486
11487 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
11488
11489         * intl/dcigettext.c (get_output_charset): Add missing bracket.
11490
11491 2011-07-20  Andreas Schwab  <schwab@redhat.com>
11492
11493         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
11494         strlen results.
11495
11496 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11497
11498         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
11499         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
11500         register in order to avoid conflicts with the soft frame pointer
11501         being held in r11 when necessary.
11502         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11503         (INTERNAL_VSYSCALL_NCS): Likewise.
11504
11505 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
11506
11507         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
11508         * elf/dl-fini.c (_dl_fini): Adjust caller.
11509         * elf/dl-close.c (_dl_close_worker): Likewise.
11510         * sysdeps/generic/ldsodefs.h: Adjust declaration.
11511
11512 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11513
11514         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
11515         "aux_cache->nlibs < 0".
11516
11517         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
11518         in the reload-count case.
11519
11520 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11521
11522         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11523         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
11524         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
11525         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
11526         * sysdeps/x86_64/multiarch/strcat.S: New file.
11527         * sysdeps/x86_64/multiarch/strncat.S: New file.
11528         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
11529         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
11530         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
11531         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
11532         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
11533         (USE_AS_STRCAT): Define.
11534         Add strcat and strncat support.
11535         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11536         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
11537         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
11538         * string/strncat.c: Update.
11539         (USE_AS_STRNCAT): Define.
11540         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11541         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
11542         and i7.
11543         * sysdeps/x86_64/multiarch/init-arch.h
11544         (bit_Prefer_PMINUB_for_stringop): New.
11545         (index_Prefer_PMINUB_for_stringop): Likewise.
11546         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
11547         bit_Prefer_PMINUB_for_stringop.
11548
11549 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11550
11551         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
11552         buffer64.
11553         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
11554         of casting of buffer.
11555         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
11556         buffer32 and buffer64.
11557         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
11558         writes instead of casting of buffer.
11559         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
11560         buffer32.
11561         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
11562         casting of buffer.
11563
11564 2011-07-19  Andreas Schwab  <schwab@redhat.com>
11565
11566         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
11567
11568 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11569
11570         * nscd/nscd.c (termination_handler): Don't do anything for a database
11571         if it has not yet been initialized.
11572
11573 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11574
11575         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11576
11577 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11578
11579         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11580
11581 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11582
11583         * po/nl.po: Update from translation team.
11584         * po/sv.po: Likewise.
11585
11586 2011-07-16  Roland McGrath  <roland@hack.frob.com>
11587
11588         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
11589         now disallowed by GCC.
11590
11591         * configure.in (use-default-link): Default to yes if a test -shared
11592         link meets our qualifications.
11593         * configure: Regenerated.
11594
11595         * config.make.in (output-format): New variable.
11596         * configure.in: Check for ld --print-output-format support.
11597         * configure: Regenerated.
11598         * Makerules ($(common-objpfx)format.lds)
11599         [$(output-format) != unknown]: Just use $(output-format),
11600         instead of the linker-script munging.
11601
11602 2011-07-14  Roland McGrath  <roland@hack.frob.com>
11603
11604         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
11605         of $(common-objpfx)shlib.lds.
11606         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
11607
11608         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
11609         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
11610
11611         * configure.in (-z relro check): Adjust test code to add a large
11612         writable data section after it.
11613         * configure: Regenerated.
11614
11615 2011-07-11  Roland McGrath  <roland@hack.frob.com>
11616
11617         * configure.in (-z relro check): Fix test code to make the variable
11618         truly const.
11619         * configure: Regenerated.
11620
11621 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
11622
11623         * nscd/nscd.h (struct traced_file): Define.
11624         (struct database_dyn): Remove inotify_descr, reset_res, and filename
11625         elements.  Add traced_files.
11626         (inotify_fd): Declare.
11627         (register_traced_file): Declare.
11628         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
11629         (inotify_fd): Export.
11630         (resolv_conf_descr): Remove.
11631         (nscd_init): Move inotify descriptor creation to main.
11632         Don't register files for notification here.
11633         (register_traced_file): New function.
11634         (invalidate_cache): Don't use reset_res to determine whether to call
11635         res_init, go through the list of registered files.
11636         (main_loop_poll): The inotify descriptors are now stored in the
11637         structures for the traced files.
11638         (main_loop_epoll): Likewise
11639         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
11640         to __nss_disable_nscd.
11641         * nscd/cache.c (prune_cache): There is no single inotify descriptor
11642         for a database anymore.  Check the records for all the registered
11643         files instead.
11644         * nss/Makefile (libnss_files-routines): Add files-init.
11645         (libnss_db-routines): Add db-init.
11646         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
11647         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
11648         * nss/nss_db/db-init.c: New file.
11649         * nss/nss_files/files-init.c: New file.
11650         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
11651         __nss_lookup_function.
11652         (__nss_lookup_function): Call nss_load_library.
11653         (nss_load_all_libraries): New function.
11654         (__nss_disable_nscd): Take parameter with callback function for files
11655         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
11656         used for the cached services.
11657         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
11658         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
11659         options for features to all the files in nscd.
11660
11661         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
11662
11663 2011-07-10  Roland McGrath  <roland@hack.frob.com>
11664
11665         * csu/elf-init.c (__libc_csu_init): Comment typo.
11666
11667 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
11668
11669         * po/pl.po: Update from translation team.
11670         * po/ja.po: Likewise.
11671         * po/ru.po: Likewise.
11672         * po/ko.po: Likewise.
11673         * po/fr.po: Likewise.
11674
11675 2011-07-09  Roland McGrath  <roland@hack.frob.com>
11676
11677         * configure.in (.ctors/.dtors header and trailer check):
11678         Use an empirical test on a built program.
11679         * configure: Regenerated.
11680
11681         * configure.in (-z relro check): Use an empirical test on a built DSO.
11682         Detect, but do not require, on ia64.
11683         * configure: Regenerated.
11684
11685         * configure.in (READELF): Find it with AC_CHECK_TOOL.
11686         Update tests that use readelf to use $READELF instead.
11687         * configure: Regenerated.
11688
11689 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
11690
11691         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
11692         if the result is not used.
11693
11694 2011-07-05  Andreas Jaeger  <aj@suse.de>
11695
11696         [BZ#9696]
11697         * stdlib/tst-strtod.c: Add testcase.
11698
11699 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11700
11701         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
11702         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
11703         The latter has a higher limit.  Take additional parameter to pass to
11704         the new function.
11705         (__pathconf): Pass file to __statfs_link_max.
11706         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
11707         __statfs_link_max.
11708         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
11709         __statfs_link_max.
11710
11711         [BZ #12868]
11712         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
11713         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11714         Handle Lustre.
11715         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
11716         (__statfs_filesize_max): Likewise.
11717         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
11718
11719 2011-07-05  Andreas Jaeger  <aj@suse.de>
11720
11721         * resolv/res_comp.c (dn_skipname): Remove unused variable.
11722
11723 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
11724
11725         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
11726         `status' variable.
11727         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
11728         Likewise.
11729
11730 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11731
11732         * Makefile (strop-tests): Add strncat.
11733         * string/test-strncat.c: New file.
11734
11735 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
11736
11737         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
11738
11739 2011-06-21  Andreas Jaeger  <aj@suse.de>
11740
11741         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
11742         Copy rule from iconvdata/Makefile.
11743
11744 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11745
11746         [BZ #12922]
11747         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
11748         but no long options are defined, just return 'W'.
11749
11750 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
11751
11752         [BZ #9696]
11753         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
11754
11755 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11756
11757         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
11758         netgroups to read.
11759         (innetgr): Likewise.
11760
11761 2011-07-05  Roland McGrath  <roland@hack.frob.com>
11762
11763         * config.make.in (install_root): Default to $(DESTDIR).
11764
11765 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
11766
11767         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
11768
11769 2011-07-02  Roland McGrath  <roland@hack.frob.com>
11770
11771         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
11772
11773         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
11774         containing directory rather than embedding absolute directory names.
11775
11776         * scripts/check-local-headers.sh: Rewritten using awk.
11777         Match by word, not by line.  Print error messages for matches.
11778         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
11779
11780         * Makerules [shlib-lds-flags empty]:
11781         ($(common-objpfx)libc_pic.opts): New target.
11782         ($(common-objpfx)libc_pic.os.clean): New target.
11783         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
11784
11785         * config.make.in (OBJCOPY): New variable.
11786         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
11787         * configure: Regenerated.
11788
11789         * config.make.in (use-default-link): New variable.
11790         * configure.in (use_default_link): Grok --with-default-link to set it.
11791         * configure: Regenerated.
11792         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
11793         (shlib-lds, shlib-lds-flags): Define to empty.
11794
11795         * Makerules (shlib-lds): New variable.
11796         (shlib-lds-flags): New variable.
11797         (build-shlib, build-moduile, build-module-asneeded): Use it.
11798         ($(common-objpfx)libc.so): Use $(shlib-lds).
11799         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
11800         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
11801
11802         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
11803         DT_FLAGS/DT_FLAGS_1 with zero flags.
11804
11805         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
11806         linker script munging.
11807
11808 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
11809
11810         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
11811         as 128-bit value.
11812         * crypt/sha512.c (sha512_process_block): Perform total addition using
11813         128-bit if possible.
11814         (__sha512_finish_ctx): Likewise.
11815         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
11816         as 64-bit value.
11817         * crypt/sha256.c (SWAP64): Define.
11818         (sha256_process_block): Perform total addition using 64-bit if
11819         possible.
11820         (__sha256_finish_ctx): Likewise.
11821
11822 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
11823
11824         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
11825         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11826         * nscd/hstcache.c (cache_addhst): Likewise.
11827         * nscd/grpcache.c (cache_addgr): Likewise.
11828         * nscd/aicache.c (addhstaiX): Likewise
11829         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
11830
11831 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
11832
11833         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
11834         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11835         * nscd/hstcache.c (cache_addhst): Likewise.
11836         * nscd/grpcache.c (cache_addgr): Likewise.
11837         * nscd/aicache.c (addhstaiX): Likewise
11838
11839 2011-07-01  Andreas Schwab  <schwab@redhat.com>
11840
11841         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
11842         domain only when needed.
11843
11844 2011-06-30  Andreas Schwab  <schwab@redhat.com>
11845
11846         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
11847         is always restored.
11848
11849 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
11850
11851         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
11852         are re-adding the entry.
11853         * nscd/servicescache.c (cache_addserv): Likewise.
11854
11855 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
11856
11857         * sysdeps/generic/dl-irel.h: fix protection against multiple
11858         inclusions.
11859         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
11860
11861 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
11862
11863         [BZ #12935]
11864         * malloc/memusage.sh: Fix quoting in message.
11865         * debug/xtrace.sh: Likewise.
11866
11867         * configure.in: Remove support for --experimental-malloc option, make
11868         it the default.
11869         * config.make.in: Likewise.
11870         * malloc/Makefile: Likewise.
11871
11872 2011-06-27  Andreas Schwab  <schwab@redhat.com>
11873
11874         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
11875         two-byte characters.
11876
11877 2011-06-27  Roland McGrath  <roland@hack.frob.com>
11878
11879         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
11880         AC_CACHE_CHECK invocation.
11881         * configure: Regenerated.
11882
11883         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
11884
11885 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
11886
11887         [BZ #12350]
11888         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
11889         bit from old_res_options.
11890
11891         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
11892
11893         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
11894         value type for setfct.
11895
11896 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11897
11898         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11899         __gettimeofday instead of gettimeofday.
11900
11901 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
11902
11903         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
11904
11905 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11906
11907         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
11908
11909         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
11910         info.
11911
11912 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11913
11914         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11915         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11916         strcpy-sse2-unaligned strncpy-sse2-unaligned
11917         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
11918         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
11919         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
11920         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
11921         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
11922         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
11923         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
11924         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
11925         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
11926         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
11927         (STRCPY): Support SSE2 and SSSE3 versions.
11928
11929 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
11930
11931         [BZ #12874]
11932         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
11933         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
11934         kernels which artificially limit size of requests.
11935
11936 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11937
11938         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11939         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11940         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
11941         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
11942         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
11943         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
11944         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
11945         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
11946         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
11947         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
11948         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
11949         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
11950         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
11951         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
11952         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
11953         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11954         Enable unaligned load optimization for Intel Core i3, i5 and i7
11955         processors.
11956         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
11957         Define.
11958         (index_Fast_Unaligned_Load): Define.
11959         (HAS_FAST_UNALIGNED_LOAD): Define.
11960
11961 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
11962
11963         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
11964
11965 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11966
11967         [BZ #12907]
11968         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
11969         until it is clear that the information is realy needed.
11970         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
11971
11972 2011-06-22  Andreas Schwab  <schwab@redhat.com>
11973
11974         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
11975
11976 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11977
11978         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11979         /sys/devices/system/cpu/online if it is usable.
11980
11981         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
11982         reading the information from the /proc filesystem to once a second.
11983
11984 2011-06-21  Andreas Jaeger  <aj@suse.de>
11985
11986         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
11987         NULL after inclusion of kernel headers.
11988
11989 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
11990
11991         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
11992         calls to internal_setent.
11993
11994         [BZ #12885]
11995         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
11996         addresses using gethostbyname4_r ignore IPv4 addresses.
11997
11998         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
11999         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
12000
12001         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
12002
12003 2011-06-20  David S. Miller  <davem@davemloft.net>
12004
12005         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
12006         inclusions.
12007         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
12008
12009         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
12010         (elf_irel): Use it.
12011         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
12012         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
12013         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
12014         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
12015         * sysdeps/x86_64/dl-irel.h: Likewise.
12016
12017         * elf/dl-runtime.c: Use elf_ifunc_invoke.
12018         * elf/dl-sym.c: Likewise.
12019
12020 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12021
12022         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
12023         need to dereference resplen2.
12024
12025 2011-06-14  Andreas Schwab  <schwab@redhat.com>
12026
12027         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
12028
12029 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12030
12031         * Makeconfig: Define vardbdir and inst_vardbdir.
12032         * nss/Makefile: Add rules to install db-Makefile.
12033
12034         * nss/nss_db/db-XXX.c: Cleanup.
12035
12036         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
12037         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
12038         GLIBC_PRIVATE.
12039         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
12040         * nss/makedb.c: Implement -g option to specify that value strings
12041         are generated and should not be added to table iterated over for
12042         get*ent calls.
12043         * nss/nss_db/db-initgroups.c: New file.
12044
12045         * nss/getent.c: Add support for initgroups lookups through getgrouplist
12046         interface.
12047
12048         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
12049         (internal_getgrouplist): Adjust to name change.
12050         Update use_initgroups_entry if this is not the first call.
12051         * nss/databases.def: Add initgroups entry.
12052
12053         * nss/makedb.c (compute_tables): Check result of multiple hash table
12054         sizes to minimize maximum chain length.
12055
12056 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
12057
12058         * Versions.def: Add entry for libnss_db.
12059         * shlib-versions: Likewise.
12060         * nss/Makefile: Add rules to build libnss_db.
12061         * nss/Versions: Add libnss_db information.  Organize libnss_files
12062         entries better.
12063         * nss/db-Makefile: Add gshadow support.  Change rules for the new
12064         makedb progra.  Some minor improvements to generate smaller files.
12065         * nss/nss_db/nss_db.h: Move NSS database header data structures to
12066         here from...
12067         * nss/makedb.c: ...here.
12068         Improve database format to be smaller and require less memory at
12069         runtime.
12070         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
12071         db anymore.
12072         * nss/nss_db/db-netgrp.c: Likewise.
12073         * nss/nss_db/db-open.c: Likewise.
12074         * nss/nss_files/flies-XXX.x: Adjust comments.
12075         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
12076         * nss/nss_files/files-grp.c: Likewise.
12077         * nss/nss_files/files-hosts.c: Likewise.
12078         * nss/nss_files/files-network.c: Likewise.
12079         * nss/nss_files/files-proto.c: Likewise.
12080         * nss/nss_files/files-pwd.c: Likewise.
12081         * nss/nss_files/files-rpc.c: Likewise.
12082         * nss/nss_files/files-service.c: Likewise.
12083         * nss/nss_files/files-sgrp.c: Likewise.
12084         * nss/nss_files/files-spwd.c: Likewise.
12085         * nss/nss_db/db-alias.c: Removed.
12086         * nss/nss_db/dummy-db.h: Removed.
12087
12088 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
12089
12090         * nss/makedb.c: Rewritten to not use database library.
12091         * nss/Makefile: Update to build new makedb program.
12092
12093 2011-06-14  Andreas Jaeger  <aj@suse.de>
12094
12095         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
12096         memset declaration.
12097
12098 2011-06-10  Andreas Schwab  <schwab@redhat.com>
12099
12100         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
12101         tmpbuf.
12102
12103 2011-06-10  Roland McGrath  <roland@hack.frob.com>
12104
12105         * Makerules (shlib.lds): Fail if the linker script comes out empty.
12106         * elf/Makefile ($(objpfx)ld.so): Likewise.
12107
12108         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
12109         Don't list ld.so twice in dependencies.
12110
12111         * posix/bug-regex31.c: Include <stdlib.h>.
12112
12113         * nscd/hstcache.c (cache_addhst): Remove unused variable.
12114
12115         * nis/nss_compat/compat-spwd.c
12116         (getspent_next_nss_netgr): Remove unused variable.
12117         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
12118
12119         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
12120         nonmembers" output to use the right array.
12121
12122         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
12123
12124         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
12125
12126         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
12127         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
12128         * catgets/gencat.c (read_input_file): Likewise.
12129         * locale/programs/locarchive.c (enlarge_archive): Likewise.
12130
12131         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
12132         variable definition inside #if's controlling its use.
12133
12134         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
12135
12136         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
12137
12138         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
12139
12140         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
12141         unreachable code.
12142
12143         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
12144
12145         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
12146         * configure: Regenerated.
12147
12148         * Makerules: Revert last change.
12149         * elf/Makefile: Likewise.
12150
12151 2011-06-09  Roland McGrath  <roland@hack.frob.com>
12152
12153         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
12154         * elf/Makefile ($(objpfx)librtld.os): Likewise.
12155         (reloc-link): Likewise.
12156
12157 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
12158
12159         * elf/Makefile: Add rules to build pldd.
12160         * elf/pldd.c: New file.
12161         * elf/pldd-xx.c: New file.
12162
12163 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
12164
12165         * version.h: Update for 2.15 development version.
12166
12167 2011-06-07  David S. Miller  <davem@davemloft.net>
12168
12169         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
12170         ifuncs.
12171         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
12172         elf_machine_lazy_rel): Likewise.
12173         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
12174         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
12175         elf_machine_lazy_rel): Likewise.
12176         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
12177         dl_hwcap via passed in argument.
12178         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
12179         Likewise.
12180
12181 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12182
12183         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
12184
12185 2011-06-06  Roland McGrath  <roland@hack.frob.com>
12186
12187         [BZ #12849]
12188         * manual/fdl-1.1.texi: New file, verbatim from:
12189         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
12190         * manual/lgpl-2.1.texi: New file, verbatim from:
12191         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
12192         * manual/Makefile (licenses): New variable, list those new file names.
12193         (texis): Use it.
12194         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
12195
12196         * manual/fdl.texi: File removed.
12197         * manual/lesser.texi: File removed.
12198         * manual/libc.texinfo (Copying, Documentation License):
12199         Use new @include file names, put @appendix directive before @include.
12200
12201 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
12202
12203         [BZ #12841]
12204         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
12205         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
12206         (mq_open): Add __NTH.
12207
12208 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12209
12210         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12211         Assume Intel Core i3/i5/i7 processor if AVX is available.
12212
12213 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12214
12215         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12216         typo.
12217
12218 2011-05-31  Andreas Schwab  <schwab@redhat.com>
12219
12220         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
12221         memory.  Use alloca_account.  Fix memory leak when retrying.
12222
12223 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12224
12225         * version.h (RELEASE): Bump for 2.14 release.
12226         * include/features.h (__GLIBC_MINOR__): Bump to 14.
12227
12228         * config.make.in (RANLIB): Remove entry.
12229
12230 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
12231
12232         * po/Makefile (po-sed-cmd): Add ksh to extensions.
12233         (libc.pot): Work around missing support for .ksh extension in xgettext.
12234
12235         [BZ #12684]
12236         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
12237         if both request failed.
12238         (send_dg): In case of server errors clear resplen or *resplen2.
12239
12240         [BZ #12454]
12241         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
12242         when there are multiple maps.
12243         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
12244         (_dl_fini): Remove test here.
12245
12246         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
12247
12248 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
12249
12250         [BZ #12350]
12251         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
12252         bit from old_res_options.
12253         (gaih_inet): Likewise.
12254
12255         [BZ #11099]
12256         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
12257         as signed.
12258
12259         * resolv/res_init.c (res_setoptions): Make the code more compact.
12260
12261         [BZ #11558]
12262         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
12263         set RES_USEVC.
12264
12265         [BZ #11634]
12266         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
12267
12268         * malloc/malloc.h: Mark malloc hook variables as deprecated.
12269
12270         [BZ #11781]
12271         * malloc/malloc.h: Declare malloc hook variables as volatile.
12272
12273         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
12274         in last patch.
12275
12276         [BZ #11799]
12277         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
12278         raise in the comment.
12279         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12280         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12281         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
12282
12283 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
12284
12285         [BZ #12811]
12286         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
12287         grow the buffers more if it already has to be sufficient.
12288         (build_wcs_upper_buffer): Likewise.
12289         * posix/regexec.c (check_matching): Likewise.
12290         (clean_state_log_if_needed): Likewise.
12291         (extend_buffers): Don't enlarge buffers beyond size of the input
12292         buffer.
12293         Patches mostly by Emil Wojak <emil@wojak.eu>.
12294         * posix/bug-regex32.c: New file.
12295         * posix/Makefile (tests): Add bug-regex32.
12296
12297         * locale/findlocale.c (_nl_find_locale): Return right away if
12298         _nl_explode_name failed.
12299         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12300
12301         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
12302
12303         * debug/xtrace.sh: Unify messages.
12304         * malloc/memusage.sh: Likewise.
12305
12306         [BZ #12813]
12307         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
12308         time symbol from vDSO.  Substitute with vsyscall if not available.
12309         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
12310         __vdso_time.
12311
12312         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
12313         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
12314         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
12315         Add sendmmsg and internal_sendmmsg.
12316         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
12317         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
12318         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
12319
12320         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
12321         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
12322         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
12323
12324 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
12325
12326         [BZ #12813]
12327         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
12328         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
12329         available.
12330         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
12331         __vdso_getcpu.
12332
12333         [BZ #12814]
12334         * iconvdata/Makefile (tests): Add bug-iconv9.
12335         * iconvdata/bug-iconv9.c: New file.
12336
12337 2011-05-27  Andreas Schwab  <schwab@redhat.com>
12338
12339         [BZ #12814]
12340         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
12341
12342 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12343
12344         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12345         (struct user_regs_struct): Change intcs field back to cs.
12346
12347 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
12348
12349         * po/ja.po: Update from translation team.
12350
12351 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
12352
12353         [BZ #12795]
12354         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
12355         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
12356
12357 2011-05-20  Andreas Schwab  <schwab@redhat.com>
12358
12359         * stdlib/longlong.h: Update from GCC.
12360
12361 2011-05-23  Andreas Schwab  <schwab@redhat.com>
12362
12363         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
12364         parameter name.
12365         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
12366         Add parameter name.
12367         (__sysconf): Pass it down.
12368
12369 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
12370
12371         [BZ #12671]
12372         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
12373         some situations.
12374         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12375         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
12376         add in in __libc_use_alloca calls.  Adjust callers.
12377         (glob): Use malloc in some situations.
12378
12379         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
12380         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
12381         pltexit.
12382
12383 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
12384
12385         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
12386         and CLOCK_BOOTTIME_ALARM.
12387
12388         [BZ #12782]
12389         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
12390         is returned.
12391
12392         * string/_strerror.c (__strerror_r): Print negative errors as signed
12393         numbers.
12394
12395         [BZ #12777]
12396         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
12397         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
12398         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
12399
12400         * configure.in: Fix typo in redirection and correct removal of test
12401         files in two cases.
12402
12403         [BZ #12788]
12404         * locale/setlocale.c (new_composite_name): Fix test to check for
12405         identical name of all categories.
12406
12407         [BZ #12792]
12408         * libio/filedoalloc.c (local_isatty): New function.
12409         (_IO_file_doallocate): Use local_isatty.
12410         * stdio-common/perror.c (perror): In case a new stream is used
12411         forward the stream error.
12412         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
12413         error flag.
12414
12415 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
12416
12417         [BZ #11869]
12418         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
12419         alloca.
12420         * include/alloca.h (extend_alloca_account): Define.
12421
12422         [BZ #11857]
12423         * posix/regex.h: Fix comments with documentation of user-accessible
12424         fields after compilation and describe correct free'ing of pattern
12425         after re_compile_pattern.
12426         Patch by Reuben Thomas <rrt@sc3d.org>.
12427
12428 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
12429
12430         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
12431         and -mno-altivec to prevent the compiler from using Altivec and/or
12432         VSX instructions when the corresponding registers are not available.
12433
12434 2011-05-19  Andreas Schwab  <schwab@redhat.com>
12435
12436         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
12437
12438 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
12439
12440         * libio/freopen.c (freopen): Use __dup2, not dup2.
12441         * libio/freopen64.c (freopen64): Likewise.
12442
12443 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12444
12445         [BZ #12775]
12446         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
12447         * math/Makefile (tests): Add test-powl.
12448         (CFLAGS-test-powl.c): Define.
12449         * math/test-powl.c: New file.
12450
12451 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12452
12453         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
12454
12455 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
12456
12457         [BZ #11837]
12458         * iconvdata/gb18030.c: Update to GB18020-2005.
12459
12460 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
12461
12462         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
12463         RE_SYNTAX_POSIX_AWK): Update to match recent development.
12464         Patch by Aharon Robbins <arnold@skeeve.com>.
12465
12466         [BZ #11892]
12467         * stdlib/putenv.c (putenv): Don't always create copy of the variable
12468         on the stack.
12469
12470         [BZ #11895]
12471         * misc/pselect.c (__pselect): Handle timeout value errors hidden
12472         through underflows.
12473
12474         [BZ #12766]
12475         * misc/error.c (error_at_line): Ensure file_name and old_file_name
12476         point to strings before performing equality test for error_one_per_line
12477         mode.
12478
12479         [BZ #11697]
12480         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
12481
12482         [BZ #11820]
12483         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12484         (struct user_fpregs_struct): Avoid __uint*_t types.
12485
12486         [BZ #6420]
12487         * malloc/mtrace.c (tr_where): Add additional parameter to point to
12488         symbol info.  Use it instead of calling _dl_addr locally.
12489         (lock_and_info): New function.
12490         (tr_freehook): Call lock_and_info and pass symbol info as additional
12491         parameter to tr_where.
12492         (tr_mallochook): Likewise.
12493         (tr_reallochook): Likewise.
12494         (tr_memalignhook): Likewise.
12495
12496         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
12497         used and couldn't be at all thread-safe.
12498
12499 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
12500
12501         * libio/freopen.c (freopen): Don't close old file descriptor
12502         before the new one is opened.  Instead dup the new file descriptor
12503         to the old one after the new stream is created.
12504         * libio/freopen64.c (freopen64): Likewise.
12505         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
12506         * libio/fileops.c (_IO_new_file_close_it): Handle new
12507         _IO_FLAGS2_NOCLOSE flag.
12508         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
12509         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
12510         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
12511         _IO_FLAGS2_NOCLOSE flag.
12512         * include/unistd.h: Add hidden_proto for dup3.
12513         Define __have_dup3.
12514         * io/dup3.c: Define hidden symbol.
12515         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
12516
12517         [BZ #7101]
12518         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
12519         when an incomplete long option is used.
12520         * posix/tst-getopt_long1.c: New file.
12521         * posix/Makefile (tests): Add tst-getopt_long1.
12522
12523         [BZ #10138]
12524         * scripts/config.guess: Update from autoconf-2.68.
12525         * scripts/config.sub: Likewise.
12526
12527         [BZ #10157]
12528         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
12529         tests into ...
12530         (has_cpuclock): ...this.  New function.
12531         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
12532         macro here based on has_cpuclock code.
12533
12534         [BZ #10149]
12535         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12536         First byte (not low byte) is now always NUL.
12537         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
12538
12539         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12540         Use non-cancelable interfaces.
12541
12542         [BZ #9809]
12543         * locale/iso-639.def: Add entry for Sorani.
12544
12545         [BZ #11901]
12546         * include/stdlib.h: Move include protection to the right place.
12547         Define abort_msg_s.  Declare __abort_msg with it.
12548         * stdlib/abort.c (__abort_msg): Adjust type.
12549         * assert/assert.c (__assert_fail_base): New function.  Majority
12550         of code from __assert_fail.  Allocate memory for __abort_msg with
12551         mmap.
12552         (__assert_fail): Now call __assert_fail_base.
12553         * assert/assert-perr.c: Remove bulk of implementation.  Use
12554         __assert_fail_base.
12555         * include/assert.hL Declare __assert_fail_base.
12556         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
12557         mmap.
12558         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
12559
12560 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
12561
12562         [BZ #11952]
12563         [BZ #12453]
12564         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
12565         until all modules are registered in the DTV.
12566         * elf/Makefile: Add rules to build and run tst-tls19.
12567         * elf/tst-tls19.c: New file.
12568         * elf/tst-tls19mod1.c: New file.
12569         * elf/tst-tls19mod2.c: New file.
12570         * elf/tst-tls19mod3.c: New file.
12571         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
12572
12573         [BZ #12083]
12574         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
12575         correctly.
12576
12577         [BZ #12601]
12578         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
12579         two-byte sequence errors.
12580         * iconvdata/Makefile (tests): Add bug-iconv8.
12581         * iconvdata/bug-iconv8.c: New file.
12582
12583         [BZ #12626]
12584         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
12585         buf2 definition.
12586
12587         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
12588
12589         [BZ #12432]
12590         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
12591         (dummy_getcfa): New function.
12592         (init): Get _Unwind_GetCFA address, use dummy if not found.
12593         (backtrace_helper): In recursion check, also check whether CFA changes.
12594         (__backtrace): Completely initialize arg.
12595
12596         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
12597         storing incomplete byte sequence in state object.  Avoid testing for
12598         guaranteed too small input if we know there is enough data available.
12599
12600 2011-05-11  Andreas Schwab  <schwab@redhat.com>
12601
12602         * Makeconfig (+link-pie): Indent.
12603         * Rules (binaries-pie): Define if $(have-fpie) and
12604         $(build-shared).
12605         (binaries-shared): Also filter out $(binaries-pie).
12606         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
12607         * nscd/Makefile (others-pie): Add nscd.
12608         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
12609         ($(objpfx)nscd): Remove command override.
12610         * login/Makefile (others-pie): Add pt_chown.
12611         ($(objpfx)pt_chown): Remove command override.
12612         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
12613         remove command overrides.
12614
12615 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
12616
12617         * libio/tst_putwc.c: Fix error messages.
12618
12619         [BZ #12724]
12620         * libio/fileops.c (_IO_new_file_close_it): Always flush when
12621         currently writing and seek to current position when not.
12622         * libio/Makefile (tests): Add bug-fclose1.
12623         * libio/bug-fclose1.c: New file.
12624
12625 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
12626
12627         [BZ #12511]
12628         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
12629         don't set DF_1_NODELETE here.
12630         (do_lookup_x): When entering new entry test for copy relocation
12631         and if necessary set DF_1_NODELETE flag.
12632         * elf/tst-unique4.cc: New file.
12633         * elf/tst-unique4.h: New file.
12634         * elf/tst-unique4lib.cc: New file.
12635         * elf/Makefile: Add rules to build and run tst-unique4.
12636         Patch by Piotr Bury <pbury@goahead.com>.
12637
12638 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12639
12640         [BZ #12052]
12641         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
12642
12643         [BZ #12625]
12644         * misc/mntent_r.c (addmntent): Flush the stream after the output
12645
12646         [BZ #12393]
12647         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
12648         (is_trusted_path_normalize): Skip initial colon.  Append slash
12649         to empty buffer.  Duplicate is_trusted_path code but allow
12650         constructed patch to be prefix.
12651         (is_dst): Allow $ORIGIN followed by /.
12652         (_dl_dst_substitute): Correct clearing of check_for_trusted.
12653         Correct testing of result of is_trusted_path_normalize
12654         (decompose_rpath): Fix warning.
12655
12656 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
12657
12658         [BZ #11257]
12659         * grp/initgroups.c (internal_getgrouplist): When we found the service
12660         list through the initgroups entry in nsswitch.conf do not always
12661         continue on a successful lookup.  Don't always use the
12662         __nss_group_database value if it is set.
12663         * nss/nsswitch.conf (initgroups): Change action for successful db
12664         lookup to continue for compatibility.
12665
12666 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
12667
12668         [BZ #11532]
12669         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
12670         and CP774 modules.
12671         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
12672         and CP774 modules.
12673         * iconvdata/tst-tables.sh: Likewise.
12674         * iconvdata/cp770.c: New file.
12675         * iconvdata/cp771.c: New file.
12676         * iconvdata/cp772.c: New file.
12677         * iconvdata/cp773.c: New file.
12678         * iconvdata/cp774.c: New file.
12679         * iconvdata/testdata/CP770: New file.
12680         * iconvdata/testdata/CP770..UTF8: New file.
12681         * iconvdata/testdata/CP771: New file.
12682         * iconvdata/testdata/CP771..UTF8: New file.
12683         * iconvdata/testdata/CP772: New file.
12684         * iconvdata/testdata/CP772..UTF8: New file.
12685         * iconvdata/testdata/CP773: New file.
12686         * iconvdata/testdata/CP773..UTF8: New file.
12687         * iconvdata/testdata/CP774: New file.
12688         * iconvdata/testdata/CP774..UTF8: New file.
12689
12690         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
12691         END CHARMAP line.
12692         * iconvdata/gen-8bit-gap.sh: Likewise.
12693         * iconvdata/gen-8bit.sh: Likewise.
12694
12695         * locale/iso-639.def: Add ary entry.
12696
12697         [BZ #11258]
12698         * locale/C-translit.h.in: Add U20A1 transliteration.
12699
12700         [BZ #12178]
12701         * locale/iso-639.def: Add wae entry.
12702         Patch by Kevin Bortis <bortis@translate-wae.ch>.
12703
12704         [BZ #12545]
12705         * locale/programs/localedef.c (construct_output_path): Use ssize_t
12706         for n.
12707
12708         [BZ #12711]
12709         * locale/C-translit.h.in: Add entry for U20B9.
12710         Patch by pravin.d.s@gmail.com.
12711
12712 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
12713
12714         [BZ #12713]
12715         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
12716         ENAMETOOLONG use generic getcwd.
12717         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
12718         in rtld.  Use *stat64.
12719         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
12720         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
12721         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
12722         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
12723         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
12724         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
12725         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
12726         __fstatat64 macros.
12727         * include/dirent.h: Add libc_hidden_proto for rewinddir.
12728         * dirent/rewinddir.c: Add libc_hidden_def.
12729         * sysdeps/mach/hurd/rewinddir.c: Likewise.
12730         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
12731
12732         * include/dirent.h (__alloc_dir): Add flags parameter.
12733         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
12734         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
12735         __alloc_dir.
12736         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
12737         from fdopendir if O_CLOEXEC is already set.
12738
12739 2011-03-15  Alan Modra  <amodra@gmail.com>
12740
12741         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
12742         l_tls_firstbyte_offset non-zero.  Save padding offset in
12743         l_tls_firstbyte_offset for later use.
12744         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
12745         freeing static tls block.
12746
12747 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
12748
12749         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
12750         where #ifdef was intended.  The intent is to prevent ARG_MAX from
12751         being defined by the kernel headers.
12752
12753 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
12754
12755         [BZ #12734]
12756         * resolv/resolv.h: Define RES_NOTLDQUERY.
12757         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
12758         no-tld-query and set RES_NOTLDQUERY.
12759         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
12760         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
12761         modern BIND to search name as TLD unless forbidden.
12762
12763 2011-05-07  Petr Baudis  <pasky@suse.cz>
12764             Ulrich Drepper  <drepper@gmail.com>
12765
12766         [BZ #12393]
12767         * elf/dl-load.c (fillin_rpath): Move trusted path check...
12768         (is_trusted_path): ...to here.
12769         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
12770         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
12771         using is_trusted_path_normalize() in setuid scripts.
12772
12773 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12774
12775         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
12776         __BEGIN/__END_DECLS.
12777
12778 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
12779
12780         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
12781         NSS_STATUS_NOTFOUND if no record was found.
12782
12783 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12784
12785         * sunrpc/Makefile (headers): Add rpc/netdb.h.
12786         (headers-not-in-tirpc): Remove rpc/netdb.h
12787         * resolv/netdb.h: Revert last change.
12788
12789 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12790
12791         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
12792         circular dependency between libgcc.a and libc.a.
12793
12794 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12795
12796         * resolv/netdb.h: Don't include <rpc/netdb.h>.
12797         * nis/Makefile: Don't install rpcsvc/*.
12798         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
12799         instead of <rpc/types.h>.
12800         (MAXHOSTNAMELEN): Define.
12801
12802 2011-05-03  Andreas Schwab  <schwab@redhat.com>
12803
12804         * elf/ldconfig.c (add_dir): Don't crash on empty path.
12805
12806 2011-04-28  Maciej Babinski  <mbabinski@google.com>
12807
12808         [BZ #12714]
12809         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
12810         gethostbyname4_r when IPv6 results are possible.
12811
12812 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
12813
12814         [BZ #12723]
12815         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
12816         _PC_PIPE_BUF handling.
12817
12818 2011-04-30  Bruno Haible  <bruno@clisp.org>
12819
12820         [BZ #12717]
12821         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
12822         * resolv/netdb.h (getnameinfo): Change type of flags parameter
12823         to 'int'.
12824         * inet/getnameinfo.c (getnameinfo): Likewise.
12825
12826 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
12827
12828         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
12829         to groups setting in database lookup.
12830         * nss/nsswitch.conf: Add initgroups entry.
12831
12832 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
12833
12834         [BZ #12685]
12835         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
12836         mode string.
12837         Patch by Eric Blake <eblake@redhat.com>.
12838
12839 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
12840
12841         * sunrpc/Makefile (need-export-routines): Add svc_run.
12842         (routines): Remove svc_run.
12843         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
12844         * sunrpc/clnt_perr.c (clnt_perrno): Export.
12845         * sunrpc/svc_run.c (svc_run): Likewise.
12846         * sunrpc/svc_udp.c (svcudp_create): Likewise.
12847
12848 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
12849
12850         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
12851         problem in reallocation in last patch.
12852
12853 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
12854
12855         * sunrpc/Makefile: Move inclusion of Rules.
12856
12857 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12858
12859         * nss/nss_files/files-initgroups.c: New file.
12860         * nss/Makefile (libnss_files-routines): Add files-initgroups.
12861         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
12862         _nss_files_initgroups_dyn.
12863
12864 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
12865
12866         * elf/elf.h (R_ARM_IRELATIVE): Define.
12867
12868 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12869
12870         * po/ru.po: Update from translation team.
12871
12872 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12873
12874         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
12875         dependencies.
12876
12877 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
12878
12879         [BZ #12653]
12880         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
12881         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
12882         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12883         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12884         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12885
12886 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
12887
12888         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
12889         differing bytes.
12890         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12891         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12892         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12893
12894 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12895
12896         [BZ #12420]
12897         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
12898         storing it.
12899         * stdlib/bug-getcontext.c: New file.
12900         * stdlib/Makefile: Add rules to build and run bug-getcontext.
12901
12902 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12903
12904         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
12905         instructions into .machine "z9-109".
12906         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
12907         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
12908
12909 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12910
12911         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
12912         between environment variables and auxiliary vector.
12913
12914 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
12915
12916         * Makefile: Add rules to build linkobj/libc.so.
12917         * include/libc-symbols.h: Define libc_hidden_nolink.
12918         * include/rpc/auth.h: Mark functions which are to be hidden.
12919         * include/rpc/auth_des.h: Likewise.
12920         * include/rpc/auth_unix.h: Likewise.
12921         * include/rpc/clnt.h: Likewise.
12922         * include/rpc/des_crypt.h: Likewise.
12923         * include/rpc/key_prot.h: Likewise.
12924         * include/rpc/pmap_clnt.h: Likewise.
12925         * include/rpc/pmap_prot.h: Likewise.
12926         * include/rpc/pmap_rmt.h: Likewise.
12927         * include/rpc/rpc_msg.h: Likewise.
12928         * include/rpc/svc.h: Likewise.
12929         * include/rpc/svc_auth.h: Likewise.
12930         * include/rpc/xdr.h: Likewise.
12931         * nis/Makefile: Link all DSOs against linkobj/libc.so.
12932         * nss/Makefile: Likewise.
12933         * sunrpc/Makefile: Don't install headers.  Build library with normal
12934         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
12935         * sunrpc/auth_des.c: Hide exported symbols by default, export some
12936         for the compat linking library.  Remove use of INTDEF/INTUSE.
12937         * sunrpc/auth_none.c: Likewise.
12938         * sunrpc/auth_unix.c: Likewise.
12939         * sunrpc/authdes_prot.c: Likewise.
12940         * sunrpc/authuxprot.c: Likewise.
12941         * sunrpc/clnt_gen.c: Likewise.
12942         * sunrpc/clnt_perr.c: Likewise.
12943         * sunrpc/clnt_raw.c: Likewise.
12944         * sunrpc/clnt_simp.c: Likewise.
12945         * sunrpc/clnt_tcp.c: Likewise.
12946         * sunrpc/clnt_udp.c: Likewise.
12947         * sunrpc/clnt_unix.c: Likewise.
12948         * sunrpc/des_crypt.c: Likewise.
12949         * sunrpc/des_soft.c: Likewise.
12950         * sunrpc/get_myaddr.c: Likewise.
12951         * sunrpc/key_call.c: Likewise.
12952         * sunrpc/key_prot.c: Likewise.
12953         * sunrpc/netname.c: Likewise.
12954         * sunrpc/pm_getmaps.c: Likewise.
12955         * sunrpc/pm_getport.c: Likewise.
12956         * sunrpc/pmap_clnt.c: Likewise.
12957         * sunrpc/pmap_prot.c: Likewise.
12958         * sunrpc/pmap_prot2.c: Likewise.
12959         * sunrpc/pmap_rmt.c: Likewise.
12960         * sunrpc/publickey.c: Likewise.
12961         * sunrpc/rpc_cmsg.c: Likewise.
12962         * sunrpc/rpc_common.c: Likewise.
12963         * sunrpc/rpc_dtable.c: Likewise.
12964         * sunrpc/rpc_prot.c: Likewise.
12965         * sunrpc/rpc_thread.c: Likewise.
12966         * sunrpc/rtime.c: Likewise.
12967         * sunrpc/svc.c: Likewise.
12968         * sunrpc/svc_auth.c: Likewise.
12969         * sunrpc/svc_authux.c: Likewise.
12970         * sunrpc/svc_raw.c: Likewise.
12971         * sunrpc/svc_run.c: Likewise.
12972         * sunrpc/svc_simple.c: Likewise.
12973         * sunrpc/svc_tcp.c: Likewise.
12974         * sunrpc/svc_udp.c: Likewise.
12975         * sunrpc/svc_unix.c: Likewise.
12976         * sunrpc/svcauth_des.c: Likewise.
12977         * sunrpc/xcrypt.c: Likewise.
12978         * sunrpc/xdr.c: Likewise.
12979         * sunrpc/xdr_array.c: Likewise.
12980         * sunrpc/xdr_float.c: Likewise.
12981         * sunrpc/xdr_intXX_t.c: Likewise.
12982         * sunrpc/xdr_mem.c: Likewise.
12983         * sunrpc/xdr_rec.c: Likewise.
12984         * sunrpc/xdr_ref.c: Likewise.
12985         * sunrpc/xdr_sizeof.c: Likewise.
12986         * sunrpc/xdr_stdio.c: Likewise.
12987
12988 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
12989
12990         [BZ #12650]
12991         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
12992         * sysdeps/ia64/dl-tls.h: Likewise.
12993         * sysdeps/powerpc/dl-tls.h: Likewise.
12994         * sysdeps/s390/dl-tls.h: Likewise.
12995         * sysdeps/sh/dl-tls.h: Likewise.
12996         * sysdeps/sparc/dl-tls.h: Likewise.
12997         * sysdeps/x86_64/dl-tls.h: Likewise.
12998         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
12999
13000 2011-03-14  Andreas Schwab  <schwab@redhat.com>
13001
13002         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
13003         rpath element also skip the following colon.
13004         (expand_dynamic_string_token): Add is_path parameter and pass
13005         down to DL_DST_REQUIRED and _dl_dst_substitute.
13006         (decompose_rpath): Call expand_dynamic_string_token with
13007         non-zero is_path.  Ignore empty rpaths.
13008         (_dl_map_object_from_fd): Call expand_dynamic_string_token
13009         with zero is_path.
13010
13011 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
13012
13013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13014         Make cancelable.
13015
13016 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
13017
13018         [BZ #12655]
13019         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
13020         Patch by Filipe David Manana <fdmanana@apache.org>.
13021
13022 2011-04-07  Andreas Schwab  <schwab@redhat.com>
13023
13024         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
13025         Maintain aligned stack.
13026         (CHECK_RSP): Remove unused macro.
13027
13028 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
13029
13030         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
13031         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
13032
13033 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
13034
13035         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
13036
13037         * include/features.h: Mention __USE_XOPEN2K8 in comment.
13038
13039 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
13040
13041         [BZ #12518]
13042         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
13043         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
13044         * sysdeps/x86_64/memmove.c: New file.
13045         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
13046         (memcpy): Renamed to ...
13047         (__new_memcpy): This.
13048         (memcpy): Provide GLIBC_2_14 memcpy.
13049         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
13050         (memcpy): Provide GLIBC_2_2_5 memcpy.
13051
13052 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13053
13054         [BZ #12631]
13055         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
13056
13057 2011-03-30  Andreas Schwab  <schwab@redhat.com>
13058
13059         * misc/syncfs.c: New file.
13060         * misc/Makefile (routines): Add syncfs.
13061         * posix/unistd.h: Declare syncfs.
13062         * sysdeps/unix/syscalls.list: Add syncfs.
13063
13064 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13065
13066         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
13067         open_by_handle_at.
13068         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13069         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13070         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13071         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13072         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13073         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
13074         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13075
13076 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13077
13078         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
13079         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13080         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13081         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13082         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13083         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13084         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13085
13086         * io/Makefile: Compile fallocate.c, fallocate64.c, and
13087         sync_file_range.c with -fexceptions.
13088         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
13089         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
13090         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
13091         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
13092         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13093         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13094         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
13095         sync_file_range as cancellation point
13096         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
13097         now a wrapper around __call_sync_file_range with cancellation handling.
13098         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
13099         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
13100         function name to __call_sync_file_range.
13101         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
13102         Add call_sync_file_range.
13103
13104 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13105
13106         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13107         bits/timex.h.
13108
13109 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13110
13111         * iconv/iconv.h: Fix typo in comment.
13112         * io/fcntl.h: Likewise.
13113         * libio/stdio.h: Likewise.
13114         * posix/spawn.h: Likewise.
13115         * posix/unistd.h: Likewise.
13116         * stdlib/stdlib.h: Likewise.
13117         * time/time.h: Likewise.
13118         * wcsmbs/wchar.h: Likewise.
13119
13120         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
13121         open_by_handle): Add.
13122         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
13123         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
13124         Augment a few comments.
13125         * sysdeps/unix/sysv/linux/ia64/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         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
13131         open_by_handle.
13132
13133         * io/fcntl.h (AT_EMPTY_PATH): Define.
13134
13135 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
13136
13137         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
13138         * sysdeps/unix/sysv/linux/bits/time.h: New file.
13139         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
13140         to...
13141         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
13142         * Versions.def: Add GLIBC_2.14.
13143         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
13144         Export.
13145
13146 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
13147
13148         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
13149         round counter.
13150         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13151
13152 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13153
13154         [BZ #12597]
13155         * string/test-strncmp.c (do_page_test): New function.
13156         (check2): Likewise.
13157         (test_main): Call check2.
13158         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
13159
13160 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
13161
13162         [BZ #12587]
13163         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13164         Handle cache information in CPU leaf 4.
13165         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13166
13167 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
13168
13169         [BZ #12583]
13170         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
13171         character representation.
13172         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
13173
13174 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
13175
13176         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
13177         END(__isnan) to END(__isnanf) to match function entry point/label
13178         EALIGN(__isnanf,...).
13179
13180 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
13181
13182         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
13183
13184 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
13185
13186         [BZ #12510]
13187         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
13188         copy from the symbol referenced in the relocation to initialize the
13189         used variable.
13190         Patch by Piotr Bury <pbury@goahead.com>.
13191         * elf/Makefile: Add rules to build and tst-unique3.
13192         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
13193         * elf/tst-unique3.cc: New file.
13194         * elf/tst-unique3.h: New file.
13195         * elf/tst-unique3lib.cc: New file.
13196         * elf/tst-unique3lib2.cc: New file.
13197
13198         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
13199
13200 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
13201
13202         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
13203         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
13204         to _start.
13205
13206 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
13207
13208         * elf/dl-load.c (_dl_map_object): If we are looking for the first
13209         to-be-loaded object along a path to loader is ld.so.
13210
13211 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13212             Ulrich Drepper  <drepper@gmail.com>
13213
13214         * sysdeps/x86_64/memset.S: After aligning destination, code
13215         branches to different locations depending on the value of
13216         misalignment, when multiarch is enabled. Fix this.
13217
13218 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13219
13220         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
13221         Set _x86_64_preferred_memory_instruction for AMD processsors.
13222         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13223         Set bit_Prefer_SSE_for_memop for AMD processors.
13224
13225 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
13226
13227         * libio/fmemopen.c (fmemopen): Optimize a bit.
13228
13229 2011-03-03  Andreas Schwab  <schwab@redhat.com>
13230
13231         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
13232
13233 2011-03-03  Roland McGrath  <roland@redhat.com>
13234
13235         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
13236
13237 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
13238
13239         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
13240         __bzero_ultra1 instead of __memset_ultra1.
13241
13242 2011-02-23  Andreas Schwab  <schwab@redhat.com>
13243             Ulrich Drepper  <drepper@gmail.com>
13244
13245         [BZ #12509]
13246         * include/link.h (struct link_map): Add l_orig_initfini.
13247         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
13248         returning unsuccessfully.
13249         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
13250         close of a file loaded at startup, restore the original l_initfini
13251         list.
13252         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
13253         list, store the pointer.
13254         * elf/Makefile ($(objpfx)noload-mem): New rule.
13255         (noload-ENV): Define.
13256         (tests): Add $(objpfx)noload-mem.
13257         * elf/noload.c: Include <memcheck.h>.
13258         (main): Call mtrace.  Close all opened handles.
13259
13260 2011-02-17  Andreas Schwab  <schwab@redhat.com>
13261
13262         [BZ #12454]
13263         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
13264         dependencies are missing.
13265
13266 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13267
13268         Fix __if_freereq crash: Unlike the generic version which uses free,
13269         Hurd needs munmap.
13270         * sysdeps/mach/hurd/ifreq.h: New file.
13271
13272 2011-01-27  Petr Baudis  <pasky@suse.cz>
13273             Ulrich Drepper  <drepper@gmail.com>
13274
13275         [BZ 12445]#
13276         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
13277         to extend_alloca().
13278         * stdio-common/bug23.c: New file.
13279         * stdio-common/Makefile (tests): Add bug23.
13280
13281 2010-09-28  Andreas Schwab  <schwab@redhat.com>
13282             Ulrich Drepper  <drepper@gmail.com>
13283
13284         [BZ #12489]
13285         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
13286         before performing relro protection.  At old place add assertion
13287         to make sure nothing changed.
13288
13289 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
13290             Glauber de Oliveira Costa  <glommer@gmail.com>
13291
13292         * elf/elf.h: Add new ARM TLS relocs.
13293
13294 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
13295
13296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13297         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
13298         cast from r3.
13299         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
13300         'tests' variable.
13301         * sysdeps/wordsize-64/tst-writev.c: New file.
13302
13303 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
13304
13305         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
13306         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
13307         insns in _dl_start to prevent a TOC reference before relocs are
13308         resolved.
13309
13310 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
13311
13312         [BZ #12469]
13313         * Makeconfig: Remove RANLIB definition.
13314         * Makerules: Don't use RANLIB.
13315         * aclocal.m4: Remove ranlib test.
13316         * configure.in: No need to check for ranlib.
13317         * elf/rtld-Rules: Don't use RANLIB.
13318
13319 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13320
13321         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
13322         protection macro.
13323         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
13324         inclusion protection macro.
13325
13326         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
13327         SIGRTMIN and SIGRTMAX and print information in that case only when
13328         SIGRTMIN is defined.
13329
13330 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13331
13332         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
13333         arginfo fn returning -1.
13334
13335         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
13336         and thousands string is zero terminated.
13337
13338 2011-02-03  Andreas Schwab  <schwab@redhat.com>
13339
13340         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
13341         sysdeps/unix/sysv/linux/bits/socket.h.
13342
13343 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13344
13345         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
13346         (__CPU_COUNT): Remove old macros.
13347         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
13348         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
13349         (__CPU_ALLOC, __CPU_FREE): Add macros.
13350         (__sched_cpualloc, __sched_cpufree): Add declarations.
13351
13352 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
13353
13354         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
13355         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
13356         * nscd/aicache.c (addhstaiX): Return timeout of added value.
13357         (readdhstai): Return value of addhstaiX call.
13358         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
13359         (addgrbyX): Return value returned by cache_addgr.
13360         (readdgrbyname): Return value returned by addgrbyX.
13361         (readdgrbygid): Likewise.
13362         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
13363         (addpwbyX): Return value returned by cache_addpw.
13364         (readdpwbyname): Return value returned by addhstbyX.
13365         (readdpwbyuid): Likewise.
13366         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
13367         (addservbyX): Return value returned by cache_addserv.
13368         (readdservbyname): Return value returned by addservbyX:
13369         (readdservbyport): Likewise.
13370         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
13371         (addhstbyX): Return value returned by cache_addhst.
13372         (readdhstbyname): Return value returned by addhstbyX.
13373         (readdhstbyaddr): Likewise.
13374         (readdhstbynamev6): Likewise.
13375         (readdhstbyaddrv6): Likewise.
13376         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
13377         (readdinitgroups): Return value returned by addinitgroupsX.
13378         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
13379         (prune_cache): Keep track of timeout value of re-added entries.
13380         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
13381         * nscd/nscd.h: Adjust prototypes of readd* functions.
13382
13383 2011-02-04  Roland McGrath  <roland@redhat.com>
13384
13385         * nis/nis_server.c (nis_servstate): Use the right name for 0.
13386         (nis_stats): Likewise.
13387         * nis/nis_modify.c (nis_modify): Likewise.
13388         * nis/nis_remove.c (nis_remove): Likewise.
13389         * nis/nis_add.c (nis_add): Likewise.
13390
13391         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
13392
13393         * posix/fnmatch_loop.c: Add some consts.
13394
13395         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
13396
13397 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
13398
13399         [BZ #12460]
13400         * config.make.in (config-cflags-novzeroupper): Define.
13401         * configure.in: Substitute libc_cv_cc_novzeroupper.
13402         * elf/Makefile (AVX-CFLAGS): Define.
13403         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
13404         (CFLAGS-tst-auditmod4a.c): Likewise.
13405         (CFLAGS-tst-auditmod4b.c): Likewise.
13406         (CFLAGS-tst-auditmod6b.c): Likewise.
13407         (CFLAGS-tst-auditmod6c.c): Likewise.
13408         (CFLAGS-tst-auditmod7b.c): Likewise.
13409         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
13410
13411 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
13412
13413         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
13414         function to the callback.
13415         Patch partly by Jiri Olsa <jolsa@redhat.com>.
13416
13417 2011-02-02  Andreas Schwab  <schwab@redhat.com>
13418
13419         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
13420         of errno.
13421
13422 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
13423
13424         [BZ #11724]
13425         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
13426         of constructors.
13427         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
13428         of destructors.
13429         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
13430
13431         [BZ #11724]
13432         * elf/Makefile: Add rules to build and run new test.
13433         * elf/tst-initorder.c: New file.
13434         * elf/tst-initorder.exp: New file.
13435         * elf/tst-initordera1.c: New file.
13436         * elf/tst-initordera2.c: New file.
13437         * elf/tst-initordera3.c: New file.
13438         * elf/tst-initordera4.c: New file.
13439         * elf/tst-initorderb1.c: New file.
13440         * elf/tst-initorderb2.c: New file.
13441         * elf/tst-order-a1.c: New file.
13442         * elf/tst-order-a2.c: New file.
13443         * elf/tst-order-a3.c: New file.
13444         * elf/tst-order-a4.c: New file.
13445         * elf/tst-order-b1.c: New file.
13446         * elf/tst-order-b2.c: New file.
13447         * elf/tst-order-main.c: New file.
13448         New test case by George Gensure <werkt0@gmail.com>.
13449
13450 2010-10-01  Andreas Schwab  <schwab@redhat.com>
13451
13452         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13453         decoding ACE if AI_CANONIDN.
13454
13455 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
13456
13457         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
13458
13459 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
13460
13461         * version.h (RELEASE): Bump for 2.13 release.
13462         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
13463
13464         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
13465
13466         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
13467         MADV_NOHUGEPAGE.
13468         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
13469         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
13470         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13471         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13472         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13473         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13474
13475         * posix/getconf.c: Update copyright year.
13476         * catgets/gencat.c: Likewise.
13477         * csu/version.c: Likewise.
13478         * debug/catchsegv.sh: Likewise.
13479         * debug/xtrace.sh: Likewise.
13480         * elf/ldconfig.c: Likewise.
13481         * elf/ldd.bash.in: Likewise.
13482         * elf/sprof.c (print_version): Likewise.
13483         * iconv/iconv_prog.c: Likewise.
13484         * iconv/iconvconfig.c: Likewise.
13485         * locale/programs/locale.c: Likewise.
13486         * locale/programs/localedef.c: Likewise.
13487         * malloc/memusage.sh: Likewise.
13488         * malloc/mtrace.pl: Likewise.
13489         * nscd/nscd.c (print_version): Likewise.
13490         * nss/getent.c: Likewise.
13491
13492         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
13493         PF_CAIF, and PF_ALG.
13494         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13495
13496 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
13497
13498         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
13499         (modules-names): Use them.
13500         (ifunc-test-modules, ifunc-pie-tests): Define.
13501         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
13502         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
13503         (test-extras): Likewise.
13504         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
13505         $(compile-command.c).
13506         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
13507         (all-built-dso): Define.
13508         (check-textrel.out, check-execstack.out): Depend on it.
13509
13510         * configure.in: Don't override --enable-multi-arch.
13511
13512 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
13513
13514         [BZ #6812]
13515         * nscd/hstcache.c (tryagain): Define.
13516         (cache_addhst): Return tryagain not notfound for temporary errors.
13517         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
13518         failed.
13519
13520 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
13521
13522         [BZ #10563]
13523         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
13524         to make the syscall.
13525         * sysdeps/unix/sysv/linux/setgroups.c: New file.
13526
13527         [BZ #12378]
13528         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
13529         and fall back to matching as normal character if the string ends before
13530         the matching ']' is found.  This is what POSIX requires.
13531         * posix/testfnm.c: Adjust test result.
13532         * posix/globtest.sh: Adjust test result.  Add new test.
13533         * posix/tst-fnmatch.input: Likewise.
13534         * posix/tst-fnmatch2.c: Add new test.
13535
13536 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
13537
13538         * elf/Makefile (check-execstack): Revert last change.  Depend on
13539         check-execstack.h.
13540         (check-execstack.h): New target.
13541         (generated): Add check-execstack.h.
13542         * elf/check-execstack.c: Include "check-execstack.h".
13543         (main): Revert last change.
13544         (handle_file): Return zero if GNU_STACK is absent and
13545         DEFAULT_STACK_PERMS doesn't include PF_X.
13546
13547 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
13548
13549         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
13550         in child fails because the descriptor is already closed.
13551         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
13552         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
13553         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
13554
13555         [BZ #12397]
13556         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
13557         syscall.
13558
13559         [BZ #10484]
13560         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
13561         temporary buffer used to handle multi lookups locally.
13562         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
13563
13564 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13565
13566         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
13567         loader is ld.so.
13568
13569 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
13570
13571         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
13572         alignment for SSE2.
13573
13574 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13575
13576         [BZ #12394]
13577         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
13578         characters.  When rounding increased number of integer digits recompute
13579         number of groups.
13580         * stdio-common/tst-grouping.c: New file.
13581         * stdio-common/Makefile: Add rules to build and run tst-grouping.
13582
13583 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
13584
13585         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
13586         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
13587
13588         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
13589         void.
13590         * bits/select.h: Likewise.
13591
13592 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
13593
13594         * po/ja.po: Update from translation team.
13595
13596 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
13597
13598         [BZ #11155]
13599         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
13600         implementation just like for lxstat, fxstatat, et al.
13601
13602 2010-12-27  Jim Meyering  <meyering@redhat.com>
13603
13604         [BZ #12348]
13605         * posix/regexec.c (build_trtable): Return failure indication upon
13606         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13607
13608 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
13609
13610         [BZ #12201]
13611         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
13612         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
13613         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
13614         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
13615
13616         [BZ #12207]
13617         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
13618
13619         [BZ #12204]
13620         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
13621         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
13622
13623 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13624
13625         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
13626         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
13627         script has SORT_BY_INIT_PRIORITY.
13628         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
13629         NO_CTORS_DTORS_SECTIONS is defined.
13630         * elf/soinit.c: Likewise.
13631         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
13632         NO_CTORS_DTORS_SECTIONS is defined.
13633         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
13634         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
13635         * sysdeps/sh/init-first.c: Likewise.
13636         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
13637
13638 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
13639
13640         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
13641         always use the slow path.
13642
13643 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
13644
13645         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
13646         similar rule which adds the sysdep directories to the header search in
13647         order to pick up the correct platform stackinfo.h.
13648         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
13649         perform test if it is, otherwise return successfully without testing.
13650         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
13651         DEFAULT_STACK_PERMS define in stackinfo.h.
13652         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
13653         defined in stackinfo.h.
13654         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
13655         DEFAULT_STACK_PERMS defined in stackinfo.h.
13656         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
13657         * sysdeps/ia64/stackinfo.h: Likewise.
13658         * sysdeps/s390/stackinfo.h: Likewise.
13659         * sysdeps/sh/stackinfo.h: Likewise.
13660         * sysdeps/sparc/stackinfo.h: Likewise.
13661         * sysdeps/x86_64/stackinfo.h: Likewise.
13662         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
13663         PF_X for powerpc64.  Retain PF_X for powerpc32.
13664
13665 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
13666
13667         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
13668         accurately.
13669         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
13670         GETDENTS_64BIT_ALIGNED.
13671
13672 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
13673
13674         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
13675
13676 2010-12-10  Andreas Schwab  <schwab@redhat.com>
13677
13678         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
13679         _GNU_SOURCE.
13680
13681         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
13682         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
13683         Remove __restrict.
13684         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
13685         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
13686
13687 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
13688
13689         [BZ #11655]
13690         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
13691         are initialized.
13692
13693 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
13694
13695         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
13696
13697 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
13698
13699         * po/it.po: Update from translation team.
13700
13701 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13702
13703         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
13704         unused codes.
13705
13706 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
13707
13708         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
13709
13710 2010-11-24  Andreas Schwab  <schwab@redhat.com>
13711
13712         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
13713         specially.
13714         (gaih_getanswer_slice): Likewise.
13715
13716 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
13717
13718         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
13719
13720 2010-05-31  Petr Baudis  <pasky@suse.cz>
13721
13722         [BZ #11149]
13723         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
13724         silently even in the chroot mode.
13725
13726 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
13727
13728         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
13729         last patch a bit.  Pretty printing
13730
13731 2010-05-31  Petr Baudis <pasky@suse.cz>
13732
13733         [BZ #10085]
13734         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
13735         initialization of skip_initgroups_dyn.
13736
13737 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
13738
13739         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
13740         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13741
13742 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
13743
13744         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
13745
13746 2010-11-11  Andreas Schwab  <schwab@redhat.com>
13747
13748         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
13749         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
13750         (tst-fnmatch-ENV): Set MALLOC_TRACE.
13751         ($(objpfx)tst-fnmatch-mem): New rule.
13752         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
13753         * posix/tst-fnmatch.c (main): Call mtrace.
13754
13755 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
13756
13757         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13758         Support Intel processor model 6 and model 0x2c.
13759
13760 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
13761
13762         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
13763           signed comparison.
13764
13765 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
13766
13767         [BZ #12205]
13768         * string/test-strncasecmp.c (check_result): New function.
13769         (do_one_test): Use it.
13770         (check1): New function.
13771         (test_main): Use it.
13772         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
13773         Support strcasecmp and strncasecmp.
13774
13775 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
13776
13777         [BZ #12194]
13778         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
13779         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13780
13781 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13782
13783         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
13784         IFUNC support.
13785         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13786         memset-x86-64.
13787         * sysdeps/x86_64/multiarch/bzero.S: New file.
13788         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
13789         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
13790         * sysdeps/x86_64/multiarch/memset.S: New file.
13791         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
13792         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13793         Set bit_Prefer_SSE_for_memop for Intel processors.
13794         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
13795         Define.
13796         (index_Prefer_SSE_for_memop): Define.
13797         (HAS_PREFER_SSE_FOR_MEMOP): Define.
13798
13799 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
13800
13801         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
13802         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
13803
13804 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
13805
13806         [BZ #12191]
13807         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13808         (__x86_64_raw_data_cache_size_half): Likewise.
13809         (__x86_64_raw_shared_cache_size): Likewise.
13810         (__x86_64_raw_shared_cache_size_half): Likewise.
13811
13812         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13813         (__x86_64_raw_data_cache_size_half): Likewise.
13814         (__x86_64_raw_shared_cache_size): Likewise.
13815         (__x86_64_raw_shared_cache_size_half): Likewise.
13816         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
13817         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
13818         and __x86_64_raw_shared_cache_size_half.  Round
13819         __x86_64_data_cache_size_half, __x86_64_data_cache_size
13820         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
13821         to multiple of 256 bytes.
13822
13823 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
13824
13825         [BZ #12167]
13826         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
13827         of inacessible symlinks.  Verify result of symlink before returning it.
13828         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
13829         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
13830
13831 2010-10-28  Erich Ritz  <erichritz@gmail.com>
13832
13833         * math/math.h (isinf): Fix typo in comment.
13834
13835 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
13836
13837         * po/da.po: Update from translation team.
13838
13839 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
13840
13841         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
13842         is added to the list.
13843
13844 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13845             Ulrich Drepper  <drepper@gmail.com>
13846
13847         * elf/dl-object.c (_dl_new_object): Don't append the new object to
13848         the global list here.  Move code to...
13849         (_dl_add_to_namespace_list): ...here.  New function.
13850         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
13851         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
13852         * elf/dl-load.c (lose): Don't remove the element from the list.
13853         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
13854         (_dl_map_object): Likewise.
13855
13856 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
13857
13858         [BZ #12159]
13859         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
13860         into all bytes of SSE register.
13861         Patch by Richard Li <richardpku@gmail.com>.
13862
13863 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
13864
13865         [BZ #12140]
13866         * malloc/malloc.c (_int_free): Fill correct number of bytes when
13867         perturbing.
13868
13869 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
13870
13871         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
13872         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
13873         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
13874         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
13876         submachine.
13877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13878
13879 2010-10-22  Andreas Schwab  <schwab@redhat.com>
13880
13881         * include/dlfcn.h (__RTLD_SECURE): Define.
13882         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
13883         mode & __RTLD_SECURE instead.
13884         (open_path): Rename preloaded parameter to secure.
13885         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
13886         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
13887         * elf/dl-deps.c (openaux): Likewise.
13888         * elf/rtld.c (struct map_args): Remove is_preloaded.
13889         (map_doit): Don't use it.
13890         (dl_main): Likewise.
13891         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
13892         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
13893
13894 2010-09-09  Andreas Schwab  <schwab@redhat.com>
13895
13896         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
13897         (sysd-rules-targets): Remove duplicates.
13898         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
13899         rtld-%.$o dependency.
13900
13901 2010-10-18  Andreas Schwab  <schwab@redhat.com>
13902
13903         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
13904         _dl_map_object do it.
13905
13906 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
13907
13908         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
13909         fast fma builtins, define the macros in the C99 standard.
13910         (FP_FAST_FMAF): Likewise.
13911         (FP_FAST_FMAL): Likewise.
13912         * sysdeps/x86_64/bits/mathdef.h: Likewise.
13913
13914         * bits/mathdef.h: Update copyright year.
13915         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13916
13917 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13918
13919         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
13920         builtins, define the macros in the C99 standard.
13921         (FP_FAST_FMAF): Likewise.
13922         (FP_FAST_FMAL): Likewise.
13923         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
13924         multiply/add.
13925         (FP_FAST_FMAF): Likewise.
13926
13927 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
13928
13929         [BZ #3268]
13930         * math/libm-test.inc (fma_test): Some new testcases.
13931         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
13932         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
13933         y and infinite z.  Do multiplication by C already in long double.
13934         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
13935         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
13936         y and infinite z.  Do bitwise or of inexact bit into u.d.
13937         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
13938         * sysdeps/i386/fpu/s_fmaf.S: Removed.
13939         * sysdeps/i386/fpu/s_fma.S: Removed.
13940         * sysdeps/i386/fpu/s_fmal.S: Removed.
13941
13942 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
13943
13944         [BZ #3268]
13945         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
13946         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
13947         computation is not scheduled after fetestexcept.  Fix value
13948         of minimum denormal long double.
13949
13950 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
13951
13952         [BZ #3268]
13953         * math/libm-test.inc (fma_test): Add some more tests.
13954         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
13955         correctly.
13956
13957 2010-10-15  Andreas Schwab  <schwab@redhat.com>
13958
13959         * scripts/data/localplt-s390-linux-gnu.data: New file.
13960         * scripts/data/localplt-s390x-linux-gnu.data: New file.
13961
13962 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
13963
13964         [BZ #3268]
13965         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
13966         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
13967         instead of dbl-64.
13968         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
13969         inlines.
13970         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
13971         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
13972         if one of x and y is very large and the other is subnormal.
13973         * sysdeps/s390/fpu/s_fmaf.c: New file.
13974         * sysdeps/s390/fpu/s_fma.c: New file.
13975         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
13976         * sysdeps/powerpc/fpu/s_fma.S: New file.
13977         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
13978         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
13979         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
13980
13981 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
13982
13983         [BZ #3268]
13984         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
13985         fma tests.
13986         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
13987         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
13988         * sysdeps/i386/i686/multiarch/s_fma.c: Include
13989         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
13990         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
13991         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
13992         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
13993
13994 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
13995
13996         [BZ #12078]
13997         * posix/regcomp.c (parse_branch): One more memory leak plugged.
13998         * posix/bug-regex31.input: Add test case.
13999
14000 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14001
14002         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
14003         * posix/bug-regex31.input: New file.
14004
14005         [BZ #12078]
14006         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
14007         (parse_sub_exp): Fix last change, use postorder.
14008
14009         * posix/bug-regex31.c: New file.
14010         * posix/Makefile: Add rules to build and run bug-regex31.
14011
14012         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
14013
14014         [BZ #12078]
14015         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
14016
14017         [BZ #12108]
14018         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
14019         to have entries in sys_siglist.
14020
14021         [BZ #12093]
14022         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
14023         be NULL.
14024
14025 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
14026
14027         [BZ #3268]
14028         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
14029         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
14030         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14031         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
14032         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14033         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
14034         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
14035         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
14036         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
14037         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
14038         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
14039         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
14040         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
14041         * math/ftestexcept.c (fetestexcept): Likewise.
14042         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
14043         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
14044         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
14045         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
14046         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
14047         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
14048         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14049
14050 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14051
14052         [BZ #12107]
14053         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
14054         newline.
14055
14056 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
14057
14058         * string/bug-strstr1.c: New file.
14059         * string/Makefile: Add rules to build and run bug-strstr1.
14060
14061 2010-10-05  Eric Blake  <eblake@redhat.com>
14062
14063         [BZ #12092]
14064         * string/str-two-way.h (two_way_long_needle): Always clear memory
14065         when skipping input due to the shift table.
14066
14067 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
14068
14069         [BZ #12005]
14070         * malloc/mcheck.c: Handle large requests.
14071
14072         [BZ #12077]
14073         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
14074         for strncmp and strncasecmp.
14075         * string/stratcliff.c: Add tests for strcmp and strncmp.
14076         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
14077
14078 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14079
14080         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
14081         __set_fpscr.
14082
14083 2010-09-30  Andreas Jaeger  <aj@suse.de>
14084
14085         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
14086         (CGROUP_SUPER_MAGIC): Define.
14087         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14088         Handle btrfs and cgroup file systems.
14089         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
14090         Likewise.
14091
14092 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
14093
14094         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
14095         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
14096
14097 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14098
14099         [BZ #12067]
14100         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
14101         trying to locate the ELF header.
14102
14103 2010-09-27  Andreas Schwab  <schwab@redhat.com>
14104
14105         [BZ #11611]
14106         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
14107         Mask out sign-bit copies when constructing f_fsid.
14108
14109 2010-09-24  Petr Baudis <pasky@suse.cz>
14110
14111         * debug/stack_chk_fail_local.c: Add missing licence exception.
14112         * debug/warning-nop.c: Likewise.
14113
14114 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
14115
14116         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
14117         implementing getdents64 using getdents syscall, set d_type if
14118         __ASSUME_GETDENTS32_D_TYPE.
14119
14120 2010-09-16  Andreas Schwab  <schwab@redhat.com>
14121
14122         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
14123         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
14124
14125 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
14126
14127         [BZ #12037]
14128         * posix/unistd.h: Undo change of feature selection for ftruncate from
14129         2010-01-11.
14130
14131 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
14132
14133         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
14134         detection.
14135
14136 2010-09-20  Andreas Schwab  <schwab@redhat.com>
14137
14138         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
14139         fanotify_mark.
14140         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14141
14142 2010-09-14  Andreas Schwab  <schwab@redhat.com>
14143
14144         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
14145         variables after CHECK_SP call.
14146         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
14147
14148 2010-09-13  Andreas Schwab  <schwab@redhat.com>
14149             Ulrich Drepper  <drepper@redhat.com>
14150
14151         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
14152         re-relocationg ld.so.
14153         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
14154         _dl_init_paths call.
14155         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
14156         here anymore.
14157
14158 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
14159
14160         * resolv/res_init.c (__res_vinit): Count the default server we added.
14161
14162 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
14163             Ulrich Drepper  <drepper@redhat.com>
14164
14165         [BZ #11968]
14166         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14167         (____longjmp_chk): Use %ebx for saving value across system call.
14168         Add unwind info.
14169
14170 2010-09-06  Andreas Schwab  <schwab@redhat.com>
14171
14172         * manual/Makefile: Don't mix pattern rules with normal rules.
14173
14174 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14175
14176         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
14177         operation.
14178         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
14179         * libio/iofopncook.c (_IO_cookie_init): Likewise.
14180         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
14181         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
14182         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14183         Likewise.
14184
14185 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
14186
14187         [BZ #11979]
14188         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
14189         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
14190
14191 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
14192
14193         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
14194         * sysdeps/x86_64/addmul_1.S: Likewise.
14195         * sysdeps/x86_64/lshift.S: Likewise.
14196         * sysdeps/x86_64/mul_1.S: Likewise.
14197         * sysdeps/x86_64/rshift.S: Likewise.
14198         * sysdeps/x86_64/sub_n.S: Likewise.
14199         * sysdeps/x86_64/submul_1.S: Likewise.
14200
14201 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14202
14203         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
14204         Define __sched_param instead of SCHED_* and sched_param when
14205         <bits/sched.h> is included with __need_schedparam defined.
14206         * bits/sched.h [__need_schedparam]
14207         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
14208         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
14209         (__defined_schedparam): Define to 1.
14210         (__sched_param): New structure, identical to sched_param.
14211         (__need_schedparam): Undefine.
14212
14213 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
14214
14215         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
14216         (epoll_create1): Declare.
14217
14218         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
14219
14220 2010-08-31  Andreas Schwab  <schwab@redhat.com>
14221
14222         [BZ #7066]
14223         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
14224         shifting retval into place.
14225
14226 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
14227
14228         * nis/rpcsvc/nis.h: Update copyright notice.
14229         * nis/rpcsvc/nis.x: Likewise.
14230         * nis/rpcsvc/nis_callback.h: Likewise.
14231         * nis/rpcsvc/nis_callback.x: Likewise.
14232         * nis/rpcsvc/nis_object.x: Likewise.
14233         * nis/rpcsvc/nis_tags.h: Likewise.
14234         * nis/rpcsvc/yp.h: Likewise.
14235         * nis/rpcsvc/yp.x: Likewise.
14236         * nis/rpcsvc/ypupd.h: Likewise.
14237         * nis/yp_xdr.c: Likewise.
14238         * nis/ypupdate_xdr.c: Likewise.
14239
14240         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
14241         mainly the body of pmap_getport.  Add parameters to specify timeouts.
14242         (pmap_getport): Use __libc_rpc_getport.
14243         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
14244         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
14245         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
14246
14247 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
14248
14249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
14250         fanotify_mark.
14251
14252 2010-08-27  Roland McGrath  <roland@redhat.com>
14253
14254         * sysdeps/i386/i686/multiarch/Makefile
14255         (CFLAGS-varshift.c): New variable.
14256
14257 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
14258
14259         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
14260         * sysdeps/i386/i686/multiarch/varshift.c: New file.
14261
14262         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
14263
14264         * sysdeps/x86_64/strlen.S: Minimal code improvement.
14265
14266 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
14267
14268         * sysdeps/x86_64/strlen.S: Unroll the loop.
14269         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14270         strlen-sse2 strlen-sse2-bsf.
14271         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
14272         __strlen_no_bsf if bit_Slow_BSF is set.
14273         (__strlen_sse42): Removed.
14274         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
14275         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
14276
14277 2010-08-25  Roland McGrath  <roland@redhat.com>
14278
14279         * sysdeps/x86_64/multiarch/varshift.S: File removed.
14280         * sysdeps/x86_64/multiarch/varshift.c: New file.
14281         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
14282         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
14283         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
14284         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14285
14286 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
14287
14288         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14289         strlen-sse2 strlen-sse2-bsf.
14290         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
14291         __strlen_sse2_bsf if bit_Slow_BSF is unset.
14292         (__strlen_sse2): Removed.
14293         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
14294         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
14295         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14296         bit_Slow_BSF for Atom.
14297         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
14298         (index_Slow_BSF): Define.
14299         (HAS_SLOW_BSF): Define.
14300
14301 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
14302
14303         [BZ #10851]
14304         * resolv/res_init.c (__res_vinit): When no server address at all
14305         is given default to loopback.
14306
14307 2010-08-24  Roland McGrath  <roland@redhat.com>
14308
14309         * configure.in: Remove config-name.h generation.
14310         * configure: Regenerated.
14311         * config-name.in: File removed.
14312         * scripts/config-uname.sh: New file.
14313         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
14314         ($(objdir)config-name.h): New target.
14315
14316         * sunrpc/rpc_parse.h: Avoid nested comment.
14317
14318 2010-08-24  Richard Henderson  <rth@redhat.com>
14319             Ulrich Drepper  <drepper@redhat.com>
14320             H.J. Lu  <hongjiu.lu@intel.com>
14321
14322         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
14323         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
14324         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
14325         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
14326         _mm_alignr_epi8 with _mm_loadu_si128.
14327         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
14328         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
14329         (__m128i_shift_right): Removed.
14330         * sysdeps/i386/i686/multiarch/varshift.h: New file.
14331         * sysdeps/i386/i686/multiarch/varshift.S: New file.
14332         * sysdeps/x86_64/multiarch/varshift.h: New file.
14333         * sysdeps/x86_64/multiarch/varshift.S: New file.
14334
14335 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
14336
14337         * configure.in: Move assembler checks to before sysdep dir checking.
14338
14339 2010-08-20  Petr Baudis  <pasky@suse.cz>
14340
14341         * LICENSES: Sync the sunrpc license.
14342
14343 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
14344
14345         * sunrpc/auth_des.c: Update copyright notice once again.
14346         * sunrpc/auth_none.c: Likewise.
14347         * sunrpc/auth_unix.c: Likewise.
14348         * sunrpc/authdes_prot.c: Likewise.
14349         * sunrpc/authuxprot.c: Likewise.
14350         * sunrpc/bindrsvprt.c: Likewise.
14351         * sunrpc/clnt_gen.c: Likewise.
14352         * sunrpc/clnt_perr.c: Likewise.
14353         * sunrpc/clnt_raw.c: Likewise.
14354         * sunrpc/clnt_simp.c: Likewise.
14355         * sunrpc/clnt_tcp.c: Likewise.
14356         * sunrpc/clnt_udp.c: Likewise.
14357         * sunrpc/clnt_unix.c: Likewise.
14358         * sunrpc/des_crypt.c: Likewise.
14359         * sunrpc/des_soft.c: Likewise.
14360         * sunrpc/get_myaddr.c: Likewise.
14361         * sunrpc/getrpcport.c: Likewise.
14362         * sunrpc/key_call.c: Likewise.
14363         * sunrpc/key_prot.c: Likewise.
14364         * sunrpc/openchild.c: Likewise.
14365         * sunrpc/pm_getmaps.c: Likewise.
14366         * sunrpc/pm_getport.c: Likewise.
14367         * sunrpc/pmap_clnt.c: Likewise.
14368         * sunrpc/pmap_prot.c: Likewise.
14369         * sunrpc/pmap_prot2.c: Likewise.
14370         * sunrpc/pmap_rmt.c: Likewise.
14371         * sunrpc/rpc/auth.h: Likewise.
14372         * sunrpc/rpc/auth_unix.h: Likewise.
14373         * sunrpc/rpc/clnt.h: Likewise.
14374         * sunrpc/rpc/des_crypt.h: Likewise.
14375         * sunrpc/rpc/key_prot.h: Likewise.
14376         * sunrpc/rpc/netdb.h: Likewise.
14377         * sunrpc/rpc/pmap_clnt.h: Likewise.
14378         * sunrpc/rpc/pmap_prot.h: Likewise.
14379         * sunrpc/rpc/pmap_rmt.h: Likewise.
14380         * sunrpc/rpc/rpc.h: Likewise.
14381         * sunrpc/rpc/rpc_des.h: Likewise.
14382         * sunrpc/rpc/rpc_msg.h: Likewise.
14383         * sunrpc/rpc/svc.h: Likewise.
14384         * sunrpc/rpc/svc_auth.h: Likewise.
14385         * sunrpc/rpc/types.h: Likewise.
14386         * sunrpc/rpc/xdr.h: Likewise.
14387         * sunrpc/rpc_clntout.c: Likewise.
14388         * sunrpc/rpc_cmsg.c: Likewise.
14389         * sunrpc/rpc_common.c: Likewise.
14390         * sunrpc/rpc_cout.c: Likewise.
14391         * sunrpc/rpc_dtable.c: Likewise.
14392         * sunrpc/rpc_hout.c: Likewise.
14393         * sunrpc/rpc_main.c: Likewise.
14394         * sunrpc/rpc_parse.c: Likewise.
14395         * sunrpc/rpc_parse.h: Likewise.
14396         * sunrpc/rpc_prot.c: Likewise.
14397         * sunrpc/rpc_sample.c: Likewise.
14398         * sunrpc/rpc_scan.c: Likewise.
14399         * sunrpc/rpc_scan.h: Likewise.
14400         * sunrpc/rpc_svcout.c: Likewise.
14401         * sunrpc/rpc_tblout.c: Likewise.
14402         * sunrpc/rpc_util.c: Likewise.
14403         * sunrpc/rpc_util.h: Likewise.
14404         * sunrpc/rpcinfo.c: Likewise.
14405         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
14406         * sunrpc/rpcsvc/key_prot.x: Likewise.
14407         * sunrpc/rpcsvc/klm_prot.x: Likewise.
14408         * sunrpc/rpcsvc/mount.x: Likewise.
14409         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
14410         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
14411         * sunrpc/rpcsvc/rex.x: Likewise.
14412         * sunrpc/rpcsvc/rstat.x: Likewise.
14413         * sunrpc/rpcsvc/rusers.x: Likewise.
14414         * sunrpc/rpcsvc/sm_inter.x: Likewise.
14415         * sunrpc/rpcsvc/spray.x: Likewise.
14416         * sunrpc/rpcsvc/yppasswd.x: Likewise.
14417         * sunrpc/rtime.c: Likewise.
14418         * sunrpc/svc.c: Likewise.
14419         * sunrpc/svc_auth.c: Likewise.
14420         * sunrpc/svc_authux.c: Likewise.
14421         * sunrpc/svc_raw.c: Likewise.
14422         * sunrpc/svc_run.c: Likewise.
14423         * sunrpc/svc_simple.c: Likewise.
14424         * sunrpc/svc_tcp.c: Likewise.
14425         * sunrpc/svc_udp.c: Likewise.
14426         * sunrpc/svc_unix.c: Likewise.
14427         * sunrpc/svcauth_des.c: Likewise.
14428         * sunrpc/xcrypt.c: Likewise.
14429         * sunrpc/xdr.c: Likewise.
14430         * sunrpc/xdr_array.c: Likewise.
14431         * sunrpc/xdr_float.c: Likewise.
14432         * sunrpc/xdr_mem.c: Likewise.
14433         * sunrpc/xdr_rec.c: Likewise.
14434         * sunrpc/xdr_ref.c: Likewise.
14435         * sunrpc/xdr_sizeof.c: Likewise.
14436         * sunrpc/xdr_stdio.c: Likewise.
14437
14438         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
14439         handling.
14440
14441 2010-08-19  Andreas Schwab  <schwab@redhat.com>
14442
14443         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
14444
14445 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
14446
14447         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
14448         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
14449         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
14450         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
14451         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
14452         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
14453         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
14454         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
14455         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
14456         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
14457         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
14458         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
14459         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
14460         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
14461
14462 2010-07-26  Anton Blanchard  <anton@samba.org>
14463
14464         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
14465         * malloc/arena.c (heap_trim): Likewise.
14466
14467 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
14468
14469         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
14470         here.  Not...
14471         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
14472         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
14473
14474 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14475
14476         * sysdeps/i386/elf/Makefile: New file.
14477
14478 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14479
14480         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
14481         from fanotify_init.
14482         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
14483         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14484
14485 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
14486
14487         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
14488         of strncasecmp_l.
14489         * sysdeps/multiarch/strcmp.S: Likewise.
14490
14491 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
14492
14493         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14494         strncase_l-nonascii.
14495         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14496         Add strncase_l-ssse3.
14497         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
14498         * sysdeps/x86_64/strcmp.S: Likewise.
14499         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
14500         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
14501         * sysdeps/x86_64/strncase.S: New file.
14502         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
14503         * sysdeps/x86_64/strncase_l.S: New file.
14504         * string/Makefile (strop-tests): Add strncasecmp.
14505         * string/test-strncasecmp.c: New file.
14506
14507         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
14508         warning.
14509
14510         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
14511         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
14512
14513 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14514
14515         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
14516
14517 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
14518
14519         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
14520         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
14521         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
14522
14523 2010-05-01  Alan Modra  <amodra@gmail.com>
14524
14525         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
14526         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
14527         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
14528         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
14529         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
14530         tidying.  Don't tail-call __sigjmp_save for static lib.
14531         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
14532         save location.
14533         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
14534         (CALL_MCOUNT): Add eh info, and nop after bl.
14535         (TAIL_CALL_SYSCALL_ERROR): New macro.
14536         (PSEUDO_RET): Use it.
14537         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
14538         Correct save location of integer regs and cr.
14539         (_dl_profile_resolve): Correct cr save location.  Delete nops
14540         after bl when SHARED.  Reduce cfi size a little by better
14541         placement of cfi directives.
14542         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
14543         make a stack frame.  Instead use parm save area as a temp.
14544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
14545         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
14546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
14547         Don't make a stack frame for parent, use parm save area.
14548         Increase child stack frame to 112 bytes.  Don't save unused reg,
14549         and adjust reg usage.  Set up cfi on error recovery and
14550         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
14551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14552         (__makecontext): Add dummy nop after jump to exit.
14553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
14554         Use correct parm save area and cr save, reduce stack frame.
14555         Correct cfi for possible PSEUDO_RET frame setup.
14556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
14557         Branch to local label emitted by PSEUDO_RET rather than
14558         __syscall_error.
14559
14560 2010-08-12  Andreas Schwab  <schwab@redhat.com>
14561
14562         [BZ #11904]
14563         * locale/programs/locale.c (print_assignment): New function.
14564         (show_locale_vars): Use it.
14565
14566 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
14567
14568         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
14569         field.
14570         (struct statfs64): Likewise.
14571         (_STATFS_F_FLAGS): Define.
14572         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
14573         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14574         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
14575         (ST_VALID): Define locally.
14576         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
14577         __statvfs_getflags, use the provided value.
14578         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14579         __ASSUME_STATFS_F_FLAGS.
14580
14581         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
14582
14583         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
14584         Add sys/fanotify.h.
14585         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
14586         fanotify_mask for GLIBC_2.13.
14587         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
14588         fanotify_init and fanotify_mark.
14589         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14590         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
14591
14592         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
14593         Add prlimit.
14594         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
14595         prlimit64 for GLIBC_2.13.
14596         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
14597         prlimit64.
14598         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
14599         syscall.
14600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14601         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14602         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
14603         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
14604         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
14605         add prlimit alias.
14606         * sysdeps/unix/sysv/linux/prlimit.c: New file.
14607
14608         [BZ #11903]
14609         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
14610         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
14611
14612         * nss/Makefile: Add rules to build and run tst-nss-test1.
14613         * shlib-versions: Add entry for libnss_test1.
14614         * nss/nss_test1.c: New file.
14615         * nss/tst-nss-test1.c: New file.
14616
14617         * nss/nsswitch.c (__nss_database_custom): Define new variable.
14618         (__nss_configure_lookup): Set appropriate entry in
14619         __nss_configure_lookup to true.
14620         * nss/nsswitch.h: Define enum with indeces of databases in
14621         databases and __nss_database_custom arrays.  Declare
14622         __nss_database_custom.
14623         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
14624         to avoid using nscd when custom rules are installed.
14625         * nss/getXXbyYY_r.c: Likewise.
14626         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14627
14628         * nss/nss_files/files-parse.c: Whitespace fixes.
14629
14630 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
14631
14632         [BZ #11883]
14633         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
14634         * posix/fnmatch_loop.c: Likewise.
14635
14636 2010-07-17  Andi Kleen  <ak@linux.intel.com>
14637
14638         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
14639         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
14640         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
14641         * Versions.def [GLIBC_2.13]: Add.
14642
14643 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
14644
14645         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14646         Also fail if tpwd after pwuid call is NULL.
14647
14648 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14649
14650         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
14651         when converting to ms.
14652
14653 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14654
14655         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
14656         EOPNOTSUPP errors with ENOTTY.
14657         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
14658         EOPNOTSUPP errors with ENOTTY.
14659
14660 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
14661
14662         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14663         Add strcasecmp_l-ssse3.
14664         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
14665         strcasecmp.
14666         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
14667         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
14668         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
14669
14670 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
14671
14672         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
14673
14674         * string/Makefile (strop-tests): Add strcasecmp.
14675         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14676         strcasecmp_l-nonascii.
14677         (gen-as-const-headers): Add locale-defines.sym.
14678         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
14679         * sysdeps/x86_64/strcasecmp.S: New file.
14680         * sysdeps/x86_64/strcasecmp_l.S: New file.
14681         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
14682         * sysdeps/x86_64/locale-defines.sym: New file.
14683         * string/test-strcasecmp.c: New file.
14684
14685         * string/test-strcasestr.c: Test both ends of the range of characters.
14686         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
14687
14688 2010-07-29  Roland McGrath  <roland@redhat.com>
14689
14690         [BZ #11856]
14691         * manual/locale.texi (Yes-or-No Questions): Fix example code.
14692
14693 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
14694
14695         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
14696         for ld.so.
14697
14698 2010-07-27  Andreas Schwab  <schwab@redhat.com>
14699
14700         * manual/memory.texi (Malloc Tunable Parameters): Document
14701         M_PERTURB.
14702
14703 2010-07-26  Roland McGrath  <roland@redhat.com>
14704
14705         [BZ #11840]
14706         * configure.in (-fgnu89-inline check): Set and substitute
14707         gnu89_inline, not libc_cv_gnu89_inline.
14708         * configure: Regenerated.
14709         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
14710
14711 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
14712
14713         * string/test-strnlen.c: New file.
14714         * string/Makefile (strop-tests): Add strnlen.
14715         * string/tester.c (test_strnlen): Add a few more test cases.
14716         * string/tst-strlen.c: Better error reporting.
14717
14718         * sysdeps/x86_64/strnlen.S: New file.
14719
14720 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
14721
14722         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
14723         lower-latency instructions.
14724
14725 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
14726
14727         * string/test-strcasestr.c: New file.
14728         * string/test-strstr.c: New file.
14729         * string/Makefile (strop-tests): Add strstr and strcasestr.
14730         * string/str-two-way.h: Don't undefine MAX.
14731         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14732
14733 2010-07-21  Andreas Schwab  <schwab@redhat.com>
14734
14735         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14736         strcasestr-nonascii.
14737         (CFLAGS-strcasestr-nonascii.c): Define.
14738         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
14739         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
14740         Remove unused attribute.
14741
14742 2010-07-20  Roland McGrath  <roland@redhat.com>
14743
14744         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
14745         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
14746         ld.so.cache was broken.  With it, there is no way to disable dsocaps
14747         like LD_HWCAP_MASK can disable hwcaps.
14748
14749 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14750
14751         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
14752
14753 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
14754
14755         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
14756         call in strcasestr.
14757         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
14758         __strcasestr_sse42_nonascii.
14759         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
14760         strcasestr-nonascii.c.
14761         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
14762
14763 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
14764
14765         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
14766         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
14767         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
14768         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
14769
14770 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
14771
14772         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
14773         fcntl.
14774
14775 2010-07-06  Andreas Schwab  <schwab@redhat.com>
14776
14777         [BZ #11577]
14778         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
14779         dl_signal_cerror.
14780
14781 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
14782
14783         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
14784         _PC_PIPE_BUF using F_GETPIPE_SZ.
14785
14786 2010-07-05  Roland McGrath  <roland@redhat.com>
14787
14788         * manual/arith.texi (Rounding Functions): Fix rint description
14789         implicit in round description.
14790
14791 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
14792
14793         * elf/Makefile: Fix linking for a few tests to make recent linker
14794         happy.
14795
14796 2010-06-30  Andreas Schwab  <schwab@redhat.com>
14797
14798         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14799         $(common-objpfx)libc_nonshared.a.
14800
14801 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
14802
14803         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
14804         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
14805         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14806         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14807         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
14808         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
14809         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14810         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
14812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
14813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
14814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
14816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
14818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
14819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
14820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
14821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
14823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
14825         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
14826         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
14827         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
14828         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
14829         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
14830         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
14831         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
14832         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
14833         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
14834         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
14835         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
14836         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
14837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
14838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
14839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
14840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
14841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
14842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
14843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
14844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
14845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
14846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
14847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
14848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
14849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
14850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
14851
14852 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14853
14854         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
14855         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
14856         * string/memmove.c (memmove): Renamed to ...
14857         (MEMMOVE): ...this.  Default to memmove.
14858         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
14859         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
14860         (END_CHK): Define.
14861         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14862         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
14863         mempcpy-ssse3-back memmove-ssse3-back.
14864         * sysdeps/x86_64/multiarch/bcopy.S: New file .
14865         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
14866         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
14867         * sysdeps/x86_64/multiarch/memcpy.S: New file.
14868         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
14869         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
14870         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
14871         * sysdeps/x86_64/multiarch/memmove.c: New file.
14872         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
14873         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
14874         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
14875         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
14876         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
14877         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
14878         Define.
14879         (index_Fast_Copy_Backward): Define.
14880         (HAS_ARCH_FEATURE): Define.
14881         (HAS_FAST_REP_STRING): Define.
14882         (HAS_FAST_COPY_BACKWARD): Define.
14883
14884 2010-06-21  Andreas Schwab  <schwab@redhat.com>
14885
14886         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14887         Restore proper fallback handling.
14888
14889 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
14890
14891         [BZ #11701]
14892         * posix/group_member.c (__group_member): Correct checking loop.
14893
14894         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
14895         OOM in getpwuid_r correctly.  Return error number when the caller
14896         should return, otherwise -1.
14897         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
14898         call returning > 0 value.
14899         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
14900
14901 2010-06-07  Andreas Schwab  <schwab@redhat.com>
14902
14903         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
14904         libc_nonshared.a from targets in modules-names.
14905
14906 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
14907
14908         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
14909         requires it.
14910
14911 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
14912
14913         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
14914         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
14915         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
14916         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
14917
14918 2010-06-02  Andreas Schwab  <schwab@redhat.com>
14919
14920         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
14921
14922 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
14923
14924         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
14925         and F_GETPIPE_SZ.
14926         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14927         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14928         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14929         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14930         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14931         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
14932
14933 2010-06-14  Roland McGrath  <roland@redhat.com>
14934
14935         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
14936
14937 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
14938
14939         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
14940         __REDIRECT followed by __THROW.
14941         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
14942         * posix/getopt.h (getopt): Likewise.
14943
14944 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14945
14946         * hurd/lookup-at.c (__file_name_lookup_at): Accept
14947         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
14948         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
14949         in AT_FLAGS.
14950         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
14951         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
14952
14953 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
14954
14955         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
14956
14957 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14958
14959         [BZ #11640]
14960         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14961         Properly check family and model.
14962
14963 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
14964
14965         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
14966
14967 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
14968
14969         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
14970
14971 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
14972
14973         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
14974         symbol reference.
14975
14976 2010-05-19  Andreas Schwab  <schwab@redhat.com>
14977
14978         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
14979         symbol reference.
14980
14981 2010-05-21  Andreas Schwab  <schwab@redhat.com>
14982
14983         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
14984         and internal_recvmmsg.
14985         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
14986         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
14987         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
14988         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
14989
14990         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
14991         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
14992         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
14993
14994 2010-05-20  Andreas Schwab  <schwab@redhat.com>
14995
14996         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
14997
14998 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
14999
15000         POWER7 optimizations.
15001         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
15002         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
15003
15004 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
15005
15006         * version.h: Update for 2.13 development version.
15007
15008 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
15009
15010         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
15011         exceptions.  Return 0.
15012
15013 2010-05-07  Roland McGrath  <roland@redhat.com>
15014
15015         * elf/ldconfig.c (main): Add a const.
15016
15017 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
15018
15019         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
15020         (args_options): Add no-idn option.
15021         (ahosts_keys_int): Add idn_flags to ai_flags.
15022         (parse_option): Handle 'i' option to clear idn_flags.
15023
15024         * malloc/malloc.c (_int_free): Possible race in the most recently
15025         added check.  Only act on the data if no current modification
15026         happened.
15027
15028 See ChangeLog.17 for earlier changes.