mktime: merge time_r change from gnulib
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2
3         mktime: merge time_r change from gnulib
4         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5
6         mktime: merge DEBUG change from gnulib
7         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
8         case system <time.h> has a #define.
9
10         mktime: merge <sys/types.h> change from gnulib
11         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
12         since <time.t> is now guaranteed to define time_t.
13
14         mktime: merge HAVE_CONFIG_H change from gnulib
15         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
16
17 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18
19         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
20         Use "neg %eax".
21
22         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23         __rlim_t cast.
24         (struct rusage): Use anonymous union to pad each field to
25         __syscall_slong_t.
26
27 2012-05-21  David S. Miller  <davem@davemloft.net>
28
29         * Makefules (o-iterator): Remove .s cases.
30         (compile-command.s): Delete.
31         (COMPILE.s): Delete.
32         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
33
34 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
35
36         * configure.in (libc_cv_predef_stack_protector): Only consider
37         "foobar" and "__stack_chk_fail" lines in libc_undefs.
38         * configure: Regenerated.
39
40 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
41
42         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
43         New macro.  Use R*LP on int and pointer.
44         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
45         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
46         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
47         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
48
49         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
50         [__WORDSIZE_TIME64_COMPAT32] instead of
51         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
52         (struct utmp): Likewise.
53         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
54         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
55         Renamed to ...
56         (__WORDSIZE_TIME64_COMPAT32): This.
57         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
58         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
59         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
60         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
61         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62         (__WORDSIZE_TIME64_COMPAT32): New macro.
63
64 2012-05-21  Andreas Jaeger  <aj@suse.de>
65
66         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
67         only if [SHARED]. Add prototype for __wcschr_ia32.
68
69 2012-05-21  Roland McGrath  <roland@hack.frob.com>
70
71         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
72         of %rbp unmolested in the jmp_buf while mangling the low bits.
73         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
74         unmolested high bits of %rbp while demangling the low bits.
75         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
76
77 2012-05-21  Andreas Jaeger  <aj@suse.de>
78
79         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
80         * sunrpc/svc_simple.c: Use it for registerrpc.
81         * sunrpc/xcrypt.c: Use it for passwd2des.
82
83         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
84
85 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
86
87         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
88         Don't define if [__SYSCALL_WORDSIZE != 32].
89         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
90         New macro.
91
92 2012-05-21  Bruno Haible  <bruno@clisp.org>
93             Andreas Jaeger  <aj@suse.de>
94
95         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
96         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
97         inptr and inend for must_buffer_ch.
98         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
99         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
100         * stdio-common/Makefile (tests): Remove bug15.
101         (bug15-ENV): Remove macro.
102         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
103         anymore.
104
105 2012-05-19  Andreas Jaeger  <aj@suse.de>
106             Roland McGrath  <roland@hack.frob.com>
107
108         * manual/contrib.texi: Completely rewritten. It contains now an
109         alphabetical list of contributors and their contributions.
110
111 2012-05-21  Richard Henderson  <rth@twiddle.net>
112
113         * misc/getauxval.c (__getauxval): Use unsigned long int.
114         * misc/sys/auxv.h: Include <sys/cdefs.h>.
115         (getauxval): Use unsigned long int.
116
117 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
118
119         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
120
121 2012-05-21  Roland McGrath  <roland@hack.frob.com>
122
123         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
124         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
125         __alignof__ (long double).
126
127 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
128
129         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
130
131 2012-05-20  Richard Henderson  <rth@twiddle.net>
132
133         * misc/getauxval.c: New file.
134         * misc/sys/auxv.h: New file.
135         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
136         (routines): Add getauxval.
137         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
138         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
139         * elf/dl-sysdep.c (_dl_auxv): Remove.
140         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
141         * elf/dl-support.c (_dl_auxv): New variable.
142         (_dl_aux_init): Initialize it.
143         * manual/startup.texi (Auxiliary Vector): New node.
144         * sysdeps/generic/bits/hwcap.h: New file.
145         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
146         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
147         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
148         * sysdeps/sparc/sysdep.h: ... here.  Include it.
149         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
150         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
152         Update.
153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
154         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
155         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
156         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
157         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
158         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
159         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
160         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
161
162 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
163
164         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
165
166 2012-05-19  David S. Miller  <davem@davemloft.net>
167
168         * sysdeps/sparc/fpu/libm-test-ulps: Update.
169
170 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
171
172         [BZ #14123]
173         * math/s_ccosh.c: Include <float.h>
174         (__ccosh): Avoid internal overflow calculating sinh and cosh
175         values before multiplying by sin and cos values.
176         * math/s_ccoshf.c: Likewise.
177         * math/s_ccoshl.c: Likewise.
178         * math/s_csin.c: Likewise.
179         * math/s_csinf.c: Likewise.
180         * math/s_csinl.c: Likewise.
181         * math/s_csinh.c: Likewise.
182         * math/s_csinhf.c: Likewise.
183         * math/s_csinhl.c: Likewise.
184         * math/libm-test.inc (ccos_test): Add more tests.
185         (ccosh_test): Likewise.
186         (csin_test): Likewise.
187         (csinh_test): Likewise.
188         * sysdeps/i386/fpu/libm-test-ulps: Update.
189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
190
191 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
192
193         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
194         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
195
196         * sysdeps/x86_64/x32/_itoa.h: Add comment.
197
198 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
199
200         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
201         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
202         * sysdeps/powerpc/soft-fp/Versions: Likewise.
203         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
204         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
205         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
206         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
207         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
208         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
209         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
210         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
211         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
212         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
213         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
214         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
215         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
216         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
217         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
218         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
219         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
220         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
221         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
222         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
223         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
224         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
225         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
226         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
227         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
228         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
229         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
230         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
231
232 2012-05-18  Andreas Jaeger  <aj@suse.de>
233
234         * csu/.gitignore: Delete.
235
236 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
237
238         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
239         (timex): Use __syscall_slong_t.
240
241 2012-05-18  Andreas Jaeger  <aj@suse.de>
242             Carlos O'Donell  <carlos_odonell@mentor.com>
243
244         * manual/install.texi (Configuring and compiling): Update
245         description about files modified in the source directory.
246         * INSTALL: Regenerated.
247
248 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
249
250         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
251         value.  Use "or" to set return value to -1.
252         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
253         negate return value.
254
255 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
256
257         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
258         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
259         failure if the compiler has Graphite support disabled.
260         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
261         Likewise.
262         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
263         CFLAGS-memmove.c): Likewise.
264         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
265         Likewise.
266
267 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
268
269         * sysdeps/x86_64/x32/_itoa.h: New file.
270
271         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
272         getdents system call only if kernel and user dirents have the
273         same d_ino and d_off.
274
275         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
276         LLONG_MAX != LONG_MAX.
277         (_itoa_word): Use _ITOA_WORD_TYPE on value.
278         (_fitoa_word): Likewise.
279
280         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
281         years.
282         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
283         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
284         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
285
286         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
287         include <bits/wordsize.h>.  Check __x86_64__ instead of
288         __WORDSIZE.
289         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
290         if __x86_64__ is defined.  Use anonymous union on fpstate.
291
292         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
293         anonymous union.
294
295 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
296
297         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
298         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
299         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
300         Refer to _rtld_local_ro instead of _rtld_global_ro.
301         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
302         Likewise.
303         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
304         Likewise.
305         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
306         Likewise.
307         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
308         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
309         of _rtld_global, and rtld_progname instead of _dl_argv[0].
310
311         * sysdeps/powerpc/powerpc32/dl-machine.c
312         (__elf_machine_runtime_setup) [PROF]: Don't reference
313         _dl_prof_resolve.
314
315 2012-05-18  Andreas Jaeger  <aj@suse.de>
316
317         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
318         function only available for GCCs before 3.4 since GCC 3.4
319         introduced a builtin.
320         (lrint): Likewise.
321         (llrintf): Likewise.
322         (llrint): Likewise.
323         (fmaxf): Likewise.
324         (fmax): Likewise.
325         (fminf): Likewise.
326         (fmin): Likewise.
327         (rint): Likewise.
328         (rintf): Likewise.
329         (nearbyint): Likewise.
330         (nearbyintf): Likewise.
331         (ceil): Likewise.
332         (ceilf): Likewise.
333         (floor): Likewise.
334         (floorf): Likewise.
335
336 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
337
338         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
339         on both fields and cast pointer to __syscall_ulong_t.
340
341         * bits/types.h (__fsword_t): New type.
342         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
343         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
344         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
345         (__FSWORD_T_TYPE): Likewise.
346         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
347         (__FSWORD_T_TYPE): Likewise.
348         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
349         (__FSWORD_T_TYPE): Likewise.
350         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
351         (__FSWORD_T_TYPE): Likewise.
352         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
353         __SWORD_TYPE with __fsword_t.
354         (statfs64): Likewise.
355
356 2012-05-17  David S. Miller  <davem@davemloft.net>
357
358         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
359
360 2012-05-17  Andreas Jaeger  <aj@suse.de>
361
362         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
363         warning.
364
365 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
366
367         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
368
369 2012-05-17  Andreas Jaeger  <aj@suse.de>
370
371         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
372         when it is used.
373
374 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
375
376         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
377
378 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
379
380         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
381         * sysdeps/x86_64/tst-mallocalign1.c: New file.
382
383 2012-05-17  Andreas Jaeger  <aj@suse.de>
384             Carlos O'Donell  <carlos_odonell@mentor.com>
385
386         [BZ #14059]
387         * sysdeps/x86_64/multiarch/init-arch.h
388         (bit_YMM_Usable): Rename to...
389         (bit_AVX_Usable): ... this.
390         (bit_FMA4_Usable): New macro.
391         (bit_XMM_state): New macro.
392         (bit_YMM_state): New macro.
393         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
394         [__ASSEMBLER__] (index_AVX_Usable): ... this.
395         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
396         (CPUID_OSXSAVE): New macro.
397         (CPUID_AVX): New macro.
398         (CPUID_FMA4): New macro.
399         (index_YMM_Usable): Rename to...
400         (index_AVX_Usable): ... this.
401         (HAS_AVX): Use HAS_ARCH_FEATURE.
402         (HAS_FMA4): Likewise.
403         (HAS_YMM_USABLE): Remove.
404         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
405         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
406         are present.
407         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
408         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
409         * sysdeps/x86_64/multiarch/Makefile: Likewise.
410         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
411         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
412
413 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
414
415         * math/libm-test.c: Support platforms without multiple rounding modes.
416         * math/bug-nextafter.c: Support platforms without FP exceptions.
417         * math/bug-nexttoward.c: Likewise.
418         * math/test-fenv.c: Likewise.
419         * math/test-misc.c: Likewise.
420         * stdlib/bug-getcontext.c: Likewise.
421
422 2012-05-17  Andreas Jaeger  <aj@suse.de>
423
424         * manual/examples/search.c (critter_cmp): Change signature to
425         avoid warnings.
426         * manual/string.texi (Collation Functions): Likewise.
427
428 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
429
430         * bits/types.h: Fold copyright years.
431         * bits/typesizes.h: Likewise.
432         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
433         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
434         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
435         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
436         * time/time.h: Likewise.
437
438 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
439
440         [BZ #208]
441         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
442         in instead of returning them.  Return void.
443         (__libc_mallinfo): Accumulate over all arenas.
444         (__malloc_stats): Adjust for change in int_mallinfo interface.
445
446 2012-05-16  Roland McGrath  <roland@hack.frob.com>
447
448         [BZ #10375]
449         * configure.in (NM): Add AC_CHECK_TOOL for it.
450         (libc_extra_cflags): New substituted variable.
451         Check for -fstack-protector being used implicitly.
452         * configure: Regenerated.
453         * config.make.in (config-extra-cflags): New variable,
454         gets @libc_extra_cflags@.
455         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
456
457         [BZ #10375]
458         * configure.in: Check for _FORTIFY_SOURCE being predefined.
459         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
460         * configure: Regenerated.
461         * config.make.in (CPPUNDEFS): New substituted variable.
462         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
463         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
464         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
465
466 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
467
468         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
469         (mq_attr): Use __syscall_slong_t.
470
471 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
472
473         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
474         Check __x86_64__ instead of __WORDSIZE.
475         (_STAT_VER_LINUX): Likewise.
476         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
477         __syscall_ulong_t and __syscall_slong_t.
478         (stat64): Likewise.
479
480 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
481
482         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
483
484 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
485
486         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
487
488 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
489
490         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
491         __syscall_ulong_t.
492
493         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
494         include <bits/wordsize.h>.  Check __x86_64__ instead of
495         __WORDSIZE.
496         (greg_t): Use "__extension__ long long int" if __x86_64__ is
497         defined.
498         (mcontext_t): Replace "unsigned long" with "unsigned long long".
499
500         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
501         include <bits/wordsize.h>.  Check __x86_64__ instead of
502         __WORDSIZE.
503         (user_regs_struct): Use "__extension__ unsigned long long"
504         instead of "unsigned long" if __x86_64__ is defined.
505         (user): Likewise.  Pad after pointer field if __ILP32__ is
506         defined.
507
508 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
509
510         * configure.in (makeinfo): Require version 4.5 or later.  Allow
511         versions 5 to 9.
512         * configure: Regenerated.
513         * manual/install.texi (texinfo): Increase version requirement to
514         4.5 or later.
515         * INSTALL: Regenerated.
516
517         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
518
519 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
520
521         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
522
523         * sysdeps/x86_64/x32/ffs.c: New file.
524
525         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
526         __syscall_ulong_t.
527         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
528         defined.  Use __syscall_ulong_t.
529         (shminfo): Use __syscall_ulong_t.
530         (shm_info): Likewise.
531
532         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
533         __syscall_ulong_t.
534
535         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
536         <bits/wordsize.h>.
537         (msgqnum_t): Use __syscall_ulong_t.
538         (msglen_t): Likewise.
539         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
540         __syscall_ulong_t.
541
542         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
543         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
544
545         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
546
547         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
548         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
549
550         * sysvipc/sys/msg.h (msgbuf): Replace long int with
551         __syscall_slong_t.
552
553         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
554         include <bits/wordsize.h>.  Check __x86_64__ instead of
555         __WORDSIZE.
556
557         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
558         "unsigned long long int" if __x86_64__ is defined.
559         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
560
561         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
562         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
563         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
564
565         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
566         <stdint.h>.
567         (GET_PC): Cast to uintptr_t first.
568         (GET_FRAME): Likewise.
569         (GET_STACK): Likewise.
570
571         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
572         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
573         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
574         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
575         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
576         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
577         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
578         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
579         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
580         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
581         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
582         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
583         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
584         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
585         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
586         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
587         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
588         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
589         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
590         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
591         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
592         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
593         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
594         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
595         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
596         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
597         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
598         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
599         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
600
601 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
602
603         * Makerules (+depfiles): Also collect depfiles from .oS in
604         $(extra-objs).
605         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
606         .oS, $(libnldbl-routines)).
607
608         * Makerules (native-compile-mkdep-flags): Define.
609         * sunrpc/Makefile (extra-objs): Add $(addprefix
610         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
611         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
612         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
613         calling $(make-target-directory).
614
615 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
616
617         * bits/types.h (__snseconds_t): Removed.
618         * time/time.h (struct timespec): Replace __snseconds_t with
619         __syscall_slong_t.
620         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
621         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
622         Likewise.
623         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
624         (__SNSECONDS_T_TYPE): Likewise.
625         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
626         (__SNSECONDS_T_TYPE): Likewise.
627         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
628         (__SNSECONDS_T_TYPE): Likewise.
629
630 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
631
632         * sysdeps/mach/hurd/bits/typesizes.h
633         (__SYSCALL_SLONG_TYPE): New macro.
634         (__SYSCALL_ULONG_TYPE): Likewise.
635
636 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
637
638         * bits/types.h (__syscall_slong_t): New type.
639         (__syscall_ulong_t): Likewise.
640
641         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
642         (__SYSCALL_ULONG_TYPE): Likewise.
643         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
644         (__SYSCALL_SLONG_TYPE): Likewise.
645         (__SYSCALL_ULONG_TYPE): Likewise.
646         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
647         (__SYSCALL_SLONG_TYPE): Likewise.
648         (__SYSCALL_ULONG_TYPE): Likewise.
649         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
650         (__SYSCALL_SLONG_TYPE): Likewise.
651         (__SYSCALL_ULONG_TYPE): Likewise.
652
653 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
654
655         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
656         Add sigaltstack-offsets.sym.
657         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
658         <sigaltstack-offsets.h>.
659         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
660         longjmp_msg pointer.
661         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
662         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
663         signal stack.
664         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
665
666 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
667
668         * elf/stackguard-macros.h: Remove file.
669         * sysdeps/generic/stackguard-macros.h: New file.
670         * sysdeps/i386/stackguard-macros.h: Likewise.
671         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
672         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
673         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
674         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
675         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
676         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
677         * sysdeps/x86_64/stackguard-macros.h: Likewise.
678         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
679         <elf/stackguard-macros.h>.
680
681         [BZ #14109]
682         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
683         __aligned__ in attribute.
684         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
685         (gregset_t): Likewise.
686
687 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
688
689         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
690         * sysdeps/x86_64/64/Implies-after: Here.  New file.
691         * sysdeps/x86_64/x32/Implies-after: New file.
692
693 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
694
695         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
696         and access return value for _dl_profile_fixup.  Use R10_LP to
697         load frame size.
698
699 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
700
701         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
702
703 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
704
705         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
706         * sysdeps/x86_64/x32/sysdep.h: New file.
707
708 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
709
710         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
711         * sysdeps/x86_64/setjmp.S: Likewise.
712
713 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
714
715         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
716         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
717         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
718         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
719         remove unused global constant.
720
721 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
722
723         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
724         include of <not-cancel.h>.
725
726 2012-05-15  Roland McGrath  <roland@hack.frob.com>
727
728         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
729
730 2012-05-15  Jeff Law  <law@redhat.com>
731             Andreas Jaeger  <aj@suse.de>
732
733         [BZ #13594]
734         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
735         out from...
736         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
737         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
738         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
739         code changing __hst_map_handle.map.
740
741 2012-05-15  Roland McGrath  <roland@hack.frob.com>
742
743         * configure.in (sysnames): Look for Implies-before and Implies-after
744         files.
745         * configure: Regenerated.
746
747 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
748
749         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
750         8-byte data alignment with LP_SIZE alignment.
751
752 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
753
754         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
755         into R10_LP.
756
757 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
758
759         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
760
761 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
762
763         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
764         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
765         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
766         Likewise.
767         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
768
769 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
770
771         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
772         (stackinfo_sub_sp): Likewise.
773
774 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
775
776         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
777         RAX_LP.
778
779 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
780
781         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
782         into R*_LP.
783
784 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
785
786         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
787         sizes into R*_LP.
788
789 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
790
791         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
792
793 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
794
795         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
796         into R11_LP and load __x86_64_shared_cache_size_half into
797         R8_LP.
798
799 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
800
801         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
802         R8_LP.
803
804 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
805
806         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
807         logb for POWER7.
808         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
809         logbf for POWER7.
810         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
811         logbl for POWER7.
812         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
813         powerpc32/power7/fpu/s_logb.c via #include.
814         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
815         powerpc32/power7/fpu/s_logbf.c via #include.
816         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
817         powerpc32/power7/fpu/s_logbl.c via #include.
818
819 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
820
821         * README.libm: Remove file.
822
823 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
824
825         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
826         count for x32.  Use R*_LP and omit operand-size suffix.
827
828 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
829
830         * shlib-versions: Move x86_64-.*-linux.* entries to ...
831         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
832         * sysdeps/x86_64/x32/shlib-versions: New file.
833
834 2012-05-14  Roland McGrath  <roland@hack.frob.com>
835
836         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
837         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
838         Use _dl_fatal_printf instead.
839
840 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
841
842         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
843         set if not set by the user.  Do not allow for being unset.
844         * sysdeps/unix/sysv/linux/configure: Regenerated.
845
846 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
847
848         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
849         the `q' suffix from lea and replace .quad with ASM_ADDR.
850
851 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
852
853         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
854         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
855         instead of $17.
856         (PTR_DEMANGLE): Likewise.
857
858 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
859
860         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
861         (LP_OP): Likewise.
862         (ASM_ADDR): Likewise.
863         (RAX_LP): Likewise.
864         (RBP_LP): Likewise.
865         (RBX_LP): Likewise.
866         (RCX_LP): Likewise.
867         (RDI_LP): Likewise.
868         (RSI_LP): Likewise.
869         (RSP_LP): Likewise.
870         (R8_LP): Likewise.
871         (R9_LP): Likewise.
872         (R10_LP): Likewise.
873         (R10_LP): Likewise.
874         (R11_LP): Likewise.
875         (R12_LP): Likewise.
876         (R13_LP): Likewise.
877         (R14_LP): Likewise.
878         (R15_LP): Likewise.
879
880 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
881
882         * sysdeps/x86_64/x32/dl-machine.h: New file.
883
884 2012-05-14  Andreas Jaeger  <aj@suse.de>
885
886         * manual/Makefile (subdir): Remove export of subdir.
887         (all): Remove target.
888         (.PHONY): Remove all from list.
889         (mkinstalldirs): Remove.
890         (.PHONY): Remove installdirs from list.
891         ($(inst_infodir)/libc.info): Use make-target-directory.
892         (installdirs): Remove.
893         (subdir_%): Remove.
894         (glibc-targets): Remove.
895         (lib): Remove.
896         (stubs): Remove.
897         ($(objpfx)stubs ../po/manual.pot): Remove.
898         ($(objpfx)stamp%): Remove.
899         (make-target-directory): Remove.
900         (subdir_install): Remove.
901         (routines): Remove.
902         (aux): Remove.
903         (sources): Remove.
904         (objects): Remove.
905         (headers): Remove.
906
907         [BZ #13750]
908         * manual/.gitignore: Remove, it's not needed anymore.
909         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
910         all files in it.
911         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
912         directory.
913         (texis): Renamed to $(objpfx)texis.
914         (texis-path): New, contains path to generated files.
915         (chapters.%): Use texis-path for complete path, add extra argument
916         libc-texinfo.sh.
917         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
918         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
919         (summary,texi, stamp-summary): Use complete path of
920         files. Generate files in build dir.
921         (dir-add.texi): Build in build dir.
922         (libm-err.texi,stamp-libm-err): Likewise.
923         (version.texi, stamp-version): Likewise.
924         (.%c.texi): Likewise.
925         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
926         (mostlyclean): Remove target.
927         (realclean): Remove target.
928         (generated): Add new variable with contents from mostlyclean and
929         realclean, remove entries duplicated in common-mostlyclean, add
930         stamp-libm-err and stamp-version.
931         (generated-dirs): Add libc directory.
932         ($(inst_infodir)/libc.info): Install files from build dir.
933
934         * manual/install.texi (Configuring and compiling): Adjust since
935         the info files are not part of the tar ball anymore.
936
937 2012-05-14  Andreas Jaeger  <aj@suse.de>
938
939         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
940         variable.
941
942 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
943
944         [BZ #13717]
945         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
946         to 2.2.0 where earlier.
947         * sysdeps/unix/sysv/linux/configure: Regenerated.
948         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
949         Remove conditional code.
950         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
951         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
952         Remove conditional code.
953         [!__NR_lchown]: Likewise.
954         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
955         [__NR_lchown]: Likewise.
956         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
957         comment referencing __ASSUME_LCHOWN_SYSCALL.
958         * sysdeps/unix/sysv/linux/i386/sigaction.c
959         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
960         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
961         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
962         Remove conditional code.
963         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
964         (__protocol_available): Remove #if 0 code.
965         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
966         conditional code.
967         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
968         * sysdeps/unix/sysv/linux/kernel-features.h
969         (__ASSUME_GETCWD_SYSCALL): Don't define.
970         (__ASSUME_REALTIME_SIGNALS): Likewise.
971         (__ASSUME_PREAD_SYSCALL): Likewise.
972         (__ASSUME_PWRITE_SYSCALL): Likewise.
973         (__ASSUME_POLL_SYSCALL): Likewise.
974         (__ASSUME_LCHOWN_SYSCALL): Likewise.
975         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
976         non-SPARC.
977         (__ASSUME_SIOCGIFNAME): Don't define.
978         (__ASSUME_MSG_NOSIGNAL): Likewise.
979         (__ASSUME_SENDFILE): Define unconditionally.
980         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
981         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
982         conditional code.
983         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
984         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
985         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
986         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
987         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
988         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
989         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
991         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
992         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
994         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
995         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
997         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
998         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
1000         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1001         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
1003         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1004         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
1006         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1007         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
1009         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1010         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
1012         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1013         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1014         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
1015         Remove conditional code.
1016         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1017         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1018         Remove conditional code.
1019         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1020         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
1021         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
1022         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1023         Remove conditional code.
1024         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1025         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
1026         Remove conditional code.
1027         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1028         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
1029         Remove conditional code.
1030         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1031         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1032         Remove conditional code.
1033         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1034         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1035         Remove conditional code.
1036         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1037         * sysdeps/unix/sysv/linux/sh/pwrite64.c
1038         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1039         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1040         * sysdeps/unix/sysv/linux/sigaction.c
1041         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1042         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1043         * sysdeps/unix/sysv/linux/sigpending.c
1044         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1045         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1046         * sysdeps/unix/sysv/linux/sigprocmask.c
1047         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1048         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1049         * sysdeps/unix/sysv/linux/sigsuspend.c
1050         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1051         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1052         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1053         (__libc_missing_rt_sigs): Remove.
1054         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
1055         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
1056         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
1057         Remove conditional code.
1058         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
1059         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
1060         return 1.
1061         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
1062         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
1063         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
1064         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
1065
1066 2012-05-14  Andreas Jaeger  <aj@suse.de>
1067
1068         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
1069         it's not used in glibc.
1070         (__coshm1): Likewise.
1071         (__acosh1p): Likewise.
1072         (__sgn): Likewise.
1073
1074         * manual/string.texi (Copying and Concatenation): Add missing
1075         variable in concat example.
1076         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
1077
1078 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1079
1080         [BZ #14103]
1081         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
1082         __builtin_clzl with __builtin_clzll.
1083
1084 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1085
1086         [BZ #14104]
1087         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
1088         libc_freeres_ptr.
1089
1090 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1091
1092         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
1093         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
1094         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
1095         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
1096
1097 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
1098
1099         * NEWS: Update ia64 info.
1100
1101 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
1102
1103         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
1104         used as bcopy.
1105
1106 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1107
1108         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
1109         * sysdeps/unix/syscalls.list (dup3): Likewise.
1110         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
1111         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
1112
1113 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1114
1115         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
1116         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
1117
1118 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1119
1120         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
1121         thread pointer.
1122         (TLS_IE): Use mov/add instead of movq/addq to load thread
1123         pointer.
1124         (TLS_GD_PREFIX): New.
1125         (TLS_GD): Use it.
1126
1127 2012-05-11  David S. Miller  <davem@davemloft.net>
1128
1129         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
1130         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
1131         (_FPU_SETCW): Likewise.
1132
1133 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1134
1135         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
1136         is 32-byte aligned.
1137
1138 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
1139
1140         [BZ #11837]
1141         * iconvdata/gb18030.c: Update tables.
1142         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
1143         characters specially.
1144         (BODY for TO_LOOP): Add encoding of missing ranges.
1145
1146 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
1147
1148         [BZ #13673]
1149         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
1150         * sysdeps/mach/hurd/dup3.c: Likewise.
1151         * sysdeps/mach/hurd/readlinkat.c: Likewise.
1152         * sysdeps/powerpc/memmove.c:: Likewise.
1153
1154 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1155
1156         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
1157         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
1158
1159 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1160
1161         * elf/elf.h (R_X86_64_RELATIVE64): New.
1162         (R_X86_64_NUM): Updated.
1163         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1164         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
1165         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
1166         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
1167         tst-quad1pie tst-quad2pie
1168         (modules-names): Add tst-quadmod1 tst-quadmod2.
1169         ($(objpfx)tst-quad1): New dependency.
1170         ($(objpfx)tst-quad2): Likewise.
1171         ($(objpfx)tst-quad1pie): Likewise.
1172         ($(objpfx)tst-quad2pie): Likewise.
1173         * sysdeps/x86_64/tst-quad1.c: New file.
1174         * sysdeps/x86_64/tst-quad1pie.c: New file.
1175         * sysdeps/x86_64/tst-quad2.c: Likewise.
1176         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
1177         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
1178         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
1179         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
1180         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
1181
1182 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1183
1184         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
1185         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
1186         * streams/stropts.h (t_scalar_t): Define type.
1187
1188         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
1189         (_PATH_PRESERVE): Set to "/var/lib".
1190         (_PATH_RWHODIR): Set to "/var/spool/rwho".
1191
1192         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
1193         instead of int.
1194
1195         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
1196         if __dir_mkfile succeeded.
1197
1198         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
1199         checking for _hurd_dtablesize.  Unlock it right after having
1200         finished _hurd_dtable allocation.
1201
1202 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1203
1204         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
1205         * sysdeps/mach/hurd/configure: Regenerated.
1206         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
1207         special-casing to...
1208         * sysdeps/gnu/configure.in: ... this new file.
1209         * sysdeps/unix/sysv/linux/configure: Regenerated.
1210         * sysdeps/gnu/configure: New generated file.
1211
1212         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
1213         for Linux: use nsec instead of usec, as well as:
1214         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
1215         members of type struct timespec.
1216         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
1217         New macros.
1218         (struct stat64): Likewise.
1219         (_STATBUF_ST_NSEC): New macro.
1220         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
1221
1222         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1223         __strtoul_internal rather than strtoul.
1224
1225 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1226
1227         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
1228         and reject them.
1229
1230 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1231
1232         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
1233         which preserves existing values.
1234         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
1235
1236 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1237
1238         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
1239         TIMEOUT values.  Return EINVAL for NFDS values either negative or
1240         greater than FD_SETSIZE.
1241
1242 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1243
1244         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
1245         allocated, call __vm_protect to finish enabling the existing space, and
1246         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
1247         allocate the remainder.
1248
1249 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1250
1251         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
1252         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
1253
1254 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1255
1256         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
1257         sysdeps/mach/hurd/readlink.c.
1258
1259         * posix/tst-sysconf.c (posix_options): Only use
1260         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
1261         _POSIX_SYNCHRONIZED_IO when they are defined
1262         * sysdeps/mach/hurd/bits/posix_opt.h:
1263         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
1264         (_XOPEN_REALTIME): Undefine macro.
1265         (_XOPEN_REALTIME_THREADS): Undefine macro.
1266         (_XOPEN_SHM): Undefine macro.
1267         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
1268         macro to -1.
1269         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
1270         macro to -1.
1271         (_POSIX_ASYNC_IO): Undefine macro.
1272         (_POSIX_PRIORITIZED_IO): Undefine macro.
1273         (_POSIX_SPIN_LOCKS): Define macro to -1.
1274
1275         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
1276         SA_NODEFER, SA_RESETHAND.
1277         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
1278         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
1279         F_DUPFD_CLOEXEC.
1280
1281 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1282
1283         * elf/Makefile (pldd-modules): Define unconditionally.
1284
1285 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1286
1287         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
1288
1289 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1290
1291         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1292         Return ENOENT when name is empty.
1293         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
1294
1295 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1296
1297         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
1298
1299         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
1300
1301 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1302
1303         Fix mlock in all cases except non-readable pages.
1304         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
1305         instead of VM_PROT_ALL as parameter to __vm_wire function.
1306
1307         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
1308         (__mkdir): When path is `/', just fail with EEXIST.
1309         * sysdeps/mach/hurd/mkdirat.c: Likewise.
1310
1311 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1312
1313         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
1314         <sys/uio.h> (for writev).
1315         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
1316         and <sys/param.h> (for MIN).
1317
1318 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1319
1320         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
1321         REQUESTED_TIME.  Properly set the remaining time and return EINTR
1322         if interrupted.
1323
1324 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1325
1326         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
1327         Depend on against $(link-rpcuserlibs).
1328
1329 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1330
1331         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
1332         (__libc_stack_end): Do not use attribute_relro.
1333         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
1334         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
1335         to libthread-provided value.
1336         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
1337         attribute_relro.
1338
1339 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1340
1341         [BZ #3748]
1342         * bits/libc-lock.h (__libc_once_get): New macro.
1343         * sysdeps/mach/bits/libc-lock.h: Likewise.
1344         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1345         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
1346         instead of using implementation details.
1347
1348         * libio/fileops.c: Unconditionally include <kernel-features.h>.
1349         * libio/freopen.c: Likewise.
1350         * libio/freopen64.c: Likewise.
1351         * misc/syslog.c: Likewise.
1352         * nscd/connections.c: Likewise.
1353         * nscd/netgroupcache.c: Likewise.
1354         * sysdeps/posix/getcwd.c: Likewise.
1355
1356 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1357
1358         * math/w_ilogbf.c: Add #include <limits.h>.
1359
1360 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1361
1362         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
1363         path instead of returning without unlocking.
1364
1365         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
1366         immediate-write ioctls.
1367         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
1368
1369 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1370
1371         * sysdeps/mach/hurd/i386/init-first.c (init): Use
1372         __builtin_frame_address instead of making assumptions about the
1373         location of the return address relative to DATA.  Force early load of
1374         the return address.
1375         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
1376         __builtin_frame_address.
1377
1378         dup3 for GNU Hurd.
1379         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
1380         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
1381         implement dup3 and do some further code clean-ups.
1382         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
1383         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
1384
1385 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1386
1387         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
1388
1389         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
1390         HURD_CRITICAL_END around holding _hurd_dtable_lock.
1391         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
1392         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
1393         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
1394         d->port.lock.
1395
1396         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
1397         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
1398         when handler == SIG_ERR, not when handler != SIG_ERR.
1399
1400 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1401
1402         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
1403         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
1404         definitions.
1405
1406         accept4 for GNU Hurd.
1407         * include/sys/socket.h (__libc_accept4): New prototype.
1408         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
1409         to implement __libc_accept4.
1410         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
1411         __libc_accept4.
1412         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
1413
1414         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
1415         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
1416         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
1417         signal-defines.sym.
1418
1419 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1420
1421         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
1422
1423 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1424
1425         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
1426         assertion on O_CLOEXEC flag.
1427         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
1428         * hurd/intern-fd.c: Likewise.
1429         * hurd/port2fd.c: Likewise.
1430
1431 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1432
1433         [BZ #3906]
1434         * bits/in.h (IPV6_PKTINFO): Define new macro.
1435         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
1436
1437 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1438
1439         [BZ #13954]
1440         [BZ #13955]
1441         [BZ #13956]
1442         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
1443         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1444         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
1445         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1446         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1447         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1448         * math/libm-test.inc (logb_test) : Additional logb tests.
1449
1450 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
1451             Andreas Jaeger  <aj@suse.de>
1452
1453         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
1454         * configure: Regenerated.
1455         * config.h.in (LINK_OBSOLETE_RPC): New macro.
1456         * config.make.in (link-obsolete-rpc): New substituted variable.
1457         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
1458         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
1459         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1460         (shared-only-routines): Don't set it under [link-obsolete-rpc],
1461         so that libc.a contains the symbols.
1462         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1463         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
1464         * sunrpc/auth_none.c: Likewise.
1465         * sunrpc/auth_unix.c: Likewise.
1466         * sunrpc/authdes_prot.c: Likewise.
1467         * sunrpc/authuxprot.c: Likewise.
1468         * sunrpc/clnt_gen.c: Likewise.
1469         * sunrpc/clnt_perr.c: Likewise.
1470         * sunrpc/clnt_raw.c: Likewise.
1471         * sunrpc/clnt_simp.c: Likewise.
1472         * sunrpc/clnt_tcp.c: Likewise.
1473         * sunrpc/clnt_udp.c: Likewise.
1474         * sunrpc/clnt_unix.c: Likewise.
1475         * sunrpc/des_crypt.c: Likewise.
1476         * sunrpc/des_soft.c: Likewise.
1477         * sunrpc/get_myaddr.c: Likewise.
1478         * sunrpc/key_call.c: Likewise.
1479         * sunrpc/key_prot.c: Likewise.
1480         * sunrpc/netname.c: Likewise.
1481         * sunrpc/pm_getmaps.c: Likewise.
1482         * sunrpc/pm_getport.c: Likewise.
1483         * sunrpc/pmap_clnt.c: Likewise.
1484         * sunrpc/pmap_prot.c: Likewise.
1485         * sunrpc/pmap_prot2.c: Likewise.
1486         * sunrpc/pmap_rmt.c: Likewise.
1487         * sunrpc/publickey.c: Likewise.
1488         * sunrpc/rpc_cmsg.c: Likewise.
1489         * sunrpc/rpc_common.c: Likewise.
1490         * sunrpc/rpc_dtable.c: Likewise.
1491         * sunrpc/rpc_prot.c: Likewise.
1492         * sunrpc/rpc_thread.c: Likewise.
1493         * sunrpc/rtime.c: Likewise.
1494         * sunrpc/svc.c: Likewise.
1495         * sunrpc/svc_auth.c: Likewise.
1496         * sunrpc/svc_raw.c: Likewise.
1497         * sunrpc/svc_run.c: Likewise.
1498         * sunrpc/svc_tcp.c: Likewise.
1499         * sunrpc/svc_udp.c: Likewise.
1500         * sunrpc/svc_unix.c: Likewise.
1501         * sunrpc/svcauth_des.c: Likewise.
1502         * sunrpc/xcrypt.c: Likewise.
1503         * sunrpc/xdr.c: Likewise.
1504         * sunrpc/xdr_array.c: Likewise.
1505         * sunrpc/xdr_float.c: Likewise.
1506         * sunrpc/xdr_intXX_t.c: Likewise.
1507         * sunrpc/xdr_mem.c: Likewise.
1508         * sunrpc/xdr_rec.c: Likewise.
1509         * sunrpc/xdr_ref.c: Likewise.
1510         * sunrpc/xdr_sizeof.c: Likewise.
1511         * sunrpc/xdr_stdio.c: Likewise.
1512
1513 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1514
1515         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
1516         change.  Update copyright years.
1517
1518 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1519
1520         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
1521
1522 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
1523             Joseph Myers  <joseph@codesourcery.com>
1524             Paul Pluzhnikov  <ppluzhnikov@google.com>
1525
1526         [BZ #14012]
1527         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
1528         requiring rpcgen.
1529         [cross-compiling] (extra-libs): Likewise.
1530         [cross-compiling] (extra-libs-others): Likewise.
1531         [cross-compiling] (librpcsvc-routines): Likewise.
1532         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
1533         [cross-compiling] (omit-deps): Likewise.
1534         (sunrpc-CPPFLAGS): New variable.
1535         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
1536         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
1537         (cross-rpcgen-objs): New variable.
1538         (extra-objs): Append $(cross-rpcgen-objs).
1539         ($(cross-rpcgen-objs)): New rule.
1540         ($(objpfx)cross-rpcgen): Likewise.
1541         (rpcgen-cmd): Define to use $(built-program-file).  Expand
1542         comment.
1543         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
1544         ($(objpfx)x%.stmp): Likewise.
1545         * sunrpc/proto.h [IS_IN_build] (_): Define.
1546         [IS_IN_build] (_libc_intl_domainname): Likewise.
1547
1548 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1549
1550         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
1551         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
1552         and R_X86_64_TPOFF64.
1553
1554 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1555
1556         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
1557         sysdeps/unix/sysv/syscalls.list.
1558         (stime): Likewise.
1559         (utime): Likewise.
1560         * sysdeps/unix/sysv/syscalls.list: Remove file.
1561
1562 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1563
1564         [BZ #3440]
1565         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
1566         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
1567         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
1568         (__LC_IDENTIFICATION): Make these macros useful in #if
1569         expressions, as required by C99.
1570
1571 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
1572
1573         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
1574         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
1575         after this.
1576
1577 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1578
1579         * stdlib/longlong.h: Updated from GCC.
1580
1581 2012-05-09  Andreas Jaeger  <aj@suse.de>
1582
1583         * nscd/nscd.c (run_modes): Make named enum, reorder so that
1584         default is first entry.
1585         (run_mode): Set type.
1586         (main): Remove informal message about syslog.
1587         (options): Fix typo.
1588
1589         [BZ #14053]
1590         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
1591         to asm.
1592         (lrint): Likewise.
1593         (llrintf): Likewise.
1594         (llrint): Likewise.
1595         (rint): Likewise.
1596         (rintf): Likewise.
1597         (nearbyint): Likewise.
1598         (nearbyintf): Likewise.
1599
1600 2012-05-09  Andreas Jaeger  <aj@suse.de>
1601             Pedro Alves  <palves@redhat.com>
1602
1603         * nscd/nscd.c (run_mode): Use enum.
1604         (main): Cleanup coding style issue.
1605
1606 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
1607             Andreas Jaeger  <aj@suse.de>
1608
1609         * nscd/nscd.c (go_background): Replaced with...
1610         (run_mode): ... this.
1611         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
1612         (options): Add -F --foreground.
1613         (main): Implement it.
1614         (parse_opt): Parse it.
1615
1616 2012-05-09  Andreas Jaeger  <aj@suse.de>
1617
1618         [BZ #14083]
1619         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
1620         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
1621         -Wconversion warning.
1622         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
1623         Likewise.
1624
1625 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
1626
1627         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
1628         == 0.
1629         (LC_ALL): Use macro-int-constant.
1630         (LC_COLLATE): Likewise.
1631         (LC_CTYPE): Likewise.
1632         (LC_MESSAGES): Likewise.
1633         (LC_MONETARY): Likewise.
1634         (LC_NUMERIC): Likewise.
1635         (LC_TIME): Likewise.
1636         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
1637         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1638         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1639         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
1640         Specify type.
1641         [C99-based standards] (float_t): Expect type.
1642         [C99-based standards] (double_t): Expect type.
1643         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
1644         type.
1645         [C99-based standards] (HUGE_VALL): Likewise.
1646         [C99-based standards] (INFINITY): Likewise.
1647         [C99-based standards] (NAN): Likewise.
1648         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
1649         [C99-based standards] (FP_NAN): Likewise.
1650         [C99-based standards] (FP_NORMAL): Likewise.
1651         [C99-based standards] (FP_SUBNORMAL): Likewise.
1652         [C99-based standards] (FP_ZERO): Likewise.
1653         [C99-based standards] (FP_FAST_FMA): Use
1654         optional-macro-int-constant.  Specify type.  Require == 1.
1655         [C99-based standards] (FP_FAST_FMAF): Likewise.
1656         [C99-based standards] (FP_FAST_FMAL): Likewise.
1657         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
1658         [C99-based standards] (FP_ILOGBNAN): Likewise.
1659         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
1660         Specify type.
1661         [C99-based standards] (MATH_ERREXCEPT): Likewise.
1662         [C99-based standards] (math_errhandling): Specify type.
1663         [ISO99 || ISO11] (signgam): Do not allow.
1664         [non-C99-based standards] (copysignf): Do not allow.
1665         [non-C99-based standards] (exp2f): Likewise.
1666         [non-C99-based standards] (log2f): Likewise.
1667         [non-C99-based standards] (modff): Allow.
1668         [non-C99-based standards] (erff): Do not allow.
1669         [non-C99-based standards] (erfcf): Likewise.
1670         [non-C99-based standards] (gammaf): Likewise.
1671         [non-C99-based standards] (hypotf): Likewise.
1672         [non-C99-based standards] (j0f): Likewise.
1673         [non-C99-based standards] (j1f): Likewise.
1674         [non-C99-based standards] (jnf): Likewise.
1675         [non-C99-based standards] (lgammaf): Likewise.
1676         [non-C99-based standards] (tgammaf): Likewise.
1677         [non-C99-based standards] (y0f): Likewise.
1678         [non-C99-based standards] (y1f): Likewise.
1679         [non-C99-based standards] (ynf): Likewise.
1680         [non-C99-based standards] (isnanf): Likewise.
1681         [non-C99-based standards] (acoshf): Likewise.
1682         [non-C99-based standards] (asinhf): Likewise.
1683         [non-C99-based standards] (atanhf): Likewise.
1684         [non-C99-based standards] (cbrtf): Likewise.
1685         [non-C99-based standards] (expm1f): Likewise.
1686         [non-C99-based standards] (ilogbf): Likewise.
1687         [non-C99-based standards] (log1pf): Likewise.
1688         [non-C99-based standards] (logbf): Likewise.
1689         [non-C99-based standards] (nextafterf): Likewise.
1690         [non-C99-based standards] (remainderf): Likewise.
1691         [non-C99-based standards] (rintf): Likewise.
1692         [non-C99-based standards] (scalbf): Likewise.
1693         [non-C99-based standards] (copysignl): Likewise.
1694         [non-C99-based standards] (exp2l): Likewise.
1695         [non-C99-based standards] (log2l): Likewise.
1696         [non-C99-based standards] (modfl): Allow.
1697         [non-C99-based standards] (erfl): Do not allow.
1698         [non-C99-based standards] (erfcl): Likewise.
1699         [non-C99-based standards] (gammal): Likewise.
1700         [non-C99-based standards] (hypotl): Likewise.
1701         [non-C99-based standards] (j0l): Likewise.
1702         [non-C99-based standards] (j1l): Likewise.
1703         [non-C99-based standards] (jnl): Likewise.
1704         [non-C99-based standards] (lgammal): Likewise.
1705         [non-C99-based standards] (tgammal): Likewise.
1706         [non-C99-based standards] (y0l): Likewise.
1707         [non-C99-based standards] (y1l): Likewise.
1708         [non-C99-based standards] (ynl): Likewise.
1709         [non-C99-based standards] (isnanl): Likewise.
1710         [non-C99-based standards] (acoshl): Likewise.
1711         [non-C99-based standards] (asinhl): Likewise.
1712         [non-C99-based standards] (atanhl): Likewise.
1713         [non-C99-based standards] (cbrtl): Likewise.
1714         [non-C99-based standards] (expm1l): Likewise.
1715         [non-C99-based standards] (ilogbl): Likewise.
1716         [non-C99-based standards] (log1pl): Likewise.
1717         [non-C99-based standards] (logbl): Likewise.
1718         [non-C99-based standards] (nextafterl): Likewise.
1719         [non-C99-based standards] (remainderl): Likewise.
1720         [non-C99-based standards] (rintl): Likewise.
1721         [non-C99-based standards] (scalbl): Likewise.
1722         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1723         [non-C99-based standards] (FP_*): Do not allow.
1724         [C99-based standards] (FP_*): Change to
1725         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1726         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1727         allow.
1728         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
1729         (SIG_ERR): Likewise.
1730         [X/Open-based standards] (SIG_HOLD): Likewise.
1731         (SIG_IGN): Likewise.
1732         (SIGABRT): Use macro-int-constant.  Specify type.  Require
1733         positive value.
1734         (SIGFPE): Likewise.
1735         (SIGILL): Likewise.
1736         (SIGINT): Likewise.
1737         (SIGSEGV): Likewise.
1738         (SIGTER): Likewise.
1739         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
1740         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
1741         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
1742         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
1743         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
1744         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
1745         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
1746         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
1747         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
1748         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
1749         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
1750         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
1751         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
1752         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
1753         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
1754         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
1755         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
1756         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
1757         [X/Open-based standards] (SIGTRAP): Likewise.
1758         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
1759         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
1760         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
1761         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
1762         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1763         allow.
1764
1765 2012-05-08  Ian Wienand  <ianw@vmware.com>
1766
1767         [BZ #14080]
1768         * time/tzset.c (__tzset_parse_tz): Update default rules for
1769         daylight time changes in the Energy Policy Act of 2005.
1770
1771 2012-05-09  Andreas Jaeger  <aj@suse.de>
1772
1773         [BZ #13983]
1774         * elf/ldconfig.c (parse_conf): Change string to make clear that
1775         ldconfig only issued a warning if ld.so.conf does not exist.
1776
1777 2012-05-08  David S. Miller  <davem@davemloft.net>
1778
1779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
1780         movxtod instead of popping the value on the stack.
1781
1782         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1783
1784 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
1785
1786         * config.h.in: Add HAVE_ARM_PCS_VFP.
1787
1788 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
1789
1790         [BZ #13979]
1791         * include/features.h: Warn if user requests __FORTIFY_SOURCE
1792         checking but the checks are disabled for any reason.
1793
1794 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1795
1796         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
1797         and ELF64_R_TYPE with ELFW(R_TYPE).
1798
1799 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
1800
1801         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
1802         (ulimit): Likewise.
1803
1804         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
1805         (settimeofday): Likewise.
1806
1807 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
1808
1809         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
1810         a struct th_u2 inside the union, and move tu_block/tu_code into
1811         a new th_u3 union of tu_block/tu_code inside of that.  Move
1812         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
1813         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
1814         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
1815         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
1816         (th_stuff): Change to th_u1.tu_stuff.
1817         (th_data): Define.
1818         (th_msg): Change to th_u1.th_u2.tu_data.
1819
1820 2012-05-07  David S. Miller  <davem@davemloft.net>
1821
1822         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1823
1824         [BZ #14074]
1825         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
1826         (SETUP_PIC_REG): Use it.
1827         (SETUP_PIC_REG_LEAF): Use it.
1828
1829 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
1830
1831         [BZ #13885]
1832         [BZ #13923]
1833         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1834         USE_AS_EXPM1L.
1835         (EXPL_FINITE): Likewise.
1836         (FLDLOG): Likewise.
1837         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1838         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1839         e_expl.S.
1840         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1841         USE_AS_EXPM1L.
1842         (EXPL_FINITE): Likewise.
1843         (FLDLOG): Likewise.
1844         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1845         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1846         e_expl.S.
1847         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
1848         test of -max_value argument for long double.
1849         * sysdeps/i386/fpu/libm-test-ulps: Update.
1850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1851
1852 2012-05-06  David S. Miller  <davem@davemloft.net>
1853
1854         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
1855         quad soft-float symbols whose references which are compiler
1856         generated.
1857         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
1858
1859 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
1860
1861         [BZ #13884]
1862         [BZ #13914]
1863         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1864         USE_AS_EXP10L.
1865         (EXPL_FINITE): Likewise.
1866         (FLDLOG): Likewise.
1867         (c0): Likewise.
1868         (c1): Likewise.
1869         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1870         Adjust comments for base varying.
1871         (__expl_finite): Change alias to EXPL_FINITE.
1872         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
1873         e_expl.S.
1874         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
1875         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1876         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1877         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
1878         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1879         USE_AS_EXP10L.
1880         (EXPL_FINITE): Likewise.
1881         (FLDLOG): Likewise.
1882         (c0): Likewise.
1883         (c1): Likewise.
1884         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1885         Adjust comments for base varying.
1886         (__expl_finite): Change alias to EXPL_FINITE.
1887         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
1888         tests for bugs.
1889         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1890
1891         [BZ #14064]
1892         * math/libm-test.inc (check_float_internal): Correct ulp
1893         calculation for subnormal expected results.
1894
1895 2012-05-06  Andreas Jaeger  <aj@suse.de>
1896
1897         * Makeconfig (+math-flags): New, set to -frounding-math.
1898         (+cflags): Add +math-flags so that all of glibc gets compiled with
1899         it.
1900
1901         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
1902
1903 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
1904
1905         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
1906         Disable one test.
1907
1908         [BZ #13787]
1909         [BZ #13922]
1910         [BZ #14036]
1911         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
1912         (__ieee754_expl): Allow for and saturate large arguments.
1913         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
1914         (u_threshold): Likewise.
1915         (__exp): Call __ieee754_exp before checking for overflow and
1916         underflow.
1917         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
1918         (u_threshold): Likewise.
1919         (__expf): Call __ieee754_expf before checking for overflow and
1920         underflow.
1921         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
1922         (u_threshold): Likewise.
1923         (__expl): Call __ieee754_expl before checking for overflow and
1924         underflow.
1925         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
1926         (__ieee754_expl): Allow for and saturate large arguments.
1927         * math/libm-test.inc (exp_test): Add another test.  Do not allow
1928         missing overflow exception on overflow.
1929         (expm1_test): Do not allow missing overflow exception on overflow.
1930
1931         * sysdeps/i386/fpu/e_expl.c: Move to ...
1932         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
1933         rather than using inline asm.
1934         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
1935         * sysdeps/x86_64/fpu/e_expl.S: Copy from
1936         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
1937
1938         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
1939         (nice): Likewise.
1940         (poll): Likewise.
1941         (signal): Likewise.
1942         (time): Likewise.
1943         (times): Likewise.
1944
1945 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1946
1947         * sysdeps/unix/syscalls.list (adjtime): Add entry from
1948         sysdeps/unix/common/syscalls.list.
1949         (fchmod): Likewise.
1950         (fchown): Likewise.
1951         (ftruncate): Likewise.
1952         (getrusage): Likewise.
1953         (gettimeofday): Likewise.
1954         (setpgid): Likewise.
1955         (setregid): Likewise.
1956         (setreuid): Likewise.
1957         (sigaction): Likewise.
1958         (truncate): Likewise.
1959         (vhangup): Likewise.
1960         * sysdeps/unix/common/syscalls.list: Remove file.
1961         * sysdeps/unix/bsd/Implies: Don't include unix/common.
1962         * sysdeps/unix/sysv/linux/Implies: Likewise.
1963
1964 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1965
1966         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
1967         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
1968         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
1969         Moved to ...
1970         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
1971         Here.
1972         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
1973         to ...
1974         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
1975         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
1976         to ...
1977         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
1978         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
1979         to ...
1980         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
1981         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
1982         to ...
1983         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
1984         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
1985         to ...
1986         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
1987         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
1988         to ...
1989         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
1990         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
1991         to ...
1992         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
1993         Here.
1994         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
1995         to ...
1996         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
1997         Here.
1998         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
1999         to ...
2000         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
2001         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
2002         Moved to ...
2003         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
2004         Here.
2005         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
2006         to ...
2007         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
2008
2009 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2010
2011         * sysdeps/unix/common/bits/dirent.h: Remove file.
2012         * sysdeps/unix/common/bits/fcntl.h: Likewise.
2013
2014         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
2015         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
2016         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
2017         * sysdeps/unix/bsd/isatty.c: Likewise.
2018         * sysdeps/unix/bsd/tcdrain.c: Likewise.
2019         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
2020         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
2021
2022 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2023
2024         [BZ #13563]
2025         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
2026         long double comparison inaccuracies.
2027         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
2028         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2029
2030 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
2031
2032         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
2033         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
2034
2035 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2036
2037         [BZ #14049]
2038         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
2039         nonzero digits before rounding a hex value.
2040         * stdlib/tst-strtod.c (tests): Add another test.
2041
2042 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2043
2044         * sysdeps/s390/fpu/libm-test-ulps: Update.
2045
2046 2012-05-03  Andreas Jaeger  <aj@suse.de>
2047
2048         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
2049         does not get optimized out.
2050         (malloc_opt_barrier): New.
2051
2052 2012-05-03  Andreas Jaeger  <aj@suse.de>
2053             Roland McGrath  <roland@hack.frob.com>
2054
2055         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
2056         intermediate file deletion.
2057         (generated): Add .symlist files.
2058
2059 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
2060
2061         [BZ #13775]
2062         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
2063         Redirect under this condition.
2064         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2065         [__USE_GNU] (__dprintf_chk): Not under this condition.
2066         [__USE_GNU] (__vdprintf_chk): Likewise.
2067         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
2068         under this condition.
2069         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2070         [__USE_XOPEN2K8] (dprintf): Define under this condition.
2071         [__USE_XOPEN2K8] (vdprintf): Likewise.
2072         [__USE_GNU] (__dprintf_chk): Not under this condition.
2073         [__USE_GNU] (__vdprintf_chk): Likewise.
2074         [__USE_GNU] (dprintf): Likewise.
2075         [__USE_GNU] (vdprintf): Likewise.
2076
2077 2012-05-03  Roland McGrath  <roland@hack.frob.com>
2078
2079         * elf/Makefile (common-generated): Set this instead of generated for
2080         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
2081         $(all-built-dso)-derived lists.
2082
2083 2012-05-03  Andreas Jaeger  <aj@suse.de>
2084
2085         * sysdeps/i386/fpu/libm-test-ulps: Update.
2086
2087         * FAQ: Removed.
2088         * FAQ.in: Likewise.
2089         * scripts/gen-FAQ.pl: Likewise.
2090         * manual/install.texi (Installation): Point to online location of
2091         FAQ.
2092         * Makefile (files-for-dist): Remove FAQ.
2093         (FAQ): Remove.
2094
2095 2012-05-02  Allan McRae  <allan@archlinux.org>
2096
2097         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
2098         (LDFLAGS-reldepmod5.so): Likewise.
2099         (LDFLAGS-reldep6mod1.so): Likewise.
2100         (LDFLAGS-reldep6mod4.so): Likewise.
2101         (LDFLAGS-reldep8mod3.so): Likewise.
2102         (LDFLAGS-unload4mod1.so): Likewise.
2103         (LDFLAGS-unload4mod2.so): Likewise.
2104         (LDFLAGS-tst-initorder): Likewise.
2105         (LDFLAGS-tst-initordera2.so): Likewise.
2106         (LDFLAGS-tst-initordera3.so): Likewise.
2107         (LDFLAGS-tst-initordera4.so): Likewise.
2108         (LDFLAGS-tst-initorderb2.so): Likewise.
2109         (LDFLAGS-noload): Likewise.
2110         (LDFLAGS-next): Likewise.
2111         (LDFLAGS-order2mod1.so): Likewise.
2112         (LDFLAGS-order2mod2.so): Likewise.
2113         (LDFLAGS-tst-initorder2): Likewise.
2114         (LDFLAGS-tst-initorder2a.so): Likewise.
2115         (LDFLAGS-tst-initorder2b.so): Likewise.
2116         (LDFLAGS-tst-initorder2c.so): Likewise.
2117         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
2118
2119 2012-05-02  David S. Miller  <davem@davemloft.net>
2120
2121         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2122
2123 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
2124
2125         [BZ #14055]
2126         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
2127
2128 2012-05-02  Andreas Jaeger  <aj@suse.de>
2129
2130         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
2131         since we manipulate rounding mode.
2132         (CPPFLAGS-test-idouble.c): Likewise.
2133         (CPPFLAGS-test-ifloat.c): Likewise.
2134         (CFLAGS-test-ldouble.c): Likewise.
2135         (CFLAGS-test-double.c): Likewise.
2136         (CFLAGS-test-float.c): Likewise.
2137         (CFLAGS-test-misc.c): Likewise.
2138         (CFLAGS-test-test-fenv.c): Likewise.
2139
2140 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2141
2142         [BZ #2550]
2143         [BZ #2570]
2144         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
2145         comparisons to determine direction to adjust input.
2146
2147 2012-05-01  Roland McGrath  <roland@hack.frob.com>
2148
2149         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
2150         output to the target.
2151
2152         * scripts/localplt.awk: New file.
2153         * elf/Makefile ($(objpfx)check-localplt): Target removed.
2154         (check-localplt-CFLAGS): Variable removed.
2155         ($(all-built-dso:=.jmprel)): New static pattern rule.
2156         (generated): Add those targets.
2157         (localplt-built-dso): New variable.
2158         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
2159
2160         * elf/check-localplt.c: File removed.
2161
2162         * scripts/check-execstack.awk: New file.
2163         * elf/Makefile ($(objpfx)check-execstack): Target removed.
2164         (check-execstack-CFLAGS): Variable removed.
2165         ($(objpfx)check-execstack.h): Target removed.
2166         ($(objpfx)execstack-default): New target.
2167         (generated): Add that instead of check-execstack.h.
2168         ($(all-built-dso:=.phdr)): New static pattern rule.
2169         (generated): Add those targets.
2170         * elf/check-execstack.c: File removed.
2171
2172         * scripts/check-textrel.awk: New file.
2173         * elf/Makefile ($(objpfx)check-textrel): Target removed.
2174         (check-textrel-CFLAGS): Variable removed.
2175         (all-built-dso): Use := to define.o
2176         ($(all-built-dso:=.dyn)): New static pattern rule.
2177         (generated): Add those targets.
2178         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
2179         * config.make.in (READELF): New substituted variable.
2180         * elf/check-textrel.c: File removed.
2181
2182 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2183
2184         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2185         allow.
2186         * conform/data/ctype.h-data [C99-based standards] (isblank):
2187         Expect function.
2188         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
2189         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
2190         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2191         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
2192         Specify type.  Require positive value.
2193         (EILSEQ): Likewise.
2194         (ERANGE): Likewise.
2195         [ISO || POSIX] (EILSEQ): Do not expect.
2196         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
2197         Specify type.  Require positive value.
2198         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
2199         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
2200         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
2201         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
2202         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
2203         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
2204         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
2205         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
2206         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
2207         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
2208         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
2209         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
2210         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
2211         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
2212         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
2213         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
2214         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
2215         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
2216         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
2217         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
2218         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
2219         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
2220         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
2221         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
2222         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
2223         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
2224         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
2225         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
2226         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
2227         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
2228         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
2229         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
2230         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
2231         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
2232         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
2233         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
2234         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
2235         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
2236         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
2237         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
2238         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
2239         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
2240         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
2241         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
2242         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
2243         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
2244         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
2245         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
2246         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
2247         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
2248         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
2249         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
2250         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
2251         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
2252         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
2253         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
2254         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
2255         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
2256         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
2257         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
2258         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
2259         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
2260         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
2261         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
2262         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
2263         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
2264         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
2265         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
2266         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
2267         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
2268         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
2269         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
2270         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
2271         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
2272         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
2273         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
2274         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
2275         Require >= 2.
2276         (FLT_ROUNDS): Expect as macro, not constant.
2277         (FLT_MANT_DIG): Use macro-int-constant.
2278         (DBL_MANT_DIG): Likewise.
2279         (LDBL_MANT_DIG): Likewise.
2280         (FLT_DIG): Likewise.
2281         (DBL_DIG): Likewise.
2282         (LDBL_DIG): Likewise.
2283         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
2284         (DBL_MIN_EXP): Likewise.
2285         (LDBL_MIN_EXP): Likewise.
2286         (FLT_MAX_EXP): Use macro-int-constant.
2287         (DBL_MAX_EXP): Likewise.
2288         (LDBL_MAX_EXP): Likewise.
2289         (FLT_MAX_10_EXP): Likewise.
2290         (DBL_MAX_10_EXP): Likewise.
2291         (LDBL_MAX_10_EXP): Likewise.
2292         (FLT_MAX): Use macro-constant.
2293         (DBL_MAX): Likewise.
2294         (LDBL_MAX): Likewise.
2295         (FLT_EPSILON): Use macro-constant.  Give upper bound.
2296         (DBL_EPSILON): Likewise.
2297         (LDBL_EPSILON): Likewise.
2298         (FLT_MIN): Likewise.
2299         (DBL_MIN): Likewise.
2300         (LDBL_MIN): Likewise.
2301         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
2302         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
2303         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
2304         [ISO11] (FLT_HAS_SUBNORM): Likewise.
2305         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
2306         [ISO11] (DBL_DECIMAL_DIG): Likewise.
2307         [ISO11] (FLT_DECIMAL_DIG): Likewise.
2308         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
2309         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
2310         [ISO11] (FLT_TRUE_MIN): Likewise.
2311         [ISO11] (LDBL_TRUE_MIN): Likewise.
2312         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2313         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
2314         (SCHAR_MIN): Use macro-int-constant.  Specify type.
2315         (SCHAR_MAX): Likewise.
2316         (UCHAR_MAX): Likewise.
2317         (CHAR_MIN): Likewise.
2318         (CHAR_MAX): Likewise.
2319         (MB_LEN_MAX): Use macro-int-constant.
2320         (SHRT_MIN): Use macro-int-constant.  Specify type.
2321         (SHRT_MAX): Likewise.
2322         (USHRT_MAX): Likewise.
2323         (INT_MAX): Likewise.
2324         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
2325         bound negative.
2326         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2327         bound with "U".
2328         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2329         bound with "L".
2330         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
2331         bound negative.  Suffix upper bound with "L".
2332         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2333         bound with "UL".
2334         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
2335         Specify type.
2336         [C99-based standards] (LLONG_MAX): Likewise.
2337         [C99-based standards] (ULLONG_MAX): Likewise.
2338         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
2339         == 0.
2340         [ISO11] (max_align_t): Require type.
2341         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2342
2343         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
2344         from $CFLAGS, without defining away __attribute__ calls.
2345         (checknamespace): Use $CFLAGS_namespace.
2346
2347         * conform/conformtest.pl (@keywords): Only include C99 keywords
2348         for standards based on C99 or C11.
2349
2350         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
2351         Disable tests.
2352         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
2353         UNIX98]: Likewise.
2354
2355         * conform/conformtest.pl: Handle "macro-int-constant" and test for
2356         usability of symbols in #if.
2357
2358         * conform/conformtest.pl: If macro or constant types start
2359         "promoted:", expect the symbol to be of the following type
2360         promoted by the integer promotions.
2361
2362         * conform/conformtest.pl: Parse all "constant" and "macro" lines
2363         in one place.  Also handle "macro-constant".
2364
2365         * conform/conformtest.pl: Only accept expected macro values with
2366         "==".  Parse all "macro" lines in one place.
2367         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
2368
2369         * conform/conformtest.pl: Handle braced types on "constant" lines
2370         instead of handling "typed-constant".
2371         * conform/data/signal.h-data: Use "constant" instead of
2372         "typed-constant".
2373
2374         * conform/conformtest.pl: Handle "optional-" at start of lines in
2375         one place rather than duplicating several cases.  Handle each
2376         format of "macro" line with initial "optional-".
2377
2378         * conform/conformtest.pl: Only accept expected constant or
2379         optional-constant values with "==".  Parse all "constant" lines in
2380         one place.  Parse all "optional-constant" lines in one place.
2381         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
2382         * conform/data/fmtmsg.h-data: Likewise.
2383         * conform/data/netinet/in.h-data: Likewise.
2384         * conform/data/tar.h-data: Likewise.
2385         * conform/data/limits.h-data: Use "==" form on "constant" and
2386         "optional-constant" lines.
2387
2388         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
2389         Use -std=c99 for XOPEN2K.
2390         (@knownproblems): Remove.
2391         (newtoken): Don't check %isknown.
2392
2393         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
2394         Do not expect macro.
2395         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
2396         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
2397         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
2398         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
2399         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
2400         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
2401         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
2402         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
2403         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
2404         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
2405         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
2406         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
2407         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
2408         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
2409         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
2410         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
2411         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
2412         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
2413         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
2414         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
2415         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
2416         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
2417         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
2418         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
2419         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
2420         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
2421         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
2422         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
2423         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
2424         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
2425         [XPG3] (acosh): Likewise.
2426         [XPG3] (asinh): Likewise.
2427         [XPG3] (atanh): Likewise.
2428         [XPG3] (cbrt): Likewise.
2429         [XPG3] (expm1): Likewise.
2430         [XPG3] (ilogb): Likewise.
2431         [XPG3] (log1p): Likewise.
2432         [XPG3] (logb): Likewise.
2433         [XPG3] (nextafter): Likewise.
2434         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
2435         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
2436         [XPG3] (remainder): Likewise.
2437         [XPG3] (rint): Likewise.
2438         [XPG3 || XPG4 || UNIX98] (round): Likewise.
2439         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
2440         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
2441         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
2442         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
2443         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
2444         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
2445         [UNIX98 || XOPEN2K] (scalb): Expect.
2446         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
2447         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
2448         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
2449         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
2450         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
2451         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
2452         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
2453         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
2454         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
2455         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
2456         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
2457         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
2458         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
2459         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
2460         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
2461         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
2462         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
2463         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
2464         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
2465         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
2466         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
2467         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
2468         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
2469         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
2470         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
2471         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
2472         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
2473         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
2474         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
2475         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
2476         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
2477         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
2478         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
2479         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
2480         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
2481         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
2482         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
2483         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
2484         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
2485         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
2486         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
2487         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
2488         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
2489         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
2490         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
2491         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
2492         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
2493         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
2494         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
2495         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
2496         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
2497         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
2498         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
2499         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
2500         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
2501         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
2502         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
2503         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
2504         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
2505         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
2506         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
2507         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
2508         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
2509         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
2510         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
2511         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
2512         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
2513         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
2514         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
2515         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
2516         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
2517         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
2518         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
2519         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
2520         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
2521         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
2522         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
2523         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
2524         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
2525         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
2526         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
2527         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
2528         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
2529         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
2530         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
2531         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
2532         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
2533         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
2534         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
2535         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
2536         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
2537         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
2538         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
2539         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
2540         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
2541         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
2542         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
2543         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
2544         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
2545         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
2546         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
2547         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
2548         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
2549         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
2550         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
2551         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
2552         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
2553         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
2554         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
2555         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
2556         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
2557         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
2558         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
2559         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
2560         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
2561         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
2562         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
2563         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
2564         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
2565         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
2566         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
2567         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
2568         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
2569         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
2570         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
2571         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
2572         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
2573         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
2574         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
2575         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
2576         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
2577         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
2578         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
2579         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
2580         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
2581         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
2582         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
2583
2584         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
2585         _XOPEN_SOURCE_EXTENDED for XPG4.
2586
2587         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
2588
2589         * Makeconfig (localtime): Remove variable.
2590         (inst_localtime-file): Likewise.
2591
2592 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2593
2594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
2595         Update.
2596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2597         Update.
2598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
2599         Update.
2600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2601         Update.
2602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
2603         Update.
2604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
2605         Update.
2606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2607         Update.
2608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
2609         Update.
2610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2611         Update.
2612
2613 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2614
2615         [BZ #2550]
2616         [BZ #2570]
2617         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
2618         comparisons to determine direction to adjust input.
2619         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2620         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
2621         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
2622         Likewise.
2623         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
2624         Likewise.
2625         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2626         Likewise.
2627         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2628         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
2629         Likewise.
2630         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
2631         Likewise.
2632         * math/libm-test.inc (nexttoward_test): Add more tests.
2633
2634 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2635
2636         [BZ #14040]
2637         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
2638         in version GLIBC_2.1, not GLIBC_2.0.
2639         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
2640         Likewise.
2641
2642 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
2643
2644         [BZ #13942]
2645         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
2646         (1 - x) * (1 + x).
2647         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2648         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
2649         * math/libm-test.inc (acos_test): Add more tests.
2650         (asin_test): Likewise.
2651         * sysdeps/i386/fpu/libm-test-ulps: Update.
2652         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2653
2654         [BZ #14034]
2655         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
2656         of square root.
2657         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
2658         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2659         * math/libm-test.inc (acos_test_tonearest): New function.
2660         (acos_test_towardzero): Likewise.
2661         (acos_test_downward): Likewise.
2662         (acos_test_upward): Likewise.
2663         (asin_test_tonearest): Likewise.
2664         (asin_test_towardzero): Likewise.
2665         (asin_test_downward): Likewise.
2666         (asin_test_upward): Likewise.
2667         (main): Call the new functions.
2668         * sysdeps/i386/fpu/libm-test-ulps: Update.
2669         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2670
2671         [BZ #13884]
2672         [BZ #13924]
2673         * math/e_exp10.c: Include <float.h>.
2674         (__ieee754_exp10): Handle underflow here rather than multiplying
2675         large negative argument by M_LN10.
2676         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
2677         of __ieee754_expf.
2678         * math/e_exp10l.c: Include <float.h>.
2679         (__ieee754_exp10l): Handle underflow here rather than multiplying
2680         large negative argument by M_LN10l.
2681         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
2682         spurious overflow exception on underflow.
2683
2684 2012-04-29  Marek Polacek  <polacek@redhat.com>
2685
2686         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
2687         (__fortify_function): New macro.
2688         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
2689         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
2690         __extern_always_inline.
2691         * libio/bits/stdio2.h: Likewise.
2692         * libio/bits/stdio.h: Likewise.
2693         * string/string.h: Likewise.
2694         * string/bits/string3.h: Likewise.
2695         * include/stdio.h: Likewise.
2696         * stdlib/bits/stdlib.h: Likewise.
2697         * stdlib/stdlib.h: Likewise.
2698         * rt/bits/mqueue2.h: Likewise.
2699         * rt/mqueue.h: Likewise.
2700         * posix/bits/unistd.h: Likewise.
2701         * posix/unistd.h: Likewise.
2702         * io/bits/poll2.h: Likewise.
2703         * io/bits/fcntl2.h: Likewise.
2704         * io/fcntl.h: Likewise.
2705         * io/sys/poll.h: Likewise.
2706         * misc/bits/syslog.h: Likewise.
2707         * misc/bits/syslog-ldbl.h: Likewise.
2708         * misc/sys/syslog.h: Likewise.
2709         * socket/bits/socket2.h: Likewise.
2710         * socket/sys/socket.h: Likewise.
2711         * debug/tst-chk1.c: Likewise.
2712         * wcsmbs/bits/wchar2.h: Likewise.
2713         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2714         * wcsmbs/wchar.h: Likewise.
2715
2716 2012-04-29  Andreas Jaeger  <aj@suse.de>
2717
2718         * Makerules (tests): Remove enable-check-abi protection.
2719         (check-abi-warn): Remove.
2720         (check-abi-%): Remove check-abi-warn usage.
2721
2722         * configure.in: Remove check-abi configure option.
2723         * configure: Regenerated.
2724         * config.make.in (enable-check-abi): Remove.
2725
2726 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2727
2728         [BZ #14033]
2729         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
2730         double functions to double *_finite functions.
2731
2732         [BZ #13941]
2733         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
2734         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
2735         LDBL_MIN_EXP.
2736         * stdio-common/Makefile (tests): Add tst-sprintf3.
2737         * stdio-common/tst-sprintf3.c: New file.
2738
2739         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
2740         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
2741
2742 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2743
2744         * conform/conformtest.pl: Remove duplicate typed-constant
2745         handling.
2746
2747 2012-04-28  David S. Miller  <davem@davemloft.net>
2748
2749         * Makerules (%.abilist): Add vpath on sysdep_dirs.
2750         (check-abi-%): Remove AWK script prerequisite and explicit
2751         abilist directory.
2752         (check-abi): Rewrite to just diff the symlist with the abilist.
2753         (config-tls, config-abi-config): Delete, no longer used.
2754         (update-abi-%): Remove AWK script and explicit abilist directory.
2755         (update-abi): Rewrite to simply compare and conditionally copy the
2756         symlist and the sysdep abilist file.  Remove update-abi-config
2757         checks.
2758         * abilist/ld.abilist: Remove.
2759         * abilist/libBrokenLocale.abilist: Remove.
2760         * abilist/libanl.abilist: Remove.
2761         * abilist/libcrypt.abilist: Remove.
2762         * abilist/libdl.abilist: Remove.
2763         * abilist/librt.abilist: Remove.
2764         * abilist/libthread_db.abilist: Remove.
2765         * abilist/libutil.abilist: Remove.
2766         * scripts/extract-abilist.awk: Remove.
2767         * scripts/merge-abilist.awk: Remove.
2768         * sysdeps/generic/libcidn.abilist: New file.
2769         * sysdeps/generic/libnss_compat.abilist: New file.
2770         * sysdeps/generic/libnss_db.abilist: New file.
2771         * sysdeps/generic/libnss_dns.abilist: New file.
2772         * sysdeps/generic/libnss_files.abilist: New file.
2773         * sysdeps/generic/libnss_hesiod.abilist: New file.
2774         * sysdeps/generic/libnss_nis.abilist: New file.
2775         * sysdeps/generic/libnss_nisplus.abilist: New file.
2776         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
2777         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
2778         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
2779         file.
2780         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
2781         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
2782         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
2783         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
2784         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
2785         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
2786         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
2787         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
2788         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
2789         file.
2790         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
2791         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
2792         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
2793         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
2794         file.
2795         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
2796         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
2797         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
2798         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
2799         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
2800         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
2801         file.
2802         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
2803         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
2804         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
2805         file.
2806         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
2807         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
2808         New file.
2809         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
2810         New file.
2811         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
2812         New file.
2813         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
2814         New file.
2815         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
2816         New file.
2817         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
2818         New file.
2819         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
2820         New file.
2821         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
2822         New file.
2823         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
2824         New file.
2825         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
2826         New file.
2827         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
2828         New file.
2829         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
2830         New file.
2831         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
2832         New file.
2833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
2834         file.
2835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
2836         New file.
2837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
2838         New file.
2839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
2840         file.
2841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
2842         New file.
2843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
2844         New file.
2845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
2846         file.
2847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
2848         New file.
2849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2850         New file.
2851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
2852         New file.
2853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
2854         New file.
2855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
2856         New file.
2857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
2858         New file.
2859         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
2860         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
2861         file.
2862         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
2863         New file.
2864         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
2865         file.
2866         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
2867         file.
2868         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
2869         file.
2870         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
2871         file.
2872         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
2873         file.
2874         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2875         New file.
2876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
2877         file.
2878         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
2879         file.
2880         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
2881         New file.
2882         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
2883         file.
2884         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
2885         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
2886         file.
2887         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
2888         New file.
2889         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
2890         file.
2891         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
2892         file.
2893         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
2894         file.
2895         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
2896         file.
2897         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
2898         file.
2899         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2900         New file.
2901         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
2902         file.
2903         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
2904         file.
2905         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
2906         New file.
2907         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
2908         file.
2909         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2910         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
2911         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
2912         file.
2913         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
2914         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
2915         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
2916         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
2917         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
2918         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
2919         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
2920         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
2921         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
2922         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
2923         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
2924         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
2925         file.
2926         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
2927         New file.
2928         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
2929         file.
2930         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
2931         file.
2932         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
2933         file.
2934         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
2935         file.
2936         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
2937         file.
2938         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2939         New file.
2940         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
2941         New file.
2942         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
2943         file.
2944         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
2945         New file.
2946         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
2947         file.
2948         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
2949         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
2950         file.
2951         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
2952         New file.
2953         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
2954         file.
2955         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
2956         file.
2957         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
2958         file.
2959         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
2960         file.
2961         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
2962         file.
2963         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2964         New file.
2965         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
2966         New file.
2967         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
2968         file.
2969         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
2970         New file.
2971         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
2972         file.
2973
2974 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2975
2976         * conform/conformtest.pl: Fix typo in handling typed-constant from
2977         allow-header.
2978
2979 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
2980
2981         * README: Cut down references to pre-2.6 Linux kernels and
2982         Linuxthreads.  Update lists of configurations in libc and ports
2983         and sort alphabetically.  Say "or newer" with Linux kernel version
2984         requirements.
2985
2986         * config.h.in [IS_IN_build]: Allow compiling without optimization.
2987
2988 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2989
2990         [BZ #887]
2991         * math/libm-test.inc (logb_test_downward): New test to expose
2992         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
2993         rounding mode.
2994
2995 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
2996
2997         [BZ #14027]
2998         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
2999         to be done.
3000         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
3001         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
3002
3003 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
3004
3005         * sysdeps/unix/i386/brk.S: Remove file.
3006         * sysdeps/unix/i386/dl-brk.S: Likewise.
3007         * sysdeps/unix/i386/pipe.S: Likewise.
3008         * sysdeps/unix/i386/sigreturn.S: Likewise.
3009         * sysdeps/unix/i386/syscall.S: Likewise.
3010         * sysdeps/unix/i386/vfork.S: Likewise.
3011         * sysdeps/unix/i386/wait.S: Likewise.
3012
3013         * sysdeps/unix/common/tcsendbrk.c: Move to ...
3014         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
3015
3016         * configure.in (arm*-none*): Do not allow without
3017         --enable-hacker-mode.
3018         (netbsd*): Remove case setting base_os.
3019         (386bsd*): Likewise.
3020         (freebsd*): Likewise.
3021         (bsdi*): Likewise.
3022         (osf*): Likewise.
3023         (sunos*): Likewise.
3024         (ultrix*): Likewise.
3025         (newsos*): Likewise.
3026         (dynix*): Likewise.
3027         (*bsd*): Likewise.
3028         (sysv*): Likewise.
3029         (isc*): Likewise.
3030         (esix*): Likewise.
3031         (sco*): Likewise.
3032         (minix*): Likewise.
3033         (irix4*): Likewise.
3034         (irix6*): Likewise.
3035         (solaris[2-9]*): Likewise.
3036         (none): Likewise.
3037         * configure: Regenerated.
3038
3039 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3040
3041         [BZ #11521]
3042         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
3043         overflow or cancellation in calculating denominator.
3044         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
3045         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
3046         down expression to avoid unexpected rounding in newer GCCs.
3047         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
3048
3049 2012-04-26  David S. Miller  <davem@davemloft.net>
3050
3051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
3052         long-double compat symbols.
3053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
3057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
3059         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
3060         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
3061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
3062         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
3063         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
3064         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
3065         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3066
3067 2012-04-25  David S. Miller  <davem@davemloft.net>
3068
3069         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
3070         HWCAP_* values only after the memory barriers have been defined.
3071         (atomic_full_barrier): Define.
3072         (atomic_read_barrier): Define.
3073         (atomic_write_barrier): Define.
3074
3075 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3076
3077         * shlib-versions: Add libgcc_s version information.
3078         * sysdeps/generic/libgcc_s.h: Remove.
3079         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
3080         libgcc_s.h.
3081         * sysdeps/gnu/unwind-resume.c: Likewise.
3082         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
3083
3084 2012-04-25  David S. Miller  <davem@davemloft.net>
3085
3086         * sysdeps/unix/sparc/brk.S: Delete.
3087         * sysdeps/unix/sparc/dl-brk.S: Delete.
3088         * sysdeps/unix/sparc/pipe.S: Delete.
3089         * sysdeps/unix/sparc/sysdep.S: Delete.
3090         * sysdeps/unix/sparc/sysdep.h: Delete.
3091         * sysdeps/unix/sparc/vfork.S: Delete.
3092         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
3093         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
3094         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
3095         ret_ERRVAL, r0, r1, MOVE): Define.
3096         (JUMPTARGET): Remove.
3097         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
3098         sysdeps/unix/sparc/sysdep.h
3099         (ENTRY, END): Remove.
3100         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3101
3102 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
3103
3104         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
3105         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
3106         -DIS_IN_build.
3107
3108         * timezone/README: Update upstream location and email address for
3109         tzcode and tzdata.
3110         * timezone/zdump.c: Update from tzcode 2012b.
3111         * timezone/zic.c: Likewise.
3112
3113         * configure.in (libc_cv_as_needed): Remove test.
3114         * configure: Regenerated.
3115         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
3116         conditional definition.
3117         [$(have-as-needed) != yes] (no-as-needed): Likewise.
3118         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
3119         * config.make.in (have-as-needed): Remove variable.
3120
3121 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3122             Paul Pluzhnikov  <ppluzhnikov@google.com>
3123
3124         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
3125         strings correctly.
3126
3127 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3128
3129         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
3130         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
3131         * sysdeps/sh/strlen.S: Likewise.
3132
3133 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3134
3135         * sysdeps/unix/fork.S: Remove file.
3136         * sysdeps/unix/i386/fork.S: Likewise.
3137         * sysdeps/unix/sparc/fork.S: Likewise.
3138
3139         * sysdeps/unix/system.c: Remove file.
3140         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
3141
3142         * sysdeps/unix/getegid.S: Remove file.
3143         * sysdeps/unix/geteuid.S: Likewise.
3144
3145 2012-04-24  Roland McGrath  <roland@hack.frob.com>
3146
3147         * scripts/check-localplt.awk: New file.
3148         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
3149         of diff.
3150         * scripts/data/localplt-generic.data: Add a comment.
3151
3152         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
3153         NODE when __dir_mkfile failed.
3154         * sysdeps/mach/hurd/symlinkat.c: Likewise.
3155         Reported by Ludovic Courtès <ludo@gnu.org>.
3156
3157 2012-04-24  Andreas Jaeger  <aj@suse.de>
3158
3159         * Makerules (common-clean): Also remove gen-as-const-headers
3160         files.
3161
3162 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3163
3164         * Makerules (native-compile): Do not change working directory for
3165         build.  Use $(OUTPUT_OPTION) in command.
3166         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
3167
3168 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3169
3170         [BZ #13886]
3171         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
3172         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
3173         * math/libm-test.inc (floor_test): Add more tests.
3174         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
3175
3176 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3177
3178         * sysdeps/unix/getdents.c: Remove file.
3179         * sysdeps/unix/sysv/getdents.c: Likewise.
3180         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
3181
3182         * sysdeps/unix/syscalls.list (madvise): Add syscall from
3183         sysdeps/unix/mman/syscalls.list.
3184         (mmap): Likewise.
3185         (mprotect): Likewise.
3186         (msync): Likewise.
3187         (munmap): Likewise.
3188         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
3189         * sysdeps/unix/mman/syscalls.list: Remove.
3190         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
3191
3192         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
3193         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
3194         * configure: Regenerated.
3195         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
3196         $(libgcc_s_suffix).
3197         * config.make.in (libgcc_s_suffix): Remove variable.
3198
3199 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
3200
3201         * sysdeps/unix/sysv/gethostname.c: Move to ...
3202         * sysdeps/posix/gethostname.c: ... here.
3203
3204         * sysdeps/unix/execve.S: Remove file.
3205
3206         * sysdeps/unix/_exit.S: Remove file.
3207
3208 2012-04-23  Andreas Jaeger  <aj@suse.de>
3209
3210         [BZ #13739]
3211         * manual/Makefile: Remove make dist support, there's no
3212         need for a stand-alone documentation tar ball.
3213         (TEXI2DVI): Define always, it's not in Makeconfig.
3214         (dist): Removed.
3215         (tar-it): Removed.
3216         (edition): Removed.
3217         (glibc-doc-$(edition).tar): Removed
3218         (%.Z): Removed.
3219         (%.gz): Removed.
3220         (%.uu): Removed.
3221         (ETAGS): Remove, it's in Makeconfig.
3222         (move-if-change): Remove, it's in Makeconfig.
3223
3224 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3225
3226         [BZ #13970]
3227         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
3228         (strtod, strtof, strtold, strtol, strtoul, strtoq)
3229         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
3230         (strtod_l, strtof_l, strtold_l): Remove __wur.
3231         It is not necessarily an error to ignore strtol's return value.
3232         One can reliably look at the stored endptr to decide whether
3233         the number had valid syntax.
3234
3235 2012-04-21  Andreas Jaeger  <aj@suse.de>
3236
3237         [BZ #13739]
3238         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
3239
3240 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
3241
3242         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
3243         * sysdeps/unix/sysv/Versions: Remove file.
3244
3245 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
3246
3247         [BZ #13927]
3248         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3249
3250 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
3251
3252         [BZ #7064]
3253         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
3254         version from __vm86.
3255
3256 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
3257
3258         * sysdeps/unix/common/lxstat.c: Remove file.
3259         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
3260
3261         * sysdeps/unix/sysv/Makefile: Remove file.
3262
3263         * sysdeps/unix/sysv/direct.h: Remove file.
3264
3265         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
3266         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
3267         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
3268         * sysdeps/unix/sysv/bits/signum.h: Likewise.
3269         * sysdeps/unix/sysv/bits/stat.h: Likewise.
3270         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
3271         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
3272
3273         * sysdeps/unix/sysv/setrlimit.c: Remove file.
3274
3275         * sysdeps/unix/xmknod.c: Remove file.
3276         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
3277
3278         * sysdeps/unix/sysv/settimeofday.c: Remove file.
3279
3280         * sysdeps/unix/sysv/i386/time.S: Remove file.
3281
3282         * sysdeps/unix/fxstat.c: Remove file.
3283         * sysdeps/unix/xstat.c: Likewise.
3284         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
3285
3286         * sysdeps/unix/sysv/sigaction.c: Remove file.
3287
3288         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
3289         (sysdep_headers): Remove variable.
3290         [termio.h not in sysdep_headers] (generated): Likewise.
3291         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
3292         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
3293         * sysdeps/unix/sysv/tcdrain.c: Likewise.
3294         * sysdeps/unix/sysv/tcflow.c: Likewise.
3295         * sysdeps/unix/sysv/tcflush.c: Likewise.
3296         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
3297         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
3298         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
3299         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
3300         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
3301
3302         * sysdeps/unix/siglist.c: Remove file.
3303
3304         * sysdeps/unix/getppid.S: Remove file.
3305
3306         * sysdeps/unix/mkdir.c: Remove file.
3307         * sysdeps/unix/rmdir.c: Likewise.
3308
3309 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
3310
3311         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
3312         ERR_MAX value.
3313         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
3314         errlist-compat value.
3315
3316 2012-04-18  David S. Miller  <davem@davemloft.net>
3317
3318         * sysdeps/generic/memcopy.h (reg_char): Delete.
3319         * debug/strcat_chk.c: Use char, not reg_char.
3320         * debug/strcpy_chk.c: Likewise.
3321         * debug/strncat_chk.c: Likewise.
3322         * debug/strncpy_chk.c: Likewise.
3323         * string/memchr.c: Likewise.
3324         * string/memrchr.c: Likewise.
3325         * string/rawmemchr.c: Likewise.
3326         * string/strcat.c: Likewise.
3327         * string/strchr.c: Likewise.
3328         * string/strchrnul.c: Likewise.
3329         * string/strcmp.c: Likewise.
3330         * string/strcpy.c: Likewise.
3331         * string/strncat.c: Likewise.
3332         * string/strncmp.c: Likewise.
3333         * string/strncpy.c: Likewise.
3334
3335 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3336
3337         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
3338         __builtin_memcopy is called when src and dest ranges are known to not
3339         overlap.
3340
3341 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3342
3343         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
3344         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
3345         fwd_align_merge macro call.
3346         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
3347         bwd_align_merge macro call.
3348         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3349
3350 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3351
3352         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
3353         bwd_align_merge macros.
3354         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
3355         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
3356         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3357
3358 2012-04-18  David S. Miller  <davem@davemloft.net>
3359
3360         * sysdeps/sparc/sparc64/memcopy.h: Delete.
3361
3362 2012-04-18  Andreas Jaeger  <aj@suse.de>
3363
3364         [BZ# 6794]
3365         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
3366         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
3367         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3368
3369         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
3370         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
3371         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3372
3373         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
3374         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
3375         Adjust for changed ldbl-128 files.
3376
3377         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
3378         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
3379         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3380
3381 2012-04-17  David S. Miller  <davem@davemloft.net>
3382
3383         * sysdeps/sparc/sparc32/memcopy.h: Delete.
3384
3385 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
3386
3387         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
3388         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
3389         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
3390         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
3391         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3392         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
3393
3394 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3395
3396         [BZ #6794]
3397         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
3398         * math/libm-test.inc: Add ilogb errno and exception tests.
3399         * math/w_ilogb.c: New file: ilogb wrapper.
3400         * math/w_ilogbf.c: New file: ilogbf wrapper.
3401         * math/w_ilogbl.c: New file: ilogbl wrapper.
3402         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
3403         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
3404         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
3405         exception being thrown with 0.0 as argument.
3406         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
3407         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
3408         exception being thrown with 0.0 as argument.
3409         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
3410         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3411         exception being thrown with 0.0 as argument.
3412         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
3413         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3414         exception being thrown with 0.0 as argument.
3415         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
3416         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
3417         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
3418         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
3419         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
3420         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
3421         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
3422         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
3423         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
3424
3425 2012-04-17  Petr Baudis  <pasky@ucw.cz>
3426
3427         * include/sys/uio.h: Change __vector to __iovec to avoid clash
3428         with altivec.
3429
3430 2012-04-16  Marek Polacek  <polacek@redhat.com>
3431
3432         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
3433
3434 2012-04-16  Marek Polacek  <polacek@redhat.com>
3435
3436         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
3437         operands of fdivp instruction.
3438
3439 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3440
3441         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
3442         * elf/tst-auditmod3b.c: Likewise.
3443         * elf/tst-auditmod4b.c: Likewise.
3444         * elf/tst-auditmod5b.c: Likewise.
3445         * elf/tst-auditmod6b.c: Likewise.
3446         * elf/tst-auditmod6c.c: Likewise.
3447         * elf/tst-auditmod7b.c: Likewise.
3448         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
3449         * sysdeps/x86_64/preconfigure.in: Likewise.
3450         * sysdeps/x86_64/preconfigure: Regenerated.
3451
3452 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3453
3454         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
3455         __ILP32__.
3456
3457 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
3458
3459         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3460         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
3461
3462 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
3463
3464         [BZ #13973]
3465         * locale/iso-639.def: Fix gl language name. Spotted by
3466         Yaron Shahrabani.
3467
3468 2012-04-12  Roland McGrath  <roland@hack.frob.com>
3469
3470         [BZ #2074]
3471         * libio/libio.h (__io_write_fn): Update comment.
3472
3473 2012-04-12  Petr Baudis  <pasky@ucw.cz>
3474
3475         [BZ #2074]
3476         * stdio.texi (Hook Functions): The user provided writer function
3477         is not allowed to return -1.
3478
3479 2012-04-11  David S. Miller  <davem@davemloft.net>
3480
3481         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3482
3483 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
3484
3485         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
3486         Add a leading slash to rtkaio.
3487
3488 2012-04-11  Jim Meyering  <meyering@redhat.com>
3489
3490         [BZ #11959]
3491         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
3492         It is not necessarily an error to ignore fwrite's return
3493         value.  One can reliably use ferror to test for errors after
3494         the fact.
3495
3496 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3497
3498         * bits/types.h (__snseconds_t): New type.
3499         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
3500
3501         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
3502         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3503         (__SNSECONDS_T_TYPE): Likewise.
3504         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3505         (__SNSECONDS_T_TYPE): Likewise.
3506         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3507         (__SNSECONDS_T_TYPE): Likewise.
3508
3509 2012-04-10  Andreas Jaeger  <aj@suse.de>
3510
3511         [BZ #2636]
3512         * manual/time.texi (Processor Time): Return type of times is
3513         elapsed real time since an arbitrary point in the past.
3514         (CPU Time): Move CLK_TCK from here...
3515         (Processor Time): ...to here.  Correct description.
3516         * manual/conf.texi (Constants for Sysconf): Correct description of
3517         _SC_CLK_TCK.
3518
3519 2012-04-10  David S. Miller  <davem@davemloft.net>
3520
3521         [BZ #13967]
3522         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
3523         where the is a gap between DT_REL(A) and DT_JMPREL.
3524
3525 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3526
3527         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
3528         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3529         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3530
3531 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3532
3533         * elf/dl-support.c (_dl_inhibit_cache): New variable.
3534         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
3535         (dl_main): Handle --inhibit-cache.
3536         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
3537         _dl_inhibit_cache.
3538         * elf/dl-load.c (_dl_map_object): Use it.
3539         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
3540
3541 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3542
3543         [BZ #13872]
3544         * sysdeps/i386/fpu/e_powl.S (p78): New object.
3545         (__ieee754_powl): Saturate large exponents rather than testing for
3546         overflow of y*log2(x).
3547         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3548         * math/libm-test.inc (pow_test): Do not permit spurious overflow
3549         exceptions.
3550
3551         [BZ #11521]
3552         * math/s_ctan.c: Include <float.h>.
3553         (__ctan): Avoid internal overflow or cancellation in calculating
3554         denominator.
3555         * math/s_ctanf.c: Likewise.
3556         * math/s_ctanl.c: Likewise.
3557         * math/s_ctanh.c: Likewise.
3558         * math/s_ctanhf.c: Likewise.
3559         * math/s_ctanhl.c: Likewise.
3560         * math/libm-test.inc (ctan_test): Add more tests.
3561         (ctanh_test): Likewise.
3562         * sysdeps/i386/fpu/libm-test-ulps: Update.
3563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3564
3565 2012-04-09  Andreas Jaeger  <aj@suse.de>
3566
3567         [BZ #6894]
3568         * manual/filesys.texi (Directory Entries): Mention that d_namlen
3569         is an optional BSD extension.
3570
3571         [BZ #10254]
3572         * manual/stdio.texi (Opening Streams): Document additional fopen
3573         parameters.
3574
3575 2012-04-09  Roland McGrath  <roland@hack.frob.com>
3576
3577         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
3578         %eax without telling the compiler.
3579
3580 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
3581
3582         [BZ # 13963]
3583         * manual/install.texi: Use sourceware.org.
3584
3585 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3586
3587         [BZ #13873]
3588         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
3589         (__ieee754_pow): Generate overflow and underflow using huge*huge
3590         and tiny*tiny rather than just returning constant infinity or zero
3591         for large exponents.
3592         * math/libm-test.inc (pow_test): Require overflow exceptions for
3593         applicable cases of large exponents.
3594
3595         [BZ #706]
3596         * sysdeps/i386/fpu/e_pow.S (p10): New object.
3597         (__ieee754_pow): Use iterative multiplication algorithm only for
3598         integer exponents with absolute value below 1024.  Check for odd
3599         integer exponents when using algorithm for real exponents.
3600         * math/libm-test.inc (pow_test): Add more tests.
3601         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3602
3603 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
3604
3605         [BZ #13705]
3606         * math/libm-test.inc (exp_test): Do not allow overflow exception
3607         on underflow test.
3608
3609 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
3610
3611         [BZ #13705]
3612         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
3613         instead of __kernel_standard_f.
3614
3615 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
3616
3617         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
3618         * sysdeps/x86_64/memset_chk.S: Likewise.
3619
3620 2012-04-08  Andreas Jaeger  <aj@suse.de>
3621
3622         [BZ #10153]
3623         * manual/startup.texi (Environment Access): Describe return value
3624         for putenv and setenv.
3625
3626         [BZ #6895]
3627         * manual/filesys.texi (Directory Entries): Add description for
3628         DT_LNK.
3629
3630         [BZ #6890]
3631         * manual/filesys.texi (Directory Entries): Clarify that it's file
3632         system not operating system in the description of DT_UNKNOWN.
3633
3634         [BZ #6578]
3635         * manual/syslog.texi (closelog): Fix reference, it's openlog.
3636
3637 2012-04-08  Stephen Compall  <s11@member.fsf.org>
3638
3639         [BZ #6649]
3640         * manual/llio.texi (Opening and Closing Files): Add cross
3641         reference to explain mode argument.
3642
3643 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
3644
3645         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
3646         * sysdeps/x86_64/memset_chk.S: Likewise.
3647
3648 2012-04-07  David S. Miller  <davem@davemloft.net>
3649
3650         * elf/elf.h (R_SPARC_WDISP10): Define.
3651         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
3652         R_SPARC_SIZE32.
3653         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3654         R_SPARC_SIZE64 and R_SPARC_H34.
3655
3656 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
3657
3658         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
3659         conditions and remove no longer applicable assertion.
3660
3661 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3662
3663         * bits/byteswap.h: Include <features.h>.
3664         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3665         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3666
3667 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3668
3669         * bits/byteswap.h (__bswap_16): Removed.
3670         Include <bits/byteswap-16.h> to get __bswap_16.
3671         * sysdeps/i386/bits/byteswap.h: Likewise.
3672         * sysdeps/s390/bits/byteswap.h: Likewise.
3673         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3674         * bits/byteswap-16.h: New file.
3675         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3676         * sysdeps/s390/bits/byteswap-16.h: Likewise.
3677         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
3678         * string/Makefile (headers): Add bits/byteswap-16.h.
3679
3680 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3681
3682         [BZ #13895]
3683         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
3684         extra indirection.
3685         * nss/Makefile (tests-static, tests): Add tst-nss-static.
3686         * nss/tst-nss-static.c: New.
3687
3688 2012-04-06  Robert Millan  <rmh@gnu.org>
3689
3690         [BZ #6486]
3691         * manual/llio.texi (File Position Primitive): lseek
3692         refers to WHENCE when it really means OFFSET.
3693
3694 2012-04-06  Andreas Jaeger  <aj@suse.de>
3695
3696         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
3697         strncmp declarations.
3698
3699         * abilist/libc.abilist: Add __poll and __ppoll.
3700
3701 2012-04-05  David S. Miller  <davem@davemloft.net>
3702
3703         * scripts/check-local-headers.sh: Accept a host triplet in the
3704         path matched by the exclude regexp.
3705
3706         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
3707         definition.
3708         * sysdeps/powerpc/powerpc32/dl-machine.h
3709         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
3710         * sysdeps/s390/s390-32/dl-machine.h
3711         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3712         * sysdeps/sparc/sparc32/dl-machine.h
3713         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3714         * sysdeps/sparc/sparc64/dl-machine.h
3715         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3716
3717         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
3718         lazy binding.
3719         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
3720         undefined symbol errors.
3721
3722         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
3723         DT_NEEDED entries.
3724
3725 2012-04-05  Michael Matz  <matz@suse.de>
3726
3727         [BZ #13592]
3728         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
3729
3730 2012-04-05  Andreas Jaeger  <aj@suse.de>
3731
3732         [BZ #13908]
3733         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
3734         comment.
3735
3736 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3737
3738         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
3739         which ROUND is no valid rounding mode.
3740
3741 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3742
3743         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
3744         read again.
3745         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
3746
3747 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3748
3749         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
3750         an exception using FPU order intentionally.
3751
3752 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3753
3754         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
3755         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
3756         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
3757         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
3758
3759 2012-04-05  Simon Josefsson  <simon@josefsson.org>
3760
3761         [BZ #12340]
3762         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
3763         EINVAL when BUFLEN is too smal.
3764
3765 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
3766
3767         [BZ #13553]
3768         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
3769         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3770
3771 2012-04-03  Andreas Jaeger  <aj@suse.de>
3772
3773         [BZ #13938]
3774         * manual/setjmp.texi (System V contexts): Fix sentence.
3775
3776         [BZ #13926]
3777         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
3778         New macro for this case.
3779         [!__GNUC__] (__bswap_64): New inline function for this case.
3780         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3781         * bits/byteswap.h: Likewise.
3782         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
3783         ull, guard with __GLIBC_HAVE_LONG_LONG.
3784
3785         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
3786         __GLIBC_HAVE_LONG_LONG.
3787
3788         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
3789         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
3790
3791 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3792
3793         [BZ #13691]
3794         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
3795         inptr and inend, rather than using last_ch.
3796
3797 2012-04-02  David S. Miller  <davem@davemloft.net>
3798
3799         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
3800         * stdio-common/printf-parse.h (read_int): Change return type to
3801         'int', return -1 on INT_MAX overflow.
3802         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
3803         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
3804         overflows INT_MAX.  Check for overflow of in-format-string precision
3805         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
3806         SIZE_MAX not INT_MAX for integer overflow test.
3807         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
3808         skip the construct in the format string but do not record anything.
3809         * stdio-common/bug22.c: Adjust to test both width/prevision
3810         INT_MAX overflow as well as total length INT_MAX overflow.  Check
3811         explicitly for proper errno values.
3812
3813 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
3814
3815         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
3816         CHAR_MAX.
3817         * string/test-strcmp.c [! WIDE]: Likewise.
3818         * time/tst-mktime2.c: Likewise for INT_MAX.
3819         * string/test-string.h: #include <sys/param.h> for MIN.
3820
3821         * csu/init-first.c (__libc_init_first): Call __ctype_init.
3822         * sysdeps/i386/init-first.c (init): Likewise.
3823         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
3824         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
3825         * sysdeps/sh/init-first.c (init): Likewise.
3826
3827 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
3828
3829         * po/ru.po: Update from translation team.
3830         * po/vi.po: Likewise.
3831
3832 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
3833
3834         * resolv/nss_dns/dns-host.c: Merge copyright years.
3835
3836 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3837
3838         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
3839         Optimize memcpy with prefetch if
3840         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
3841         src, dst pointers have unequal 16 byte alignments.
3842
3843 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3844
3845         [BZ #13928]
3846         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
3847         from a CNAME entry and return the minimum ttl for the query.
3848         (gaih_getanswer_slice): Likewise.
3849
3850 2012-03-30  Jeff Law  <law@redhat.com>
3851
3852         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
3853         due to long keys.
3854         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
3855         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
3856
3857         * resolv/nss_dns/dns-host.c: Update copyright year.
3858
3859 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
3860
3861         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
3862         requests to save a system call.  Fix check that all bytes are sent.
3863
3864         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
3865         comments for sendmmsg.
3866
3867 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3868
3869         [BZ #13691]
3870         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
3871         with only 1 character between 0x0041 and 0x01b0.
3872         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
3873         * wcsmbs/tst-mbsnrtowcs.c: New file.
3874
3875 2012-03-29  David S. Miller  <davem@davemloft.net>
3876
3877         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
3878         small copies by hand.
3879
3880 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3881
3882         [BZ #13761]
3883         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
3884         _nss_compat_initgroups_dyn): Fall back to malloc/free
3885         for large group memberships.
3886
3887 2012-03-28  David S. Miller  <davem@davemloft.net>
3888
3889         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
3890         that branches into memcpy.
3891         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3892         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
3893         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3894         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
3895         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
3896         bits.
3897         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
3898         implementation too.
3899         * sysdeps/sparc/mempcpy.S: New file.
3900
3901         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
3902         the IFUNC routine in the libc case.
3903         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3904
3905         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
3906         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
3907         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
3908         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
3909         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
3910         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
3911         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
3912         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
3913
3914         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
3915         loop to 256 bytes instead of 64 bytes and fix test signedness.
3916
3917         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
3918         * sysdeps/sparc/sparc32/Makefile: rather than here...
3919         * sysdeps/sparc/sparc64/Makefile: and here.
3920
3921 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
3922
3923         * malloc/mallocbug.c: Avoid warnings about unused variables.
3924
3925 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3926
3927         [BZ #13760]
3928         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
3929         in the right place. Discard and retry query if response is
3930         larger than input buffer size.
3931
3932 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
3933
3934         [BZ #369]
3935         [BZ #2678]
3936         [BZ #3866]
3937         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
3938         x for large integer exponent.
3939         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3940         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
3941         sign of result as needed afterwards.
3942         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3943         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
3944         result for underflowing pow the same as for overflow.
3945         (__kernel_standard_l): Handle powl overflow and underflow here
3946         rather than calling __kernel_standard.
3947         * math/libm-test.inc (pow_test): Add more tests.
3948
3949         [BZ #3868]
3950         [BZ #13879]
3951         [BZ #13910]
3952         [BZ #13911]
3953         [BZ #13912]
3954         [BZ #13913]
3955         [BZ #13915]
3956         [BZ #13916]
3957         [BZ #13917]
3958         [BZ #13918]
3959         [BZ #13919]
3960         [BZ #13920]
3961         [BZ #13921]
3962         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
3963         * sysdeps/ieee754/k_standard.c: Include <float.h>.
3964         (__kernel_standard_l): New function.
3965         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
3966         __kernel_standard.
3967         * math/w_acosl.c (__acosl): Likewise.
3968         * math/w_asinl.c (__asinl): Likewise.
3969         * math/w_atan2l.c (__atan2l): Likewise.
3970         * math/w_atanhl.c (__atanhl): Likewise.
3971         * math/w_coshl.c (__coshl): Likewise.
3972         * math/w_exp10l.c (__exp10l): Likewise.
3973         * math/w_exp2l.c (__exp2l): Likewise.
3974         * math/w_fmodl.c (__fmodl): Likewise.
3975         * math/w_hypotl.c (__hypotl): Likewise.
3976         * math/w_j0l.c (__j0l, __y0l): Likewise.
3977         * math/w_j1l.c (__j1l, __y1l): Likewise.
3978         * math/w_jnl.c (__jnl, __ynl): Likewise.
3979         * math/w_lgammal.c (__lgammal): Likewise.
3980         * math/w_log10l.c (__log10l): Likewise.
3981         * math/w_log2l.c (__log2l): Likewise.
3982         * math/w_logl.c (__logl): Likewise.
3983         * math/w_powl.c (__powl): Likewise.
3984         * math/w_remainderl.c (__remainderl): Likewise.
3985         * math/w_scalbl.c (sysv_scalbl): Likewise.
3986         * math/w_sinhl.c (__sinhl): Likewise.
3987         * math/w_sqrtl.c (__sqrtl): Likewise.
3988         * math/w_tgammal.c (__tgammal): Likewise.
3989         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
3990         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
3991         * math/libm-test.inc (acos_test): Add more tests.
3992         (acosh_test): Likewise.
3993         (asin_test): Likewise.
3994         (atanh_test): Likewise.
3995         (exp_test): Likewise.
3996         (exp10_test): Likewise.
3997         (exp2_test): Likewise.
3998         (expm1_test): Likewise.
3999         (lgamma_test): Likewise.
4000         (log_test): Likewise.
4001         (log10_test): Likewise.
4002         (log1p_test): Likewise.
4003         (log2_test): Likewise.
4004         (pow_test): Do not allow some spurious overflow exceptions.
4005         (sqrt_test): Add more tests.
4006         (tgamma_test): Likewise.
4007         (y0_test): Likewise.
4008         (y1_test): Likewise.
4009         (yn_test): Likewise.
4010
4011 2012-03-27  Anton Blanchard  <anton@samba.org>
4012
4013         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
4014         MAP_HUGETLB.
4015         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4016         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4017         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4018
4019 2012-03-27  David S. Miller  <davem@davemloft.net>
4020
4021         * conform/Makefile: Run run-conformtest.sh using $(BASH).
4022
4023         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
4024         have-as-vis3 check.
4025
4026 2012-03-27  Andreas Jaeger  <aj@suse.de>
4027
4028         * sysdeps/x86_64/elf/configure.in: Moved to ...
4029         * sysdeps/x86_64/configure.in: ... here.
4030         * sysdeps/x86_64/elf/start.S: Moved to ...
4031         * sysdeps/x86_64/start.S: ... here.
4032         * sysdeps/x86_64/elf/configure: Delete.
4033
4034         * sysdeps/x86_64/configure.in: Merge contents from
4035         sysdeps/i386/configure.in (without i686 check).
4036
4037         * sysdeps/i386/elf/Versions: Merge into ...
4038         * sysdeps/i386/Versions: ... this.
4039         * sysdeps/i386/elf/Versions: Delete file.
4040         * sysdeps/i386/elf/start.S: Moved to ...
4041         * sysdeps/i386/start.S: ...here.
4042         * sysdeps/i386/elf/configure.in: Merge into...
4043         * sysdeps/i386/configure.in: ...here.
4044         * sysdeps/i386/elf/configure.in: Delete file.
4045         * sysdeps/i386/elf/configure: Delete file.
4046
4047         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
4048         * debug/backtracesyms.c: ... here.
4049         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
4050         * debug/backtracesymsfd.c: ... here.
4051         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
4052         * sysdeps/generic/ifunc-sel.h: ... here.
4053
4054         * sysdeps/unix/i386/start.c: Delete file.
4055         * sysdeps/unix/sparc/start.c: Delete file.
4056         * sysdeps/unix/start.c: Delete file.
4057
4058         * sysdeps/sh/elf/configure.in: Moved to ...
4059         * sysdeps/sh/configure.in: ... here.
4060         * sysdeps/sh/elf/start.S: Moved to ...
4061         * sysdeps/sh/start.S: ... here.
4062         * sysdeps/sh/elf/configure: Delete file.
4063
4064         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
4065         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
4066         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
4067         * sysdeps/powerpc/powerpc64/entry.h: ... here.
4068         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
4069         * sysdeps/powerpc/powerpc64/start.S: here.
4070         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
4071         * sysdeps/powerpc/powerpc64/Makefile: ... this.
4072         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
4073         * sysdeps/powerpc/powerpc64/configure.in: ... this.
4074         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
4075
4076         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
4077         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
4078         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
4079         * sysdeps/powerpc/powerpc32/start.S: ... here.
4080         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
4081         * sysdeps/powerpc/powerpc32/configure.in: ... this.
4082         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
4083
4084         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
4085         * sysdeps/powerpc/ifunc-sel.h: ... here.
4086         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
4087         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
4088
4089         * sysdeps/sparc/elf/configure.in: Moved to ...
4090         * sysdeps/sparc/configure.in: ... here.
4091         * sysdeps/sparc/elf/configure: Delete file.
4092         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
4093         * sysdeps/sparc/sparc32/start.S: ... here.
4094         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
4095         * sysdeps/sparc/sparc64/start.S: ... here.
4096         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
4097         * sysdeps/sparc/sparc32/Makefile: ... this.
4098         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
4099         * sysdeps/sparc/sparc64/Makefile: ... this.
4100
4101         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
4102         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
4103         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
4104         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
4105         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
4106         * sysdeps/s390/s390-32/setjmp.S: ... here.
4107         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
4108         * sysdeps/s390/s390-32/configure.in: ... here.
4109         * sysdeps/s390/s390-32/elf/configure: Delete file.
4110         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
4111         * sysdeps/s390/s390-32/start.S: ... here.
4112
4113         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
4114         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
4115         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
4116         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
4117         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
4118         * sysdeps/s390/s390-64/setjmp.S: ... here.
4119         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
4120         * sysdeps/s390/s390-64/configure.in: ... here
4121         * sysdeps/s390/s390-64/elf/configure: Delete file.
4122         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
4123         * sysdeps/s390/s390-64/start.S: ... here.
4124         * sysdeps/s390/s390-64/elf/configure: Delete.
4125
4126         * configure.in: Remove support for elf directories in sysdeps.
4127
4128         * configure: Regenerated.
4129         * sysdeps/i386/configure: Regenerated.
4130         * sysdeps/powerpc/powerpc32/configure: Regenerated.
4131         * sysdeps/powerpc/powerpc64/configure: Regenerated.
4132         * sysdeps/s390/s390-32/configure: Regenerated.
4133         * sysdeps/s390/s390-64/configure: Regenerated.
4134         * sysdeps/sh/configure: Regenerated.
4135         * sysdeps/sparc/configure: Regenerated.
4136         * sysdeps/x86_64/configure: Regenerated.
4137
4138 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
4139
4140         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4141
4142         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
4143         denormal result into account.
4144
4145 2012-03-25  Roland McGrath  <roland@hack.frob.com>
4146
4147         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
4148         Reported by Allan McRae <allan@archlinux.org>.
4149
4150 2012-03-23  Jeff Law  <law@redhat.com>
4151
4152         * nss/getnssent.c (__nss_getent): Fix typo.
4153
4154 2012-03-23  David S. Miller  <davem@davemloft.net>
4155
4156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4157
4158 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
4159
4160         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
4161         to pad to uint64_t for each field.
4162         (dl_tls_index): Replace unsigned long with uint64_t.
4163
4164 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
4165         Paul Pluzhnikov  <ppluzhnikov@google.com>
4166
4167         [BZ #6528]
4168         * grp/Makefile (otherlibs): Don't set it.
4169         * inet/Makefile (otherlibs): Likewise.
4170         * login/Makefile (otherlibs): Likewise.
4171         * nscd/Makefile (otherlibs): Likewise.
4172         * posix/Makefile (otherlibs): Likewise.
4173         * pwd/Makefile (otherlibs): Likewise.
4174         * rt/Makefile (otherlibs): Likewise.
4175         * sunrpc/Makefile (otherlibs): Likewise.
4176         * nss/Makefile (otherlibs): Likewise.
4177         Add libnss_files to routines and static-only-routines.
4178         ($(objpfx)getent): Remove rule.
4179         * resolv/Makefile: Add libnss_dns and libresolv to routines and
4180         static-only-routines.
4181
4182 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4183
4184         [BZ #13892]
4185         * math/s_cexp.c: Include <float.h>.
4186         (__cexp): Handle exp result overflowing not necessarily
4187         overflowing both real and imaginary parts of result.
4188         * math/s_cexpf.c: Likewise.
4189         * math/s_cexpl.c: Likewise.
4190         * math/libm-test.inc (cexp_test): Add more tests.
4191         * sysdeps/i386/fpu/libm-test-ulps: Update.
4192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4193
4194 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4195
4196         * include/link.h (ELFW): New macro.
4197         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
4198         Replace ELF64_R_TYPE with ELFW(R_TYPE).
4199
4200 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4201
4202         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
4203         with uint64_t.
4204
4205 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4206
4207         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
4208         declaration.
4209         (struct La_x32_retval): Likewise.
4210
4211 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4212
4213         * sysdeps/x86_64/preconfigure.in: New file.
4214         * sysdeps/x86_64/preconfigure: New generated file.
4215
4216 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4217
4218         [BZ #13824]
4219         * math/e_exp2l.c: Include <float.h>.
4220         (__ieee754_exp2l): Handle overflow and underflow cases
4221         separately.  Only pass fractional part of argument to
4222         __ieee754_expl.
4223         * math/libm-test.inc (exp2_test): Add more tests.
4224
4225         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
4226         negating x to take absolute value.
4227         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
4228         Likewise.
4229         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4230         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
4231         Likewise.
4232         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
4233         computing low part if x was negated.
4234         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4235
4236 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4237
4238         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
4239         la_x32_gnu_pltexit.
4240         (pltexit): Cast int_retval to ptrdiff_t.
4241         * elf/tst-auditmod3b.c: Likewise.
4242         * elf/tst-auditmod4b.c: Likewise.
4243         * elf/tst-auditmod5b.c: Likewise.
4244         * elf/tst-auditmod6b.c: Likewise.
4245         * elf/tst-auditmod6c.c: Likewise.
4246         * elf/tst-auditmod7b.c: Likewise.
4247
4248         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
4249         and x32_gnu_pltexit.
4250
4251         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
4252         __ELF_NATIVE_CLASS.
4253         (La_x32_regs): New macro.
4254         (La_x32_retval): Likewise.
4255         (la_x32_gnu_pltenter): New function prototype.
4256         (la_x32_gnu_pltexit): Likewise.
4257
4258 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
4259
4260         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
4261         exponent.
4262
4263         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4264
4265         * configure.in (libc_cv_cc_nofma): Check for option to disable
4266         generation of FMA instructions.
4267         * configure: Regenerate.
4268         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
4269         * sysdeps/ieee754/dbl-64/Makefile: New file.
4270         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4271         Remove brandred-fma4.
4272         (CFLAGS-brandred-fma4.c): Remove.
4273         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
4274         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
4275         define.
4276         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
4277         define.
4278
4279 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4280
4281         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4282         LLONG_MAX != LONG_MAX.
4283         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4284         (_fitoa_word): Likewise.
4285         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
4286         LLONG_MAX != LONG_MAX.
4287         * stdio-common/_itowa.h: Include <_itoa.h>.
4288         (_itowa_word): Use _ITOA_WORD_TYPE on value.
4289         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
4290         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
4291         only if not defined.
4292         (_ITOA_WORD_TYPE): Likewise.
4293         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4294         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
4295
4296 2012-03-21  David S. Miller  <davem@davemloft.net>
4297
4298         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4299
4300 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4301
4302         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
4303         of x86_64 when setting libc_cv_slibdir, libdir and
4304         libc_cv_localedir.
4305         * sysdeps/unix/sysv/linux/configure: Regenerated.
4306
4307 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4308
4309         * manual/lang.texi (Old Varargs): Remove section.
4310         (How Variadic): Update menu.
4311         (va_start): Do not mention varargs.h.
4312
4313 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4314             Joseph Myers  <joseph@codesourcery.com>
4315
4316         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
4317         link test.
4318         * configure: Regenerated.
4319
4320 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4321
4322         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
4323         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
4324         conformtest.pl
4325
4326 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4327
4328         * NOTES: Remove.
4329         * Makefile (files-for-dist): Remove NOTES.
4330         (NOTES): Remove rule.
4331         * README: Don't refer to NOTES.
4332         * manual/creature.texi: Don't include macros.texi.
4333         * manual/intro.texi (creature.texi): Remove comment referring to
4334         NOTES.
4335
4336         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
4337         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
4338         * configure: Regenerated.
4339         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
4340         LIBC_TRY_CC_OPTION.
4341         (libc_cv_as_i686): Likewise.
4342         (libc_cv_cc_avx): Likewise.
4343         (libc_cv_cc_sse2avx): Likewise.
4344         (libc_cv_cc_fma4): Likewise.
4345         (libc_cv_cc_novzeroupper): Likewise.
4346         * sysdeps/i386/configure: Regenerated.
4347
4348         [BZ #13883]
4349         * sysdeps/i386/fpu/s_cexp.S: Remove.
4350         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4351         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4352         * math/libm-test.inc (cexp_test): Add more tests.
4353         * sysdeps/i386/fpu/libm-test-ulps: Update.
4354         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4355
4356 2012-03-21  Allan McRae  <allan@archlinux.org>
4357
4358         * timezone/Makefile: Do not install iso3166.tab and zone.tab
4359
4360 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4361
4362         [BZ #13871]
4363         * math/w_exp2.c: Do not include <float.h>.
4364         (o_threshold, u_threshold): Remove.
4365         (__exp2): Calculate result before checking finiteness and calling
4366         __kernel_standard.
4367         * math/w_exp2f.c: Likewise.
4368         * math/w_exp2l.c: Likewise.
4369         * math/libm-test.inc (exp2_test): Require overflow exception for
4370         1e6 input.
4371
4372         [BZ #3866]
4373         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
4374         range of signed 64-bit integers before using fistpll.  Remove
4375         checks for whether integers fit in mantissa bits.
4376         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
4377         the range of signed 32-bit integers before using fistpl.  Remove
4378         checks for whether integers fit in mantissa bits.
4379         * sysdeps/i386/fpu/e_powl.S (p64): New object.
4380         (__ieee754_powl): Test for y outside the range of signed 64-bit
4381         integers before using fistpll.  Reduce 64-bit values to 63-bit
4382         ones as needed.
4383         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
4384         divide-by-zero is raised for zero to large negative powers.
4385         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
4386         (__ieee754_powl): Test for y outside the range of signed 64-bit
4387         integers before using fistpll.  Reduce 64-bit values to 63-bit
4388         ones as needed.
4389         * math/libm-test.inc (pow_test): Add more tests.
4390
4391 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4392
4393         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
4394         <stdio-common/_itoa.h>.
4395         * debug/segfault.c: Likewise.
4396         * elf/dl-cache.c: Likewise.
4397         * elf/dl-minimal.c: Likewise.
4398         * elf/dl-misc.c: Likewise.
4399         * elf/dl-sysdep.c: Likewise.
4400         * elf/dl-version.c: Likewise.
4401         * elf/rtld.c: Likewise.
4402         * hurd/hurdsock.c: Likewise.
4403         * hurd/lookup-retry.c: Likewise.
4404         * malloc/malloc.c: Likewise.
4405         * malloc/mtrace.c: Likewise.
4406         * nscd/nscd_getgr_r.c: Likewise.
4407         * nscd/nscd_getpw_r.c: Likewise.
4408         * nscd/nscd_getserv_r.c: Likewise.
4409         * posix/getopt_init.c: Likewise.
4410         * posix/wordexp.c: Likewise.
4411         * stdio-common/_itoa.c: Likewise.
4412         * stdio-common/printf_fphex.c: Likewise.
4413         * stdio-common/vfprintf.c: Likewise.
4414         * string/_strerror.c: Likewise.
4415         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4416         * sysdeps/i386/i686/hp-timing.h: Likewise.
4417         * sysdeps/mach/_strerror.c: Likewise.
4418         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
4419         * sysdeps/mach/hurd/sethostid.c: Likewise.
4420         * sysdeps/mach/hurd/xmknodat.c: Likewise.
4421         * sysdeps/mach/xpg-strerror.c: Likewise.
4422         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4423         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4424         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
4425         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
4426         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4427         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
4428         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4429         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4430         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
4431         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
4432         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
4433         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4434         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
4435         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4436         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4437         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4438         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
4439         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
4440         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4441         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4442         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
4443
4444         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
4445
4446         * stdio-common/_itoa.h: Moved to ...
4447         * sysdeps/generic/_itoa.h: Here.
4448
4449         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
4450
4451         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
4452         instead of "_itoa.h" and "_itowa.h".
4453         * stdio-common/vfprintf.: Likewise.
4454
4455 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4456
4457         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
4458         <bits/wordsize.h>.
4459         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
4460         (__signbit): Likwise.
4461         (llrintf): Likwise.
4462         (llrint): Likwise.
4463
4464 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4465
4466         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
4467         __WORDSIZE != 64.
4468
4469 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
4470
4471         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
4472         OVERFLOW_EXCEPTION_OK.
4473         * math/libm-test.inc ("Philosophy"): Update comment about
4474         exception testing.
4475         (OVERFLOW_EXCEPTION): Define.
4476         (OVERFLOW_EXCEPTION_OK): Likewise.
4477         (INVALID_EXCEPTION_OK): Renumber.
4478         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4479         (IGNORE_ZERO_INF_SIGN): Likewise.
4480         (test_exceptions): Handle FE_OVERFLOW.
4481         (exp10_test): Expect overflow exceptions.
4482         (exp2_test): Likewise.
4483         (expm1_test): Likewise.
4484         (nextafter_test): Likewise.
4485         (pow_test): Likewise.
4486         (scalbn_test): Likewise.
4487         (scalbln_test): Likewise.
4488
4489 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4490
4491         * sysdeps/x86_64/bits/atomic.h
4492         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
4493         64bit integer.
4494         (atomic_exchange_acq): Likewise.
4495         (__arch_exchange_and_add_body): Likewise.
4496         (__arch_add_body): Likewise.
4497         (atomic_add_negative): Likewise.
4498         (atomic_add_zero): Likewise.
4499
4500 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4501
4502         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
4503         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
4504
4505 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4506
4507         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
4508         Check __x86_64__ instead of __WORDSIZE.
4509
4510 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4511
4512         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
4513
4514 2012-03-19  David S. Miller  <davem@davemloft.net>
4515
4516         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4517
4518         * sysdeps/sparc/fpu/fenv_private.h: New file.
4519         * sysdeps/sparc/fpu/math_private.h: Use it.
4520         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
4521         Remove.
4522         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
4523         (libc_feholdexcept_setroundl): Remove.
4524         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
4525         Remove.
4526         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
4527         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
4528
4529 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4530
4531         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
4532         int64_t instead of long int.
4533         (INSERT_WORDS64): Likwise.
4534
4535 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4536
4537         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
4538         _Unwind_GetCFA return to _Unwind_Ptr first.
4539
4540 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
4541
4542         [BZ #13629]
4543         * math/s_clog.c: Include <float.h>.
4544         (__clog): Scale large or subnormal inputs.
4545         * math/s_clogf.c: Likewise.
4546         * math/s_clogl.c: Likewise.
4547         * math/s_clog10.c: Include <float.h>.
4548         (M_LOG10_2): Define.
4549         (__clog10): Scale large or subnormal inputs.
4550         * math/s_clog10f.c: Likewise.
4551         * math/s_clog10l.c: Likewise.
4552         * math/libm-test.inc (clog_test): Add more tests.
4553         (clog10_test): Likewise.
4554         * sysdeps/i386/fpu/libm-test-ulps: Update.
4555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4556
4557         [BZ #11451]
4558         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
4559         x and y.
4560         * math/libm-test.inc (atan2_test): Add another test.
4561
4562         * Makerules (common-objdir-compile): Remove.
4563         * sysdeps/unix/Makefile (config-generated): Do not add
4564         $(unix-generated) to variable.
4565         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
4566         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
4567         Remove rule.
4568         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
4569         Likewise.
4570         [generic bits/local_lim.h] (before-compile): Do not append to
4571         variable.
4572         [generic bits/local_lim.h] (common-generated): Likewise.
4573         [generic sys/param.h] (before-compile): Do not append to variable.
4574         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
4575         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
4576         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
4577         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
4578         include.
4579         [generic sys/param.h] (sys/param.h-includes): Remove variable.
4580         [generic sys/param.h] (sys/param.h-includes): Remove rule.
4581         [generic sys/param.h] ($(addprefix
4582         $(common-objpfx),$(sys/param.h-includes))): Likewise.
4583         [generic sys/param.h] (common-generated): Do not append to
4584         variable.
4585         [generic sys/param.h] (sysdep_headers): Likewise.
4586         [generic bits/errno.h] (before-compile): Do not append to
4587         variable.
4588         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
4589         rule.
4590         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
4591         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
4592         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
4593         [generic bits/errno.h] (common-generated): Do not append to
4594         variable.
4595         [generic bits/ioctls.h] (before-compile): Do not append to
4596         variable.
4597         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
4598         rule.
4599         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
4600         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
4601         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
4602         rule.
4603         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
4604         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
4605         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
4606         [generic bits/ioctls.h] (common-generated): Do not append to
4607         variable.
4608         [generic sys/syscall.h] (syscall.h): Remove variable.
4609         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
4610         rule.
4611         [generic sys/syscall.h] (before-compile): Do not append to
4612         variable.
4613         [generic sys/syscall.h] (common-generated): Likewise.
4614         * sysdeps/unix/errnos-tmpl.c: Remove file.
4615         * sysdeps/unix/errnos.awk: Likewise.
4616         * sysdeps/unix/ioctls-tmpl.c: Likewise.
4617         * sysdeps/unix/ioctls.awk: Likewise.
4618         * sysdeps/unix/mk-local_lim.c: Likewise.
4619         * sysdeps/unix/snarf-ioctls: Likewise.
4620
4621 2012-03-19  Richard Henderson  <rth@twiddle.net>
4622
4623         * sysdeps/i386/fpu/fenv_private.h: New file.
4624         * sysdeps/i386/fpu/math_private.h: Use it.
4625         (math_opt_barrier, math_force_eval): Remove.
4626         (libc_feholdexcept_setround_53bit): Remove.
4627         (libc_feupdateenv_53bit): Remove.
4628         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4629         (math_opt_barrier, math_force_eval): Remove.
4630         (libc_feholdexcept): Remove.
4631         (libc_feholdexcept_setround): Remove.
4632         (libc_fetestexcept, libc_fesetenv): Remove.
4633         (libc_feupdateenv_test): Remove.
4634         (libc_feupdateenv, libc_feholdsetround): Remove.
4635         (libc_feresetround): Remove.
4636
4637         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
4638         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
4639
4640         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
4641         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
4642         (libc_feupdateenv_testl): New.
4643         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
4644         (libc_feupdateenv_testf): New.
4645         (libc_feupdateenv): Use libc_feupdateenv_test.
4646         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
4647         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
4648
4649         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
4650         (libc_feholdsetroundf, libc_feholdsetroundl): New.
4651         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
4652         (libc_feresetround_noex): New.
4653         (libc_feresetround_noexf): New.
4654         (libc_feresetround_noexl): New.
4655         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
4656         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
4657         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
4658         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
4659         SET_RESTORE_ROUND.
4660         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4661         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
4662         (__cos): Likewise.
4663         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
4664         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
4665         SET_RESTORE_ROUND_NOEX.
4666         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
4667         SET_RESTORE_ROUND_NOEXF.
4668         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
4669         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
4670         (libc_feholdsetroundf): New.
4671         (libc_feresetround, libc_feresetroundf): New.
4672
4673         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
4674         (libc_feholdexcept_setround_53bit): Convert from macro to function.
4675         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
4676
4677         * sysdeps/generic/math_private.h: Include <fenv.h>.
4678         (default_libc_feholdexcept): New.
4679         (default_libc_feholdexcept_setround): New.
4680         (default_libc_fesetenv, default_libc_feupdateenv): New.
4681         (libc_feholdexcept): Only define if undefined.
4682         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
4683         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
4684         (libc_feholdexcept_setroundl): Likewise.
4685         (libc_feholdexcept_setround_53bit): Likewise.
4686         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
4687         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
4688         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
4689         (libc_feupdateenv_53bit): Likewise.
4690         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
4691         (libc_feholdexcept): Convert from macro to inline function.
4692         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
4693         (libc_fesetenv, libc_feupdateenv): Likewise.
4694
4695         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
4696         not previously defined.
4697         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
4698         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
4699         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
4700         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
4701         * sysdeps/ieee754/flt-32/math_private.h: New file.
4702         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
4703         math_private.h below SET_FLOAT_WORD.
4704         (__isnan, __isinf_ns, __finite): Remove.
4705         (__isnanf, __isinf_nsf, __finitef): Remove.
4706
4707 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
4708
4709         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4710
4711 2012-03-17  David S. Miller  <davem@davemloft.net>
4712
4713         [BZ #6471]
4714         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
4715         for 2.16.
4716
4717 2012-03-16  David S. Miller  <davem@davemloft.net>
4718
4719         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
4720         warnings.
4721
4722         [BZ #6471]
4723         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
4724         properly.
4725         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
4726         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
4727         sysdep_routines when subdir is sysvipc.
4728         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
4729         __getshmlba helper.
4730
4731         * sysdeps/sparc/fpu/libm-test/ulps: Update.
4732
4733 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4734
4735         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
4736         [__LP64__].
4737
4738 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4739
4740         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
4741         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
4742         (__lround): Renamed to ...
4743         (__llround): This.  Replace long int with long long int.
4744         Define lround functions as aliases of llround functions.
4745         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
4746
4747 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4748
4749         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4750         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
4751         adresses to uintptr_t.  Replace "long int" and "unsigned long
4752         int" with "greg_t" on va_arg.
4753
4754 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4755
4756         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
4757         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
4758
4759         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
4760         Move e_machine check before EI_CLASS check.  Handle x32
4761         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
4762         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
4763         SKIP_EM_IA_64 and include
4764         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
4765
4766         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
4767         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
4768         (add_system_dir): New macro.
4769
4770         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
4771         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
4772
4773 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4774
4775         [BZ #2551]
4776         [BZ #2552]
4777         [BZ #2553]
4778         [BZ #2554]
4779         [BZ #2562]
4780         [BZ #2563]
4781         [BZ #2565]
4782         [BZ #2566]
4783         [BZ #2576]
4784         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
4785         (y0): Likewise.
4786         * math/w_j0f.c (j0f): Likewise.
4787         (y0f): Likewise.
4788         * math/w_j0l.c (__j0l): Likewise.
4789         (__y0l): Likewise.
4790         * math/w_j1.c (j1): Likewise.
4791         (y1): Likewise.
4792         * math/w_j1f.c (j1f): Likewise.
4793         (y1f): Likewise.
4794         * math/w_j1l.c (__j1l): Likewise.
4795         (__y1l): Likewise.
4796         * math/w_jn.c (jn): Likewise.
4797         (yn): Likewise.
4798         * math/w_jnf.c (jnf): Likewise.
4799         (ynf): Likewise.
4800         * math/w_jnl.c (__jnl): Likewise.
4801         (__ynl): Likewise.
4802         * math/libm-test.inc (j0_test): Add more tests.
4803         (j1_test): Likewise.
4804         (jn_test): Likewise.  Add trailing semicolon to existing test.
4805         (y0_test): Likewise.
4806         (y1_test): Likewise.
4807         * sysdeps/i386/fpu/libm-test-ulps: Update.
4808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4809
4810         [BZ #13851]
4811         [BZ #13854]
4812         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
4813         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
4814         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
4815         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
4816         (__tanl): Set errno for infinite argument.
4817         * sysdeps/i386/fpu/mptan.c: Remove.
4818         * sysdeps/i386/fpu/s_tan.S: Likewise.
4819         * sysdeps/i386/fpu/s_tanl.S: Likewise.
4820         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
4821         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
4822         * math/libm-test.inc (tan_test): Add more tests and enable more
4823         tests for double and long double.
4824         * sysdeps/i386/fpu/libm-test-ulps: Update.
4825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4826
4827 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4828
4829         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
4830         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
4831
4832 2012-03-16  Roland McGrath  <roland@hack.frob.com>
4833
4834         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
4835         * configure.in: Use it for both main tree and add-ons.
4836         * configure: Regenerated.
4837
4838 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4839
4840         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
4841
4842 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4843
4844         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
4845         in comment.
4846
4847         [BZ #13851]
4848         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
4849         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
4850         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4851         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
4852         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
4853         infinite argument.
4854         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
4855         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
4856         != 0 for prec == 2.
4857         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
4858         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
4859         * sysdeps/i386/fpu/s_cosl.S: Likewise.
4860         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
4861         * sysdeps/i386/fpu/s_sinl.S: Likewise.
4862         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
4863         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
4864         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
4865         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
4866         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
4867         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
4868         * math/libm-test.inc (cos_test): Add more tests and enable more
4869         tests for long double.
4870         (sin_test): Likewise.
4871         (sincos_test): Likewise.
4872         * sysdeps/i386/fpu/libm-test-ulps: Update.
4873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4874
4875 2012-03-16  David S. Miller  <davem@davemloft.net>
4876
4877         * sysdeps/sparc/fpu/math_private.h: New file.
4878
4879 2012-03-15  David S. Miller  <davem@davemloft.net>
4880
4881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
4882         file.
4883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
4884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
4885         file.
4886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
4887         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
4888         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
4889         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
4890         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
4891         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
4892         sysdep routines.
4893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4894
4895         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
4896         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
4897
4898         * sysdeps/sparc/sparc-ifunc.h: New file.
4899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
4900         sparc-ifunc.h
4901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4903         Likewise.
4904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
4905         Likewise.
4906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
4907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
4908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4910         Likewise.
4911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
4916         Likewise.
4917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
4918         Likewise.
4919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
4921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
4922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
4923         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4924         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4925         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
4926         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
4927         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4928         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4929         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4930         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4931         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4932         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4933         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
4934         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
4935         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
4936         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
4937         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
4938         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
4939         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
4940         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
4941         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
4942         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
4943
4944 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4945
4946         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
4947         scaling.
4948         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4949
4950 2012-03-15  Andreas Jaeger  <aj@suse.de>
4951
4952         [BZ #13852]
4953         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
4954         ieee754/flt-32 implementation for sin, cos and sincos.
4955         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
4956         * sysdeps/i386/fpu/s_cosf.S: Likewise.
4957         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
4958         * sysdeps/i386/fpu/s_sinf.S: Likewise.
4959         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
4960         ieee754/flt-32 implementation for tan.
4961
4962         * math/libm-test.inc (cos_test): Enable some large input tests for
4963         float as well
4964         (sin_test): Likewise.
4965         (sincos_test): Likewise.
4966         (tan_test): Add tests for large input.
4967
4968         * sysdeps/i386/fpu/libm-test-ulps: Update.
4969
4970 2012-03-15  Andreas Jaeger  <aj@suse.de>
4971
4972         [BZ #13658]
4973         * math/libm-test.inc (cos_test): Add more test cases.
4974         (sin_test): Likewise.
4975         (sincos_test): Likewise.
4976
4977 2012-03-15  Andreas Jaeger  <aj@suse.de>
4978
4979         [BZ #13837]
4980         * math/libm-test.inc (cos_test): Add a test case for large input
4981         value.
4982         (sin_test): Likewise.
4983         (sincos_test): Likewise.
4984
4985 2012-03-15  Andreas Jaeger  <aj@suse.de>,
4986         Joseph Myers  <joseph@codesourcery.com>
4987
4988         [BZ #13658]
4989         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
4990         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
4991         * sysdeps/i386/fpu/branred.c: Likewise.
4992         * sysdeps/i386/fpu/dosincos.c: Likewise.
4993         * sysdeps/i386/fpu/mpa.c: Likewise.
4994         * sysdeps/i386/fpu/s_cos.S: Likewise.
4995         * sysdeps/i386/fpu/s_sin.S: Likewise.
4996         * sysdeps/i386/fpu/s_sincos.S: Likewise.
4997         * sysdeps/i386/fpu/sincos32.c: Likewise.
4998
4999         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
5000         Define.
5001         (libc_feupdateenv_53bit): Define.
5002         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
5003         Define.
5004         (libc_feupdateenv_53bit): Define.
5005
5006         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
5007         53 bit (without extend i386 double precision).
5008
5009         * math/libm-test.inc (sincos_test): Add tests for large input.
5010         (sin): Likewise.
5011         (cos): Likewise.
5012
5013         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
5014
5015 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5016
5017         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5018
5019 2012-03-15  David S. Miller  <davem@davemloft.net>
5020
5021         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
5022         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
5023         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
5024         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
5025         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
5026         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
5027         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
5028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
5029         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
5030         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
5031         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
5032         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
5033         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
5034         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
5035         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
5036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
5037         file.
5038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
5039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
5040         file.
5041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
5042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
5043         file.
5044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
5045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
5046         file.
5047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
5048         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
5049         fmin/fmax sysdep routines.
5050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5051
5052 2012-03-14  David S. Miller  <davem@davemloft.net>
5053
5054         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
5055         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
5056         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
5057         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
5058         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
5059         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
5060         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
5061         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
5062         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
5063         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
5064         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
5065         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
5066         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
5067         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
5068         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
5069         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
5070         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
5071         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
5072         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
5073         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
5074         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
5075         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
5076         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
5077         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
5078         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
5079         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
5080         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
5081         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
5082         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
5083         routines.
5084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
5085         file.
5086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
5087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
5088         file.
5089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
5090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
5091         file.
5092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
5093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
5094         file.
5095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
5096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
5097         file.
5098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
5099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
5100         file.
5101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
5102         file.
5103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
5104         file.
5105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
5106         file.
5107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
5108         New file.
5109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
5110         file.
5111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
5112         file.
5113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
5114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
5115         file.
5116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
5117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
5118         file.
5119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
5120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
5121         file.
5122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
5123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
5124         VIS3 routines.
5125
5126         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5127         New file.
5128
5129         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5130
5131         * sysdeps/sparc/configure.in: New file.
5132         * sysdeps/sparc/configure: Generate.
5133         * configure.in (libc_cv_sparc_as_vis3): Substitute.
5134         * configure: Regenerate.
5135         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
5136         * config.make.in (have-as-vis3): New.
5137         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
5138         available use -Av9d instead of -Av9a.
5139         * sysdeps/sparc/sparc64/Makefile: Likewise.
5140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
5141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
5142         New file.
5143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
5144         file.
5145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
5146         New file.
5147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
5148         file.
5149         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
5150         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
5151         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
5152         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
5153         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
5154
5155         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
5156         fzeros/fnegs to load 0x80000000 into a float register instead of
5157         using the stack.
5158         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
5159
5160 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5161
5162         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5163         bits/syscall.h.
5164         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
5165         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
5166         ($(inst_includedir)/bits/syscall.h): Remove rule.
5167         ($(objpfx)bits/syscall.d): Include instead of
5168         $(objpfx)syscall-list.d.
5169         (generated): Change syscall-list.h and syscall-list.d to
5170         bits/syscall.h and bits/syscall.d.
5171
5172 2012-03-14  Roland McGrath  <roland@hack.frob.com>
5173
5174         [BZ #13846]
5175         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
5176
5177 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5178
5179         [BZ #13841]
5180         * math/s_csqrt.c: Include <float.h>.
5181         (__csqrt): Scale large or subnormal inputs.
5182         * math/s_csqrtf.c: Likewise.
5183         * math/s_csqrtl.c: Likewise.
5184         * math/libm-test.inc (csqrt_test): Add more tests.
5185         * sysdeps/i386/fpu/libm-test-ulps: Update.
5186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5187
5188         [BZ #13840]
5189         * math/libm-test.inc (hypot_test): Add more tests.
5190
5191 2012-03-13  David S. Miller  <davem@davemloft.net>
5192
5193         [BZ #13840]
5194         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
5195         double-precision for the calculation instead of scaling.
5196
5197 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
5198
5199         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
5200         manipulate bits before adding and subtracting TWO52[sx].
5201         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
5202         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5203         Likewise.
5204         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
5205
5206 2012-03-13  David S. Miller  <davem@davemloft.net>
5207
5208         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
5209         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
5210         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
5211         rtld-global-offsets.h
5212         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5213
5214         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
5215         large parameters.
5216
5217         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
5218
5219         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
5220         'err' in the ifdef scope in which it is actually used.
5221
5222         * nss/nss_db/db-init.c: Include string.h
5223
5224 2012-03-12  David S. Miller  <davem@davemloft.net>
5225
5226         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
5227         masking out of the most significant byte of random value used.
5228         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5229         Fix coding style in previous change.
5230
5231         * sysdeps/unix/sysv/linux/kernel-features.h
5232         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
5233         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
5234         expression.
5235         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
5236         later.
5237
5238 2012-03-11  David S. Miller  <davem@davemloft.net>
5239
5240         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
5241         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
5242         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
5243         for 'resultvar' otherwise things get truncated on 64-bit.
5244
5245         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5246         Fix masking out of the most significant byte of random value used.
5247
5248         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5249
5250 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
5251
5252         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5253
5254 2012-03-09  David S. Miller  <davem@davemloft.net>
5255
5256         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
5257         variables with appropriate CPP guards.
5258         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
5259         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
5260         on resulting framesize and the management of the outregs buffer for pltexit.
5261         Preserve floating point return values across _dl_call_pltexit call.
5262         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
5263         framesize and the management of the outregs buffer for pltexit.
5264         Preserve floating point return values across _dl_call_pltexit
5265         call.
5266         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
5267         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
5268         (print_exit): Fix format string for return register value.
5269
5270 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
5271
5272         * sunrpc/Makefile (others): Add rpcgen.
5273         ($(objpfx)rpcgen): Remove special build rule and dependency on
5274         libc.
5275         * sunrpc/rpcgen.c: New file.
5276
5277 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
5278
5279         [BZ #13673]
5280         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
5281         * stdio-common/bug-vfprintf-nargs.c: Likewise.
5282         * sysdeps/i386/crti.S: Likewise.
5283         * sysdeps/i386/crtn.S: Likewise.
5284         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
5285         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
5286         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
5287         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
5288         * sysdeps/sh/crti.S: Likewise.
5289         * sysdeps/sh/crtn.S: Likewise.
5290         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5291
5292         [BZ #13673]
5293         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
5294         with URL.
5295         * locale/programs/locfile-kw.gperf: Likewise.
5296         * locale/programs/charmap-kw.h: Regenerated.
5297         * locale/programs/locfile-kw.h: Likewise.
5298
5299         [BZ #13673]
5300         * intl/plural.y: Replace FSF snail mail address with URL.
5301         * intl/plural.c: Regenerated.
5302
5303 2012-03-09  Richard Henderson  <rth@twiddle.net>
5304
5305         * include/math_private.h: Remove file.
5306         * math/math_private.h: Move file ...
5307         * sysdeps/generic/math_private.h: ... here.
5308
5309         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
5310         * sysdeps/powerpc/fpu/math_private.h: Likewise.
5311         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5312
5313         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
5314         and <math_private.h>.
5315         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5316         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5317         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5318         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5319         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5320         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
5321         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5322         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5323         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
5324         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5325         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5326         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5327         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
5328         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5329         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
5330         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
5331         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5332         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5333         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
5334         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
5335         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5336         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
5337         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
5338         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5339         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
5340         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5341         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
5342         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5343         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5344         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5345         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
5346         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5347         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5348         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5349         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5350         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5351         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5352         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5353         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5354         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5355         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
5356         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5357         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5358         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5359         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
5360         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5361         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
5362         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
5363         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5364         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5365         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
5366         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
5367         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
5368         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5369         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
5370         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5371         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5372         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
5373         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
5374         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
5375         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5376         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
5377         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5378         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5379         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5380         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5381         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5382         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5383         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
5384         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
5385         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5386         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5387         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5388         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5389         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
5390         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5391         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
5392         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5393         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
5394         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
5395         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5396         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
5397         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5398         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5399         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5400         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
5401         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
5402         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5403         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
5404         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5405         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5406         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
5407         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5408         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
5409         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
5410         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
5411         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5412         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
5413         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
5414         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5415         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
5416         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
5417         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
5418         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
5419         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5420         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
5421         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
5422         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
5423         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5424         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5425         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5426         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5427         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
5428         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5429         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5430         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5431         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5432         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5433         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5434         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5435         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5436         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5437         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5438         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
5439         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5440         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5441         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
5442         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5443         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5444         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
5445         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
5446         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5447         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5448         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
5449         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
5450         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5451         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
5452         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5453         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
5454         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5455         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5456         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5457         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5458         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
5459         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
5460         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5461         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5462         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5463         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5464         * sysdeps/ieee754/k_standard.c: Likewise.
5465         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
5466         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5467         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5468         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5469         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5470         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5471         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5472         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5473         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5474         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5475         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5476         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5477         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5478         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5479         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5480         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5481         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5482         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5483         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5484         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5485         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5486         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5487         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5488         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5489         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5490         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5491         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5492         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5493         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5494         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5495         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5496         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5497         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5498         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5499         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5500         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5501         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5502         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
5503         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5504         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5505         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5506         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5507         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5508         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5509         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5510         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5511         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5512         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5513         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5514         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5515         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5516         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5517         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5518         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5519         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5520         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5521         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
5522         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5523         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5524         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5525         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5526         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5527         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5528         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
5529         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5530         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5531         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
5532         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
5533         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
5534         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
5535         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
5536         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5537         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
5538         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
5539         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
5540         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
5541         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
5542         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
5543         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5544         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5545         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5546         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
5547         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5548         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5549         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
5550         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5551         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5552         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
5553         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5554         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5555         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
5556         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5557         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
5558         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5559         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5560         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5561         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
5562         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
5563         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
5564         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
5565         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5566         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5567         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5568         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5569         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
5570         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5571         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5572         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
5573         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
5574         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5575         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5576         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5577         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
5578         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5579         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
5580         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5581         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
5582         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5583         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5584         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
5585         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
5586         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5587         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
5588         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
5589         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5590         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5591         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5592         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5593         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5594         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5595         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5596         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5597         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5598         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
5599         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5600         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5601         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
5602         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5603         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5604         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
5605         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
5606         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5607         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
5608         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
5609         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5610         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5611         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5612         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5613         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5614         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
5615         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5616         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5617         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5618         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5619         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
5620         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
5621         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5622         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5623         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5624         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
5625         * sysdeps/ieee754/s_lib_version.c: Likewise.
5626         * sysdeps/ieee754/s_matherr.c: Likewise.
5627         * sysdeps/ieee754/s_signgam.c: Likewise.
5628         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5629         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5630         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
5631         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
5632         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
5633         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5634         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
5635         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
5636         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5637         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
5638         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
5639         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
5640         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5641         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5642         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
5643         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5644         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5645         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5646         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5647         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5648         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5649
5650 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5651
5652         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
5653         * sunrpc/rpc_main.c: Likewise.
5654         * sunrpc/rpc_svcout.c: Likewise.
5655
5656 2012-03-09  David S. Miller  <davem@davemloft.net>
5657
5658         * include/math_private.h: New file.
5659
5660 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5661
5662         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
5663         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
5664         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
5665         from <bits/socket_type.h>.
5666         (enum __socket_type): Don't define here.
5667         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
5668         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5669         bits/socket_type.h.
5670
5671         [BZ #13566]
5672         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
5673         checking __USE_GNU.
5674
5675         * Makerules ($(inst_includedir)/%.h): New rule.
5676         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
5677         (install-others): Remove variable setting.
5678         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
5679
5680 2012-03-08  Richard Henderson  <rth@twiddle.net>
5681
5682         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
5683         from macro to inline function; merge with the
5684         !__LIBC_INTERNAL_MATH_INLINES version.
5685         (__ieee754_sqrtf): Likewise.
5686
5687         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
5688         to inline function.
5689         (__rintf, __floor, __floorf): Likewise.
5690
5691         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
5692         macro to inline function.
5693         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
5694
5695         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
5696         not <math/math_private.h>.
5697
5698 2012-03-08  David S. Miller  <davem@davemloft.net>
5699
5700         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
5701         copyright year.
5702         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5703
5704 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
5705
5706         * resolv/gai_misc.c (handle_requests): Fix struct timespec
5707         normalization.
5708         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
5709         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
5710
5711 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
5712
5713         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
5714         be defined individually, they must be defined as a block.  Define
5715         S for printing a string instead of hidint the different by using a
5716         macro for adding the 'l'.
5717         * stdio-common/tst-fphex-wide.c: Adjust.
5718
5719 2012-03-07  Marek Polacek  <polacek@redhat.com>
5720
5721         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
5722
5723 2012-03-08  Marek Polacek  <polacek@redhat.com>
5724
5725         [BZ #13806]
5726         * stdio-common/Makefile (tests): Add tst-fphex-wide.
5727         * stdio-common/tst-fphex.c: Define a few macros to make the
5728         test reusable.  Use them.
5729         * stdio-common/tst-fphex-wide.c: New file.
5730
5731 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
5732
5733         [BZ #6911]
5734         * manual/macros.texi (gnusystems): New macro.
5735         (nongnusystems): Likewise.
5736         (gnulinuxhurdsystems): Likewise.
5737         (gnuhurdsystems): Likewise..
5738         (gnulinuxsystems): Likewise.
5739         * manual/charset.texi: Use new macros or @theglibc{} to refer to
5740         variants of the GNU system, not "GNU system".
5741         * manual/conf.texi: Likewise.
5742         * manual/errno.texi: Likewise.  Update example of errno macro
5743         expansion.
5744         * manual/filesys.texi: Likewise.
5745         (getumask): Document as specific to GNU/Hurd.
5746         * manual/install.texi: Likewise.  Reword some references to
5747         GNU/Linux.
5748         * manual/intro.texi: Likewise.
5749         * manual/io.texi: Likewise.
5750         (File Name Portability): Detail which constraints are inapplicable
5751         to all GNU systems and which are only inapplicable to GNU/Hurd.
5752         * manual/job.texi: Likewise.
5753         * manual/llio.texi: Likewise.
5754         (O_NOCTTY): Document as present on GNU/Linux.
5755         * manual/maint.texi: Likewise.
5756         * manual/memory.texi: Likewise.
5757         * manual/pattern.texi: Likewise.
5758         * manual/pipe.texi: Likewise.
5759         * manual/process.texi: Likewise.
5760         * manual/resource.texi: Likewise.
5761         (RUSAGE_CHILDREN): Remove statement about specifying a particular
5762         child on GNU/Hurd.
5763         * manual/setjmp.texi: Likewise.
5764         * manual/signal.texi: Likewise.
5765         * manual/startup.texi: Likewise.
5766         * manual/stdio.texi: Likewise.
5767         * manual/terminal.texi: Likewise.
5768         (ONLCR): Document as POSIX.
5769         (OXTABS): Document availability on GNU/Linux as XTABS.
5770         (ONOEOT): Document availability separately from other bits.
5771         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
5772         * manual/time.texi: Likewise.
5773         * manual/users.texi: Likewise.
5774         * INSTALL: Regenerated.
5775         * sysdeps/gnu/errlist.c: Regenerated.
5776
5777         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
5778         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
5779         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
5780         puts.
5781         * configure: Regenerated.
5782
5783 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
5784
5785         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
5786         default includes instead of AC_HEADER_CHECK.
5787         * sysdeps/i386/configure: Regenerated.
5788
5789         [BZ #10716]
5790         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
5791         * math/s_cacoshf.c (__cacoshf): Likewise.
5792         * math/s_cacoshl.c (__cacoshl): Likewise.
5793         * math/s_casinh.c (__casinh): Set signs of result from argument.
5794         * math/s_casinhf.c (__casinhf): Likewise.
5795         * math/s_casinhl.c (__casinhl): Likewise.
5796         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
5797         (casinh_test): Add more tests.
5798         * sysdeps/i386/fpu/libm-test-ulps: Update.
5799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5800
5801 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
5802
5803         * po/zh_TW.po: Update from translation team.
5804
5805         * login/Makefile (distribute): Remove variable.
5806         * catgets/Makefile: Likewise.
5807         * mach/Makefile: Likewise.
5808         * malloc/Makefile: Likewise.
5809         * misc/Makefile: Likewise.
5810         * iconv/Makefile: Likewise.
5811         * nscd/Makefile: Likewise.
5812         * hurd/Makefile: Likewise.
5813         * manual/Makefile: Likewise.
5814         * locale/Makefile: Likewise.
5815         * intl/Makefile: Likewise.
5816         * conform/Makefile: Likewise.
5817         * nss/Makefile: Likewise.
5818         * time/Makefile: Likewise.
5819         * soft-fp/Makefile: Likewise.
5820         * dirent/Makefile: Likewise.
5821         * gmon/Makefile: Likewise.
5822         * po/Makefile: Likewise.
5823         * rt/Makefile: Likewise.
5824         * socket/Makefile: Likewise.
5825         * math/Makefile: Likewise.
5826         * signal/Makefile: Likewise.
5827         * debug/Makefile: Likewise.
5828         * elf/Makefile: Likewise.
5829         * timezone/Makefile: Likewise.
5830         * stdlib/Makefile: Likewise.
5831         * iconvdata/Makefile: Likewise.
5832         * sunrpc/Makefile: Likewise.
5833         * io/Makefile: Likewise.
5834         * argp/Makefile: Likewise.
5835         * inet/Makefile: Likewise.
5836         * hesiod/Makefile: Likewise.
5837         * grp/Makefile: Likewise.
5838         * csu/Makefile: Likewise.
5839         * wctype/Makefile: Likewise.
5840         * crypt/Makefile: Likewise.
5841         * libio/Makefile: Likewise.
5842         * string/Makefile: Likewise.
5843         * nis/Makefile: Likewise.
5844         * resolv/Makefile: Likewise.
5845         * stdio-common/Makefile: Likewise.
5846         * wcsmbs/Makefile: Likewise.
5847         * dlfcn/Makefile: Likewise.
5848         * posix/Makefile: Likewise.
5849
5850         [BZ #6959]
5851         * timezone/Makefile: Don't install timezone files, just the programs
5852         and scripts.
5853
5854 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
5855
5856         * nss/databases.def: Add missing gshadow entry.
5857
5858         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
5859
5860 2012-03-06  Marek Polacek  <polacek@redhat.com>
5861
5862         [BZ #13726]
5863         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
5864         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5865         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
5866         * stdio-common/tst-long-dbl-fphex.c: New file.
5867
5868 2012-03-06  David S. Miller  <davem@davemloft.net>
5869
5870         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5871         (set_obp_int): New function.
5872         (get_obp_int): New function.
5873         (__get_clockfreq_via_dev_openprom): Likewise.
5874         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5875         Avoid unused variable warnings on 'val' and use builtin_expect.
5876         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
5877         __builtin_expect.
5878         (INLINE_CLONE_SYSCALL): Likewise.
5879
5880 2012-03-05  David S. Miller  <davem@davemloft.net>
5881
5882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5883
5884 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
5885
5886         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5887
5888         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
5889         only for |x| >= 40.
5890         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5891
5892 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5893
5894         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
5895         Replace gettimeofday with __vdso_gettimeofday.
5896
5897         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5898         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
5899         __vdso_clock_gettime and __vdso_getcpu.
5900
5901         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
5902         time with __vdso_time.
5903
5904 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5905
5906         * manual/lang.texi (size_t): Note types to which size_t may be
5907         equivalent with the GNU C Library, but do not describe when
5908         differences between them are significant.
5909
5910 2012-03-05  Andreas Jaeger  <aj@suse.de>
5911
5912         * sysdeps/i386/fpu/libm-test-ulps: Update.
5913
5914 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5915
5916         [BZ #3976]
5917         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
5918         (__ieee754_pow): Save and restore rounding mode and use
5919         round-to-nearest for main computations.
5920         * math/libm-test.inc (pow_test_tonearest): New function.
5921         (pow_test_towardzero): Likewise.
5922         (pow_test_downward): Likewise.
5923         (pow_test_upward): Likewise.
5924         (main): Call the new functions.
5925         * sysdeps/i386/fpu/libm-test-ulps: Update.
5926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5927
5928         [BZ #3976]
5929         * math/libm-test.inc (cosh_test_tonearest): New function.
5930         (cosh_test_towardzero): Likewise.
5931         (cosh_test_downward): Likewise.
5932         (cosh_test_upward): Likewise.
5933         (sinh_test_tonearest): Likewise.
5934         (sinh_test_towardzero): Likewise.
5935         (sinh_test_downward): Likewise.
5936         (sinh_test_upward): Likewise.
5937         (main): Call the new functions.
5938         * sysdeps/i386/fpu/libm-test-ulps: Update.
5939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5940
5941 2012-03-05  Tom de Vries  <tom@codesourcery.com>
5942
5943         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
5944         default stack guard is set in last bytes.
5945         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
5946
5947 2012-03-05  Kees Cook  <keescook@chromium.org>
5948
5949         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
5950
5951         [BZ #13656]
5952         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
5953         possibly allocate from heap instead of stack.
5954         * stdio-common/bug-vfprintf-nargs.c: New file.
5955         * stdio-common/Makefile (tests): Add nargs overflow test.
5956
5957 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
5958
5959         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5960
5961 2012-03-03  Marek Polacek  <polacek@redhat.com>
5962
5963         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
5964         * math/math_private.h: Likewise.
5965         * stdlib/tst-strtod.c: Likewise.
5966         * sysdeps/i386/i486/bits/atomic.h: Likewise.
5967         * sysdeps/x86_64/bits/atomic.h: Likewise.
5968
5969 2012-03-02  David S. Miller  <davem@davemloft.net>
5970
5971         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
5972         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
5973         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
5974         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
5975         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
5976         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
5977         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
5978         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
5979
5980 2012-03-02  Roland McGrath  <roland@hack.frob.com>
5981
5982         [BZ #13792]
5983         * manual/examples/README: New file, says the example source files
5984         can be used under GPL>=2.
5985         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
5986         line containing just "*/".
5987         * manual/examples/add.c: Add copyright header (GPL>=2).
5988         * manual/examples/argp-ex1.c: Likewise.
5989         * manual/examples/argp-ex2.c: Likewise.
5990         * manual/examples/argp-ex3.c: Likewise.
5991         * manual/examples/argp-ex4.c: Likewise.
5992         * manual/examples/atexit.c: Likewise.
5993         * manual/examples/db.c: Likewise.
5994         * manual/examples/dir.c: Likewise.
5995         * manual/examples/dir2.c: Likewise.
5996         * manual/examples/execinfo.c: Likewise.
5997         * manual/examples/filecli.c: Likewise.
5998         * manual/examples/filesrv.c: Likewise.
5999         * manual/examples/fmtmsgexpl.c: Likewise.
6000         * manual/examples/genpass.c: Likewise.
6001         * manual/examples/inetcli.c: Likewise.
6002         * manual/examples/inetsrv.c: Likewise.
6003         * manual/examples/isockad.c: Likewise.
6004         * manual/examples/longopt.c: Likewise.
6005         * manual/examples/memopen.c: Likewise.
6006         * manual/examples/memstrm.c: Likewise.
6007         * manual/examples/mkfsock.c: Likewise.
6008         * manual/examples/mkisock.c: Likewise.
6009         * manual/examples/mygetpass.c: Likewise.
6010         * manual/examples/pipe.c: Likewise.
6011         * manual/examples/popen.c: Likewise.
6012         * manual/examples/rprintf.c: Likewise.
6013         * manual/examples/search.c: Likewise.
6014         * manual/examples/select.c: Likewise.
6015         * manual/examples/setjmp.c: Likewise.
6016         * manual/examples/sigh1.c: Likewise.
6017         * manual/examples/sigusr.c: Likewise.
6018         * manual/examples/stpcpy.c: Likewise.
6019         * manual/examples/strdupa.c: Likewise.
6020         * manual/examples/strftim.c: Likewise.
6021         * manual/examples/strncat.c: Likewise.
6022         * manual/examples/subopt.c: Likewise.
6023         * manual/examples/swapcontext.c: Likewise.
6024         * manual/examples/termios.c: Likewise.
6025         * manual/examples/testopt.c: Likewise.
6026         * manual/examples/testpass.c: Likewise.
6027         * manual/examples/timeval_subtract.c: Likewise.
6028
6029         [BZ #13792]
6030         * manual/time.texi (Elapsed Time): Move timeval_subtract example
6031         function to ...
6032         * manual/timeval_subtract.c.texi: ... here, new file.
6033
6034 2012-03-02  David S. Miller  <davem@davemloft.net>
6035
6036         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
6037
6038 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
6039
6040         [BZ #3976]
6041         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
6042         (__sin): Save and restore rounding mode and use round-to-nearest
6043         for all computations.
6044         (__cos): Save and restore rounding mode and use round-to-nearest
6045         for all computations.
6046         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
6047         <fenv.h>.
6048         (tan): Save and restore rounding mode and use round-to-nearest for
6049         all computations.
6050         * math/libm-test.inc (cos_test_tonearest): New function.
6051         (cos_test_towardzero): Likewise.
6052         (cos_test_downward): Likewise.
6053         (cos_test_upward): Likewise.
6054         (sin_test_tonearest): Likewise.
6055         (sin_test_towardzero): Likewise.
6056         (sin_test_downward): Likewise.
6057         (sin_test_upward): Likewise.
6058         (tan_test_tonearest): Likewise.
6059         (tan_test_towardzero): Likewise.
6060         (tan_test_downward): Likewise.
6061         (tan_test_upward): Likewise.
6062         (main): Call the new functions.
6063         * sysdeps/i386/fpu/libm-test-ulps: Update.
6064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6065
6066         [BZ #10135]
6067         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
6068         small n, then large n, before computing and testing k+n.
6069         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6070         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6071         Likewise.
6072         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6073         Likewise.
6074         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
6075         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6076         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6077         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6078         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6079         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6080         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6081         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
6082         * math/libm-test.inc (scalbn_test): Add more tests.
6083         (scalbln_test): Likewise.
6084
6085         * manual/filesys.texi (mode_t): Describe constraints on size and
6086         signedness, not exact equivalence to a particular type.
6087         (ino_t): Likewise.
6088         (ino64_t): Likewise.
6089         (dev_t): Likewise.
6090         (nlink_t): Likewise.
6091         (blkcnt_t): Likewise.
6092         (blkcnt64_t): Likewise.
6093         * manual/llio.texi (off_t): Likewise.
6094
6095         [BZ #3976]
6096         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
6097         (__ieee754_exp): Save and restore rounding mode and use
6098         round-to-nearest for all computations.
6099         * math/libm-test.inc (exp_test_tonearest): New function.
6100         (exp_test_towardzero): Likewise.
6101         (exp_test_downward): Likewise.
6102         (exp_test_upward): Likewise.
6103         (main): Call the new functions.
6104         * sysdeps/i386/fpu/libm-test-ulps: Update.
6105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6106
6107 2012-03-01  Chris Demetriou  <cgd@google.com>
6108
6109         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
6110         have predictable order.
6111
6112 2012-03-01  David S. Miller  <davem@davemloft.net>
6113
6114         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
6115
6116         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
6117         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
6118         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
6119         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
6120
6121         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
6122         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
6123         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
6124         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
6125         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
6126         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
6127         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
6128         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
6129         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
6130
6131         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6132
6133         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
6134         * sysdeps/sparc/fpu/libm-test-ulps: to here.
6135         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
6136
6137         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
6138         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6139         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6140         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
6141         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
6142         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
6143         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
6144         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6145         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6146         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
6147         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
6148         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6149         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6150         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6151         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6152         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6153         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
6154         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
6155         * sysdeps/sparc/elf/configure: Regenerated.
6156
6157 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
6158
6159         * configure.in (AS, LD): Require binutils 2.20 or later.
6160         * configure: Regenerated.
6161         * manual/install.texi (Tools for Compilation): Give binutils 2.20
6162         as required minimum version.
6163         * INSTALL: Regenerated.
6164
6165         [BZ #2541]
6166         [BZ #4108]
6167         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
6168         before squaring exponent.
6169         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
6170         bottom long double and 27 bits of top long double before squaring
6171         exponent.
6172         * math/libm-test.inc (erfc_test): Add more tests.
6173         * sysdeps/i386/fpu/libm-test-ulps: Update.
6174         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6176
6177 2012-03-01  Kai Tietz  <ktietz@redhat.com>
6178
6179         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
6180         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
6181         containing bit-fields.
6182         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6183         * soft-fp/single.h (_FP_UNION_S): Likewise.
6184         * soft-fp/double.h (_FP_UNION_D): Likewise.
6185
6186 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6187
6188         [BZ #13786]
6189         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
6190         not include ../strcmp.S.
6191         [USE_AS_STRNCASECMP_L]: Likewise.
6192         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
6193         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
6194         * sysdeps/i386/i686/multiarch/strncase_l-c.c
6195         (__strncasecmp_l_ia32): Define as alias to
6196         __strncasecmp_l_nonascii.
6197
6198         [BZ #5794]
6199         * math/libm-test.inc (expm1_test): Add test for bug 5794.
6200         * sysdeps/i386/fpu/libm-test-ulps: Update.
6201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6202
6203         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
6204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6205
6206 2012-02-29  Jeff Law  <law@redhat.com>
6207
6208         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
6209         out of bounds read.
6210
6211 2012-02-29  Marek Polacek  <polacek@redhat.com>
6212
6213         [BZ #13706]
6214         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
6215         * elf/Makefile: Add rules to run tst-unused-dep.out.
6216
6217 2012-02-28  David S. Miller  <davem@davemloft.net>
6218
6219         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
6220         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
6221         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
6222         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
6223         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
6224         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
6225
6226 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6227
6228         * math/libm-test.inc (llround_test): Move one test from
6229         lround_test.  Use TEST_f_L in moved test.
6230         (lround_test): Move misplaced test to llround_test.  Add testcase
6231         from bug 2561.
6232
6233 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
6234
6235         * sysdeps/x86_64/fpu/e_expf.S: New file.
6236         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
6237
6238 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
6239
6240         [BZ #13637]
6241         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
6242         of remain_len that may cause incomplete multi-byte character and
6243         false match.
6244         * posix/bug-regex33.c: New file.
6245         * posix/Makefile (tests): Add bug-regex33.
6246
6247 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
6248
6249         * manual/macros.texi: New file.
6250         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
6251         * manual/libc.texinfo: Include macros.texi.
6252         * manual/creatute.texi: Likewise.
6253         * manual/install.texi: Likewise.
6254         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
6255         @glibcadj{} in references to the GNU C Library.
6256         * manual/charset.texi: Likewise.
6257         * manual/conf.texi: Likewise.
6258         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
6259         when not using those macros.
6260         * manual/creature.texi: Likewise.
6261         * manual/crypt.texi: Likewise.
6262         * manual/errno.texi: Likewise.
6263         * manual/filesys.texi: Likewise.
6264         * manual/header.texi: Likewise.
6265         * manual/install.texi: Likewise.
6266         * manual/intro.texi: Likewise.
6267         * manual/io.texi: Likewise.
6268         * manual/job.texi: Likewise.
6269         * manual/lang.texi: Likewise.
6270         * manual/libc.texiinfo: Likewise.
6271         * manual/llio.texi: Likewise.
6272         * manual/locale.texi: Likewise.
6273         * manual/maint.texi: Likewise.
6274         * manual/math.texi: Likewise.
6275         * manual/memory.texi: Likewise.
6276         * manual/message.texi: Likewise.
6277         * manual/nss.texi: Likewise.
6278         * manual/pattern.texi: Likewise.
6279         * manual/process.texi: Likewise.
6280         * manual/resource.texi: Likewise.
6281         * manual/search.texi: Likewise.
6282         * manual/setjmp.texi: Likewise.
6283         * manual/signal.texi: Likewise.
6284         * manual/socket.texi: Likewise.
6285         * manual/startup.texi: Likewise.
6286         * manual/stdio.texi: Likewise.
6287         * manual/string.texi: Likewise.
6288         * manual/sysinfo.texi: Likewise.
6289         * manual/syslog.texi: Likewise.
6290         * manual/terminal.texi: Likewise.
6291         * manual/time.texi: Likewise.
6292         * manual/users.texi: Likewise.
6293         * INSTALL: Regenerated.
6294         * NOTES: Regenerated.
6295         * sysdeps/gnu/errlist.c: Regenerated.
6296
6297 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
6298
6299         * include/dirent.h: Include <dirstream.h> before
6300         <dirent/dirent.h>.
6301
6302 2012-02-28  David S. Miller  <davem@davemloft.net>
6303
6304         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
6305         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
6306         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
6307         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
6308
6309 2012-02-27  David S. Miller  <davem@davemloft.net>
6310
6311         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
6312         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
6313         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
6314         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
6315
6316         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
6317         frame pointer instead of stack pointer relative arg slot.
6318         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6319         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6320         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6321
6322 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
6323
6324         [BZ #3992]
6325         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
6326
6327 2012-02-27  David S. Miller  <davem@davemloft.net>
6328
6329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
6330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6331         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
6333         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6334         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6335         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
6336         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
6337
6338 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6339
6340         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
6341         later.  Allow versions 5-9.
6342         * configure: Regenerated.
6343         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
6344         required minimum version and 4.6 as recommended version.  Do not
6345         mention bugs in GCC 2.7 and 2.8.
6346         * INSTALL: Regenerated.
6347
6348 2012-02-27  David S. Miller  <davem@davemloft.net>
6349
6350         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
6351         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
6352         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
6353         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
6354         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
6355         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
6356         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
6357         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
6358
6359         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
6360         manipulate bits before adding and subtracting TWO112[sx].
6361         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6362
6363 2012-02-27  Roland McGrath  <roland@hack.frob.com>
6364
6365         [BZ #13775]
6366         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
6367         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
6368         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
6369         being in POSIX, because they are in 1003.1-2008.
6370
6371         * rt/tst-aio.c: Include <fcntl.h>.
6372         * rt/tst-aio7.c: Likewise.
6373         * rt/tst-aio64.c: Likewise.
6374
6375         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
6376
6377 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6378
6379         * manual/install.texi (--with-headers): Describe headers as
6380         interface headers, not private headers.
6381         (Specific advice for GNU/Linux systems): Describe use of headers
6382         from "make headers_install", not private headers from older
6383         kernels.
6384         * INSTALL: Regenerated.
6385         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
6386         Change to 2.6.19.
6387         * sysdeps/unix/sysv/linux/configure: Regenerated.
6388
6389         * manual/llio.texi (fclean): Remove documentation.
6390
6391         * manual/Makefile (libc-texi-generated): New variable.  Include
6392         version.texi.
6393         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
6394         $(libc-texi-generated), not duplicated list of files.
6395         (version.texi, stamp-version): New rules.
6396         (realclean): Remove $(libc-texi-generated), not individual files
6397         from that list.  Do not remove dir-add.texinfo.
6398         * manual/libc.texinfo: Comment out uses of edition numbers and
6399         references to printed manual.  Remove last-updated dates.
6400         (EDITION): Comment out.
6401         (ISBN): Likewise.
6402         (VERSION, UPDATED): Remove.
6403         (version.texi): Include.
6404
6405 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6406
6407         * sysdeps/posix/spawni.c: Include <signal.h>.
6408         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
6409         * sysdeps/pthread/aio_fsync.c: Likewise.
6410
6411 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
6412
6413         * conform/Makefile (tests): Run only when not cross-compiling and
6414         when fast-check is not defined.
6415
6416         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
6417         * conform/data/limits.h-data: Fixes for POSIX2008.
6418         * conform/run-conformtest.sh: Run all tests.
6419         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
6420         headers.
6421         * include/bits/dlfcn.h: Likewise.
6422         * include/langinfo.h: Likewise.
6423         * include/monetary.h: Likewise.
6424         * include/sys/poll.h: Likewise.
6425
6426         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
6427         for __USE_GNU.
6428         * posix/spawn.h: Define __need_sigset_t.
6429         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
6430         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
6431         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
6432         to get sigevent_t only.
6433         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
6434         only for __USE_GNU.
6435         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6436         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6437         process_vm_writev only for __USE_GNU.
6438         * termios/termios.h: Declare tcgetsid also for POSIX2008.
6439
6440         * conform/Makefile: For now ignore errors from run-conformtest.
6441         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
6442         POSIX to avoid namespace pollution.  Don't prepend headers.
6443         * conform/data/aio.h-data: Fixes for POSIX testing.
6444         * conform/data/fcntl.h-data: Likewise.
6445         * conform/data/glob.h-data: Likewise.
6446         * conform/data/grp.h-data: Likewise.
6447         * conform/data/pthread.h-data: Likewise.
6448         * conform/data/pwd.h-data: Likewise.
6449         * conform/data/signal.h-data: Likewise.
6450         * conform/data/spawn.h-data: Likewise.
6451         * conform/data/stdio.h-data: Likewise.
6452         * conform/data/stdlib.h-data: Likewise.
6453         * conform/data/stropts.h-data: Likewise.
6454         * conform/data/sys/mman.h-data: Likewise.
6455         * conform/data/sys/stat.h-data: Likewise.
6456         * conform/data/sys/types.h-data: Likewise.
6457         * conform/data/sys/wait.h-data: Likewise.
6458         * conform/data/time.h-data: Likewise.
6459         * conform/data/unistd.h-data: Likewise.
6460         * conform/data/utime.h-data: Likewise.
6461
6462         * io/sys/stat.h: fchmod was always in POSIX.
6463         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
6464         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
6465         * rt/aio.h: Define __need_timespec before including <time.h>.
6466         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
6467         struct.  Add forward declaration of pthread_attr_t and use it in
6468         sigevent.
6469         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6470         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6471         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
6472         always remove CLK_TCK definition.
6473
6474 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
6475
6476         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
6477
6478 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
6479
6480         * conform/run-conformtest.sh: New file.
6481         * conform/Makefile: Run run-conformtest for tests.
6482         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
6483         support.
6484
6485         * conform/data/uchar.h-data: New file.
6486         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
6487         * conform/data/arpa/inet.h-data: Likewise.
6488         * conform/data/assert.h-data: Likewise.
6489         * conform/data/complex.h-data: Likewise.
6490         * conform/data/cpio.h-data: Likewise.
6491         * conform/data/ctype.h-data: Likewise.
6492         * conform/data/dirent.h-data: Likewise.
6493         * conform/data/dlfcn.h-data: Likewise.
6494         * conform/data/errno.h-data: Likewise.
6495         * conform/data/fcntl.h-data: Likewise.
6496         * conform/data/float.h-data: Likewise.
6497         * conform/data/fmtmsg.h-data: Likewise.
6498         * conform/data/fnmatch.h-data: Likewise.
6499         * conform/data/ftw.h-data: Likewise.
6500         * conform/data/glob.h-data: Likewise.
6501         * conform/data/grp.h-data: Likewise.
6502         * conform/data/iconv.h-data: Likewise.
6503         * conform/data/inttypes.h-data: Likewise.
6504         * conform/data/langinfo.h-data: Likewise.
6505         * conform/data/libgen.h-data: Likewise.
6506         * conform/data/limits.h-data: Likewise.
6507         * conform/data/locale.h-data: Likewise.
6508         * conform/data/math.h-data: Likewise.
6509         * conform/data/monetary.h-data: Likewise.
6510         * conform/data/mqueue.h-data: Likewise.
6511         * conform/data/ndbm.h-data: Likewise.
6512         * conform/data/net/if.h-data: Likewise.
6513         * conform/data/netdb.h-data: Likewise.
6514         * conform/data/netinet/in.h-data: Likewise.
6515         * conform/data/nl_types.h-data: Likewise.
6516         * conform/data/poll.h-data: Likewise.
6517         * conform/data/pthread.h-data: Likewise.
6518         * conform/data/pwd.h-data: Likewise.
6519         * conform/data/regex.h-data: Likewise.
6520         * conform/data/sched.h-data: Likewise.
6521         * conform/data/search.h-data: Likewise.
6522         * conform/data/semaphore.h-data: Likewise.
6523         * conform/data/setjmp.h-data: Likewise.
6524         * conform/data/signal.h-data: Likewise.
6525         * conform/data/spawn.h-data: Likewise.
6526         * conform/data/stdarg.h-data: Likewise.
6527         * conform/data/stdio.h-data: Likewise.
6528         * conform/data/stdlib.h-data: Likewise.
6529         * conform/data/string.h-data: Likewise.
6530         * conform/data/strings.h-data: Likewise.
6531         * conform/data/stropts.h-data: Likewise.
6532         * conform/data/sys/ipc.h-data: Likewise.
6533         * conform/data/sys/mman.h-data: Likewise.
6534         * conform/data/sys/msg.h-data: Likewise.
6535         * conform/data/sys/resource.h-data: Likewise.
6536         * conform/data/sys/select.h-data: Likewise.
6537         * conform/data/sys/sem.h-data: Likewise.
6538         * conform/data/sys/shm.h-data: Likewise.
6539         * conform/data/sys/socket.h-data: Likewise.
6540         * conform/data/sys/stat.h-data: Likewise.
6541         * conform/data/sys/statvfs.h-data: Likewise.
6542         * conform/data/sys/time.h-data: Likewise.
6543         * conform/data/sys/timeb.h-data: Likewise.
6544         * conform/data/sys/times.h-data: Likewise.
6545         * conform/data/sys/types.h-data: Likewise.
6546         * conform/data/sys/uio.h-data: Likewise.
6547         * conform/data/sys/un.h-data: Likewise.
6548         * conform/data/sys/utsname.h-data: Likewise.
6549         * conform/data/sys/wait.h-data: Likewise.
6550         * conform/data/syslog.h-data: Likewise.
6551         * conform/data/tar.h-data: Likewise.
6552         * conform/data/termios.h-data: Likewise.
6553         * conform/data/utime.h-data: Likewise.
6554         * conform/data/utmpx.h-data: Likewise.
6555         * conform/data/varargs.h-data: Likewise.
6556         * conform/data/wchar.h-data: Likewise.
6557         * conform/data/wctype.h-data: Likewise.
6558         * conform/data/wordexp.h-data: Likewise.
6559
6560         * include/stropts.h: New file.
6561         * include/uchar.h: New file.
6562         * include/aio.h: Changes to allow conformtest.pl to use the headers.
6563         * include/assert.h: Likewise.
6564         * include/ctype.h: Likewise.
6565         * include/dirent.h: Likewise.
6566         * include/dlfcn.h: Likewise.
6567         * include/fcntl.h: Likewise.
6568         * include/fnmatch.h: Likewise.
6569         * include/glob.h: Likewise.
6570         * include/grp.h: Likewise.
6571         * include/libio.h: Likewise.
6572         * include/locale.h: Likewise.
6573         * include/math.h: Likewise.
6574         * include/net/if.h: Likewise.
6575         * include/netdb.h: Likewise.
6576         * include/netinet/in.h: Likewise.
6577         * include/pthread.h: Likewise.
6578         * include/pwd.h: Likewise.
6579         * include/regex.h: Likewise.
6580         * include/sched.h: Likewise.
6581         * include/search.h: Likewise.
6582         * include/setjmp.h: Likewise.
6583         * include/signal.h: Likewise.
6584         * include/stdio.h: Likewise.
6585         * include/stdlib.h: Likewise.
6586         * include/string.h: Likewise.
6587         * include/sys/cdefs.h: Likewise.
6588         * include/sys/mman.h: Likewise.
6589         * include/sys/msg.h: Likewise.
6590         * include/sys/resource.h: Likewise.
6591         * include/sys/select.h: Likewise.
6592         * include/sys/socket.h: Likewise.
6593         * include/sys/stat.h: Likewise.
6594         * include/sys/statvfs.h: Likewise.
6595         * include/sys/time.h: Likewise.
6596         * include/sys/times.h: Likewise.
6597         * include/sys/uio.h: Likewise.
6598         * include/sys/utsname.h: Likewise.
6599         * include/sys/wait.h: Likewise.
6600         * include/termios.h: Likewise.
6601         * include/time.h: Likewise.
6602         * include/ulimit.h: Likewise.
6603         * include/unistd.h: Likewise.
6604         * include/utime.h: Likewise.
6605         * include/wchar.h: Likewise.
6606         * include/wctype.h: Likewise.
6607         * include/wordexp.h: Likewise.
6608
6609         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
6610
6611         * time/time.h: TIME_UTC must be a macro.
6612         Make timespec_get available for ISO C11 only as well.
6613
6614 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
6615
6616         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
6617         Reported by Peng Haitao <penght@cn.fujitsu.com>.
6618
6619 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6620
6621         * configure.in: Use -o not -a in test for unsupported multi-arch.
6622
6623 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6624
6625         * manual/texinfo.tex: Update to version 2012-01-19.16.
6626
6627 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6628
6629         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
6630
6631 2012-02-24  Roland McGrath  <roland@hack.frob.com>
6632
6633         [BZ #13738]
6634         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
6635         * manual/fdl-1.3.texi: New file.
6636         * manual/fdl-1.1.texi: File removed.
6637
6638         [BZ #13738]
6639         * manual/libc.texinfo (FDL_VERSION): New @set.
6640         Use it for mention of FDL in cover text.
6641         (Documentation License): Use it in @include file name.
6642
6643 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6644             Roland McGrath  <roland@hack.frob.com>
6645
6646         [BZ #5461]
6647         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
6648         not LONG_LONG_MAX and LONG_LONG_MIN.
6649         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
6650         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
6651         name.
6652         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
6653
6654 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6655
6656         [BZ #2547]
6657         [BZ #11365]
6658         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
6659         manipulate bits before adding and subtracting TWO23[sx].
6660         * math/libm-test.inc (nearbyint_test): Add more tests.
6661
6662 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6663
6664         [BZ #2548]
6665         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
6666         bits before adding and subtracting TWO23[sx].
6667         * math/libm-test.inc (rint_test): Add more tests.
6668         (rint_test_tonearest): Likewise.
6669         (rint_test_towardzero): Likewise.
6670         (rint_test_downward): Likewise.
6671         (rint_test_upward: Likewise.
6672
6673 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6674
6675         [BZ #10110]
6676         * include/stdc-predef.h: New file.  Extracted from features.h.
6677         * include/features.h: Include stdc-predef.h.
6678         * Makefile (headers): Add stdc-predef.h.
6679         * CONFORMANCE (Compiler limitations): Update.
6680
6681 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6682
6683         * manual/libc.texinfo (VERSION, UPDATED): Revert.
6684
6685 2012-02-21  David S. Miller  <davem@davemloft.net>
6686
6687         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
6688         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6689
6690 2012-02-20  David S. Miller  <davem@davemloft.net>
6691
6692         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
6693         using a normal save/restore sequence, rather than allocating a
6694         dummy stack frame just to store a frame pointer and restore.
6695         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6696
6697 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6698
6699         * manual/install.texi: Fix stray word in line-wrapped comment.
6700
6701 2012-02-20  David S. Miller  <davem@davemloft.net>
6702
6703         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
6704         both binutils and gcc support GOTDATA.
6705
6706         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
6707         "rd %pc" in the PIC register setup sequences.
6708
6709         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
6710         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
6711         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6712         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6713         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6714         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6715         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6716         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6717         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6718         (SYSCALL_ERROR_HANDLER): Likewise.
6719         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6720         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6721         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6722         (SYSCALL_ERROR_HANDLER): Likewise.
6723
6724         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
6725         (HAVE_GCC_GOTDATA): New.
6726         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
6727         relocation support in both binutils and gcc.
6728         * sysdeps/sparc/elf/configure: Regenerate.
6729
6730         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
6731         * sysdeps/sparc/sparc32/elf/configure: Delete.
6732         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
6733         * sysdeps/sparc/sparc64/elf/configure: Delete.
6734         * sysdeps/sparc/elf/configure.in: New file.
6735         * sysdeps/sparc/elf/configure: Generate.
6736
6737         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
6738         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
6739         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6740         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
6741         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
6742
6743 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6744
6745         * manual/install.texi: Do not mention specific glibc version
6746         numbers.
6747         * manual/libc.texinfo (VERSION, UPDATED): Update.
6748         (@copying): Use @copyright{} and range of years.
6749
6750 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6751
6752         [BZ #13695]
6753         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
6754         [crti.S not in sysdirs] (generated): Do not append.
6755         [crti.S not in sysdirs] (omit-deps): Likewise.
6756         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
6757         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
6758         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
6759         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
6760         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
6761         Likewise.
6762         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
6763         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
6764         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
6765         * csu/defs.awk: Remove file.
6766         * sysdeps/generic/initfini.c: Likewise.
6767         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
6768         variable.
6769         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
6770         Likewise.
6771
6772 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6773
6774         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
6775         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
6776         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
6777         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
6778         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6779         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
6780         <bits/epoll.h>.
6781         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
6782         (__EPOLL_PACKED): Define to empty if not defined by
6783         <bits/epoll.h>.
6784         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
6785         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6786         bits/epoll.h.
6787
6788 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6789
6790         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
6791         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
6792         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
6793         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
6794         <bits/timerfd.h>.
6795         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
6796         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6797         bits/timerfd.h.
6798
6799 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6800
6801         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
6802         in C locale.
6803         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6804         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6805         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
6806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6807
6808 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
6809
6810         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6811         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6812
6813 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
6814
6815         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
6816         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
6817         defined.
6818         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
6819         Likewise.
6820         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
6821         entry for 2.16.
6822
6823 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
6824
6825         * math/w_acos.c: Use non-signaling floating-point comparisons.
6826         * math/w_acosf.c: Likewise.
6827         * math/w_acosh.c: Likewise.
6828         * math/w_acoshf.c: Likewise.
6829         * math/w_acoshl.c: Likewise.
6830         * math/w_acosl.c: Likewise.
6831         * math/w_asin.c: Likewise.
6832         * math/w_asinf.c: Likewise.
6833         * math/w_asinl.c: Likewise.
6834         * math/w_atanh.c: Likewise.
6835         * math/w_atanhf.c: Likewise.
6836         * math/w_atanhl.c: Likewise.
6837         * math/w_exp2.c: Likewise.
6838         * math/w_exp2f.c: Likewise.
6839         * math/w_exp2l.c: Likewise.
6840         * math/w_j0.c: Likewise.
6841         * math/w_j0f.c: Likewise.
6842         * math/w_j0l.c: Likewise.
6843         * math/w_j1.c: Likewise.
6844         * math/w_j1f.c: Likewise.
6845         * math/w_j1l.c: Likewise.
6846         * math/w_jn.c: Likewise.
6847         * math/w_jnf.c: Likewise.
6848         * math/w_log.c: Likewise.
6849         * math/w_log10.c: Likewise.
6850         * math/w_log10f.c: Likewise.
6851         * math/w_log10l.c: Likewise.
6852         * math/w_log2.c: Likewise.
6853         * math/w_log2f.c: Likewise.
6854         * math/w_log2l.c: Likewise.
6855         * math/w_logf.c: Likewise.
6856         * math/w_logl.c: Likewise.
6857         * math/w_sqrt.c: Likewise.
6858         * math/w_sqrtf.c: Likewise.
6859         * math/w_sqrtl.c: Likewise.
6860         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6861         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
6862         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6863         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6864         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6865
6866 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6867
6868         [BZ #9739]
6869         * manual/string.texi (strnlen): Use correct parameter name in
6870         equivalent expression.
6871
6872 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6873
6874         [BZ #11174]
6875         * manual/users.texi (seteuid): Consistently use neweuid for
6876         argument name.
6877
6878 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6879
6880         [BZ #13704]
6881         * manual/nss.texi (Services in the NSS configuration): Correct
6882         list of services in example configuration file.
6883
6884 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
6885
6886         [BZ #11322]
6887         * manual/arith.texi: Remove statements about negative zero
6888         behaving identically to zero.
6889
6890 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6891
6892         [BZ #5993]
6893         * manual/install.texi: Do not document upgrading from libc5.
6894
6895 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6896
6897         [BZ #4596]
6898         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
6899
6900 2012-02-18  David S. Miller  <davem@davemloft.net>
6901
6902         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
6903         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
6904         %o7 across the call.
6905         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
6906         instead.
6907         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
6908         SETUP_PIC_REG_LEAF.
6909         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6910         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
6911         * sysdeps/sparc/crtn.S: Likewise.
6912
6913 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
6914
6915         * aout/Makefile: Remove.
6916
6917 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
6918
6919         [BZ #13058]
6920         * manual/examples/argp-ex1.c (main): Format definition in GNU
6921         style.
6922         * manual/examples/argp-ex2.c (main): Likewise.
6923         * manual/examples/argp-ex3.c (main): Likewise.
6924         * manual/examples/argp-ex4.c (main): Likewise.
6925         * manual/examples/longopt.c (main): Use new-style prototype
6926         definition.
6927         * manual/examples/strncat.c (main): Specify return type and use
6928         (void) for arguments.
6929         * manual/examples/subopt.c (main): Use char **argv argument.
6930
6931 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6932
6933         [BZ #5077]
6934         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
6935         rounding modes.
6936
6937 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
6938
6939         [BZ #6907]
6940         * manual/string.texi (strchr): Change when strchrnul is
6941         recommended.
6942
6943 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
6944
6945         [BZ #174]
6946         * manual/locale.texi (setlocale): Document LOCPATH.
6947
6948 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6949
6950         [BZ #10210]
6951         * manual/process.texi (execle): Move @dots{} before last argument.
6952
6953 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
6954
6955         [BZ #12047]
6956         * manual/charset.texi (Generic Charset Conversion): Fix typo
6957         (LC_TYPE -> LC_CTYPE).
6958
6959 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
6960
6961         [BZ #5805]
6962         * manual/arith.texi (scalbn): Use @var{} on parameter names.
6963         (scalbnf): Likewise.
6964         (scalbnl): Likewise.
6965         (scalbln): Likewise.
6966         (scalblnf): Likewise.
6967         (scalblnl): Likewise.
6968         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
6969         (vwarnx): Likewise.
6970         (verr): Likewise.
6971         (verrx): Likewise.
6972         * manual/filesys.texi (telldir): Use braces around return type.
6973         * manual/llio.texi (mmap): Add space after comma.
6974         (mmap64): Likewise.
6975         * manual/math.texi (jn): Use @var{} on parameter names.
6976         (jnf): Likewise.
6977         (jnl): Likewise.
6978         (yn): Likewise.
6979         (ynf): Likewise.
6980         (ynl): Likewise.
6981         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
6982         line.
6983         * manual/resource.texi (ulimit): Use @dots{} instead of literal
6984         "...".
6985         (sched_get_priority_min): Remove semicolon on @deftypefun line.
6986         (sched_get_priority_max): Likewise.
6987         * manual/signal.texi (sigvec): Add space after comma.
6988         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
6989         names.
6990         (if_indextoname): Likewise.
6991         (if_freenameindex): Likewise.
6992         (sendto): Use ',' instead of '.' in prototype.
6993         * manual/startup.texi (syscall): Use @dots{} instead of literal
6994         "...".
6995         * manual/stdio.texi (__fpending): Separate initial words of
6996         paragraph from @deftypefun line.
6997         * manual/syslog.texi (syslog): Use @dots{} instead of literal
6998         "...".
6999         (vsyslog): Use @var{} on parameter names.
7000         * manual/terminal.texi (stty): Use @var{} on parameter names.
7001         * manual/users.texi (getutmp): Use @var{} on parameter names.
7002         (getutmpx): Likewise.
7003
7004 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7005
7006         [BZ #6884]
7007         * manual/stdio.texi (fopen): Fix typos in description of
7008         ",ccs=STRING".
7009
7010 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
7011
7012         [BZ #4026]
7013         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
7014         get clock_id definition.
7015
7016 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
7017
7018         [BZ #4822]
7019         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
7020         (madvise): Cast every argument to void on its own.
7021
7022 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7023
7024         [BZ #9902]
7025         * manual/startup.texi (Exit Status): Fix typo.
7026
7027 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7028
7029         [BZ #10140]
7030         * manual/examples/argp-ex1.c: Include <stdlib.h>.
7031         * manual/examples/argp-ex2.c: Likewise.
7032         * manual/examples/argp-ex3.c: Likewise.
7033
7034 2012-02-16  Richard Henderson  <rth@redhat.com>
7035
7036         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
7037         * sysdeps/s390/s390-32/initfini.c: Remove.
7038         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
7039         * sysdeps/s390/s390-64/initfini.c: Remove.
7040
7041 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7042
7043         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
7044         compiler output for sysdeps/generic/initfini.c.
7045         * sysdeps/sh/elf/initfini.c: Remove file.
7046
7047 2012-02-16  David S. Miller  <davem@davemloft.net>
7048
7049         [BZ #11494]
7050         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
7051
7052         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
7053         * sysdeps/sparc/crti.S: New file.
7054         * sysdeps/sparc/crtn.S: New file.
7055         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
7056         * sysdeps/sparc/sparc64/Makefile: Likewise.
7057
7058 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
7059
7060         [BZ #3335]
7061         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
7062
7063 2012-02-15  Roland McGrath  <roland@hack.frob.com>
7064
7065         [BZ #4822]
7066         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
7067
7068         * mach/devstream.c (cookie_io_functions_t): Macro removed.
7069         (write, read, close): Likewise.
7070         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7071
7072 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
7073
7074         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
7075         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
7076         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
7077         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
7078         <bits/signalfd.h>.
7079         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
7080         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7081         bits/signalfd.h.
7082
7083 2012-02-14  Marek Polacek  <polacek@redhat.com>
7084
7085         * sysdeps/x86_64/crti.S: New file.
7086         * sysdeps/x86_64/crtn.S: New file.
7087         * sysdeps/x86_64/elf/initfini.c: Remove file.
7088
7089 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7090
7091         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
7092         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
7093         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
7094         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
7095         <bits/inotify.h>.
7096         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
7097         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7098         bits/inotify.h.
7099
7100 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7101
7102         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
7103         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
7104         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
7105         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
7106         <bits/eventfd.h>.
7107         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
7108         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7109         bits/eventfd.h.
7110
7111 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
7112
7113         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
7114         __feraiseexcept instead of feraiseexcept.
7115
7116         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
7117         nanosleep invocations.
7118         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
7119         strings, and add error checking for a nanosleep invocations.
7120
7121 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7122
7123         Replace FSF snail mail address with URLs, as per GNU coding standards.
7124         Most of the snail mail addresses were wrong anyway, and omitting
7125         them makes the source code easier to maintain.  Almost all of the
7126         changes are to license notices and to locale LC_IDENTIFICATION
7127         addresses, except for this one:
7128         * manual/libc.texinfo: In "Published by", give the FSF's URL,
7129         not its snail mail address.
7130
7131 2012-02-09  Richard Henderson  <rth@twiddle.net>
7132
7133         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
7134         of kernel-features.h.
7135
7136         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
7137
7138 2012-02-08  Marek Polacek  <polacek@redhat.com>
7139
7140         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
7141         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
7142         * sysdeps/gnu/_G_config.h: Likewise.
7143         * sysdeps/generic/_G_config.h: Likewise.
7144
7145 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
7146
7147         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
7148         tests.
7149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7150
7151         * sysdeps/powerpc/powerpc32/crti.S: New file.
7152         * sysdeps/powerpc/powerpc32/crtn.S: New file.
7153         * sysdeps/powerpc/powerpc64/crti.S: New file.
7154         * sysdeps/powerpc/powerpc64/crtn.S: New file.
7155
7156         * Makeconfig (have-initfini): Don't set.
7157         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
7158         * configure.in (nopic_initfini): Don't substitute.
7159         * config.h.in (HAVE_INITFINI): Don't #undef.
7160         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
7161         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
7162
7163 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
7164
7165         Support crti.S and crtn.S provided directly by architectures.
7166         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
7167         [crti.S in sysdirs] (omit-deps): Likewise.
7168         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
7169         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
7170         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
7171         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
7172         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
7173         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
7174         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
7175         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
7176         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
7177         compiler output for sysdeps/generic/initfini.c.
7178         * sysdeps/i386/elf/Makefile: Remove file.
7179         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
7180
7181 2012-02-07  Marek Polacek  <polacek@redhat.com>
7182
7183         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
7184         * sysdeps/gnu/_G_config.h: Likewise.
7185         * sysdeps/mach/hurd/_G_config.h: Likewise.
7186
7187 2012-02-07  Marek Polacek  <polacek@redhat.com>
7188
7189         * math/Makefile (tests): Add tst-CMPLX2.
7190         * math/tst-CMPLX2.c: New file.
7191
7192 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
7193
7194         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7195
7196         * math/libm-test.inc (jn_test): Add missing L suffix.
7197
7198 2012-02-06  Marek Polacek  <polacek@redhat.com>
7199
7200         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
7201         * sysdeps/i386/fpu/e_powf.S: Likewise.
7202         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7203         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7204         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7205         * sysdeps/i386/fpu/e_pow.S: Likewise.
7206         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
7207         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7208         * sysdeps/i386/fpu/s_expm1.S: Likewise.
7209         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
7210         * sysdeps/i386/fpu/e_log2.S: Likewise.
7211         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7212         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7213         * sysdeps/i386/fpu/e_powl.S: Likewise.
7214         * sysdeps/i386/fpu/s_log1p.S: Likewise.
7215         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7216         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
7217         * sysdeps/i386/fpu/e_logl.S: Likewise.
7218         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
7219         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
7220         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
7221         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
7222         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7223         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7224         * sysdeps/i386/fpu/e_log.S: Likewise.
7225         * sysdeps/i386/fpu/s_cexp.S: Likewise.
7226         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7227         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
7228         * sysdeps/i386/fpu/e_logf.S: Likewise.
7229         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7230         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7231         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
7232         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
7233         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7234         * sysdeps/i386/fpu/e_log10.S: Likewise.
7235         * sysdeps/i386/fpu/s_frexp.S: Likewise.
7236         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7237         * sysdeps/i386/fpu/s_asinh.S: Likewise.
7238         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
7239         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7240         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
7241         * sysdeps/i386/asm-syntax.h: Likewise.
7242         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7243         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7244         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7245         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
7246         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
7247         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7248         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
7249         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
7250         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7251         * sysdeps/powerpc/sysdep.h: Likewise.
7252         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7253         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7254
7255 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7256
7257         [BZ #411]
7258         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
7259
7260 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7261
7262         * sysdeps/i386/sysdep.h: Include <features.h>.
7263         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
7264         version.
7265
7266 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
7267
7268         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
7269         Define.
7270         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
7271         LOAD_PIC_REG_STR.
7272
7273 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7274
7275         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
7276         (SETUP_PIC_REG): Use GET_PC_THUNK.
7277         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
7278         macro.
7279
7280 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7281
7282         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
7283         for non-PIC compilation.
7284         (SETUP_PIC_REG): Add .p2align directive.
7285         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
7286         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
7287         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7288         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7289         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
7290         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7291         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
7292         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
7293         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7294         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7295         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7296         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7297         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7298         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7299         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7300         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7301         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7302         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7303         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7304         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7305         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7306         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7307         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7308         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7309         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
7310         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
7311         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7312         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7313         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7314         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7315         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7316         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7317         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7318         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7319         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7320         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7321         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7322         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7323         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7324         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7325         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7326
7327 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7328
7329         * math/tst-CMPLX.c: Include <stdio.h>.
7330
7331 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
7332
7333         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
7334         float.
7335         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7336         * sysdeps/sparc/bits/mathdef.h: Likewise.
7337
7338 2012-01-31  Marek Polacek  <polacek@redhat.com>
7339
7340         * libio/libio.h: Don't define _PARAMS.
7341         * locale/programs/config.h: Don't define PARAMS.
7342         * stdlib/strtol_l.c: Likewise.
7343         (__strtol_l): Remove PARAMS from the prototype.
7344
7345 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
7346
7347         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
7348         names.  Just use the correct names.  Remove unnecessary wrapper
7349         functions.
7350         * malloc/arena.c: Likewise.
7351         * malloc/hooks.c: Likewise.
7352
7353         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
7354         ARENA_TEST says not to.  Simplify test for creation of a new arena.
7355         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
7356
7357 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
7358
7359         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
7360         into tail calls.
7361         (update_get_addr): New function.
7362         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
7363         GET_ADDR_MODULE parameter.
7364
7365 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7366
7367         * crypt/cert.c: Remove __STDC__ conditionals.
7368         * crypt/crypt-entry.c: Likewise.
7369         * crypt/crypt_util.c: Likewise.
7370         * libio/filedoalloc.c: Likewise.
7371         * libio/fileops.c: Likewise.
7372         * libio/genops.c: Likewise.
7373         * libio/iofclose.c: Likewise.
7374         * libio/iofdopen.c: Likewise.
7375         * libio/iofopen.c: Likewise.
7376         * libio/iofopen64.c: Likewise.
7377         * libio/iogetdelim.c: Likewise.
7378         * libio/iopopen.c: Likewise.
7379         * libio/obprintf.c: Likewise.
7380         * libio/oldfileops.c: Likewise.
7381         * libio/oldiofclose.c: Likewise.
7382         * libio/oldiofdopen.c: Likewise.
7383         * libio/oldiofopen.c: Likewise.
7384         * libio/oldiopopen.c: Likewise.
7385         * libio/wfiledoalloc.c: Likewise.
7386         * libio/wgenops.c: Likewise.
7387         * locale/programs/xmalloc.c: Likewise.
7388         * misc/syslog.c: Likewise.
7389         * stdio-common/xbug.c: Likewise.
7390         * string/memchr.c: Likewise.
7391         * string/memcmp.c: Likewise.
7392         * string/memrchr.c: Likewise.
7393         * string/rawmemchr.c: Likewise.
7394         * sysdeps/posix/getcwd.c: Likewise.
7395         * time/strftime_l.c: Likewise.
7396
7397 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7398
7399         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
7400         * config.make.in (config-cflags-sse2avx): Define.
7401         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
7402         Fix typo.
7403
7404 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
7405
7406         * scripts/config.guess: Update from upstream config git repository.
7407         * scripts/config.sub: Likewise.
7408
7409 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
7410
7411         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
7412         (EM_NUM): Update.
7413         (R_TILEPRO_*, R_TILEGX_*): New macros.
7414
7415         * scripts/firstversions.awk: Fix bug in version range handling.
7416
7417         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
7418
7419         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
7420
7421         * include/sys/epoll.h: New file.
7422         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
7423         libc_hidden_def.
7424
7425 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
7426
7427         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
7428         Avoid unnecessary __WORDSIZE == 64 test.
7429         (fmaxf): Use VEX format if possible.
7430         (fmax): Likewise.
7431         (fminf): Likewise.
7432         (fmin): Likewise.
7433
7434         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
7435         * math/math_private.h: Remove libc_fegetround* and
7436         libc_fesetround*.
7437         * sysdeps/i386/configure.in: Check for -msse2avx.
7438         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
7439         also if SSE2AVX is defined.
7440         Remove libc_fegetround* and libc_fesetround*.
7441         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
7442         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
7443         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
7444         of HAS_YMM_USABLE.
7445         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7446         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7447         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7448         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7449         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7450
7451         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
7452
7453 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7454
7455         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
7456         size is not set.
7457         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7458
7459 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
7460
7461         [BZ #13618]
7462         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
7463         relocation.
7464         * Makeconfig (libm): Define.
7465         * elf/Makefile: Add rules to build and run tst-relsort1.
7466         * elf/tst-relsort1.c: New file.
7467         * elf/tst-relsort1mod1.c: New file.
7468         * elf/tst-relsort1mod2.c: New file.
7469
7470 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
7471
7472         * math/s_ldexp.c: Remove __STDC__ conditionals.
7473         * math/s_ldexpf.c: Likewise.
7474         * math/s_ldexpl.c: Likewise.
7475         * math/s_nextafter.c: Likewise.
7476         * math/s_nexttowardf.c: Likewise.
7477         * math/s_significand.c: Likewise.
7478         * math/s_significandf.c: Likewise.
7479         * math/s_significandl.c: Likewise.
7480         * math/w_jnl.c: Likewise.
7481         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7482         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7483         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7484         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7485         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7486         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7487         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
7488         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7489         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7490         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7491         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7492         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7493         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7494         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7495         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7496         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7497         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7498         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7499         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7500         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7501         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7502         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7503         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7504         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7505         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7506         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7507         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7508         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7509         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7510         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7511         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7512         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7513         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7514         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7515         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7516         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7517         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7518         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7519         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7520         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7521         * sysdeps/ieee754/k_standard.c: Likewise.
7522         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7523         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7524         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7525         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7526         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7527         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7528         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7529         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7530         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7531         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7532         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7533         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7534         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7535         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7536         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7537         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7538         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7539         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7540         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7541         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7542         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7543         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7544         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7545         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7546         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7547         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7548         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7549         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7550         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7551         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7552         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7553         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7554         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7555         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7556         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7557         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7558         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7559         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7560         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7561         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7562         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7563         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7564         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7565         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7566         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7567         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
7568         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7569         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7570         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7571         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7572         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7573         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7574         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7575         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7576         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7577         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7578         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7579         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7580         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7581         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7582         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7583         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7584         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7585         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7586         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7587         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7588         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7589         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7590         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7591         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7592         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7593         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7594         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7595         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7596         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7597         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7598         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7599         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7600         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7601         * sysdeps/ieee754/s_matherr.c: Likewise.
7602         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7603         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7604         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7605         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7606
7607 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7608
7609         * crypt/md5.h: Remove __STDC__ conditionals.
7610         * libio/libioP.h: Likewise.
7611         * locale/programs/config.h: Likewise.
7612         * sysdeps/generic/sysdep.h: Likewise.
7613         * sysdeps/i386/asm-syntax.h: Likewise.
7614         * sysdeps/s390/asm-syntax.h: Likewise.
7615         * sysdeps/unix/sysdep.h: Likewise.
7616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7618
7619 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7620
7621         * libio/libio.h: Remove __STDC__ conditionals.
7622         * malloc/obstack.h: Likewise.
7623         * math/complex.h: Likewise.
7624         * math/math.h: Likewise.
7625         * sysdeps/generic/_G_config.h: Likewise.
7626         * sysdeps/gnu/_G_config.h: Likewise.
7627         * sysdeps/mach/hurd/_G_config.h: Likewise.
7628         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7629         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7630         * sysdeps/sparc/bits/mathdef.h: Likewise.
7631
7632 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
7633
7634         [BZ #13583]
7635         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
7636         Clean up HAS_* macros.
7637         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
7638         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
7639         possible.
7640         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
7641         HAS_AVX.
7642         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7643         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7644         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7645         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7646         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7647
7648 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
7649
7650         * elf/tst-unique3.cc (gets): Remove declaration.
7651         * elf/tst-unique3lib.cc (gets): Likewise.
7652         * elf/tst-unique3lib2.cc (gets): Likewise.
7653         * elf/tst-unique4.cc (gets): Likewise.
7654
7655 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
7656
7657         * include/stdio.h: Add C++ protection.  Add gets declarations and
7658         definitions.
7659         * debug/tst-chk1.c: Don't declare gets here.
7660         * stdio-common/tst-gets.c: Likewise.
7661
7662 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7663
7664         * posix/glob: Remove directory.
7665
7666 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7667
7668         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
7669
7670 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
7671
7672         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
7673         of the non-standard EPFNOSUPPORT.
7674
7675 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7676
7677         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
7678         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
7679         ANYWHERE set to 1 only on KERN_NO_SPACE error.
7680
7681 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
7682
7683         * wcsmbs/uchar.h: Test __STDC_VERSION__.
7684
7685 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
7686
7687         * nscd/aicache.c (addhstaiX): Do not cache negative results of
7688         transient errors.
7689         * nscd/grpcache.c (cache_addgr): Likewise.
7690         * nscd/hstcache.c (cache_addhst): Likewise.
7691         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7692         * nscd/pwdcache.c (cache_addpw): Likewise.
7693         * nscd/servicescache.c (cache_addserv): Likewise.
7694
7695 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
7696
7697         * malloc/malloc.c: Various cleanups.
7698         * malloc/hooks.c: Likewise.
7699
7700         * stdlib/Makefile (tests): Add bug-fmtmsg1.
7701         * stdlib/bug-fmtmsg1.c: New file.
7702
7703         * stdlib/fmtmsg.c (init): Add missing unlock.
7704         Patch by Peng Haitao <penght@cn.fujitsu.com>.
7705
7706 2012-01-12  Marek Polacek  <polacek@redhat.com>
7707
7708         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
7709         and _GNU_SOURCE.
7710
7711 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7712
7713         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
7714         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
7715         macro to ensure uniqueness of label name.
7716         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7717         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7718
7719 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
7720
7721         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
7722
7723         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
7724         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7725         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7726         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
7727
7728 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
7729
7730         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
7731
7732         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
7733         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7734         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7735
7736         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
7737
7738         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
7739         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7740         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7741         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
7742
7743         * math/bits/math-finite.h: Add ldexp support.
7744
7745 2012-01-10  Marek Polacek  <polacek@redhat.com>
7746
7747         * locale/programs/localedef.h (show_archive_content): Add noreturn
7748         attribute.
7749
7750 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
7751
7752         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
7753
7754 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7755
7756         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
7757
7758         * io/Makefile (headers): Add bits/poll2.h.
7759
7760 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
7761
7762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
7763         typo #include statement.
7764
7765 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7766
7767         * include/sys/cdefs.h: Define __attribute_alloc_size.
7768         * catgets/gencat.c: Add alloc_size attribute and apply consistently
7769         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
7770         * elf/pldd.c: Likewise.
7771         * iconv/iconv_charmap.c: Likewise.
7772         * iconv/iconvconfig.c: Likewise.
7773         * iconv/strtab.c: Likewise.
7774         * locale/programs/locale.c: Likewise.
7775         * locale/programs/localedef.h: Likewise.
7776         * locale/programs/simple-hash.c: Likewise.
7777         * nscd/nscd.h: Likewise.
7778         * nss/makedb.c: Likewise.
7779         * sysdeps/generic/ldconfig.h: Likewise.
7780         * locale/programs/localedef.c: Remove xmalloc prototype.
7781         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
7782
7783 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7784
7785         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
7786         appropriate.
7787
7788 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7789
7790         * math/Makefile (tests): Add tst-CMPLX.
7791         * math/tst-CMPLX.c: New file.
7792
7793         * math/complex.h (CMPLXL): Fix typo.
7794
7795         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
7796         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
7797         GLIBC_2.16.
7798         * debug/tst-chk1.c: Add poll and ppoll tests.
7799         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
7800         * include/sys/poll.h: Add hidden proto for ppoll.
7801         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
7802         * sysdeps/mach/hurd/ppoll.c: Likewise.
7803         * io/ppoll.c: Likewise.
7804         * debug/poll_chk.c: New file.
7805         * debug/ppoll_chk.c: New file.
7806         * include/bits/poll2.h: New file.
7807         * io/bits/poll2.h: New file.
7808
7809         [BZ #1350]
7810         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
7811
7812         * configure.in: static is always set to yes.  Remove.
7813         * config.make.in: Don't set build-static.
7814         * Makeconfig: Remove use of build-static.
7815         * dlfcn/Makefile: Likewise.
7816         * elf/Makefile: Likewise.
7817         * math/Makefile: Likewise.
7818         * misc/Makefile: Likewise.
7819         * nptl/Makefile: Likewise.
7820         * sysdeps/mach/hurd/Makefile: Likewise.
7821
7822         * configure.in: PWD_P is not used anymore.
7823         * config.make.in: Remove PWD_P entry.
7824
7825         * configure.in: Remove last remnants of RANLIB.
7826         No need to check for signed size_t anymore.
7827         Don't set libc_commonpagesize and libc_relro_required here for Alpha
7828         and IA-64.
7829         Remove __builtin_expect test because we require at least gcc 3.4.
7830         * aclocal.m4: Likewise.
7831
7832         * wcsmbs/mbrtoc16.c: Implement using towc function.
7833         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
7834         * wcsmbs/wcsmbsload.c: Likewise.
7835         * iconv/gconv_simple.c: Likewise.
7836         * iconv/gconv_int.h: Likewise.
7837         * iconv/gconv_builtin.h: Likewise.
7838         * iconv/iconv_prog.c: Remove CHAR16 handling.
7839
7840         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
7841
7842         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
7843
7844         * configure.in: Remove --with-elf and --enable-bounded options.
7845         Dont set base_machine for ia64.  More non-ELF conditions removed.
7846         Remove testing and setting of leading underscore information.
7847         * config.make.in (build-bounded): Set to no.
7848         * config.h.in: Remove NO_UNDERSCORES entry.
7849         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
7850         them.
7851         * csu/start.c: Remove !NO_UNDERSCORE code.
7852         * locale/localeinfo.h: Likewise.
7853         * sysdeps/generic/machine-gmon.h: Likewise.
7854         * sysdeps/generic/sysdep.h: Likewise.
7855         * sysdeps/i386/sysdep.h: Likewise.
7856         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7857         * sysdeps/mach/sysdep.h: Likewise.
7858         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7859         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7860         * sysdeps/sh/sysdep.h: Likewise.
7861         * sysdeps/sparc/sparc32/alloca.S: Likewise.
7862         * sysdeps/unix/i386/sysdep.S: Likewise.
7863         * sysdeps/unix/sparc/start.c: Likewise.
7864         * sysdeps/unix/sparc/sysdep.S: Likewise.
7865         * sysdeps/unix/sparc/sysdep.h: Likewise.
7866         * sysdeps/unix/start.c: Likewise.
7867         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7868         * sysdeps/x86_64/sysdep.h: Likewise.
7869
7870 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
7871
7872         [BZ #13553]
7873         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
7874         for non-gcc.
7875         * argp/argp-fmtstream.h: Use const instead __const.
7876         * argp/argp.h: Likewise.
7877         * assert/assert.h: Likewise.
7878         * bits/fenv.h: Likewise.
7879         * bits/sched.h: Likewise.
7880         * bits/sigset.h: Likewise.
7881         * bits/sigthread.h: Likewise.
7882         * catgets/nl_types.h: Likewise.
7883         * conform/data/pthread.h-data: Likewise.
7884         * crypt/crypt-private.h: Likewise.
7885         * crypt/crypt.h: Likewise.
7886         * crypt/crypt_util.c: Likewise.
7887         * ctype/ctype.h: Likewise.
7888         * debug/execinfo.h: Likewise.
7889         * debug/mbsnrtowcs_chk.c: Likewise.
7890         * debug/mbsrtowcs_chk.c: Likewise.
7891         * debug/wcsnrtombs_chk.c: Likewise.
7892         * debug/wcsrtombs_chk.c: Likewise.
7893         * debug/wcstombs_chk.c: Likewise.
7894         * dirent/dirent.h: Likewise.
7895         * dlfcn/dlfcn.h: Likewise.
7896         * elf/neededtest4.c: Likewise.
7897         * grp/grp.h: Likewise.
7898         * gshadow/gshadow.h: Likewise.
7899         * iconv/gconv.h: Likewise.
7900         * iconv/gconv_int.h: Likewise.
7901         * iconv/gconv_simple.c: Likewise.
7902         * iconv/iconv.h: Likewise.
7903         * iconv/loop.c: Likewise.
7904         * iconv/skeleton.c: Likewise.
7905         * include/aio.h: Likewise.
7906         * include/aliases.h: Likewise.
7907         * include/argz.h: Likewise.
7908         * include/arpa/inet.h: Likewise.
7909         * include/assert.h: Likewise.
7910         * include/dirent.h: Likewise.
7911         * include/dlfcn.h: Likewise.
7912         * include/execinfo.h: Likewise.
7913         * include/fcntl.h: Likewise.
7914         * include/fenv.h: Likewise.
7915         * include/glob.h: Likewise.
7916         * include/grp.h: Likewise.
7917         * include/libintl.h: Likewise.
7918         * include/mntent.h: Likewise.
7919         * include/netdb.h: Likewise.
7920         * include/pwd.h: Likewise.
7921         * include/rpc/netdb.h: Likewise.
7922         * include/sched.h: Likewise.
7923         * include/search.h: Likewise.
7924         * include/shadow.h: Likewise.
7925         * include/signal.h: Likewise.
7926         * include/stdio.h: Likewise.
7927         * include/stdlib.h: Likewise.
7928         * include/string.h: Likewise.
7929         * include/sys/socket.h: Likewise.
7930         * include/sys/stat.h: Likewise.
7931         * include/sys/statfs.h: Likewise.
7932         * include/sys/statvfs.h: Likewise.
7933         * include/sys/syslog.h: Likewise.
7934         * include/sys/time.h: Likewise.
7935         * include/sys/uio.h: Likewise.
7936         * include/time.h: Likewise.
7937         * include/unistd.h: Likewise.
7938         * include/utmp.h: Likewise.
7939         * include/wchar.h: Likewise.
7940         * include/wctype.h: Likewise.
7941         * inet/aliases.h: Likewise.
7942         * inet/arpa/inet.h: Likewise.
7943         * inet/netinet/ether.h: Likewise.
7944         * inet/netinet/in.h: Likewise.
7945         * intl/libintl.h: Likewise.
7946         * io/bits/fcntl2.h: Likewise.
7947         * io/fcntl.h: Likewise.
7948         * io/ftw.h: Likewise.
7949         * io/sys/poll.h: Likewise.
7950         * io/sys/stat.h: Likewise.
7951         * io/sys/statfs.h: Likewise.
7952         * io/sys/statvfs.h: Likewise.
7953         * io/utime.h: Likewise.
7954         * libio/bits/stdio.h: Likewise.
7955         * libio/bits/stdio2.h: Likewise.
7956         * libio/libio.h: Likewise.
7957         * libio/libioP.h: Likewise.
7958         * libio/stdio.h: Likewise.
7959         * locale/lc-ctype.c: Likewise.
7960         * locale/locale.h: Likewise.
7961         * login/utmp.h: Likewise.
7962         * malloc/arena.c: Likewise.
7963         * malloc/malloc.c: Likewise.
7964         * malloc/malloc.h: Likewise.
7965         * malloc/mcheck.c: Likewise.
7966         * malloc/mtrace.c: Likewise.
7967         * math/bits/mathcalls.h: Likewise.
7968         * math/fenv.h: Likewise.
7969         * math/math_private.h: Likewise.
7970         * misc/bits/error.h: Likewise.
7971         * misc/bits/syslog.h: Likewise.
7972         * misc/err.h: Likewise.
7973         * misc/error.h: Likewise.
7974         * misc/fstab.h: Likewise.
7975         * misc/mntent.h: Likewise.
7976         * misc/regexp.h: Likewise.
7977         * misc/search.h: Likewise.
7978         * misc/sgtty.h: Likewise.
7979         * misc/sys/mman.h: Likewise.
7980         * misc/sys/syslog.h: Likewise.
7981         * misc/sys/uio.h: Likewise.
7982         * misc/sys/xattr.h: Likewise.
7983         * misc/ttyent.h: Likewise.
7984         * nis/rpcsvc/ypclnt.h: Likewise.
7985         * nss/nss.h: Likewise.
7986         * posix/bits/unistd.h: Likewise.
7987         * posix/fnmatch.h: Likewise.
7988         * posix/glob.h: Likewise.
7989         * posix/sched.h: Likewise.
7990         * posix/spawn.h: Likewise.
7991         * posix/sys/wait.h: Likewise.
7992         * posix/unistd.h: Likewise.
7993         * posix/wordexp.h: Likewise.
7994         * pwd/pwd.h: Likewise.
7995         * resolv/netdb.h: Likewise.
7996         * resource/sys/resource.h: Likewise.
7997         * rt/aio.h: Likewise.
7998         * rt/bits/mqueue2.h: Likewise.
7999         * rt/mqueue.h: Likewise.
8000         * shadow/shadow.h: Likewise.
8001         * signal/signal.h: Likewise.
8002         * socket/send.c: Likewise.
8003         * socket/sendto.c: Likewise.
8004         * socket/sys/socket.h: Likewise.
8005         * stdio-common/printf.h: Likewise.
8006         * stdlib/bits/stdlib.h: Likewise.
8007         * stdlib/fmtmsg.h: Likewise.
8008         * stdlib/monetary.h: Likewise.
8009         * stdlib/stdlib.h: Likewise.
8010         * stdlib/ucontext.h: Likewise.
8011         * streams/stropts.h: Likewise.
8012         * string/argz.h: Likewise.
8013         * string/bits/string2.h: Likewise.
8014         * string/string.h: Likewise.
8015         * string/strings.h: Likewise.
8016         * sunrpc/rpc/auth.h: Likewise.
8017         * sunrpc/rpc/auth_des.h: Likewise.
8018         * sunrpc/rpc/clnt.h: Likewise.
8019         * sunrpc/rpc/netdb.h: Likewise.
8020         * sunrpc/rpc/pmap_clnt.h: Likewise.
8021         * sunrpc/rpc/xdr.h: Likewise.
8022         * sysdeps/generic/inttypes.h: Likewise.
8023         * sysdeps/generic/net/if.h: Likewise.
8024         * sysdeps/generic/sys/swap.h: Likewise.
8025         * sysdeps/gnu/net/if.h: Likewise.
8026         * sysdeps/gnu/utmpx.h: Likewise.
8027         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
8028         * sysdeps/i386/i486/bits/string.h: Likewise.
8029         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
8030         * sysdeps/s390/bits/string.h: Likewise.
8031         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
8032         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
8033         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8034         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
8035         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8036         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8037         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8038         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
8039         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
8040         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
8041         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
8042         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8043         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
8044         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8045         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8046         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
8047         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
8048         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8049         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
8050         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
8051         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8052         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
8053         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
8054         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
8055         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
8056         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
8057         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
8058         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8059         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
8060         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
8061         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
8062         * sysvipc/sys/ipc.h: Likewise.
8063         * sysvipc/sys/msg.h: Likewise.
8064         * sysvipc/sys/sem.h: Likewise.
8065         * sysvipc/sys/shm.h: Likewise.
8066         * termios/termios.h: Likewise.
8067         * time/sys/time.h: Likewise.
8068         * time/time.h: Likewise.
8069         * wcsmbs/bits/wchar2.h: Likewise.
8070         * wcsmbs/uchar.h: Likewise.
8071         * wcsmbs/wchar.h: Likewise.
8072         * wctype/wctype.h: Likewise.
8073
8074         [BZ #13551]
8075         * Makeconfig: Remove all but ELF support including AIX support.
8076         * Makerules: Likewise.
8077         * config.h.in: Likewise.
8078         * config.make.in: Likewise.
8079         * configure: Likewise.
8080         * configure.in: Likewise.
8081         * csu/Makefile: Likewise.
8082         * csu/version.c: Likewise.
8083         * debug/Makefile: Likewise.
8084         * dlfcn/Makefile: Likewise.
8085         * elf/Makefile: Likewise.
8086         * extra-lib.mk: Likewise.
8087         * iconv/Makefile: Likewise.
8088         * include/libc-symbols.h: Likewise.
8089         * include/shlib-compat.h: Likewise.
8090         * resolv/Makefile: Likewise.
8091         * resolv/res_libc.c: Likewise.
8092         * rt/Makefile: Likewise.
8093         * sysdeps/i386/asm-syntax.h: Likewise.
8094         * sysdeps/i386/sysdep.h: Likewise.
8095         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8096         * sysdeps/mach/sysdep.h: Likewise.
8097         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
8098         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
8099         * sysdeps/s390/asm-syntax.h: Likewise.
8100         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8101         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8102         * sysdeps/sh/sysdep.h: Likewise.
8103         * sysdeps/unix/sparc/sysdep.h: Likewise.
8104         * sysdeps/wordsize-32/divdi3.c: Likewise.
8105         * sysdeps/x86_64/sysdep.h: Likewise.
8106
8107         * argp/Versions: Remove _argp_unlock_xxx.
8108
8109         [BZ #13559]
8110         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
8111         * abilist/libBrokenLocale.abilist: Likewise.
8112         * abilist/libanl.abilist: Likewise.
8113         * abilist/libc.abilist: Likewise.
8114         * abilist/libcrypt.abilist: Likewise.
8115         * abilist/libdl.abilist: Likewise.
8116         * abilist/libm.abilist: Likewise.
8117         * abilist/libnsl.abilist: Likewise.
8118         * abilist/libpthread.abilist: Likewise.
8119         * abilist/libresolv.abilist: Likewise.
8120         * abilist/librt.abilist: Likewise.
8121         * abilist/libthread_db.abilist: Likewise.
8122         * abilist/libutil.abilist: Likewise.
8123         * abilist/libnss_db.abilist: New file.
8124
8125         * scripts/abilist.awk: Add support for indirect functions.
8126
8127         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
8128
8129         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
8130
8131         * shlib-versions: Remove entries for ports architectures.
8132
8133         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
8134         files in ports.
8135         * elf/stackguard-macros.h: Remove support for IA-64.
8136         * elf/tst-auditmod1.c: Likewise.
8137         * sysdeps/generic/ldsodefs.h: Likewise.
8138
8139         * sysdeps/unix/sysv/linux/configure.in: Ports should define
8140         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
8141         configure files.
8142
8143         [BZ #13552]
8144         * configure.in: Remove --enable-omitfp support.
8145         * FAQ.in: Adjust.
8146         * config.make.in: Likewise.
8147         * Makeconfig: Likewise.
8148         * manual/install.texi: Likewise.
8149
8150         In case anyone cares, the IA-64 architecture could move to ports.
8151         * sysdeps/ia64/*: Removed.
8152         * sysdeps/unix/sysv/linux/ia64/*: Removed.
8153         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
8154
8155         [BZ #13555]
8156         * configure.in: Remove entries for unsupported architectures.
8157
8158         [BZ #13533]
8159         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
8160         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
8161         routines.
8162         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
8163         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
8164         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
8165         fall back to using wcrtomb.
8166         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
8167         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
8168         renaming.
8169         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
8170         * wcsmbs/tst-c16c32-1.c: New file.
8171
8172         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
8173         local variable.
8174
8175         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
8176
8177         * elf/tst-unique3.cc: Add explicit declaration of gets.
8178         * elf/tst-unique3lib.cc: Likewise.
8179         * elf/tst-unique3lib2.cc: Likewise.
8180         * elf/tst-unique4.cc: Likewise.
8181
8182         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
8183
8184 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
8185
8186         [BZ #13566]
8187         * assert/assert.h (static_assert): Don't define for C++.
8188         * libio/stdio.h (gets): Do declare for C++ <= C++11.
8189         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
8190
8191 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
8192
8193         * iconv/loop.c (single loop): Fix assertion in storing of
8194         remaining bytes.
8195
8196         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
8197
8198 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
8199
8200         * posix/getconf.c: Update copyright year.
8201         * nss/getent.c: Likewise.
8202         * nss/makedb.c: Likewise.
8203         * iconv/iconvconfig.c: Likewise.
8204         * iconv/iconv_prog.c: Likewise.
8205         * elf/ldconfig.c: Likewise.
8206         * elf/pldd.c: Likewise.
8207         * elf/sotruss.ksh: Likewise.
8208         * catgets/gencat.c: Likewise.
8209         * csu/version.c: Likewise.
8210         * elf/ldd.bash.in: Likewise.
8211         * elf/sprof.c (print_version): Likewise.
8212         * locale/programs/locale.c: Likewise.
8213         * locale/programs/localedef.c: Likewise.
8214         * login/programs/pt_chown.c: Likewise.
8215         * nscd/nscd.c (print_version): Likewise.
8216         * debug/xtrace.sh: Likewise.
8217         * malloc/memusage.sh: Likewise.
8218         * malloc/mtrace.pl: Likewise.
8219         * debug/catchsegv.sh: Likewise.
8220
8221 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
8222
8223         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
8224         pure attribute.
8225
8226 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
8227
8228         [BZ #13533]
8229         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
8230         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
8231         transformations.
8232         * iconv/gconv_int.h: Likewise.
8233         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
8234         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
8235         from libc for GLIBC_2.16.
8236         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
8237         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
8238         * wcsmbs/uchar.h: Really define mbstate_t.
8239         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
8240         * wcsmbs/c16rtomb.c: New file.
8241         * wcsmbs/mbrtoc16.c: New file.
8242         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
8243         for C/POSIX locale.
8244         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
8245         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
8246
8247         * wcsmbs/wchar.h: Add missing __restrict.
8248
8249 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8250
8251         [BZ #13532]
8252         * time/Makefile (routines): Add timespec_get.
8253         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
8254         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
8255         timespec for ISO C11.
8256         * time/timespec_get.c: New file.
8257         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
8258         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
8259
8260         [BZ #13531]
8261         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
8262         * stdlib/stdlib.h: Declare aligned_alloc.
8263         * Versions.def: Add GLIBC_2.16 for libc.
8264         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
8265
8266         [BZ 13527]
8267         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
8268         ISO C11.
8269
8270         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
8271         code.
8272
8273         [BZ #13528]
8274         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
8275
8276         [BZ #13529]
8277         * assert/assert.h (static_assert): Define.
8278
8279         * version.h: Update for 2.16 development version.
8280
8281         [BZ #13526]
8282         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
8283         _ISOC11_SOURCE.
8284
8285         * version.h (RELEASE): Bump for 2.15 release.
8286         * include/features.h (__GLIBC_MINOR__): Bump to 15.
8287
8288         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
8289         Patch by Marek Polacek <mpolacek@redhat.com>.
8290
8291         * bits/byteswap.h: Protect long long constants with __extension__.
8292         * sysdeps/i386/bits/byteswap.h: Likewise.
8293         * sysdeps/ia64/bits/byteswap.h: Likewise.
8294         * sysdeps/s390/bits/byteswap.h: Likewise.
8295         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8296
8297 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8298
8299         [BZ #13540]
8300         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
8301         destination buffer.
8302         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
8303
8304 2011-12-23  Marek Polacek  <polacek@redhat.com>
8305
8306         * elf/dl-addr.c (determine_info): Add inline keyword.
8307         * elf/tst-auditmod4b.c (check_avx): Likewise.
8308         * elf/tst-auditmod6b.c (check_avx): Likewise.
8309         * elf/tst-auditmod6c.c (check_avx): Likewise.
8310         * elf/tst-auditmod7b.c (check_avx): Likewise.
8311
8312 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8313
8314         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
8315         !__SSE_MATH__.
8316
8317 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8318
8319         [BZ #13540]
8320         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
8321         processing for last bytes.
8322
8323 2011-08-06  Bruno Haible  <bruno@clisp.org>
8324
8325         [BZ #13061]
8326         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
8327         U+0385, not to U+1FEE.
8328
8329         [BZ #13062]
8330         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
8331         entry for U+00A5 U+0301.
8332
8333 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8334
8335         [BZ #13166]
8336         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
8337         buffer for the output is too small.
8338
8339         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
8340         optimization.
8341
8342         [BZ #13185]
8343         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
8344         SSE flags if possible.
8345
8346 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8347
8348         [BZ #13540]
8349         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
8350         processing for last bytes.
8351
8352 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
8353
8354         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
8355         (syscall-list-default-options, syscall-list-default-condition)
8356         (syscall-list-includes): Define.
8357         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
8358         list of ABIs and options and #if conditions for each ABI.  Do not
8359         handle common syscalls between ABIs specially.
8360         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
8361         Remove.
8362         (syscall-list-variants, syscall-list-32bit-options)
8363         (syscall-list-32bit-condition, syscall-list-64bit-options)
8364         (syscall-list-64bit-condition): Define.
8365         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
8366         (syscall-list-variants, syscall-list-32bit-options)
8367         (syscall-list-32bit-condition, syscall-list-64bit-options)
8368         (syscall-list-64bit-condition): Define.
8369         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
8370         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/x86_64/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
8380 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8381
8382         * locale/iso-639.def: Add brx entry.
8383
8384         [BZ #13328]
8385         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
8386         Proposed by Mariusz_Cukr <marcukr@op.pl>.
8387
8388         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
8389         __feraiseexcept_renamed.
8390
8391 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8392
8393         [BZ #13538]
8394         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
8395         EPOLLET with unsigned values.
8396         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8397         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8398
8399         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
8400         to large cancellation.
8401         * math/s_cacoshf.c: Likewise.
8402         * math/s_cacoshl.c: Likewise.
8403
8404 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
8405
8406         [BZ #13305]
8407         [BZ #12786]
8408         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
8409         * math/s_cacoshf.c: Likewise.
8410         * math/s_cacoshl.c: Likewise.
8411
8412 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8413
8414         [BZ #13439]
8415         * iconv/gconv.h: Define __GCONV_SWAP.
8416         * iconvdata/unicode.c: The swap bit must be stored in __flags.
8417         * iconvdata/utf-16.c: Likewise.
8418         * iconvdata/utf-32.c: Likewise.
8419
8420 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
8421
8422         [BZ #13524]
8423         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
8424         numerator after shifting it by one limb.
8425
8426 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
8427
8428         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
8429         under [__USE_EXTERN_INLINES].
8430
8431 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8432
8433         [BZ #13446]
8434         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
8435
8436 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8437
8438         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
8439         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
8440         optimized code.
8441         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
8442         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
8443         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
8444         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
8445         for strncasecmp/strncasecmp_l compilation.
8446         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
8447         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
8448
8449 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
8450
8451         [BZ #13484]
8452         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
8453         of __asm__.
8454
8455 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8456
8457         [BZ #13506]
8458         * time/tzfile.c (__tzfile_read): Check values from file header.
8459
8460 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8461
8462         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
8463         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
8464         * powerpc/powerpc32/dl-start.S: Likewise.
8465         * powerpc/powerpc32/elf/start.S: Likewise.
8466         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8467         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
8468         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
8469         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
8470         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8471         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
8472         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
8473         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
8474         * powerpc/powerpc32/fpu/s_round.S: Likewise.
8475         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8476         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8477         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8478         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
8479         * powerpc/powerpc32/memset.S: Likewise.
8480         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8481         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8482         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8483         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8484         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8485         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
8486         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
8487         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
8488         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
8489         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
8490         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
8491         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8492         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8493
8494 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8495
8496         * math/libm-test.inc: Added more nearbyint tests.
8497         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
8498         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
8499         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
8500         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
8501
8502 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
8503
8504         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
8505         FD_CLOEXEC.
8506
8507 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8508
8509         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
8510         Add wcscpy-ssse3 wcscpy-c.
8511         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
8512         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
8513         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
8514         * sysdeps/x86_64/wcschr.S: New file.
8515         * sysdeps/x86_64/wcsrchr.S: New file.
8516         * string/test-strcmp.c: Remove checking of wcscmp function for
8517         wrong alignments.
8518         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
8519         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
8520         wcsrchr-sse2 wcsrchr-c.
8521         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
8522         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
8523         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
8524         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
8525         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
8526         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
8527         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
8528         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
8529         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
8530         * wcsmbc/wcschr.c (WCSCHR): New macro.
8531
8532 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8533
8534         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
8535         * wcsmbs/test-wcsrchr.c: New file.
8536         * string/test-strrchr.c: Add wcsrchr support.
8537         (WIDE): New macro.
8538         * wcsmbs/test-wcscpy.c: New file.
8539         * string/test-strcpy.c: Add wcscpy support.
8540         (WIDE): New macro.
8541
8542 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
8543
8544         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
8545         the inner loop.
8546
8547 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
8548
8549         [BZ #13472]
8550         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
8551
8552 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
8553
8554         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
8555         Minor optimizations.
8556
8557         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
8558         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
8559         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8560
8561 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
8562
8563         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
8564         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
8565         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
8566         for gcc to avoid warnings.
8567         * inet/Makefile (tests): Add tst-checks.
8568         * inet/tst-checks.c: New file.
8569
8570         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
8571         warning.
8572
8573         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
8574         __wmemcmp_sse2.
8575
8576         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
8577         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
8578
8579         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
8580
8581 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
8582
8583         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
8584         problem.
8585
8586         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
8587
8588 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
8589
8590         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
8591         conditional on GCC version.
8592         (__arch_compare_and_exchange_val_8_acq)
8593         (__arch_compare_and_exchange_val_16_acq)
8594         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
8595         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
8596         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
8597
8598 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
8599
8600         * sysdeps/sh/backtrace.c: New file.
8601
8602 2011-12-02  Andreas Schwab  <schwab@redhat.com>
8603
8604         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
8605         parenthesis.
8606
8607 2011-12-01  Andreas Schwab  <schwab@redhat.com>
8608
8609         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
8610         falling back to utime.
8611
8612 2011-11-30  Andreas Schwab  <schwab@redhat.com>
8613
8614         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
8615         expectations for float.
8616
8617 2011-11-29  Andreas Schwab  <schwab@redhat.com>
8618
8619         * locale/weight.h (findidx): Add parameter len.
8620         * locale/weightwc.h (findidx): Likewise.
8621         * posix/fnmatch_loop.c (FCT): Adjust caller.
8622         * posix/regcomp.c (build_equiv_class): Likewise.
8623         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
8624         * posix/regexec.c (check_node_accept_bytes): Likewise.
8625         * string/strcoll_l.c (STRCOLL): Likewise.
8626         * string/strxfrm_l.c (STRXFRM): Likewise.
8627
8628 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
8629
8630         * Makefile.in: Remove CVSOPT handling.
8631         * configure.in: Remove use of AC_REVISION.
8632         * iconvdata/Makefile (distribute): No need to filter out CVS.
8633         * scripts/list-sources.sh: Remove CVS, subversion and monotone
8634         handling.
8635
8636 2011-11-16  Andreas Schwab  <schwab@redhat.com>
8637
8638         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
8639         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
8640         [USE_AS_STRNCASECMP_L]: Likewise.
8641         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
8642         NO_TLS_DIRECT_SEG_REFS.
8643         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
8644         Fix argument offsets for non-PIC.
8645         [USE_AS_STRNCASECMP_L]: Likewise.
8646         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
8647         NO_TLS_DIRECT_SEG_REFS.
8648
8649 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8650
8651         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
8652         O_CLOEXEC.
8653         * locale/loadlocale.c (_nl_load_locale): Likewise.
8654
8655 2011-11-15  Andreas Schwab  <schwab@redhat.com>
8656
8657         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
8658         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
8659         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
8660         (SYSCALL_GETTIME): Set errno on error.
8661
8662         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
8663         count references to noai6ai_cached.
8664
8665 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8666
8667         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
8668
8669         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
8670         FD_CLOEXEC for /proc/self/maps.
8671
8672         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
8673         FD_CLOEXEC for /proc/meminfo.
8674
8675         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
8676         gai.conf.
8677
8678         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
8679         FD_CLOEXEC for given file.
8680
8681         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
8682
8683         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
8684         FD_CLOEXEC for /etc/hosts.
8685         (_gethtent): Likewise.
8686
8687         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
8688
8689         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
8690         cancellation and set FD_CLOEXEC for /etc/netgroup.
8691
8692         * nss/nss_files/files-key.c (search): Don't allow cancellation when
8693         reading /etc/publickey.
8694
8695         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
8696         allow cancellation when reading /etc/group.
8697
8698         * nss/nss_files/files-alias.c (internal_setent): Don't allow
8699         cancellation.
8700         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
8701
8702         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
8703         when using data file.
8704
8705         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
8706
8707         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
8708         (write_nis_obj): Use "c" and "e" in fopen.
8709
8710         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
8711
8712         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
8713
8714         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
8715
8716         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
8717
8718         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
8719         locale.alias.
8720
8721         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
8722
8723         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
8724
8725         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
8726
8727         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
8728         file parsing and set FD_CLOEXEC.
8729
8730 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8731
8732         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
8733
8734 2011-11-14  Andreas Schwab  <schwab@redhat.com>
8735
8736         * malloc/arena.c (arena_get2): Don't call reused_arena when
8737         _int_new_arena failed.
8738
8739 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8740
8741         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
8742         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
8743         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
8744         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8745         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8746         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
8747         to compile strcasecmp and strncasecmp.
8748         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
8749         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
8750
8751         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
8752
8753 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
8754
8755         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
8756         locale-defines.sym to gen-as-const-headers.
8757         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
8758         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
8759         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
8760         to compile strcasecmp and strncasecmp.
8761         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
8762         strcasecmp_l and strncasecmp_l.
8763         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
8764         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
8765         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
8766         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
8767         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
8768         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
8769         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
8770         * sysdeps/i386/i686/multiarch/strncase.S: New file.
8771         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
8772         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
8773         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
8774
8775 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
8776
8777         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
8778         result of SYSDEP_GETTIME_CPU to retval.
8779         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
8780         parameter list to macro.  Remove trailing semicolon.  Adjust users.
8781
8782         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
8783         variable.
8784
8785         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
8786         mantissa words.
8787         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8788
8789         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
8790         from unused variable.
8791
8792         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
8793         DWARF definitions.
8794         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
8795         for assembling.
8796
8797         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
8798         over namespaces.
8799
8800         * sunrpc/rpc_prot.c (rejected): Fix case value.
8801
8802         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
8803         unsigned long long int to avoid warnings in shift.
8804
8805         * posix/regex_internal.c (re_string_reconstruct): Actually use result
8806         of use of trans.
8807         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
8808         variable tmp.
8809
8810         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
8811         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
8812         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
8813
8814         * nis/nis_table.c (nis_list): Use variable of correct type for
8815         result of __follow_path call.
8816
8817 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8818
8819         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
8820         of math functions ceil, trunc, floor, round, and sqrt, when
8821         avaliable on the platform.
8822         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
8823         name clash.
8824         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8825         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8826         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8827
8828 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
8829
8830         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
8831         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8832
8833 2011-11-11  Roland McGrath  <roland@hack.frob.com>
8834
8835         * include/unistd.h: Fix __readlink return type.
8836         Reported by Chris Metcalf <cmetcalf@tilera.com>.
8837
8838 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
8839
8840         * stdlib/ucontext.h: Undo last change for makecontext.
8841
8842 2011-11-11  Andreas Schwab  <schwab@redhat.com>
8843
8844         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
8845
8846         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
8847         * setjmp/setjmp.h: Mark functions as non-leaf.
8848         * setjmp/bits/setjmp2.h: Likewise.
8849         * stdlib/ucontext.h: Likewise.
8850
8851 2011-11-10  Andreas Schwab  <schwab@redhat.com>
8852
8853         * malloc/arena.c (_int_new_arena): Don't increment narenas.
8854         (reused_arena): Don't check arena limit.
8855         (arena_get2): Atomically check arena limit.
8856
8857 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
8858
8859         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
8860         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
8861
8862         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
8863         instructions.
8864
8865 2011-11-07  Andreas Schwab  <schwab@redhat.com>
8866
8867         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
8868         handler when locking.
8869
8870         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8871         Fix size of allocated buffer.
8872
8873 2011-11-04  Andreas Schwab  <schwab@redhat.com>
8874
8875         [BZ #10103]
8876         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
8877         declarations for long double functions.
8878         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
8879
8880         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
8881
8882 2011-11-03  Andreas Schwab  <schwab@redhat.com>
8883
8884         * nscd/nscd.c (main): Don't start AVC thread until credentials are
8885         installed.
8886
8887         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
8888         is disabled.
8889
8890 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8891
8892         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
8893
8894 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8895
8896         * include/alloca.h (stackinfo_alloca_round): Define.
8897         (extend_alloca): Use it.
8898         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
8899         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
8900         here.
8901
8902         * scripts/check-local-headers.sh: Ignore libaudit.h.
8903
8904         * nscd/Makefile (extra-objs): Make recursively expanded.
8905
8906 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
8907
8908         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
8909         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
8910
8911         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
8912         * posix/tst-rfc3484-2.c: Likewise.
8913         * posix/tst-rfc3484-3.c: Likewise.
8914
8915         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8916         process_vm_writev.
8917         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
8918         process_vm_writev.
8919         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
8920         process_vm_writev from libc using GLIBC_2.15 version.
8921
8922         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
8923
8924 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
8925
8926         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
8927         stack usage.
8928
8929 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
8930
8931         [BZ #13367]
8932         * nss/getent.c (initgroups_keys): Show error message in case no group
8933         names are given.
8934
8935         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
8936         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
8937         __bump_nl_timestamp.
8938         * nscd/connections (nscd_init): When host database is served open
8939         netlink socket and request notification about configuration changes.
8940         (main_loop_poll): Track netlink file descriptor and bump timestamp
8941         in case data becomes available.
8942         (main_loop_epoll): Likewise.
8943         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
8944         (database_pers_head): Add extra_data fileds.
8945         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
8946         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
8947         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
8948         Adjust caller.
8949         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
8950         in6ai data, call __free_in6ai.
8951         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
8952         Add -DHAVE_NETLINK.
8953         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
8954         interface information.  Reuse previous data if netlink timestamp
8955         is not changed.
8956         (__bump_nl_timestamp): New function.
8957         (__free_in6ai): New function.
8958
8959 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
8960
8961         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
8962         close_not_cancel_no_status here.
8963         (__check_pf): Reorganize code a bit to not call close twice if OOM.
8964
8965 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8966
8967         [BZ #13276]
8968         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
8969         return value.
8970
8971         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
8972         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
8973         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
8974
8975 2011-07-03  Andreas Jaeger  <aj@suse.de>
8976
8977         [BZ #10709]
8978         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
8979         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
8980         * math/libm-test.inc (sin_test): Add test case.
8981
8982 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8983
8984         [BZ #13337]
8985         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
8986         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
8987
8988         * elf/chroot_canon.c (chroot_canon): Cleanups.
8989
8990         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
8991
8992         [BZ #13335]
8993         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
8994         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
8995
8996         * string/test-strchr.c: Make usable for strchrnul testing.
8997         * string/test-strchrnul.c: New file.
8998         * string/Makefile (strop-tests): Add strchrnul.
8999
9000         * po/it.po: Update from translation team.
9001         * po/es.po: Likewise.
9002
9003 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
9004
9005         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
9006         the three constants needed as parameters.  Drop the others.
9007         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
9008         __m128i_strloadu_tolower.
9009         Create and initialize variable zero and use it in all the places
9010         where _mm_setzero_si128 was used.
9011
9012         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
9013         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
9014         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
9015         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
9016         anymore.
9017         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
9018         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
9019         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
9020         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
9021         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
9022         __mpranred, __mptan.
9023         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
9024         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
9025         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
9026         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
9027         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
9028         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
9029         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
9030         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
9031         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
9032
9033 2011-10-28  Andreas Schwab  <schwab@redhat.com>
9034
9035         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
9036         redefine if SHARED.
9037         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
9038
9039         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
9040         wide char related routines to wcsmbs subdir.
9041
9042 2011-10-27  Andreas Schwab  <schwab@redhat.com>
9043
9044         [BZ #13344]
9045         * misc/sys/cdefs.h (__THROWNL): Define.
9046         * posix/unistd.h: Use __THREADNL instead of __THREAD
9047         for memory synchronization functions.
9048
9049 2011-10-26  Roland McGrath  <roland@hack.frob.com>
9050
9051         [BZ #13349]
9052         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
9053         doesn't exist.
9054         * manual/stdio.texi (Obstack Streams): Node removed.
9055
9056 2011-10-26  Andreas Schwab  <schwab@redhat.com>
9057
9058         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
9059         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9060         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9061
9062         * math/math_private.h (math_force_eval): Allow non-addressable
9063         arguments.
9064         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
9065
9066 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9067
9068         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
9069         file is not needed.
9070
9071         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
9072         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9073         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9074         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9075         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9076         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9077         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9078         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
9079         Add AVX variants.
9080         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
9081         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
9082         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
9083         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
9084         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
9085         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
9086         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
9087         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
9088         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
9089         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
9090         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
9091         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
9092         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
9093         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
9094         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
9095         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
9096         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
9097         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
9098         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
9099
9100         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
9101         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
9102
9103         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
9104         place.  Use VEX encoding when compiling for AVX.
9105
9106 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9107
9108         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
9109         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9110
9111         * string/test-strchr.c (do_test): Don't generate NUL bytes.
9112
9113 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9114
9115         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
9116         useless if() expression.
9117         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9118         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9119         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9120         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9121         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9122         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9123         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9124         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9125         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9126         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9127         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9128         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9129         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9130         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9131         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9132         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9133         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9134         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9135         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9136
9137         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
9138
9139 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9140
9141         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
9142         condition.
9143         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9144
9145 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9146
9147         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
9148         .text section.  Avoid duplicate constants.
9149         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9150         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9151         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9152         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9153         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9154         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9155         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9156         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9157         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
9158         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
9159         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
9160         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9161         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
9162         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
9163         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
9164         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
9165         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
9166         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
9167         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9168         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9169         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9170         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9171         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9172         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
9173         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
9174         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
9175         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
9176         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
9177         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
9178         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
9179         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
9180         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
9181         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9182         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
9183         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
9184         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
9185         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
9186         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
9187         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
9188         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
9189         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
9190         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
9191         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
9192         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
9193         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
9194
9195 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
9196
9197         * sysdeps/x86_64/dla.h: Move to ...
9198         * sysdeps/x86_64/fpu/dla.h: ...here.
9199         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
9200         situations.  Use __builtin_fma only for gcc 4.6 and up.
9201
9202         * config.make.in: Add have-mfma4 entry.
9203         * configure.in: Substitute libc_cv_cc_fma4.
9204         * math/Makefile (dbl-only-routines): Add sincostab.
9205         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
9206         Use __sincostab not sincos.
9207         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
9208         name is a macro.
9209         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9210         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9211         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9212         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
9213         using __copysign.
9214         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
9215         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
9216         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
9217         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
9218         and __inv.
9219         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
9220         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
9221         __copysign.
9222         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
9223         define aliases when function name is a macro.
9224         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
9225         sysdeps/ieee754/dbl-64/sincos.tbl.
9226         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
9227         fma4-enabled routines.
9228         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
9229         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
9230         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
9231         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
9232         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
9233         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
9234         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
9235         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
9236         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
9237         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
9238         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
9239         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
9240         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
9241         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
9242         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
9243         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
9244         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
9245         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
9246         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
9247         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
9248         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
9249         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
9250         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
9251         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
9252         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
9253         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
9254         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
9255         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
9256         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
9257         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
9258
9259         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
9260         rename.
9261         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9262         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9263         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9264         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9265         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9266         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9267         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9268         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9269
9270 2011-10-24  Andreas Schwab  <schwab@redhat.com>
9271
9272         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
9273
9274 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9275
9276         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
9277
9278         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
9279         prediction.
9280         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
9281
9282         * string/strnlen.c: Don't define STRNLEN, reverse logic.
9283         Remove unused variable magic_bits.
9284         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
9285
9286         * string/strnlen.c: Define and use STRNLEN macro.
9287         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
9288         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
9289         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
9290         * wcsmbs/wcslen.c: Define and use WCSLEN.
9291         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
9292         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
9293         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
9294         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
9295         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
9296         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
9297         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9298
9299 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9300
9301         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9302         strnlen-sse2-no-bsf.
9303         Rename strlen-no-bsf to strlen-sse2-no-bsf.
9304         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
9305         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
9306         Add strnlen support.
9307         (USE_AS_STRNLEN): New macro.
9308         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
9309         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
9310         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
9311         * sysdeps/x86_64/wcslen.S: New file.
9312
9313 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9314
9315         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9316         XMM-moves are used for copying on small sizes.
9317
9318 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9319
9320         * wcsmbs/Makefile (strop-tests): Add wcschr.
9321         * wcsmbs/test-wcschr.c: New file.
9322         * string/test-strchr.c: Update.
9323         Add wcschr support.
9324         (WIDE): New macro.
9325
9326 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9327
9328         * wcsmbs/Makefile (strop-tests): Add wcslen.
9329         * wcsmbs/test-wcslen.c: New file.
9330         * string/test-strlen.c: Update.
9331         Add wcslen support.
9332         (WIDE): New macro.
9333
9334 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9335
9336         * po/it.po: Update from translation team.
9337
9338 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9339
9340         * sysdeps/x86_64/wcscmp.S: Update.
9341         Fix wrong comparison semantics.
9342         wcscmp shall use signed comparison not unsigned.
9343         Don't use substraction to avoid overflow bug.
9344         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
9345         * wcsmbc/wcscmp.c: Likewise.
9346         * string/test-strcmp.c: Likewise.
9347         Add new tests to check cases with negative values.
9348
9349 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9350
9351         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
9352         * sysdeps/x86_64/dla.h: ...here.  New file.
9353         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
9354         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9355         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9356         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9357         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9358         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9359         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9360         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9361         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9362
9363 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9364
9365         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
9366         __ynl_finite aliases.
9367
9368 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9369
9370         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9371
9372         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
9373         define DLA_FMA.
9374         [DLA_FMA] (EMULV): Use DLA_FMA.
9375         [DLA_FMA] (MUL12): Use EMULV.
9376         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
9377         that are not needed.
9378         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9379         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9380         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9381         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9382         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9383         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9384         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9385
9386 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
9387
9388         * math/s_nan.c: Undef __nan.
9389         * math/s_nanf.c: Undef __nanf.
9390         * math/s_nanl.c: Undef __nanl.
9391         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
9392         "math_private.h".
9393
9394 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9395
9396         * math/s_catan.c: Add branch predictions.
9397         * math/s_catanf.c: Likewise.
9398         * math/s_catanh.c: Likewise.
9399         * math/s_catanhf.c: Likewise.
9400         * math/s_catanhl.c: Likewise.
9401         * math/s_catanl.c: Likewise.
9402         * math/s_cexp.c: Likewise.
9403         * math/s_cexpf.c: Likewise.
9404         * math/s_cexpl.c: Likewise.
9405         * math/s_clog.c: Likewise.
9406         * math/s_clog10.c: Likewise.
9407         * math/s_clog10f.c: Likewise.
9408         * math/s_clog10l.c: Likewise.
9409         * math/s_clogf.c: Likewise.
9410         * math/s_clogl.c: Likewise.
9411         * math/s_csqrt.c: Likewise.
9412         * math/s_csqrtf.c: Likewise.
9413         * math/s_csqrtl.c: Likewise.
9414         * math/s_ctanf.c: Likewise.
9415         * math/s_ctanh.c: Likewise.
9416         * math/s_ctanhf.c: Likewise.
9417         * math/s_ctanhl.c: Likewise.
9418         * math/s_ctanl.c: Likewise.
9419
9420         * math/math_private.h: Define __nan, __nanf, __nanl.
9421         * math/s_cacosh.c: Include <math_private.h>.
9422         * math/s_cacoshl.c: Likewise.
9423         * math/s_casinh.c: Likewise.
9424         * math/s_casinhf.c: Likewise.
9425         * math/s_casinhl.c: Likewise.
9426         * math/s_ccos.c: Rely entire on ccosh.
9427         * math/s_ccosf.c: Rely entire on ccoshf.
9428         * math/s_ccosl.c: Rely entirely on ccoshl.
9429         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
9430         Remove tests for FE_INVALID.
9431         * math/s_ccoshf.c: Likewise.
9432         * math/s_ccoshl.c: Likewise.
9433         * math/s_csin.c: Likewise.
9434         * math/s_csinf.c: Likewise.
9435         * math/s_csinh.c Likewise.
9436         * math/s_csinhf.c: Likewise.
9437         * math/s_csinhl.c: Likewise.
9438         * math/s_csinl.c: Likewise.
9439         * math/s_ctan.c: Likewise.
9440         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
9441         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
9442         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
9443
9444 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
9445
9446         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
9447         compilation problems.
9448
9449         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
9450         __builtin_expect.
9451
9452 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
9453
9454         * sysdeps/i386/configure.in: Test for -mfma4 option.
9455         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
9456         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
9457         COMMON_CPUID_INDEX_80000001.
9458         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
9459         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
9460         use it if FMA3 is not supported.
9461         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
9462
9463         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
9464         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
9465
9466 2011-10-20  Andreas Schwab  <schwab@redhat.com>
9467
9468         [BZ #12892]
9469         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
9470         it would create a cycle with a link time dependency.
9471
9472 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
9473
9474         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
9475         instruction.
9476         * string/Makefile (strop-tests): Add rawmemchr.
9477         * string/test-rawmemchr.c: New file.
9478
9479         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
9480         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
9481         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
9482         when compiling str{,n}casecmp and when AVX is available.  Hook up
9483         new optimized code in initializers.
9484
9485 2011-10-19  Andreas Schwab  <schwab@redhat.com>
9486
9487         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
9488         __feraiseexcept instead of feraiseexcept.
9489
9490 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
9491
9492         * math/math_private.h: Define defaults for libc_fetestexcept and
9493         libc_feupdateenv.
9494         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
9495         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9496         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9497         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9498         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9499         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9500         libc_fetestexcept and libc_feupdateenv.
9501
9502         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
9503         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
9504         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
9505         * sysdeps/x86_64/fpu/math_private.h: Define special version of
9506         libc_feholdexcept_setround.
9507
9508         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
9509         Add s_nearbyint-c and s_nearbyintf-c.
9510         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
9511         nearbyintf inlines.
9512         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
9513         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
9514         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
9515         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
9516
9517         * math/math_private.h: Define defaults for libc_fegetround,
9518         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
9519         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
9520         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
9521         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
9522         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
9523         standard functions.
9524         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9525         Remove comments and hacks for old compiler versions.
9526         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9527         libc_fegetround, libc_fesetround, libc_feholdexcept, and
9528         libc_feholdexceptl.
9529
9530 2011-10-18  Andreas Schwab  <schwab@redhat.com>
9531
9532         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
9533         (__feraiseexcept_renamed): Add __NTH.
9534         (feraiseexcept): Add __NTH.  Rename local variables to fix
9535         namespace violations.
9536
9537 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
9538
9539         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
9540
9541         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
9542
9543         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
9544         recently added interfaces.
9545         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9546
9547         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
9548         about macro parameter expansion.
9549
9550         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
9551         __NO_MATH_INLINES is defined.  Cleanups.
9552
9553         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
9554         and __floorf is target has SSE4.1.
9555         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
9556         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
9557         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
9558         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
9559
9560         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
9561         name.
9562         (floorf): Likewise.
9563
9564         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
9565
9566 2011-10-17  Andreas Schwab  <schwab@redhat.com>
9567
9568         * misc/sys/cdefs.h: Fix last change.
9569
9570         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
9571         database lookup.
9572
9573 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
9574
9575         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
9576
9577         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
9578         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9579         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9580         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9581         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9582         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9583         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9584         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9585         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9586         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
9587         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
9588         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
9589         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
9590         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
9591         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
9592         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
9593         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
9594         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
9595         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
9596         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
9597         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
9598         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
9599
9600         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
9601         ceil, ceilf, floor, floorf.
9602
9603         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
9604         Perform IRELATIVE relocations last.
9605
9606         * elf/do-rel.h: Add another parameter nrelative, replacing the
9607         local variable with the same name.  Change name of the function
9608         to end in Rel or Rela (uppercase).
9609         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
9610         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
9611         elf_dynamic_do_##reloc function.
9612
9613 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9614
9615         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
9616         is sufficient, at least on modern CPUs.
9617
9618         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
9619
9620         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
9621         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
9622
9623         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
9624         __expl_finite.
9625         * math/bits/math-finite.h: Add entries for exp.
9626         * math/e_expl.c: Add __*_finite alias.
9627         * sysdeps/i386/fpu/e_exp.S: Likewise.
9628         * sysdeps/i386/fpu/e_expf.S: Likewise.
9629         * sysdeps/i386/fpu/e_expl.c: Likewise.
9630         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9631         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9632         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9633         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9634         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
9635         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9636         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9637
9638         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
9639         is sufficient, at least on modern CPUs.
9640
9641         * ctype/ctype-info.c (__ctype_init): Define.
9642         * include/ctype.h (__ctype_init): Declare.
9643         (__ctype_b_loc): The variable is always initialized.
9644         (__ctype_toupper_loc): Likewise.
9645         (__ctype_tolower_loc): Likewise.
9646         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
9647         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
9648
9649 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
9650
9651         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
9652
9653         * configure.in: Also look in $cxxmachine/include for C++ system
9654         headers.
9655
9656 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9657
9658         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
9659         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
9660         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
9661         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
9662         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
9663         (USE_AS_WMEMCMP): New macro.
9664         Fixing indents.
9665         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
9666         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
9667         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
9668         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
9669         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9670         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
9671         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
9672         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
9673         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
9674         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
9675         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
9676         (USE_AS_WMEMCMP): New macro.
9677         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
9678         * sysdeps/string/test-memcmp.c: Update.
9679         Fix simple_wmemcmp.
9680         Add new tests.
9681         * wcsmbs/wmemcmp.c: Update.
9682         (WMEMCMP): New macro.
9683         Fix overflow bug.
9684
9685 2011-10-12  Andreas Jaeger  <aj@suse.de>
9686
9687         [BZ #13268]
9688         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
9689
9690 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9691
9692         * libio/iofwide.c (do_length): Avoid warning.
9693
9694         * ctype/ctype.h (__isctype_f): Add missing __THROW.
9695
9696 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
9697
9698         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
9699
9700         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
9701         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
9702         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
9703         * sysdeps/i386/i686/fpu/e_log.S: New file.
9704         * sysdeps/i386/i686/fpu/e_logf.S: New file.
9705         * sysdeps/i386/i686/fpu/e_logl.S: New file.
9706
9707         * ctype/ctype.h: Add support for inlined isXXX functions when
9708         compiling C++ code.
9709
9710 2011-10-14  Andreas Schwab  <schwab@redhat.com>
9711
9712         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9713
9714         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
9715
9716 2011-10-13  Roland McGrath  <roland@hack.frob.com>
9717
9718         [BZ #13291]
9719         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
9720
9721 2011-10-13  Andreas Schwab  <schwab@redhat.com>
9722
9723         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
9724         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
9725         feraiseexcept.
9726
9727         * sysdeps/x86_64/memrchr.S: Check for zero size.
9728
9729         * string/stratcliff.c: Add memrchr tests.
9730
9731 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9732
9733         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9734         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
9735         rawmemchr-sse2 rawmemchr-sse2-bsf.
9736         * sysdeps/i386/i686/multiarch/memchr.S: New file.
9737         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
9738         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9739         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
9740         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
9741         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
9742         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
9743         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
9744         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
9745         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
9746         * string/memrchr.c (MEMRCHR): New macro.
9747
9748 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
9749
9750         Add integration with gcc's -ffinite-math-only and optimize wrapper
9751         functions in libm.
9752         * Versions.def: Define GLIBC_2.15 version for libm.
9753         * math/Makefile (headers): Add bits/math-finite.h.
9754         * math/bits/math-finite.h: New file.
9755         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
9756         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
9757         * math/e_acoshl.c: Add __*_finite alias.
9758         * math/e_acosl.c: Likewise.
9759         * math/e_asinl.c: Likewise.
9760         * math/e_atan2l.c: Likewise.
9761         * math/e_atanhl.c: Likewise.
9762         * math/e_coshl.c: Likewise.
9763         * math/e_exp10.c: Likewise.
9764         * math/e_exp10f.c: Likewise.
9765         * math/e_exp10l.c: Likewise.
9766         * math/e_exp2l.c: Likewise.
9767         * math/e_fmodl.c: Likewise.
9768         * math/e_gammal_r.c: Likewise.
9769         * math/e_hypotl.c: Likewise.
9770         * math/e_j0l.c: Likewise.
9771         * math/e_j1l.c: Likewise.
9772         * math/e_jnl.c: Likewise.
9773         * math/e_lgammal_r.c: Likewise.
9774         * math/e_log10l.c: Likewise.
9775         * math/e_log2l.c: Likewise.
9776         * math/e_logl.c: Likewise.
9777         * math/e_powl.c: Likewise.
9778         * math/e_sinhl.c: Likewise.
9779         * math/e_sqrtl.c: Likewise.
9780         * math/e_scalb.c: Completely rewritten and optimized.
9781         * math/e_scalbf.c: Likewise.
9782         * math/e_scalbl.c: Likewise.
9783         * math/w_acos.c: Likewise.
9784         * math/w_acosf.c: Likewise.
9785         * math/w_acosl.c: Likewise.
9786         * math/w_acosh.c: Likewise.
9787         * math/w_acoshf.c: Likewise.
9788         * math/w_acoshl.c: Likewise.
9789         * math/w_asin.c: Likewise.
9790         * math/w_asinf.c: Likewise.
9791         * math/w_asinl.c: Likewise.
9792         * math/w_atan2.c: Likewise.
9793         * math/w_atan2f.c: Likewise.
9794         * math/w_atan2l.c: Likewise.
9795         * math/w_atanh.c: Likewise.
9796         * math/w_atanhf.c: Likewise.
9797         * math/w_atanhl.c: Likewise.
9798         * math/w_exp10.c: Likewise.
9799         * math/w_exp10f.c: Likewise.
9800         * math/w_exp10l.c: Likewise.
9801         * math/w_fmod.c: Likewise.
9802         * math/w_fmodf.c: Likewise.
9803         * math/w_fmodl.c: Likewise.
9804         * math/w_j0.c: Likewise.
9805         * math/w_j0f.c: Likewise.
9806         * math/w_j0l.c: Likewise.
9807         * math/w_j1.c: Likewise.
9808         * math/w_j1f.c: Likewise.
9809         * math/w_j1l.c: Likewise.
9810         * math/w_jn.c: Likewise.
9811         * math/w_jnf.c: Likewise.
9812         * math/w_log.c: Likewise.
9813         * math/w_logf.c: Likewise.
9814         * math/w_logl.c: Likewise.
9815         * math/w_log10.c: Likewise.
9816         * math/w_log10f.c: Likewise.
9817         * math/w_log10l.c: Likewise.
9818         * math/w_log2.c: Likewise.
9819         * math/w_log2f.c: Likewise.
9820         * math/w_log2l.c: Likewise.
9821         * math/w_pow.c: Likewise.
9822         * math/w_powf.c: Likewise.
9823         * math/w_powl.c: Likewise.
9824         * math/w_remainder.c: Likewise.
9825         * math/w_remainderf.c: Likewise.
9826         * math/w_remainderl.c: Likewise.
9827         * math/w_scalb.c: Likewise.
9828         * math/w_scalbf.c: Likewise.
9829         * math/w_scalbl.c: Likewise.
9830         * math/w_sqrt.c: Likewise.
9831         * math/w_sqrtf.c: Likewise.
9832         * math/w_sqrtl.c: Likewise.
9833         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
9834         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
9835         used.
9836         * math/math_private.h: Declare __kernel_standard_f.
9837         * math/w_cosh.c: Remove cruft and optimize a bit.
9838         * math/w_coshf.c: Likewise.
9839         * math/w_coshl.c: Likewise.
9840         * math/w_exp2.c: Likewise.
9841         * math/w_exp2f.c: Likewise.
9842         * math/w_exp2l.c: Likewise.
9843         * math/w_hypot.c: Likewise.
9844         * math/w_hypotf.c: Likewise.
9845         * math/w_hypotl.c: Likewise.
9846         * math/w_lgamma.c: Likewise.
9847         * math/w_lgamma_r.c: Likewise.
9848         * math/w_lgammaf.c: Likewise.
9849         * math/w_lgammaf_r.c: Likewise.
9850         * math/w_lgammal.c: Likewise.
9851         * math/w_lgammal_r.c: Likewise.
9852         * math/w_sinh.c: Likewise.
9853         * math/w_sinhf.c: Likewise.
9854         * math/w_sinhl.c: Likewise.
9855         * math/w_tgamma.c: Likewise.
9856         * math/w_tgammaf.c: Likewise.
9857         * math/w_tgammal.c: Likewise.
9858         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9859         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9860         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
9861         Minor optimizations.  Pretty printing.  Remove cruft.
9862         * sysdeps/i386/fpu/e_acosf.S: Likewise.
9863         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9864         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9865         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9866         * sysdeps/i386/fpu/e_acosl.c: Likewise.
9867         * sysdeps/i386/fpu/e_asin.S: Likewise.
9868         * sysdeps/i386/fpu/e_asinf.S: Likewise.
9869         * sysdeps/i386/fpu/e_atan2.S: Likewise.
9870         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
9871         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
9872         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9873         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9874         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9875         * sysdeps/i386/fpu/e_exp10.S: Likewise.
9876         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
9877         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
9878         * sysdeps/i386/fpu/e_exp2.S: Likewise.
9879         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
9880         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
9881         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9882         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
9883         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9884         * sysdeps/i386/fpu/e_hypot.S: Likewise.
9885         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
9886         * sysdeps/i386/fpu/e_log.S: Likewise.
9887         * sysdeps/i386/fpu/e_log10.S: Likewise.
9888         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9889         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9890         * sysdeps/i386/fpu/e_log2.S: Likewise.
9891         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9892         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9893         * sysdeps/i386/fpu/e_logf.S: Likewise.
9894         * sysdeps/i386/fpu/e_logl.S: Likewise.
9895         * sysdeps/i386/fpu/e_pow.S: Likewise.
9896         * sysdeps/i386/fpu/e_powf.S: Likewise.
9897         * sysdeps/i386/fpu/e_powl.S: Likewise.
9898         * sysdeps/i386/fpu/e_remainder.S: Likewise.
9899         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
9900         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
9901         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9902         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9903         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9904         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
9905         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
9906         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
9907         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9908         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9909         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9910         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9911         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9912         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9913         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9914         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9915         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9916         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9917         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9918         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9919         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9920         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9921         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9922         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9923         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9924         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9925         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9926         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9927         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9928         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9929         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9930         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9931         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9932         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9933         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9934         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9935         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9936         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9937         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9938         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9939         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9940         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9941         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9942         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9943         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9944         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9945         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9946         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9947         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9948         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9949         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9950         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9951         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9952         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9953         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9954         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9955         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9956         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9957         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9958         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9959         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9960         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9961         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9962         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9963         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9964         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9965         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9966         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9967         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9968         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9969         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9970         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9971         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9972         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9973         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9974         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9975         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9976         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9977         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9978         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9979         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9980         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9981         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9982         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9983         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
9984         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9985         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9986         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9987         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9988         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9989         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9990         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9991         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9992         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9993         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9994         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9995         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9996         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9997         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9998         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9999         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10000         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10001         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10002         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10003         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10004         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
10005         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
10006         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
10007         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
10008         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
10009         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
10010         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
10011         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10012         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10013         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10014         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10015         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
10016         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10017         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
10018         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
10019         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
10020         (__isnanf): Likewise.
10021         (__isinf_ns): Likewise.
10022         (__isinf_nsf): Likewise.
10023         (__finite): Likewise.
10024         (__finitef): Likewise.
10025         (__ieee754_sqrt): Define as macro.
10026         (__ieee754_sqrtf): Define as macro.
10027         (__ieee754_sqrtl): Define as macro.
10028         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
10029         inlined copy.
10030         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
10031         __FINITE_MATH_ONLY__ consistent.
10032         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
10033
10034 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
10035
10036         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
10037         of rawmemchr.
10038
10039         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
10040
10041 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
10042
10043         * po/ja.po: Update from translation team.
10044
10045 2011-10-08  Roland McGrath  <roland@hack.frob.com>
10046
10047         * locale/programs/locarchive.c (prepare_address_space): New function.
10048         (create_archive, enlarge_archive, open_archive): Use it.
10049
10050         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
10051         inside [SHARED], where it is used.
10052
10053         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
10054
10055         * nss/getent.c (netgroup_keys): Remove unused variable.
10056         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10057
10058 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
10059
10060         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
10061         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
10062         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
10063         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
10064         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
10065         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
10066         * math/Makefile (libm-calls): Add s_isinf_ns.
10067         * math/divtc3.c: Use __isinf_nsl instead of isinf.
10068         * math/multc3.c: Likewise.
10069         * math/s_casin.c: Likewise.
10070         * math/s_casinf.c: Likewise.
10071         * math/s_casinl.c: Likewise.
10072         * math/s_ccos.c: Likewise.
10073         * math/s_ccosf.c: Likewise.
10074         * math/s_ccosl.c: Likewise.
10075         * math/s_ctan.c: Likewise.
10076         * math/s_ctanf.c: Likewise.
10077         * math/s_ctanh.c: Likewise.
10078         * math/s_ctanhf.c: Likewise.
10079         * math/s_ctanhl.c: Likewise.
10080         * math/s_ctanl.c: Likewise.
10081         * math/w_fmod.c: Likewise.
10082         * math/w_fmodf.c: Likewise.
10083         * math/w_fmodl.c: Likewise.
10084         * math/w_remainder.c: Likewise.
10085         * math/w_remainderf.c: Likewise.
10086         * math/w_remainderl.c: Likewise.
10087         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
10088         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
10089         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
10090         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
10091         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
10092         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
10093         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
10094         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
10095
10096         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
10097         of the number.
10098         * stdio-common/printf_fphex.c: Likewise.
10099         * stdio-common/printf_size.c: Likewise.
10100
10101         * math/e_exp10.c: Include math_private.h using <...> not "...".
10102         * math/e_exp10f.c: Likewise.
10103         * math/e_exp10l.c: Likewise.
10104         * math/e_exp2l.c: Likewise.
10105         * math/e_j0l.c: Likewise.
10106         * math/e_j1l.c: Likewise.
10107         * math/e_jnl.c: Likewise.
10108         * math/e_lgammal_r.c: Likewise.
10109         * math/e_rem_pio2l.c: Likewise.
10110         * math/e_scalb.c: Likewise.
10111         * math/e_scalbf.c: Likewise.
10112         * math/e_scalbl.c: Likewise.
10113         * math/k_cosl.c: Likewise.
10114         * math/k_sinl.c: Likewise.
10115         * math/k_tanl.c: Likewise.
10116         * math/s_cacoshf.c: Likewise.
10117         * math/s_catan.c: Likewise.
10118         * math/s_catanf.c: Likewise.
10119         * math/s_catanh.c: Likewise.
10120         * math/s_catanhf.c: Likewise.
10121         * math/s_catanhl.c: Likewise.
10122         * math/s_catanl.c: Likewise.
10123         * math/s_ccosh.c: Likewise.
10124         * math/s_ccoshf.c: Likewise.
10125         * math/s_ccoshl.c: Likewise.
10126         * math/s_cexp.c: Likewise.
10127         * math/s_cexpf.c: Likewise.
10128         * math/s_cexpl.c: Likewise.
10129         * math/s_clog.c: Likewise.
10130         * math/s_clog10.c: Likewise.
10131         * math/s_clog10f.c: Likewise.
10132         * math/s_clog10l.c: Likewise.
10133         * math/s_clogf.c: Likewise.
10134         * math/s_clogl.c: Likewise.
10135         * math/s_csin.c: Likewise.
10136         * math/s_csinf.c: Likewise.
10137         * math/s_csinh.c: Likewise.
10138         * math/s_csinhf.c: Likewise.
10139         * math/s_csinhl.c: Likewise.
10140         * math/s_csinl.c: Likewise.
10141         * math/s_csqrt.c: Likewise.
10142         * math/s_csqrtf.c: Likewise.
10143         * math/s_csqrtl.c: Likewise.
10144         * math/s_ctan.c: Likewise.
10145         * math/s_ctanf.c: Likewise.
10146         * math/s_ctanh.c: Likewise.
10147         * math/s_ctanhf.c: Likewise.
10148         * math/s_ctanhl.c: Likewise.
10149         * math/s_ctanl.c: Likewise.
10150         * math/s_ldexp.c: Likewise.
10151         * math/s_ldexpf.c: Likewise.
10152         * math/s_ldexpl.c: Likewise.
10153         * math/s_significand.c: Likewise.
10154         * math/s_significandf.c: Likewise.
10155         * math/s_significandl.c: Likewise.
10156         * math/w_acos.c: Likewise.
10157         * math/w_acosf.c: Likewise.
10158         * math/w_acosh.c: Likewise.
10159         * math/w_acoshf.c: Likewise.
10160         * math/w_acoshl.c: Likewise.
10161         * math/w_acosl.c: Likewise.
10162         * math/w_asin.c: Likewise.
10163         * math/w_asinf.c: Likewise.
10164         * math/w_asinl.c: Likewise.
10165         * math/w_atan2.c: Likewise.
10166         * math/w_atan2f.c: Likewise.
10167         * math/w_atan2l.c: Likewise.
10168         * math/w_atanh.c: Likewise.
10169         * math/w_atanhf.c: Likewise.
10170         * math/w_atanhl.c: Likewise.
10171         * math/w_cosh.c: Likewise.
10172         * math/w_coshf.c: Likewise.
10173         * math/w_coshl.c: Likewise.
10174         * math/w_dremf.c: Likewise.
10175         * math/w_exp10.c: Likewise.
10176         * math/w_exp10f.c: Likewise.
10177         * math/w_exp10l.c: Likewise.
10178         * math/w_exp2.c: Likewise.
10179         * math/w_exp2f.c: Likewise.
10180         * math/w_fmod.c: Likewise.
10181         * math/w_fmodf.c: Likewise.
10182         * math/w_fmodl.c: Likewise.
10183         * math/w_hypot.c: Likewise.
10184         * math/w_hypotf.c: Likewise.
10185         * math/w_hypotl.c: Likewise.
10186         * math/w_j0.c: Likewise.
10187         * math/w_j0f.c: Likewise.
10188         * math/w_j0l.c: Likewise.
10189         * math/w_j1.c: Likewise.
10190         * math/w_j1f.c: Likewise.
10191         * math/w_j1l.c: Likewise.
10192         * math/w_jn.c: Likewise.
10193         * math/w_jnf.c: Likewise.
10194         * math/w_jnl.c: Likewise.
10195         * math/w_lgamma.c: Likewise.
10196         * math/w_lgamma_r.c: Likewise.
10197         * math/w_lgammaf.c: Likewise.
10198         * math/w_lgammaf_r.c: Likewise.
10199         * math/w_lgammal.c: Likewise.
10200         * math/w_lgammal_r.c: Likewise.
10201         * math/w_log.c: Likewise.
10202         * math/w_log10.c: Likewise.
10203         * math/w_log10f.c: Likewise.
10204         * math/w_log10l.c: Likewise.
10205         * math/w_log2.c: Likewise.
10206         * math/w_log2f.c: Likewise.
10207         * math/w_log2l.c: Likewise.
10208         * math/w_logf.c: Likewise.
10209         * math/w_logl.c: Likewise.
10210         * math/w_pow.c: Likewise.
10211         * math/w_powf.c: Likewise.
10212         * math/w_powl.c: Likewise.
10213         * math/w_remainder.c: Likewise.
10214         * math/w_remainderf.c: Likewise.
10215         * math/w_remainderl.c: Likewise.
10216         * math/w_scalb.c: Likewise.
10217         * math/w_scalbf.c: Likewise.
10218         * math/w_scalbl.c: Likewise.
10219         * math/w_sinh.c: Likewise.
10220         * math/w_sinhf.c: Likewise.
10221         * math/w_sinhl.c: Likewise.
10222         * math/w_sqrt.c: Likewise.
10223         * math/w_sqrtf.c: Likewise.
10224         * math/w_sqrtl.c: Likewise.
10225         * math/w_tgamma.c: Likewise.
10226         * math/w_tgammaf.c: Likewise.
10227         * math/w_tgammal.c: Likewise.
10228
10229         * po/ja.po: Update from translation team.
10230
10231 2011-09-29  Andreas Jaeger  <aj@suse.de>
10232
10233         [BZ #13179]
10234         * sunrpc/netname.c (netname2host): Fix logic.
10235
10236         [BZ #6779]
10237         [BZ #6783]
10238         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
10239         correctly.
10240         * math/w_remainder.c (__remainder): Likewise.
10241         * math/w_remainderf.c (__remainderf): Likewise.
10242         * math/libm-test.inc (remainder_test): Add test cases.
10243
10244 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10245
10246         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
10247         sdiv_qrnnd.
10248
10249 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10250
10251         * string/test-memcmp.c: Avoid unncessary #defines.
10252         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10253
10254 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10255
10256         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
10257         Use new sse2 version for core i3 - i7 as it's faster
10258         than sse42 version.
10259         (bit_Prefer_PMINUB_for_stringop): New.
10260         * sysdeps/x86_64/rawmemchr.S: Update.
10261         Replace with faster SSE2 version.
10262         * sysdeps/x86_64/memrchr.S: New file.
10263         * sysdeps/x86_64/memchr.S: Update.
10264         Replace with faster SSE2 version.
10265
10266 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
10267
10268         * elf/dl-load.c (lose): Add cast to avoid warning.
10269
10270 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10271
10272         * po/ca.po: Update from translation team.
10273
10274         * inet/getnetgrent_r.c: Hook up nscd.
10275         * nscd/Makefile (routines): Add nscd_netgroup.
10276         (nscd-modules): Add netgroupcache.
10277         (CFLAGS-netgroupcache.c): Define.
10278         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
10279         (cache_search): Add const to second parameter.
10280         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
10281         INNETGR.
10282         (dbs): Add netgrdb entry.
10283         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
10284         (verify_persistent_db): Handle netgrdb.
10285         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
10286         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
10287         GETFDNETGR.
10288         (netgroup_response_header): Define.
10289         (innetgroup_response_header): Define.
10290         (datahead): Add netgroup_response_header and innetgroup_response_header
10291         elements.
10292         * nscd/nscd.conf: Add entries for netgroup cache.
10293         * nscd/nscd.h (dbtype): Add netgrdb.
10294         (_PATH_NSCD_NETGROUP_DB): Define.
10295         (netgroup_iov_disabled): Declare.
10296         (xmalloc, xcalloc, xrealloc): Move declarations here.
10297         (cache_search): Adjust prototype.
10298         Add netgroup-related prototypes.
10299         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
10300         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
10301         (__nscd_innetgr): Declare.
10302         * nscd/selinux.c (perms): Use access_vector_t as element type and
10303         add netgroup-related initializers.
10304         * nscd/netgroupcache.c: New file.
10305         * nscd/nscd_netgroup.c: New file.
10306         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
10307         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
10308         For four parameters use innetgr.
10309         * nss/nss_files/files-init.c: Add definition and callback for netgr.
10310         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
10311         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
10312         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
10313
10314         * nscd/connections.c (register_traced_file): Don't register file
10315         for disabled databases.
10316
10317 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
10318
10319         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
10320
10321         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
10322         from tree and freeing node.
10323
10324 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
10325
10326         * nss/nsswitch.c (__nss_database_lookup): Handle
10327         nss_parse_service_list out of memory case.
10328
10329 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
10330
10331         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
10332         out of memory case.
10333
10334 2011-10-04  Andreas Schwab  <schwab@redhat.com>
10335
10336         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
10337         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
10338         pass it down.
10339         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
10340         elf_machine_rela, elf_machine_lazy_rel.
10341         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
10342         (ELF_DYNAMIC_DO_REL): Likewise.
10343         (ELF_DYNAMIC_DO_RELA): Likewise.
10344         (ELF_DYNAMIC_RELOCATE): Likewise.
10345         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
10346         to ELF_DYNAMIC_DO_REL.
10347         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
10348         (dl_main): In trace mode always set __RTLD_NOIFUNC.
10349         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
10350         elf_machine_rela.
10351         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
10352         skip_ifunc, don't call ifunc function if non-zero.
10353         (elf_machine_rela): Likewise.
10354         (elf_machine_lazy_rel): Likewise.
10355         (elf_machine_lazy_rela): Likewise.
10356         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
10357         (elf_machine_lazy_rel): Likewise.
10358         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10359         Likewise.
10360         (elf_machine_lazy_rel): Likewise.
10361         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10362         Likewise.
10363         (elf_machine_lazy_rel): Likewise.
10364         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
10365         (elf_machine_lazy_rel): Likewise.
10366         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
10367         (elf_machine_lazy_rel): Likewise.
10368         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10369         (elf_machine_lazy_rel): Likewise.
10370         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10371         (elf_machine_lazy_rel): Likewise.
10372         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10373         (elf_machine_lazy_rel): Likewise.
10374         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10375         (elf_machine_lazy_rel): Likewise.
10376
10377 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
10378
10379         * nss/nss_files/files-init.c (_nss_files_init): Use static
10380         initialization for all the *_traced_file variables.
10381
10382 2011-09-28  Andreas Schwab  <schwab@redhat.com>
10383
10384         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10385
10386 2011-09-27  Roland McGrath  <roland@hack.frob.com>
10387
10388         [BZ #13226]
10389         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
10390
10391 2011-09-27  Andreas Schwab  <schwab@redhat.com>
10392
10393         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10394         Reread the line before reparsing it.
10395
10396 2011-09-26  Andreas Schwab  <schwab@redhat.com>
10397
10398         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
10399
10400 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
10401             Maxim Kuvyrkov  <maxim@codesourcery.com>
10402             Joseph Myers  <joseph@codesourcery.com>
10403
10404         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
10405         if needed for __stack_chk_guard.
10406
10407 2011-09-19  Roland McGrath  <roland@hack.frob.com>
10408
10409         * sysdeps/posix/spawni.c (script_execute): Always define it.
10410         It will be optimized away if unused.
10411         (maybe_script_execute): New function.
10412         (__spawni): Call it.
10413
10414         * Makerules: Don't include tls.make.
10415         (config-tls): Always set to thread.
10416         * tls.make.c: File removed.
10417
10418 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
10419
10420         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
10421         * config.make.in (CPPFLAGS-config): New substituted variable.
10422
10423 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10424
10425         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
10426
10427         [BZ #13192]
10428         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
10429         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
10430
10431 2011-09-15  Roland McGrath  <roland@hack.frob.com>
10432
10433         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
10434         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
10435         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10436         (CALL_FAIL): Likewise.
10437         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
10438         (CALL_FAIL): Macro removed.
10439         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
10440
10441 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10442
10443         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
10444         for __FINITE_MATH_ONLY__ == 1.
10445
10446 2011-09-15  Andreas Schwab  <schwab@redhat.com>
10447
10448         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
10449         __ieee754_sqrt instead of sqrt.
10450         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
10451         __ieee754_sqrtf instead of sqrtf.
10452         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
10453         __floorf instead of floorf.
10454         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
10455         __floorf, __truncf instead of floorf, truncf.
10456
10457 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
10458
10459         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
10460
10461         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
10462         __extern_always_inline.
10463         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
10464         32-bit.
10465
10466 2011-09-14  Andreas Schwab  <schwab@redhat.com>
10467
10468         * elf/rtld.c (dl_main): Also relocate in dependency order when
10469         doing symbol dependency testing.
10470
10471 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
10472
10473         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10474         Always define `refsym'.
10475
10476 2011-09-13  Andreas Schwab  <schwab@redhat.com>
10477
10478         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
10479         (__FD_ELT): Renamed from __FDELT.
10480         * misc/bits/select2.h (__FD_ELT): Likewise.
10481         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
10482         __FD_MASK instead of __FDELT, __FDMASK.
10483         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10484         Likewise.
10485         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10486         Likewise.
10487
10488         * elf/Makefile (gen-ldd): Fix pattern.
10489
10490         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
10491         (init_tls): Likewise.
10492
10493 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
10494
10495         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
10496
10497 2011-09-12  Andreas Schwab  <schwab@redhat.com>
10498
10499         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
10500         `struct cmsghdr *' instead of `void *'.
10501         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
10502         Likewise.
10503
10504 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
10505
10506         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
10507         if non-absolute.
10508         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
10509         ldd_rewrite_script.
10510
10511 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
10512
10513         * configure.in: Remove --with-tls option.
10514         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
10515         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
10516         out in case it is missing.
10517         * sysdeps/ia64/elf/configure.in: Likewise.
10518         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
10519         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
10520         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
10521         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10522         * sysdeps/sh/elf/configure.in: Likewise.
10523         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
10524         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10525         * sysdeps/x86_64/elf/configure.in: Likewise.
10526         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
10527         * sysdeps/mach/hurd/tls.h: Likewise.
10528
10529         [BZ #13067]
10530         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
10531
10532         [BZ #13090]
10533         * configure.in: Fix use of AC_INIT.
10534
10535         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
10536
10537 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
10538
10539         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
10540         __set_errno.
10541         * malloc/hooks.c: Likewise.
10542
10543         [BZ #11929]
10544         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
10545         variables statically.
10546         (narenas): Initialize.
10547         (list_lock): Initialize.
10548         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
10549         initializtion of main_arena and list_lock.  Small cleanups.
10550         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
10551         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
10552         Add initializers to main_arena and mp_.
10553         (malloc_state): Remove pagesize member.  Change all users to use
10554         GLRO(dl_pagesize).
10555
10556         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
10557         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
10558         is always initialized.
10559
10560         * malloc/malloc.c: Removed unused configurations and dead code.
10561         * malloc/arena.c: Likewise.
10562         * malloc/hooks.c: Likewise.
10563         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
10564
10565         * include/tls.h: Removed.  USE___THREAD must always be defined.
10566         * bits/libc-tsd.h: Don't handle !USE___THREAD.
10567         * elf/dl-libc.c: Likewise.
10568         * elf/dl-tsd.c: Likewise.
10569         * include/errno.h: Likewise.
10570         * include/netdb.h: Likewise.
10571         * include/resolv.h: Likewise.
10572         * inet/herrno-loc.c: Likewise.
10573         * inet/herrno.c: Likewise.
10574         * malloc/arena.c: Likewise.
10575         * malloc/hooks.c: Likewise.
10576         * malloc/malloc.c: Likewise.
10577         * resolv/res-state.c: Likewise.
10578         * resolv/res_libc.c: Likewise.
10579         * sysdeps/i386/dl-machine.h: Likewise.
10580         * sysdeps/ia64/dl-machine.h: Likewise.
10581         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10582         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10583         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10584         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10585         * sysdeps/sh/dl-machine.h: Likewise.
10586         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10587         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10588         * sysdeps/unix/i386/sysdep.S: Likewise.
10589         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10590         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10591         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10592         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10593         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10594         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10595         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10596         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10597         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10598         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10599         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10600         * sysdeps/x86_64/dl-machine.h: Likewise.
10601         * tls.make.c: Likewise.
10602
10603         * configure.in: Remove --with-__thread option.  Make tests for
10604         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
10605         tls_model attribute fail if no support is available.  Remove
10606         USE_IN_LIBIO.
10607         * Makeconfig: Adjust for dropped configure option.  All features are
10608         now mandatory.
10609         * Makerules: Likewise.
10610         * Versions.def: Likewise.
10611         * argp/argp-fmtstream.c: Likewise.
10612         * argp/argp-fmtstream.h: Likewise.
10613         * argp/argp-help.c: Likewise.
10614         * assert/assert.c: Likewise.
10615         * config.h.in: Likewise.
10616         * config.make.in: Likewise.
10617         * configure: Likewise.
10618         * configure.in: Likewise.
10619         * csu/Versions: Likewise.
10620         * csu/init.c: Likewise.
10621         * elf/tst-audit2.c: Likewise.
10622         * elf/tst-tls10.c: Likewise.
10623         * elf/tst-tls10.h: Likewise.
10624         * elf/tst-tls11.c: Likewise.
10625         * elf/tst-tls12.c: Likewise.
10626         * elf/tst-tls14.c: Likewise.
10627         * elf/tst-tlsmod11.c: Likewise.
10628         * elf/tst-tlsmod12.c: Likewise.
10629         * elf/tst-tlsmod13.c: Likewise.
10630         * elf/tst-tlsmod13a.c: Likewise.
10631         * elf/tst-tlsmod14a.c: Likewise.
10632         * elf/tst-tlsmod15b.c: Likewise.
10633         * elf/tst-tlsmod16a.c: Likewise.
10634         * elf/tst-tlsmod16b.c: Likewise.
10635         * elf/tst-tlsmod7.c: Likewise.
10636         * elf/tst-tlsmod8.c: Likewise.
10637         * elf/tst-tlsmod9.c: Likewise.
10638         * gmon/gmon.c: Likewise.
10639         * grp/fgetgrent_r.c: Likewise.
10640         * grp/putgrent.c: Likewise.
10641         * hurd/fopenport.c: Likewise.
10642         * include/libc-symbols.h: Likewise.
10643         * include/tls.h: Likewise.
10644         * intl/gettextP.h: Likewise.
10645         * intl/loadinfo.h: Likewise.
10646         * locale/global-locale.c: Likewise.
10647         * locale/localeinfo.h: Likewise.
10648         * mach/devstream.c: Likewise.
10649         * malloc/arena.c: Likewise.
10650         * malloc/set-freeres.c: Likewise.
10651         * misc/err.c: Likewise.
10652         * misc/getttyent.c: Likewise.
10653         * misc/mntent_r.c: Likewise.
10654         * posix/getopt.c: Likewise.
10655         * posix/wordexp.c: Likewise.
10656         * pwd/fgetpwent_r.c: Likewise.
10657         * resolv/Versions: Likewise.
10658         * resolv/res_hconf.c: Likewise.
10659         * shadow/fgetspent_r.c: Likewise.
10660         * shadow/putspent.c: Likewise.
10661         * stdio-common/printf_fphex.c: Likewise.
10662         * stdio-common/tmpfile.c: Likewise.
10663         * stdlib/abort.c: Likewise.
10664         * stdlib/fmtmsg.c: Likewise.
10665         * sunrpc/auth_unix.c: Likewise.
10666         * sunrpc/clnt_perr.c: Likewise.
10667         * sunrpc/clnt_tcp.c: Likewise.
10668         * sunrpc/clnt_udp.c: Likewise.
10669         * sunrpc/clnt_unix.c: Likewise.
10670         * sunrpc/openchild.c: Likewise.
10671         * sunrpc/svc_simple.c: Likewise.
10672         * sunrpc/svc_tcp.c: Likewise.
10673         * sunrpc/svc_udp.c: Likewise.
10674         * sunrpc/svc_unix.c: Likewise.
10675         * sunrpc/xdr.c: Likewise.
10676         * sunrpc/xdr_array.c: Likewise.
10677         * sunrpc/xdr_rec.c: Likewise.
10678         * sunrpc/xdr_ref.c: Likewise.
10679         * sunrpc/xdr_stdio.c: Likewise.
10680
10681 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10682
10683         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10684
10685 2011-07-03  Andreas Jaeger  <aj@suse.de>
10686
10687         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
10688         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
10689         regenerate with gen-libm-tests.pl.
10690
10691 2010-05-12  Petr Baudis  <pasky@suse.cz>
10692
10693         [BZ #11589]
10694         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
10695         around j0() zero points by switching to j1().
10696         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10697         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10698         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10699         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10700
10701 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10702
10703         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
10704         instead of 0.
10705         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
10706         instead of 0.                              .
10707         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10708         Patch in part by Pavel Roskin <proski@gnu.org>.
10709
10710         [BZ #13138]
10711         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
10712         realloc.
10713         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
10714         Free memory block if necessary.
10715
10716         [BZ #12847]
10717         * libio/genops.c (INTDEF): For string streams the _lock pointer can
10718         be NULL.  Don't lock in this case.
10719
10720 2011-09-09  Roland McGrath  <roland@hack.frob.com>
10721
10722         * elf/elf.h (ELFOSABI_GNU): New macro.
10723         (ELFOSABI_LINUX): Define to that.
10724
10725 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
10726
10727         * string/strncat.c (strncat): Undef the symbol in case it has been
10728         defined in bits/string.h.
10729
10730 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10731
10732         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
10733
10734         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
10735         link map.
10736
10737 2011-08-17  Andreas Jaeger  <aj@suse.de>
10738
10739         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
10740
10741 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10742             Ian Lance Taylor  <iant@google.com>
10743
10744         * math/libm-test.inc (lround_test): New testcase.
10745         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
10746
10747 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
10748
10749         * Makefile: Remove support for automatic cvs check-ins.
10750         * Makerules: Likewise.
10751         * config.make.in: Likewise.
10752         * configure.in: Likewise.
10753         * intl/Makefile: Likewise.
10754         * locale/Makefile: Likewise.
10755         * po/Makefile: Likewise.
10756         * posix/Makefile: Likewise.
10757         * sysdeps/gnu/Makefile: Likewise.
10758         * sysdeps/mach/hurd/Makefile: Likewise.
10759         * sysdeps/sparc/sparc32/Makefile: Likewise.
10760
10761         [BZ #13118]
10762         * posix/Makefile (bug-regex32-ENV): Define.
10763         Patch by John Stanley <jpsinthemix@verizon.net>.
10764
10765         * misc/Makefile (headers): Add bits/select2.h.
10766         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
10767         * misc/bits/select2.h: New file.
10768         * include/bits/select2.h: New file.
10769         * debug/Makefile (routines): Add fdelt_chk.
10770         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
10771         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
10772         FD_ISSET.
10773         * debug/fdelt_chk.c: New file.
10774
10775         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
10776         * wcsmbs/test-wmemcmp.c: Likewise.
10777         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
10778         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
10779
10780 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10781
10782         * string/Makefile (strop-tests): Add memcmp.
10783         * string/test-wmemcmp.c: New file.
10784         * string/test-memcmp.c: Add wmemcmp support.
10785
10786 2011-09-08  Roland McGrath  <roland@hack.frob.com>
10787
10788         [BZ #13153]
10789         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
10790         2011-07-19 change.
10791
10792         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
10793         garbage value in a __mach_port_mod_refs call in the cases of the
10794         task-self and thread-self ports.
10795
10796 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10797
10798         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
10799
10800 2011-09-08  Andreas Schwab  <schwab@redhat.com>
10801
10802         * elf/dl-load.c (lose): Check for non-null L.
10803
10804 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10805
10806         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
10807
10808         * elf/dl-libc.c (dlerror_run): Pass back error code from
10809         dl_catch_error.
10810
10811         [BZ #13123]
10812         * elf/dl-load.c (lose): Free l_origin if it is valid.
10813
10814         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
10815         names.
10816         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
10817         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10818         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10819         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10820         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
10821         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
10822
10823 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10824
10825         * sysdeps/powerpc/fpu/e_hypot.c: New file.
10826         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
10827         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
10828         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
10829         * sysdeps/powerpc/fpu/k_cosf.c: New file.
10830         * sysdeps/powerpc/fpu/k_sinf.c: New file.
10831         * sysdeps/powerpc/fpu/s_cosf.c: New file.
10832         * sysdeps/powerpc/fpu/s_sinf.c: New file.
10833         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
10834         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
10835
10836 2011-08-15  Alan Modra  <amodra@gmail.com>
10837
10838         [BZ #13092]
10839         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
10840         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
10841         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
10842         ppc_mcount to static-only-routines.
10843         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
10844         __mcount_internal.
10845         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
10846         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
10847
10848 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
10849
10850         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
10851         for finite and infinity parameters.
10852
10853 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10854
10855         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
10856         and add nop instructions for throughput optimization.
10857         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10858
10859 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
10860
10861         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
10862         aligned copy for power7 with vector-scalar instructions.
10863         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
10864
10865 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
10866
10867         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
10868         AVX check.
10869
10870 2011-09-07  Andreas Schwab  <schwab@redhat.com>
10871
10872         [BZ #13144]
10873         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
10874         last change.
10875
10876 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10877
10878         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10879         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
10880         syscall wrapper around clock_gettime in __vdso_clock_gettime.
10881         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
10882         clock_gettime.
10883
10884 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10885
10886         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
10887         Forgot to demangle the pointer.
10888
10889         * sysdeps/i386/sysdep.h: Define atom_text_section.
10890         * sysdeps/x86_64/sysdep.h: Likewise.
10891         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
10892         section with atom_text_section.
10893         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10894         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10895         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
10896         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
10897         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
10898
10899         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
10900         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
10901         already be defined.  Change to take two parameters and don't assign
10902         result to variable.  Adjust all users.
10903         Define INTERNAL_GETTIME if not already defined.
10904         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
10905         call.
10906         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
10907         HAVE_CLOCK_GETTIME_VSYSCALL.
10908         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
10909
10910         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
10911         gettimeofday vsyscall, just use time.
10912
10913 2011-09-06  Andreas Schwab  <schwab@redhat.com>
10914
10915         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
10916         <errno.h>.
10917
10918 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10919
10920         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
10921         syscall on x86-64.
10922         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
10923         syscall.
10924         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
10925         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
10926         syscall if possible.
10927
10928 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10929
10930         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
10931         e_ident.  Don't pass to find_mapsXX.
10932         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
10933
10934 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10935
10936         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10937         strchr-sse2-no-bsf strrchr-sse2-no-bsf
10938         * sysdeps/x86_64/multiarch/strchr.S: Update.
10939         Check bit_slow_BSF bit.
10940         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
10941         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
10942         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
10943
10944 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10945
10946         [BZ #13134]
10947         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
10948         before glibc 2.15.
10949         (tryshell): Define.
10950         (__spawni): Change last parameter to be flag.  Test
10951         SPAWN_XFLAGS_USE_PATH flag to use path or not.
10952         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
10953         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
10954         * posix/spawni.c: Likewise.
10955         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
10956         * posix/spawnp.c: Likewise.  Change normal version to use
10957         SPAWN_XFLAGS_USE_PATH.
10958         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
10959         SPAWN_XFLAGS_TRY_SHELL.
10960
10961         [BZ #13150]
10962         * posix/glob.h: Remove gcc 1.x support.
10963
10964         [BZ #13068]
10965         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
10966
10967 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10968
10969         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10970         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
10971         strrchr-sse2-bsf
10972         * sysdeps/i386/i686/multiarch/strchr.S: New file.
10973         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
10974         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
10975         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
10976         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
10977         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
10978
10979 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10980
10981         * sysdeps/x86_64/wcscmp.S: New file.
10982
10983         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
10984         wcscmp-c wcscmp-sse2
10985         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
10986         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
10987         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
10988         * wcsmbs/wcscmp.c: Allow renaming.
10989
10990 2011-09-05  David S. Miller  <davem@davemloft.net>
10991
10992         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
10993         stack slot, rather than the struct return pointer slot.
10994         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
10995         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
10996         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
10997         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
10998
10999 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11000
11001         * po/ja.po: Update from translation team.
11002
11003         [BZ #13144]
11004         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
11005         kernel in 64-bit binaries.
11006
11007 2011-09-01  David S. Miller  <davem@davemloft.net>
11008
11009         * elf/elf.h (HWCAP_SPARC_*): Move to..
11010         * sysdeps/sparc/sysdep.h: this new file and add new values.
11011         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
11012         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
11013         _DL_HWCAP_COUNT to 24.
11014         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
11015         entries.
11016         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
11017         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
11018         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
11019         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
11020         instead of magic constants.
11021         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11022
11023 2011-08-31  David S. Miller  <davem@davemloft.net>
11024
11025         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
11026         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
11027         Reimplement to do errno handling inline.
11028         (SYSCALL_ERROR_HANDLER): New macro.
11029         (__SYSCALL_STRING): Do not do errno handling in asm.
11030         (__CLONE_SYSCALL_STRING): Delete.
11031         (__INTERNAL_SYSCALL_STRING): Delete.
11032         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
11033         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
11034         (PSEUDO): Reimplement to do errno handling inline.
11035         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
11036         (SYSCALL_ERROR_HANDLER): New macro.
11037         (__SYSCALL_STRING): Do not do errno handling in asm.
11038         (__CLONE_SYSCALL_STRING): Delete.
11039         (__INTERNAL_SYSCALL_STRING): Delete.
11040         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
11041         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
11042         i386.
11043         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
11044         (inline_syscall*): Add 'err' argument.
11045         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
11046         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
11047         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
11048         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
11049
11050         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
11051         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
11052
11053 2011-08-30  Andreas Schwab  <schwab@redhat.com>
11054
11055         * elf/rtld.c (dl_main): Relocate objects in dependency order.
11056
11057 2011-08-29  Jiri Olsa <jolsa@redhat.com>
11058
11059         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
11060         directive.
11061
11062 2011-08-24  David S. Miller  <davem@davemloft.net>
11063
11064         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
11065
11066 2011-08-24  Andreas Schwab  <schwab@redhat.com>
11067
11068         * elf/Makefile: Add rules to build and run unload8 test.
11069         * elf/unload8.c: New file.
11070         * elf/unload8mod1.c: New file.
11071         * elf/unload8mod1x.c: New file.
11072         * elf/unload8mod2.c: New file.
11073         * elf/unload8mod3.c: New file.
11074
11075         * elf/dl-close.c (_dl_close_worker): Reset private search list if
11076         it wasn't used.
11077
11078 2011-08-23  David S. Miller  <davem@davemloft.net>
11079
11080         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
11081         subtract stack bias.
11082         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
11083         %sp not %fp in calculations.
11084         (_JMPBUF_UNWINDS_ADJ): Likewise.
11085
11086         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
11087         (aio_suspend): Call it to force an exception region around the
11088         AIO_MISC_WAIT() invocation.
11089
11090 2011-08-23  Andreas Schwab  <schwab@redhat.com>
11091
11092         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
11093         backslash.
11094
11095 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
11096
11097         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
11098         protection macro.
11099         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
11100         and <dl-machine.h>.
11101         (Elf64_FuncDesc): Remove.
11102
11103 2011-08-22  David S. Miller  <davem@davemloft.net>
11104
11105         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
11106         sigaltstack check, add missing cfi directives.
11107         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
11108         missing cfi directives, and sigaltstack handling.
11109
11110 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11111
11112         [BZ #11724]
11113         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
11114         object is seen twice.
11115         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11116
11117         * elf/Makefile (distribute): Add tst-initorder2.c.
11118         (tests): Add tst-initorder2.
11119         (modules-names): Add tst-initorder2a tst-initorder2b
11120         tst-initorder2c tst-initorder2d.  Add rules to build them.
11121         ($(objpfx)tst-initorder2.out): New rule.
11122         * elf/tst-initorder2.c: New file.
11123         * elf/tst-initorder2.exp: New file.
11124
11125 2011-08-22  Andreas Schwab  <schwab@redhat.com>
11126
11127         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
11128
11129         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
11130         dependencies back to end of function.
11131
11132         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11133         $(elfobjdir)/ld.so.
11134
11135 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
11136
11137         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
11138         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
11139         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11140         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11141         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
11142         of __vdso_gettimeofday.
11143         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
11144         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
11145         attribute_hidden.
11146         (_libc_vdso_platform_setup): Remove initialization of
11147         __vdso_gettimeofday and __vdso_time.
11148
11149 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11150
11151         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
11152         and fgetc_unlocked.
11153         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
11154         getc_unlocked.
11155
11156         * elf/dl-open.c (add_to_global): Report additions to the global scope
11157         for LD_DEBUG=scopes.
11158         (dl_open_worker): Also print scope of newly loaded dependencies.
11159         (_dl_show_scope): Indicate if there is no scope.
11160
11161         [BZ #13114]
11162         * stdio-common/Makefile (tests): Add bug24.
11163         * stdio-common/bug24.c: New file.
11164
11165 2011-08-19  Andreas Jaeger  <aj@suse.de>
11166
11167         [BZ #13114]
11168         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
11169         non-existant file when using close-on-exec mode.
11170
11171 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11172
11173         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
11174         the very first instruction.
11175
11176         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
11177         the CFI state in the end.
11178         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
11179         inclusion of dl-trampoline.h.
11180         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
11181
11182 2011-08-19  Andreas Schwab  <schwab@redhat.com>
11183
11184         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
11185         expectations for long double.
11186
11187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
11188         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
11189
11190 2011-08-14  David S. Miller  <davem@davemloft.net>
11191
11192         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
11193         artificual limit depends upon the system page size.
11194
11195 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11196
11197         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
11198         * resolv/Makefile: Define CFLAGS-libresolv.
11199
11200 2011-08-17  Andreas Schwab  <schwab@redhat.com>
11201
11202         * nss/makedb.c (compute_tables): Make variables used in nested
11203         function static.
11204
11205 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11206
11207         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
11208         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
11209         if buffer was too small.
11210
11211         * elf/pldd.c (main): Attach to all threads in the process.
11212         Rewrite /proc handling to use *at functions.
11213
11214 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
11215
11216         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
11217         specifies first scope to show.
11218         (dl_open_worker): Update callers.  Move printing scope of new
11219         object to before the relocation.
11220         * elf/rtld.c (dl_main): Update _dl_show_scope call.
11221         * sysdeps/generic/ldsodefs.h: Update declaration.
11222
11223         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
11224         string for the scope number.
11225
11226 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
11227
11228         * nscd/servicescache.c (cache_addserv): Make sure written is always
11229         initialized.
11230
11231 2011-08-14  Roland McGrath  <roland@hack.frob.com>
11232
11233         * sysdeps/i386/i486/bits/atomic.h
11234         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
11235         statement expression, so as to suppress "set but not used" warning.
11236         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
11237
11238         * string/strncat.c (STRNCAT): Use prototype definition.
11239
11240         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
11241         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
11242         -Iprograms here.
11243         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
11244         (localedef-modules): Add localedef.
11245         (locale-modules): Add locale.
11246
11247         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
11248         * elf/rtld.c (dl_main): Invert order of assignment in last change,
11249         to avoid a warning.
11250
11251 2011-08-14  David S. Miller  <davem@davemloft.net>
11252
11253         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
11254         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
11255
11256 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
11257
11258         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
11259         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
11260         * elf/rtld.c (dl_main): Set l_name of vDSO.
11261         Call _dl_show_scope when DL_DEBUG_SCOPES.
11262         (process_dl_debug): Recognize scopes flag and also set it for all.
11263         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
11264         Declare _dl_show_scope.
11265
11266         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
11267         (do_dlopen): Pass caller_dlopen to dl_open.
11268         (__libc_dlopen_mode): Initialize caller_dlopen.
11269
11270         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
11271         of libc.  Make tolower call locale-independent.  Optimize a bit by
11272         using isdigit instead of isalnum.
11273         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
11274
11275 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
11276
11277         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
11278         was a dependency or dynamically loaded.
11279
11280 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
11281
11282         * intl/l10nflist.c: Allow architecture-specific pop function.
11283         * sysdeps/x86_64/l10nflist.c: New file.
11284
11285         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
11286         classification.
11287
11288 2011-08-10  Andreas Schwab  <schwab@redhat.com>
11289
11290         * include/dirent.h: Add libc_hidden_proto for scandirat and
11291         scandirat64.  Don't declare __scandirat64.
11292         * dirent/scandirat.c: Add libc_hidden_def.
11293         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
11294         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
11295
11296 2011-08-10  David S. Miller  <davem@davemloft.net>
11297
11298         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
11299         enum.
11300         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11301         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11302         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11303
11304 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
11305
11306         * Versions.def [libc]: Add GLIBC_2.15.
11307         * dirent/Makefile (routines): Add scandirat and scandirat64.
11308         * dirent/Versions [libc]: Export scandirat and scandirat64 for
11309         GLIBC_2.15.
11310         * dirent/dirent.h: Declare scandirat and scandirat64.
11311         * dirent/scandirat.c: New file.
11312         * dirent/scandirat64.c: New file.
11313         * sysdeps/wordsize-64/scandirat.c: New file.
11314         * sysdeps/wordsize-64/scandirat64.c: New file.
11315         * dirent/opendir.c: Define opendirat.
11316         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
11317         using scandirat.
11318         * dirent/scandir64.c: Adjust for scandir.c change.
11319         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
11320         __scandirat64, and __scandir_cancel_handler.
11321         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
11322         additional parameter and use openat instead of open (outside of ld.so).
11323         Add new __opendir as wrapper around __opendirat.
11324         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
11325         here without requiring old scandirat implementation.
11326
11327 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
11328
11329         * dirent/scandir.c (cancel_handler): Renamed to
11330         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
11331         defined.  Adjust users.
11332         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
11333         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
11334
11335 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
11336
11337         * string/test-string.h (IMPL): Use __STRING to expand name and then
11338         stringify it.
11339
11340         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
11341         of cleanups.
11342
11343 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11344
11345         * string/Makefile: Update.
11346         (strop-tests): Append strncat.
11347         * string/test-wcscmp.c: New file.
11348         New comprehensive test for wcscmp.
11349         * string/test-strcmp.c: Update.
11350         (WIDE): New define.
11351
11352 2011-07-22  Andreas Schwab  <schwab@redhat.com>
11353
11354         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
11355         line.
11356
11357 2011-07-26  Andreas Schwab  <schwab@redhat.com>
11358
11359         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11360         encoding to ACE if AI_IDN.
11361
11362 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
11363
11364         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
11365         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
11366
11367 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11368
11369         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
11370         Fix overflow bug in strncat.
11371         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
11372
11373         * string/test-strncat.c: Update.
11374         Add new tests for checking overflow bugs.
11375
11376 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11377
11378         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11379         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
11380         * sysdeps/i386/i686/multiarch/strcat.S: New file.
11381         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
11382         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
11383         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
11384         * sysdeps/i386/i686/multiarch/strncat.S: New file.
11385         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
11386         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
11387
11388         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
11389         (USE_AS_STRCAT): Define.
11390         Add strcat and strncat support.
11391         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11392
11393 2011-07-25  Andreas Schwab  <schwab@redhat.com>
11394
11395         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
11396         __n bigger than INT_MAX+1.
11397         (__strncmp_g): Likewise.
11398
11399 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
11400
11401         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
11402         * libio/stido.h: Likewise.
11403
11404         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
11405         (AF_NFC): Define.
11406         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
11407         (AF_NFC): Define.
11408
11409         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
11410         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11411         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11412         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11413         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11414
11415         [BZ #13021]
11416         * scripts/test-installation.pl: Don't expect libnss_test1 to be
11417         installed.
11418
11419         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
11420         typo.
11421         (_dl_x86_64_save_sse): Likewise.
11422
11423 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
11424
11425         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
11426         OSXSAVE.
11427         (_dl_x86_64_save_sse): Likewise.
11428
11429         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
11430
11431         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
11432
11433 2011-07-21  Andreas Schwab  <schwab@redhat.com>
11434
11435         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
11436         change.
11437         (_dl_x86_64_save_sse): Use correct AVX check.
11438
11439 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11440
11441         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
11442         bug in strncpy/strncat.
11443         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
11444
11445 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
11446
11447         * string/tester.c (test_strcat): Add tests for different alignments
11448         of source and destination.
11449         (test_strncat): Likewise.
11450
11451 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11452
11453         [BZ #12852]
11454         * posix/glob.c (glob): Check passed in values before using them in
11455         expressions to avoid some overflows.
11456         (glob_in_dir): Likewise.
11457
11458         [BZ #13007]
11459         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
11460         check for AVX enablement so that we don't crash with old kernels and
11461         new hardware.
11462         * elf/tst-audit4.c: Add same checks here.
11463         * elf/tst-audit6.c: Likewise.
11464
11465         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
11466
11467 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
11468
11469         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
11470
11471 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11472
11473         * po/cs.po: Update from translation team.
11474         * po/bg.po: Likewise.
11475
11476 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
11477
11478         * misc/sys/cdefs.h: Add support for const attribute.
11479         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
11480         to gnu_dev_{major,minor,makedev} functions.
11481
11482 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
11483
11484         * intl/dcigettext.c (get_output_charset): Add missing bracket.
11485
11486 2011-07-20  Andreas Schwab  <schwab@redhat.com>
11487
11488         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
11489         strlen results.
11490
11491 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11492
11493         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
11494         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
11495         register in order to avoid conflicts with the soft frame pointer
11496         being held in r11 when necessary.
11497         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11498         (INTERNAL_VSYSCALL_NCS): Likewise.
11499
11500 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
11501
11502         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
11503         * elf/dl-fini.c (_dl_fini): Adjust caller.
11504         * elf/dl-close.c (_dl_close_worker): Likewise.
11505         * sysdeps/generic/ldsodefs.h: Adjust declaration.
11506
11507 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11508
11509         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
11510         "aux_cache->nlibs < 0".
11511
11512         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
11513         in the reload-count case.
11514
11515 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11516
11517         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11518         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
11519         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
11520         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
11521         * sysdeps/x86_64/multiarch/strcat.S: New file.
11522         * sysdeps/x86_64/multiarch/strncat.S: New file.
11523         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
11524         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
11525         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
11526         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
11527         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
11528         (USE_AS_STRCAT): Define.
11529         Add strcat and strncat support.
11530         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11531         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
11532         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
11533         * string/strncat.c: Update.
11534         (USE_AS_STRNCAT): Define.
11535         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11536         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
11537         and i7.
11538         * sysdeps/x86_64/multiarch/init-arch.h
11539         (bit_Prefer_PMINUB_for_stringop): New.
11540         (index_Prefer_PMINUB_for_stringop): Likewise.
11541         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
11542         bit_Prefer_PMINUB_for_stringop.
11543
11544 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11545
11546         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
11547         buffer64.
11548         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
11549         of casting of buffer.
11550         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
11551         buffer32 and buffer64.
11552         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
11553         writes instead of casting of buffer.
11554         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
11555         buffer32.
11556         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
11557         casting of buffer.
11558
11559 2011-07-19  Andreas Schwab  <schwab@redhat.com>
11560
11561         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
11562
11563 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11564
11565         * nscd/nscd.c (termination_handler): Don't do anything for a database
11566         if it has not yet been initialized.
11567
11568 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11569
11570         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11571
11572 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11573
11574         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11575
11576 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11577
11578         * po/nl.po: Update from translation team.
11579         * po/sv.po: Likewise.
11580
11581 2011-07-16  Roland McGrath  <roland@hack.frob.com>
11582
11583         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
11584         now disallowed by GCC.
11585
11586         * configure.in (use-default-link): Default to yes if a test -shared
11587         link meets our qualifications.
11588         * configure: Regenerated.
11589
11590         * config.make.in (output-format): New variable.
11591         * configure.in: Check for ld --print-output-format support.
11592         * configure: Regenerated.
11593         * Makerules ($(common-objpfx)format.lds)
11594         [$(output-format) != unknown]: Just use $(output-format),
11595         instead of the linker-script munging.
11596
11597 2011-07-14  Roland McGrath  <roland@hack.frob.com>
11598
11599         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
11600         of $(common-objpfx)shlib.lds.
11601         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
11602
11603         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
11604         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
11605
11606         * configure.in (-z relro check): Adjust test code to add a large
11607         writable data section after it.
11608         * configure: Regenerated.
11609
11610 2011-07-11  Roland McGrath  <roland@hack.frob.com>
11611
11612         * configure.in (-z relro check): Fix test code to make the variable
11613         truly const.
11614         * configure: Regenerated.
11615
11616 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
11617
11618         * nscd/nscd.h (struct traced_file): Define.
11619         (struct database_dyn): Remove inotify_descr, reset_res, and filename
11620         elements.  Add traced_files.
11621         (inotify_fd): Declare.
11622         (register_traced_file): Declare.
11623         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
11624         (inotify_fd): Export.
11625         (resolv_conf_descr): Remove.
11626         (nscd_init): Move inotify descriptor creation to main.
11627         Don't register files for notification here.
11628         (register_traced_file): New function.
11629         (invalidate_cache): Don't use reset_res to determine whether to call
11630         res_init, go through the list of registered files.
11631         (main_loop_poll): The inotify descriptors are now stored in the
11632         structures for the traced files.
11633         (main_loop_epoll): Likewise
11634         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
11635         to __nss_disable_nscd.
11636         * nscd/cache.c (prune_cache): There is no single inotify descriptor
11637         for a database anymore.  Check the records for all the registered
11638         files instead.
11639         * nss/Makefile (libnss_files-routines): Add files-init.
11640         (libnss_db-routines): Add db-init.
11641         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
11642         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
11643         * nss/nss_db/db-init.c: New file.
11644         * nss/nss_files/files-init.c: New file.
11645         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
11646         __nss_lookup_function.
11647         (__nss_lookup_function): Call nss_load_library.
11648         (nss_load_all_libraries): New function.
11649         (__nss_disable_nscd): Take parameter with callback function for files
11650         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
11651         used for the cached services.
11652         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
11653         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
11654         options for features to all the files in nscd.
11655
11656         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
11657
11658 2011-07-10  Roland McGrath  <roland@hack.frob.com>
11659
11660         * csu/elf-init.c (__libc_csu_init): Comment typo.
11661
11662 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
11663
11664         * po/pl.po: Update from translation team.
11665         * po/ja.po: Likewise.
11666         * po/ru.po: Likewise.
11667         * po/ko.po: Likewise.
11668         * po/fr.po: Likewise.
11669
11670 2011-07-09  Roland McGrath  <roland@hack.frob.com>
11671
11672         * configure.in (.ctors/.dtors header and trailer check):
11673         Use an empirical test on a built program.
11674         * configure: Regenerated.
11675
11676         * configure.in (-z relro check): Use an empirical test on a built DSO.
11677         Detect, but do not require, on ia64.
11678         * configure: Regenerated.
11679
11680         * configure.in (READELF): Find it with AC_CHECK_TOOL.
11681         Update tests that use readelf to use $READELF instead.
11682         * configure: Regenerated.
11683
11684 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
11685
11686         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
11687         if the result is not used.
11688
11689 2011-07-05  Andreas Jaeger  <aj@suse.de>
11690
11691         [BZ#9696]
11692         * stdlib/tst-strtod.c: Add testcase.
11693
11694 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11695
11696         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
11697         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
11698         The latter has a higher limit.  Take additional parameter to pass to
11699         the new function.
11700         (__pathconf): Pass file to __statfs_link_max.
11701         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
11702         __statfs_link_max.
11703         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
11704         __statfs_link_max.
11705
11706         [BZ #12868]
11707         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
11708         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11709         Handle Lustre.
11710         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
11711         (__statfs_filesize_max): Likewise.
11712         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
11713
11714 2011-07-05  Andreas Jaeger  <aj@suse.de>
11715
11716         * resolv/res_comp.c (dn_skipname): Remove unused variable.
11717
11718 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
11719
11720         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
11721         `status' variable.
11722         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
11723         Likewise.
11724
11725 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11726
11727         * Makefile (strop-tests): Add strncat.
11728         * string/test-strncat.c: New file.
11729
11730 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
11731
11732         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
11733
11734 2011-06-21  Andreas Jaeger  <aj@suse.de>
11735
11736         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
11737         Copy rule from iconvdata/Makefile.
11738
11739 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11740
11741         [BZ #12922]
11742         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
11743         but no long options are defined, just return 'W'.
11744
11745 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
11746
11747         [BZ #9696]
11748         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
11749
11750 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11751
11752         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
11753         netgroups to read.
11754         (innetgr): Likewise.
11755
11756 2011-07-05  Roland McGrath  <roland@hack.frob.com>
11757
11758         * config.make.in (install_root): Default to $(DESTDIR).
11759
11760 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
11761
11762         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
11763
11764 2011-07-02  Roland McGrath  <roland@hack.frob.com>
11765
11766         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
11767
11768         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
11769         containing directory rather than embedding absolute directory names.
11770
11771         * scripts/check-local-headers.sh: Rewritten using awk.
11772         Match by word, not by line.  Print error messages for matches.
11773         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
11774
11775         * Makerules [shlib-lds-flags empty]:
11776         ($(common-objpfx)libc_pic.opts): New target.
11777         ($(common-objpfx)libc_pic.os.clean): New target.
11778         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
11779
11780         * config.make.in (OBJCOPY): New variable.
11781         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
11782         * configure: Regenerated.
11783
11784         * config.make.in (use-default-link): New variable.
11785         * configure.in (use_default_link): Grok --with-default-link to set it.
11786         * configure: Regenerated.
11787         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
11788         (shlib-lds, shlib-lds-flags): Define to empty.
11789
11790         * Makerules (shlib-lds): New variable.
11791         (shlib-lds-flags): New variable.
11792         (build-shlib, build-moduile, build-module-asneeded): Use it.
11793         ($(common-objpfx)libc.so): Use $(shlib-lds).
11794         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
11795         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
11796
11797         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
11798         DT_FLAGS/DT_FLAGS_1 with zero flags.
11799
11800         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
11801         linker script munging.
11802
11803 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
11804
11805         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
11806         as 128-bit value.
11807         * crypt/sha512.c (sha512_process_block): Perform total addition using
11808         128-bit if possible.
11809         (__sha512_finish_ctx): Likewise.
11810         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
11811         as 64-bit value.
11812         * crypt/sha256.c (SWAP64): Define.
11813         (sha256_process_block): Perform total addition using 64-bit if
11814         possible.
11815         (__sha256_finish_ctx): Likewise.
11816
11817 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
11818
11819         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
11820         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11821         * nscd/hstcache.c (cache_addhst): Likewise.
11822         * nscd/grpcache.c (cache_addgr): Likewise.
11823         * nscd/aicache.c (addhstaiX): Likewise
11824         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
11825
11826 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
11827
11828         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
11829         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11830         * nscd/hstcache.c (cache_addhst): Likewise.
11831         * nscd/grpcache.c (cache_addgr): Likewise.
11832         * nscd/aicache.c (addhstaiX): Likewise
11833
11834 2011-07-01  Andreas Schwab  <schwab@redhat.com>
11835
11836         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
11837         domain only when needed.
11838
11839 2011-06-30  Andreas Schwab  <schwab@redhat.com>
11840
11841         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
11842         is always restored.
11843
11844 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
11845
11846         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
11847         are re-adding the entry.
11848         * nscd/servicescache.c (cache_addserv): Likewise.
11849
11850 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
11851
11852         * sysdeps/generic/dl-irel.h: fix protection against multiple
11853         inclusions.
11854         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
11855
11856 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
11857
11858         [BZ #12935]
11859         * malloc/memusage.sh: Fix quoting in message.
11860         * debug/xtrace.sh: Likewise.
11861
11862         * configure.in: Remove support for --experimental-malloc option, make
11863         it the default.
11864         * config.make.in: Likewise.
11865         * malloc/Makefile: Likewise.
11866
11867 2011-06-27  Andreas Schwab  <schwab@redhat.com>
11868
11869         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
11870         two-byte characters.
11871
11872 2011-06-27  Roland McGrath  <roland@hack.frob.com>
11873
11874         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
11875         AC_CACHE_CHECK invocation.
11876         * configure: Regenerated.
11877
11878         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
11879
11880 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
11881
11882         [BZ #12350]
11883         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
11884         bit from old_res_options.
11885
11886         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
11887
11888         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
11889         value type for setfct.
11890
11891 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11892
11893         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11894         __gettimeofday instead of gettimeofday.
11895
11896 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
11897
11898         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
11899
11900 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11901
11902         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
11903
11904         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
11905         info.
11906
11907 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11908
11909         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11910         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11911         strcpy-sse2-unaligned strncpy-sse2-unaligned
11912         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
11913         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
11914         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
11915         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
11916         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
11917         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
11918         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
11919         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
11920         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
11921         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
11922         (STRCPY): Support SSE2 and SSSE3 versions.
11923
11924 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
11925
11926         [BZ #12874]
11927         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
11928         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
11929         kernels which artificially limit size of requests.
11930
11931 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11932
11933         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11934         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11935         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
11936         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
11937         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
11938         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
11939         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
11940         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
11941         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
11942         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
11943         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
11944         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
11945         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
11946         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
11947         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
11948         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11949         Enable unaligned load optimization for Intel Core i3, i5 and i7
11950         processors.
11951         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
11952         Define.
11953         (index_Fast_Unaligned_Load): Define.
11954         (HAS_FAST_UNALIGNED_LOAD): Define.
11955
11956 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
11957
11958         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
11959
11960 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11961
11962         [BZ #12907]
11963         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
11964         until it is clear that the information is realy needed.
11965         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
11966
11967 2011-06-22  Andreas Schwab  <schwab@redhat.com>
11968
11969         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
11970
11971 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11972
11973         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11974         /sys/devices/system/cpu/online if it is usable.
11975
11976         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
11977         reading the information from the /proc filesystem to once a second.
11978
11979 2011-06-21  Andreas Jaeger  <aj@suse.de>
11980
11981         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
11982         NULL after inclusion of kernel headers.
11983
11984 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
11985
11986         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
11987         calls to internal_setent.
11988
11989         [BZ #12885]
11990         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
11991         addresses using gethostbyname4_r ignore IPv4 addresses.
11992
11993         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
11994         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
11995
11996         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
11997
11998 2011-06-20  David S. Miller  <davem@davemloft.net>
11999
12000         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
12001         inclusions.
12002         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
12003
12004         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
12005         (elf_irel): Use it.
12006         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
12007         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
12008         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
12009         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
12010         * sysdeps/x86_64/dl-irel.h: Likewise.
12011
12012         * elf/dl-runtime.c: Use elf_ifunc_invoke.
12013         * elf/dl-sym.c: Likewise.
12014
12015 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12016
12017         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
12018         need to dereference resplen2.
12019
12020 2011-06-14  Andreas Schwab  <schwab@redhat.com>
12021
12022         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
12023
12024 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12025
12026         * Makeconfig: Define vardbdir and inst_vardbdir.
12027         * nss/Makefile: Add rules to install db-Makefile.
12028
12029         * nss/nss_db/db-XXX.c: Cleanup.
12030
12031         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
12032         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
12033         GLIBC_PRIVATE.
12034         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
12035         * nss/makedb.c: Implement -g option to specify that value strings
12036         are generated and should not be added to table iterated over for
12037         get*ent calls.
12038         * nss/nss_db/db-initgroups.c: New file.
12039
12040         * nss/getent.c: Add support for initgroups lookups through getgrouplist
12041         interface.
12042
12043         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
12044         (internal_getgrouplist): Adjust to name change.
12045         Update use_initgroups_entry if this is not the first call.
12046         * nss/databases.def: Add initgroups entry.
12047
12048         * nss/makedb.c (compute_tables): Check result of multiple hash table
12049         sizes to minimize maximum chain length.
12050
12051 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
12052
12053         * Versions.def: Add entry for libnss_db.
12054         * shlib-versions: Likewise.
12055         * nss/Makefile: Add rules to build libnss_db.
12056         * nss/Versions: Add libnss_db information.  Organize libnss_files
12057         entries better.
12058         * nss/db-Makefile: Add gshadow support.  Change rules for the new
12059         makedb progra.  Some minor improvements to generate smaller files.
12060         * nss/nss_db/nss_db.h: Move NSS database header data structures to
12061         here from...
12062         * nss/makedb.c: ...here.
12063         Improve database format to be smaller and require less memory at
12064         runtime.
12065         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
12066         db anymore.
12067         * nss/nss_db/db-netgrp.c: Likewise.
12068         * nss/nss_db/db-open.c: Likewise.
12069         * nss/nss_files/flies-XXX.x: Adjust comments.
12070         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
12071         * nss/nss_files/files-grp.c: Likewise.
12072         * nss/nss_files/files-hosts.c: Likewise.
12073         * nss/nss_files/files-network.c: Likewise.
12074         * nss/nss_files/files-proto.c: Likewise.
12075         * nss/nss_files/files-pwd.c: Likewise.
12076         * nss/nss_files/files-rpc.c: Likewise.
12077         * nss/nss_files/files-service.c: Likewise.
12078         * nss/nss_files/files-sgrp.c: Likewise.
12079         * nss/nss_files/files-spwd.c: Likewise.
12080         * nss/nss_db/db-alias.c: Removed.
12081         * nss/nss_db/dummy-db.h: Removed.
12082
12083 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
12084
12085         * nss/makedb.c: Rewritten to not use database library.
12086         * nss/Makefile: Update to build new makedb program.
12087
12088 2011-06-14  Andreas Jaeger  <aj@suse.de>
12089
12090         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
12091         memset declaration.
12092
12093 2011-06-10  Andreas Schwab  <schwab@redhat.com>
12094
12095         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
12096         tmpbuf.
12097
12098 2011-06-10  Roland McGrath  <roland@hack.frob.com>
12099
12100         * Makerules (shlib.lds): Fail if the linker script comes out empty.
12101         * elf/Makefile ($(objpfx)ld.so): Likewise.
12102
12103         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
12104         Don't list ld.so twice in dependencies.
12105
12106         * posix/bug-regex31.c: Include <stdlib.h>.
12107
12108         * nscd/hstcache.c (cache_addhst): Remove unused variable.
12109
12110         * nis/nss_compat/compat-spwd.c
12111         (getspent_next_nss_netgr): Remove unused variable.
12112         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
12113
12114         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
12115         nonmembers" output to use the right array.
12116
12117         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
12118
12119         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
12120
12121         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
12122         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
12123         * catgets/gencat.c (read_input_file): Likewise.
12124         * locale/programs/locarchive.c (enlarge_archive): Likewise.
12125
12126         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
12127         variable definition inside #if's controlling its use.
12128
12129         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
12130
12131         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
12132
12133         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
12134
12135         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
12136         unreachable code.
12137
12138         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
12139
12140         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
12141         * configure: Regenerated.
12142
12143         * Makerules: Revert last change.
12144         * elf/Makefile: Likewise.
12145
12146 2011-06-09  Roland McGrath  <roland@hack.frob.com>
12147
12148         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
12149         * elf/Makefile ($(objpfx)librtld.os): Likewise.
12150         (reloc-link): Likewise.
12151
12152 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
12153
12154         * elf/Makefile: Add rules to build pldd.
12155         * elf/pldd.c: New file.
12156         * elf/pldd-xx.c: New file.
12157
12158 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
12159
12160         * version.h: Update for 2.15 development version.
12161
12162 2011-06-07  David S. Miller  <davem@davemloft.net>
12163
12164         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
12165         ifuncs.
12166         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
12167         elf_machine_lazy_rel): Likewise.
12168         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
12169         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
12170         elf_machine_lazy_rel): Likewise.
12171         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
12172         dl_hwcap via passed in argument.
12173         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
12174         Likewise.
12175
12176 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12177
12178         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
12179
12180 2011-06-06  Roland McGrath  <roland@hack.frob.com>
12181
12182         [BZ #12849]
12183         * manual/fdl-1.1.texi: New file, verbatim from:
12184         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
12185         * manual/lgpl-2.1.texi: New file, verbatim from:
12186         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
12187         * manual/Makefile (licenses): New variable, list those new file names.
12188         (texis): Use it.
12189         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
12190
12191         * manual/fdl.texi: File removed.
12192         * manual/lesser.texi: File removed.
12193         * manual/libc.texinfo (Copying, Documentation License):
12194         Use new @include file names, put @appendix directive before @include.
12195
12196 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
12197
12198         [BZ #12841]
12199         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
12200         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
12201         (mq_open): Add __NTH.
12202
12203 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12204
12205         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12206         Assume Intel Core i3/i5/i7 processor if AVX is available.
12207
12208 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12209
12210         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12211         typo.
12212
12213 2011-05-31  Andreas Schwab  <schwab@redhat.com>
12214
12215         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
12216         memory.  Use alloca_account.  Fix memory leak when retrying.
12217
12218 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12219
12220         * version.h (RELEASE): Bump for 2.14 release.
12221         * include/features.h (__GLIBC_MINOR__): Bump to 14.
12222
12223         * config.make.in (RANLIB): Remove entry.
12224
12225 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
12226
12227         * po/Makefile (po-sed-cmd): Add ksh to extensions.
12228         (libc.pot): Work around missing support for .ksh extension in xgettext.
12229
12230         [BZ #12684]
12231         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
12232         if both request failed.
12233         (send_dg): In case of server errors clear resplen or *resplen2.
12234
12235         [BZ #12454]
12236         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
12237         when there are multiple maps.
12238         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
12239         (_dl_fini): Remove test here.
12240
12241         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
12242
12243 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
12244
12245         [BZ #12350]
12246         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
12247         bit from old_res_options.
12248         (gaih_inet): Likewise.
12249
12250         [BZ #11099]
12251         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
12252         as signed.
12253
12254         * resolv/res_init.c (res_setoptions): Make the code more compact.
12255
12256         [BZ #11558]
12257         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
12258         set RES_USEVC.
12259
12260         [BZ #11634]
12261         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
12262
12263         * malloc/malloc.h: Mark malloc hook variables as deprecated.
12264
12265         [BZ #11781]
12266         * malloc/malloc.h: Declare malloc hook variables as volatile.
12267
12268         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
12269         in last patch.
12270
12271         [BZ #11799]
12272         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
12273         raise in the comment.
12274         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12275         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12276         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
12277
12278 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
12279
12280         [BZ #12811]
12281         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
12282         grow the buffers more if it already has to be sufficient.
12283         (build_wcs_upper_buffer): Likewise.
12284         * posix/regexec.c (check_matching): Likewise.
12285         (clean_state_log_if_needed): Likewise.
12286         (extend_buffers): Don't enlarge buffers beyond size of the input
12287         buffer.
12288         Patches mostly by Emil Wojak <emil@wojak.eu>.
12289         * posix/bug-regex32.c: New file.
12290         * posix/Makefile (tests): Add bug-regex32.
12291
12292         * locale/findlocale.c (_nl_find_locale): Return right away if
12293         _nl_explode_name failed.
12294         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12295
12296         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
12297
12298         * debug/xtrace.sh: Unify messages.
12299         * malloc/memusage.sh: Likewise.
12300
12301         [BZ #12813]
12302         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
12303         time symbol from vDSO.  Substitute with vsyscall if not available.
12304         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
12305         __vdso_time.
12306
12307         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
12308         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
12309         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
12310         Add sendmmsg and internal_sendmmsg.
12311         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
12312         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
12313         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
12314
12315         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
12316         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
12317         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
12318
12319 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
12320
12321         [BZ #12813]
12322         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
12323         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
12324         available.
12325         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
12326         __vdso_getcpu.
12327
12328         [BZ #12814]
12329         * iconvdata/Makefile (tests): Add bug-iconv9.
12330         * iconvdata/bug-iconv9.c: New file.
12331
12332 2011-05-27  Andreas Schwab  <schwab@redhat.com>
12333
12334         [BZ #12814]
12335         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
12336
12337 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12338
12339         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12340         (struct user_regs_struct): Change intcs field back to cs.
12341
12342 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
12343
12344         * po/ja.po: Update from translation team.
12345
12346 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
12347
12348         [BZ #12795]
12349         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
12350         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
12351
12352 2011-05-20  Andreas Schwab  <schwab@redhat.com>
12353
12354         * stdlib/longlong.h: Update from GCC.
12355
12356 2011-05-23  Andreas Schwab  <schwab@redhat.com>
12357
12358         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
12359         parameter name.
12360         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
12361         Add parameter name.
12362         (__sysconf): Pass it down.
12363
12364 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
12365
12366         [BZ #12671]
12367         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
12368         some situations.
12369         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12370         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
12371         add in in __libc_use_alloca calls.  Adjust callers.
12372         (glob): Use malloc in some situations.
12373
12374         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
12375         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
12376         pltexit.
12377
12378 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
12379
12380         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
12381         and CLOCK_BOOTTIME_ALARM.
12382
12383         [BZ #12782]
12384         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
12385         is returned.
12386
12387         * string/_strerror.c (__strerror_r): Print negative errors as signed
12388         numbers.
12389
12390         [BZ #12777]
12391         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
12392         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
12393         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
12394
12395         * configure.in: Fix typo in redirection and correct removal of test
12396         files in two cases.
12397
12398         [BZ #12788]
12399         * locale/setlocale.c (new_composite_name): Fix test to check for
12400         identical name of all categories.
12401
12402         [BZ #12792]
12403         * libio/filedoalloc.c (local_isatty): New function.
12404         (_IO_file_doallocate): Use local_isatty.
12405         * stdio-common/perror.c (perror): In case a new stream is used
12406         forward the stream error.
12407         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
12408         error flag.
12409
12410 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
12411
12412         [BZ #11869]
12413         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
12414         alloca.
12415         * include/alloca.h (extend_alloca_account): Define.
12416
12417         [BZ #11857]
12418         * posix/regex.h: Fix comments with documentation of user-accessible
12419         fields after compilation and describe correct free'ing of pattern
12420         after re_compile_pattern.
12421         Patch by Reuben Thomas <rrt@sc3d.org>.
12422
12423 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
12424
12425         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
12426         and -mno-altivec to prevent the compiler from using Altivec and/or
12427         VSX instructions when the corresponding registers are not available.
12428
12429 2011-05-19  Andreas Schwab  <schwab@redhat.com>
12430
12431         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
12432
12433 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
12434
12435         * libio/freopen.c (freopen): Use __dup2, not dup2.
12436         * libio/freopen64.c (freopen64): Likewise.
12437
12438 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12439
12440         [BZ #12775]
12441         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
12442         * math/Makefile (tests): Add test-powl.
12443         (CFLAGS-test-powl.c): Define.
12444         * math/test-powl.c: New file.
12445
12446 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12447
12448         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
12449
12450 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
12451
12452         [BZ #11837]
12453         * iconvdata/gb18030.c: Update to GB18020-2005.
12454
12455 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
12456
12457         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
12458         RE_SYNTAX_POSIX_AWK): Update to match recent development.
12459         Patch by Aharon Robbins <arnold@skeeve.com>.
12460
12461         [BZ #11892]
12462         * stdlib/putenv.c (putenv): Don't always create copy of the variable
12463         on the stack.
12464
12465         [BZ #11895]
12466         * misc/pselect.c (__pselect): Handle timeout value errors hidden
12467         through underflows.
12468
12469         [BZ #12766]
12470         * misc/error.c (error_at_line): Ensure file_name and old_file_name
12471         point to strings before performing equality test for error_one_per_line
12472         mode.
12473
12474         [BZ #11697]
12475         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
12476
12477         [BZ #11820]
12478         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12479         (struct user_fpregs_struct): Avoid __uint*_t types.
12480
12481         [BZ #6420]
12482         * malloc/mtrace.c (tr_where): Add additional parameter to point to
12483         symbol info.  Use it instead of calling _dl_addr locally.
12484         (lock_and_info): New function.
12485         (tr_freehook): Call lock_and_info and pass symbol info as additional
12486         parameter to tr_where.
12487         (tr_mallochook): Likewise.
12488         (tr_reallochook): Likewise.
12489         (tr_memalignhook): Likewise.
12490
12491         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
12492         used and couldn't be at all thread-safe.
12493
12494 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
12495
12496         * libio/freopen.c (freopen): Don't close old file descriptor
12497         before the new one is opened.  Instead dup the new file descriptor
12498         to the old one after the new stream is created.
12499         * libio/freopen64.c (freopen64): Likewise.
12500         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
12501         * libio/fileops.c (_IO_new_file_close_it): Handle new
12502         _IO_FLAGS2_NOCLOSE flag.
12503         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
12504         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
12505         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
12506         _IO_FLAGS2_NOCLOSE flag.
12507         * include/unistd.h: Add hidden_proto for dup3.
12508         Define __have_dup3.
12509         * io/dup3.c: Define hidden symbol.
12510         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
12511
12512         [BZ #7101]
12513         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
12514         when an incomplete long option is used.
12515         * posix/tst-getopt_long1.c: New file.
12516         * posix/Makefile (tests): Add tst-getopt_long1.
12517
12518         [BZ #10138]
12519         * scripts/config.guess: Update from autoconf-2.68.
12520         * scripts/config.sub: Likewise.
12521
12522         [BZ #10157]
12523         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
12524         tests into ...
12525         (has_cpuclock): ...this.  New function.
12526         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
12527         macro here based on has_cpuclock code.
12528
12529         [BZ #10149]
12530         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12531         First byte (not low byte) is now always NUL.
12532         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
12533
12534         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12535         Use non-cancelable interfaces.
12536
12537         [BZ #9809]
12538         * locale/iso-639.def: Add entry for Sorani.
12539
12540         [BZ #11901]
12541         * include/stdlib.h: Move include protection to the right place.
12542         Define abort_msg_s.  Declare __abort_msg with it.
12543         * stdlib/abort.c (__abort_msg): Adjust type.
12544         * assert/assert.c (__assert_fail_base): New function.  Majority
12545         of code from __assert_fail.  Allocate memory for __abort_msg with
12546         mmap.
12547         (__assert_fail): Now call __assert_fail_base.
12548         * assert/assert-perr.c: Remove bulk of implementation.  Use
12549         __assert_fail_base.
12550         * include/assert.hL Declare __assert_fail_base.
12551         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
12552         mmap.
12553         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
12554
12555 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
12556
12557         [BZ #11952]
12558         [BZ #12453]
12559         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
12560         until all modules are registered in the DTV.
12561         * elf/Makefile: Add rules to build and run tst-tls19.
12562         * elf/tst-tls19.c: New file.
12563         * elf/tst-tls19mod1.c: New file.
12564         * elf/tst-tls19mod2.c: New file.
12565         * elf/tst-tls19mod3.c: New file.
12566         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
12567
12568         [BZ #12083]
12569         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
12570         correctly.
12571
12572         [BZ #12601]
12573         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
12574         two-byte sequence errors.
12575         * iconvdata/Makefile (tests): Add bug-iconv8.
12576         * iconvdata/bug-iconv8.c: New file.
12577
12578         [BZ #12626]
12579         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
12580         buf2 definition.
12581
12582         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
12583
12584         [BZ #12432]
12585         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
12586         (dummy_getcfa): New function.
12587         (init): Get _Unwind_GetCFA address, use dummy if not found.
12588         (backtrace_helper): In recursion check, also check whether CFA changes.
12589         (__backtrace): Completely initialize arg.
12590
12591         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
12592         storing incomplete byte sequence in state object.  Avoid testing for
12593         guaranteed too small input if we know there is enough data available.
12594
12595 2011-05-11  Andreas Schwab  <schwab@redhat.com>
12596
12597         * Makeconfig (+link-pie): Indent.
12598         * Rules (binaries-pie): Define if $(have-fpie) and
12599         $(build-shared).
12600         (binaries-shared): Also filter out $(binaries-pie).
12601         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
12602         * nscd/Makefile (others-pie): Add nscd.
12603         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
12604         ($(objpfx)nscd): Remove command override.
12605         * login/Makefile (others-pie): Add pt_chown.
12606         ($(objpfx)pt_chown): Remove command override.
12607         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
12608         remove command overrides.
12609
12610 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
12611
12612         * libio/tst_putwc.c: Fix error messages.
12613
12614         [BZ #12724]
12615         * libio/fileops.c (_IO_new_file_close_it): Always flush when
12616         currently writing and seek to current position when not.
12617         * libio/Makefile (tests): Add bug-fclose1.
12618         * libio/bug-fclose1.c: New file.
12619
12620 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
12621
12622         [BZ #12511]
12623         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
12624         don't set DF_1_NODELETE here.
12625         (do_lookup_x): When entering new entry test for copy relocation
12626         and if necessary set DF_1_NODELETE flag.
12627         * elf/tst-unique4.cc: New file.
12628         * elf/tst-unique4.h: New file.
12629         * elf/tst-unique4lib.cc: New file.
12630         * elf/Makefile: Add rules to build and run tst-unique4.
12631         Patch by Piotr Bury <pbury@goahead.com>.
12632
12633 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12634
12635         [BZ #12052]
12636         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
12637
12638         [BZ #12625]
12639         * misc/mntent_r.c (addmntent): Flush the stream after the output
12640
12641         [BZ #12393]
12642         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
12643         (is_trusted_path_normalize): Skip initial colon.  Append slash
12644         to empty buffer.  Duplicate is_trusted_path code but allow
12645         constructed patch to be prefix.
12646         (is_dst): Allow $ORIGIN followed by /.
12647         (_dl_dst_substitute): Correct clearing of check_for_trusted.
12648         Correct testing of result of is_trusted_path_normalize
12649         (decompose_rpath): Fix warning.
12650
12651 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
12652
12653         [BZ #11257]
12654         * grp/initgroups.c (internal_getgrouplist): When we found the service
12655         list through the initgroups entry in nsswitch.conf do not always
12656         continue on a successful lookup.  Don't always use the
12657         __nss_group_database value if it is set.
12658         * nss/nsswitch.conf (initgroups): Change action for successful db
12659         lookup to continue for compatibility.
12660
12661 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
12662
12663         [BZ #11532]
12664         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
12665         and CP774 modules.
12666         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
12667         and CP774 modules.
12668         * iconvdata/tst-tables.sh: Likewise.
12669         * iconvdata/cp770.c: New file.
12670         * iconvdata/cp771.c: New file.
12671         * iconvdata/cp772.c: New file.
12672         * iconvdata/cp773.c: New file.
12673         * iconvdata/cp774.c: New file.
12674         * iconvdata/testdata/CP770: New file.
12675         * iconvdata/testdata/CP770..UTF8: New file.
12676         * iconvdata/testdata/CP771: New file.
12677         * iconvdata/testdata/CP771..UTF8: New file.
12678         * iconvdata/testdata/CP772: New file.
12679         * iconvdata/testdata/CP772..UTF8: New file.
12680         * iconvdata/testdata/CP773: New file.
12681         * iconvdata/testdata/CP773..UTF8: New file.
12682         * iconvdata/testdata/CP774: New file.
12683         * iconvdata/testdata/CP774..UTF8: New file.
12684
12685         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
12686         END CHARMAP line.
12687         * iconvdata/gen-8bit-gap.sh: Likewise.
12688         * iconvdata/gen-8bit.sh: Likewise.
12689
12690         * locale/iso-639.def: Add ary entry.
12691
12692         [BZ #11258]
12693         * locale/C-translit.h.in: Add U20A1 transliteration.
12694
12695         [BZ #12178]
12696         * locale/iso-639.def: Add wae entry.
12697         Patch by Kevin Bortis <bortis@translate-wae.ch>.
12698
12699         [BZ #12545]
12700         * locale/programs/localedef.c (construct_output_path): Use ssize_t
12701         for n.
12702
12703         [BZ #12711]
12704         * locale/C-translit.h.in: Add entry for U20B9.
12705         Patch by pravin.d.s@gmail.com.
12706
12707 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
12708
12709         [BZ #12713]
12710         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
12711         ENAMETOOLONG use generic getcwd.
12712         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
12713         in rtld.  Use *stat64.
12714         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
12715         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
12716         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
12717         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
12718         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
12719         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
12720         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
12721         __fstatat64 macros.
12722         * include/dirent.h: Add libc_hidden_proto for rewinddir.
12723         * dirent/rewinddir.c: Add libc_hidden_def.
12724         * sysdeps/mach/hurd/rewinddir.c: Likewise.
12725         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
12726
12727         * include/dirent.h (__alloc_dir): Add flags parameter.
12728         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
12729         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
12730         __alloc_dir.
12731         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
12732         from fdopendir if O_CLOEXEC is already set.
12733
12734 2011-03-15  Alan Modra  <amodra@gmail.com>
12735
12736         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
12737         l_tls_firstbyte_offset non-zero.  Save padding offset in
12738         l_tls_firstbyte_offset for later use.
12739         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
12740         freeing static tls block.
12741
12742 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
12743
12744         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
12745         where #ifdef was intended.  The intent is to prevent ARG_MAX from
12746         being defined by the kernel headers.
12747
12748 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
12749
12750         [BZ #12734]
12751         * resolv/resolv.h: Define RES_NOTLDQUERY.
12752         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
12753         no-tld-query and set RES_NOTLDQUERY.
12754         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
12755         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
12756         modern BIND to search name as TLD unless forbidden.
12757
12758 2011-05-07  Petr Baudis  <pasky@suse.cz>
12759             Ulrich Drepper  <drepper@gmail.com>
12760
12761         [BZ #12393]
12762         * elf/dl-load.c (fillin_rpath): Move trusted path check...
12763         (is_trusted_path): ...to here.
12764         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
12765         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
12766         using is_trusted_path_normalize() in setuid scripts.
12767
12768 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12769
12770         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
12771         __BEGIN/__END_DECLS.
12772
12773 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
12774
12775         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
12776         NSS_STATUS_NOTFOUND if no record was found.
12777
12778 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12779
12780         * sunrpc/Makefile (headers): Add rpc/netdb.h.
12781         (headers-not-in-tirpc): Remove rpc/netdb.h
12782         * resolv/netdb.h: Revert last change.
12783
12784 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12785
12786         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
12787         circular dependency between libgcc.a and libc.a.
12788
12789 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12790
12791         * resolv/netdb.h: Don't include <rpc/netdb.h>.
12792         * nis/Makefile: Don't install rpcsvc/*.
12793         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
12794         instead of <rpc/types.h>.
12795         (MAXHOSTNAMELEN): Define.
12796
12797 2011-05-03  Andreas Schwab  <schwab@redhat.com>
12798
12799         * elf/ldconfig.c (add_dir): Don't crash on empty path.
12800
12801 2011-04-28  Maciej Babinski  <mbabinski@google.com>
12802
12803         [BZ #12714]
12804         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
12805         gethostbyname4_r when IPv6 results are possible.
12806
12807 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
12808
12809         [BZ #12723]
12810         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
12811         _PC_PIPE_BUF handling.
12812
12813 2011-04-30  Bruno Haible  <bruno@clisp.org>
12814
12815         [BZ #12717]
12816         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
12817         * resolv/netdb.h (getnameinfo): Change type of flags parameter
12818         to 'int'.
12819         * inet/getnameinfo.c (getnameinfo): Likewise.
12820
12821 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
12822
12823         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
12824         to groups setting in database lookup.
12825         * nss/nsswitch.conf: Add initgroups entry.
12826
12827 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
12828
12829         [BZ #12685]
12830         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
12831         mode string.
12832         Patch by Eric Blake <eblake@redhat.com>.
12833
12834 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
12835
12836         * sunrpc/Makefile (need-export-routines): Add svc_run.
12837         (routines): Remove svc_run.
12838         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
12839         * sunrpc/clnt_perr.c (clnt_perrno): Export.
12840         * sunrpc/svc_run.c (svc_run): Likewise.
12841         * sunrpc/svc_udp.c (svcudp_create): Likewise.
12842
12843 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
12844
12845         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
12846         problem in reallocation in last patch.
12847
12848 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
12849
12850         * sunrpc/Makefile: Move inclusion of Rules.
12851
12852 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12853
12854         * nss/nss_files/files-initgroups.c: New file.
12855         * nss/Makefile (libnss_files-routines): Add files-initgroups.
12856         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
12857         _nss_files_initgroups_dyn.
12858
12859 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
12860
12861         * elf/elf.h (R_ARM_IRELATIVE): Define.
12862
12863 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12864
12865         * po/ru.po: Update from translation team.
12866
12867 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12868
12869         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
12870         dependencies.
12871
12872 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
12873
12874         [BZ #12653]
12875         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
12876         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
12877         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12878         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12879         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12880
12881 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
12882
12883         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
12884         differing bytes.
12885         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12886         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12887         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12888
12889 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12890
12891         [BZ #12420]
12892         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
12893         storing it.
12894         * stdlib/bug-getcontext.c: New file.
12895         * stdlib/Makefile: Add rules to build and run bug-getcontext.
12896
12897 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12898
12899         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
12900         instructions into .machine "z9-109".
12901         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
12902         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
12903
12904 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12905
12906         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
12907         between environment variables and auxiliary vector.
12908
12909 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
12910
12911         * Makefile: Add rules to build linkobj/libc.so.
12912         * include/libc-symbols.h: Define libc_hidden_nolink.
12913         * include/rpc/auth.h: Mark functions which are to be hidden.
12914         * include/rpc/auth_des.h: Likewise.
12915         * include/rpc/auth_unix.h: Likewise.
12916         * include/rpc/clnt.h: Likewise.
12917         * include/rpc/des_crypt.h: Likewise.
12918         * include/rpc/key_prot.h: Likewise.
12919         * include/rpc/pmap_clnt.h: Likewise.
12920         * include/rpc/pmap_prot.h: Likewise.
12921         * include/rpc/pmap_rmt.h: Likewise.
12922         * include/rpc/rpc_msg.h: Likewise.
12923         * include/rpc/svc.h: Likewise.
12924         * include/rpc/svc_auth.h: Likewise.
12925         * include/rpc/xdr.h: Likewise.
12926         * nis/Makefile: Link all DSOs against linkobj/libc.so.
12927         * nss/Makefile: Likewise.
12928         * sunrpc/Makefile: Don't install headers.  Build library with normal
12929         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
12930         * sunrpc/auth_des.c: Hide exported symbols by default, export some
12931         for the compat linking library.  Remove use of INTDEF/INTUSE.
12932         * sunrpc/auth_none.c: Likewise.
12933         * sunrpc/auth_unix.c: Likewise.
12934         * sunrpc/authdes_prot.c: Likewise.
12935         * sunrpc/authuxprot.c: Likewise.
12936         * sunrpc/clnt_gen.c: Likewise.
12937         * sunrpc/clnt_perr.c: Likewise.
12938         * sunrpc/clnt_raw.c: Likewise.
12939         * sunrpc/clnt_simp.c: Likewise.
12940         * sunrpc/clnt_tcp.c: Likewise.
12941         * sunrpc/clnt_udp.c: Likewise.
12942         * sunrpc/clnt_unix.c: Likewise.
12943         * sunrpc/des_crypt.c: Likewise.
12944         * sunrpc/des_soft.c: Likewise.
12945         * sunrpc/get_myaddr.c: Likewise.
12946         * sunrpc/key_call.c: Likewise.
12947         * sunrpc/key_prot.c: Likewise.
12948         * sunrpc/netname.c: Likewise.
12949         * sunrpc/pm_getmaps.c: Likewise.
12950         * sunrpc/pm_getport.c: Likewise.
12951         * sunrpc/pmap_clnt.c: Likewise.
12952         * sunrpc/pmap_prot.c: Likewise.
12953         * sunrpc/pmap_prot2.c: Likewise.
12954         * sunrpc/pmap_rmt.c: Likewise.
12955         * sunrpc/publickey.c: Likewise.
12956         * sunrpc/rpc_cmsg.c: Likewise.
12957         * sunrpc/rpc_common.c: Likewise.
12958         * sunrpc/rpc_dtable.c: Likewise.
12959         * sunrpc/rpc_prot.c: Likewise.
12960         * sunrpc/rpc_thread.c: Likewise.
12961         * sunrpc/rtime.c: Likewise.
12962         * sunrpc/svc.c: Likewise.
12963         * sunrpc/svc_auth.c: Likewise.
12964         * sunrpc/svc_authux.c: Likewise.
12965         * sunrpc/svc_raw.c: Likewise.
12966         * sunrpc/svc_run.c: Likewise.
12967         * sunrpc/svc_simple.c: Likewise.
12968         * sunrpc/svc_tcp.c: Likewise.
12969         * sunrpc/svc_udp.c: Likewise.
12970         * sunrpc/svc_unix.c: Likewise.
12971         * sunrpc/svcauth_des.c: Likewise.
12972         * sunrpc/xcrypt.c: Likewise.
12973         * sunrpc/xdr.c: Likewise.
12974         * sunrpc/xdr_array.c: Likewise.
12975         * sunrpc/xdr_float.c: Likewise.
12976         * sunrpc/xdr_intXX_t.c: Likewise.
12977         * sunrpc/xdr_mem.c: Likewise.
12978         * sunrpc/xdr_rec.c: Likewise.
12979         * sunrpc/xdr_ref.c: Likewise.
12980         * sunrpc/xdr_sizeof.c: Likewise.
12981         * sunrpc/xdr_stdio.c: Likewise.
12982
12983 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
12984
12985         [BZ #12650]
12986         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
12987         * sysdeps/ia64/dl-tls.h: Likewise.
12988         * sysdeps/powerpc/dl-tls.h: Likewise.
12989         * sysdeps/s390/dl-tls.h: Likewise.
12990         * sysdeps/sh/dl-tls.h: Likewise.
12991         * sysdeps/sparc/dl-tls.h: Likewise.
12992         * sysdeps/x86_64/dl-tls.h: Likewise.
12993         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
12994
12995 2011-03-14  Andreas Schwab  <schwab@redhat.com>
12996
12997         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
12998         rpath element also skip the following colon.
12999         (expand_dynamic_string_token): Add is_path parameter and pass
13000         down to DL_DST_REQUIRED and _dl_dst_substitute.
13001         (decompose_rpath): Call expand_dynamic_string_token with
13002         non-zero is_path.  Ignore empty rpaths.
13003         (_dl_map_object_from_fd): Call expand_dynamic_string_token
13004         with zero is_path.
13005
13006 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
13007
13008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13009         Make cancelable.
13010
13011 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
13012
13013         [BZ #12655]
13014         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
13015         Patch by Filipe David Manana <fdmanana@apache.org>.
13016
13017 2011-04-07  Andreas Schwab  <schwab@redhat.com>
13018
13019         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
13020         Maintain aligned stack.
13021         (CHECK_RSP): Remove unused macro.
13022
13023 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
13024
13025         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
13026         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
13027
13028 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
13029
13030         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
13031
13032         * include/features.h: Mention __USE_XOPEN2K8 in comment.
13033
13034 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
13035
13036         [BZ #12518]
13037         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
13038         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
13039         * sysdeps/x86_64/memmove.c: New file.
13040         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
13041         (memcpy): Renamed to ...
13042         (__new_memcpy): This.
13043         (memcpy): Provide GLIBC_2_14 memcpy.
13044         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
13045         (memcpy): Provide GLIBC_2_2_5 memcpy.
13046
13047 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13048
13049         [BZ #12631]
13050         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
13051
13052 2011-03-30  Andreas Schwab  <schwab@redhat.com>
13053
13054         * misc/syncfs.c: New file.
13055         * misc/Makefile (routines): Add syncfs.
13056         * posix/unistd.h: Declare syncfs.
13057         * sysdeps/unix/syscalls.list: Add syncfs.
13058
13059 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13060
13061         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
13062         open_by_handle_at.
13063         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13064         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13065         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13066         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13067         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13068         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
13069         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13070
13071 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13072
13073         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
13074         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13075         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13076         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13077         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13078         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13079         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13080
13081         * io/Makefile: Compile fallocate.c, fallocate64.c, and
13082         sync_file_range.c with -fexceptions.
13083         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
13084         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
13085         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
13086         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
13087         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13088         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13089         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
13090         sync_file_range as cancellation point
13091         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
13092         now a wrapper around __call_sync_file_range with cancellation handling.
13093         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
13094         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
13095         function name to __call_sync_file_range.
13096         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
13097         Add call_sync_file_range.
13098
13099 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13100
13101         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13102         bits/timex.h.
13103
13104 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13105
13106         * iconv/iconv.h: Fix typo in comment.
13107         * io/fcntl.h: Likewise.
13108         * libio/stdio.h: Likewise.
13109         * posix/spawn.h: Likewise.
13110         * posix/unistd.h: Likewise.
13111         * stdlib/stdlib.h: Likewise.
13112         * time/time.h: Likewise.
13113         * wcsmbs/wchar.h: Likewise.
13114
13115         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
13116         open_by_handle): Add.
13117         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
13118         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
13119         Augment a few comments.
13120         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13121         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13122         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13123         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13124         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13125         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
13126         open_by_handle.
13127
13128         * io/fcntl.h (AT_EMPTY_PATH): Define.
13129
13130 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
13131
13132         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
13133         * sysdeps/unix/sysv/linux/bits/time.h: New file.
13134         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
13135         to...
13136         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
13137         * Versions.def: Add GLIBC_2.14.
13138         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
13139         Export.
13140
13141 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
13142
13143         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
13144         round counter.
13145         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13146
13147 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13148
13149         [BZ #12597]
13150         * string/test-strncmp.c (do_page_test): New function.
13151         (check2): Likewise.
13152         (test_main): Call check2.
13153         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
13154
13155 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
13156
13157         [BZ #12587]
13158         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13159         Handle cache information in CPU leaf 4.
13160         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13161
13162 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
13163
13164         [BZ #12583]
13165         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
13166         character representation.
13167         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
13168
13169 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
13170
13171         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
13172         END(__isnan) to END(__isnanf) to match function entry point/label
13173         EALIGN(__isnanf,...).
13174
13175 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
13176
13177         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
13178
13179 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
13180
13181         [BZ #12510]
13182         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
13183         copy from the symbol referenced in the relocation to initialize the
13184         used variable.
13185         Patch by Piotr Bury <pbury@goahead.com>.
13186         * elf/Makefile: Add rules to build and tst-unique3.
13187         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
13188         * elf/tst-unique3.cc: New file.
13189         * elf/tst-unique3.h: New file.
13190         * elf/tst-unique3lib.cc: New file.
13191         * elf/tst-unique3lib2.cc: New file.
13192
13193         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
13194
13195 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
13196
13197         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
13198         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
13199         to _start.
13200
13201 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
13202
13203         * elf/dl-load.c (_dl_map_object): If we are looking for the first
13204         to-be-loaded object along a path to loader is ld.so.
13205
13206 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13207             Ulrich Drepper  <drepper@gmail.com>
13208
13209         * sysdeps/x86_64/memset.S: After aligning destination, code
13210         branches to different locations depending on the value of
13211         misalignment, when multiarch is enabled. Fix this.
13212
13213 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13214
13215         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
13216         Set _x86_64_preferred_memory_instruction for AMD processsors.
13217         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13218         Set bit_Prefer_SSE_for_memop for AMD processors.
13219
13220 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
13221
13222         * libio/fmemopen.c (fmemopen): Optimize a bit.
13223
13224 2011-03-03  Andreas Schwab  <schwab@redhat.com>
13225
13226         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
13227
13228 2011-03-03  Roland McGrath  <roland@redhat.com>
13229
13230         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
13231
13232 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
13233
13234         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
13235         __bzero_ultra1 instead of __memset_ultra1.
13236
13237 2011-02-23  Andreas Schwab  <schwab@redhat.com>
13238             Ulrich Drepper  <drepper@gmail.com>
13239
13240         [BZ #12509]
13241         * include/link.h (struct link_map): Add l_orig_initfini.
13242         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
13243         returning unsuccessfully.
13244         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
13245         close of a file loaded at startup, restore the original l_initfini
13246         list.
13247         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
13248         list, store the pointer.
13249         * elf/Makefile ($(objpfx)noload-mem): New rule.
13250         (noload-ENV): Define.
13251         (tests): Add $(objpfx)noload-mem.
13252         * elf/noload.c: Include <memcheck.h>.
13253         (main): Call mtrace.  Close all opened handles.
13254
13255 2011-02-17  Andreas Schwab  <schwab@redhat.com>
13256
13257         [BZ #12454]
13258         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
13259         dependencies are missing.
13260
13261 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13262
13263         Fix __if_freereq crash: Unlike the generic version which uses free,
13264         Hurd needs munmap.
13265         * sysdeps/mach/hurd/ifreq.h: New file.
13266
13267 2011-01-27  Petr Baudis  <pasky@suse.cz>
13268             Ulrich Drepper  <drepper@gmail.com>
13269
13270         [BZ 12445]#
13271         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
13272         to extend_alloca().
13273         * stdio-common/bug23.c: New file.
13274         * stdio-common/Makefile (tests): Add bug23.
13275
13276 2010-09-28  Andreas Schwab  <schwab@redhat.com>
13277             Ulrich Drepper  <drepper@gmail.com>
13278
13279         [BZ #12489]
13280         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
13281         before performing relro protection.  At old place add assertion
13282         to make sure nothing changed.
13283
13284 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
13285             Glauber de Oliveira Costa  <glommer@gmail.com>
13286
13287         * elf/elf.h: Add new ARM TLS relocs.
13288
13289 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
13290
13291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13292         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
13293         cast from r3.
13294         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
13295         'tests' variable.
13296         * sysdeps/wordsize-64/tst-writev.c: New file.
13297
13298 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
13299
13300         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
13301         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
13302         insns in _dl_start to prevent a TOC reference before relocs are
13303         resolved.
13304
13305 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
13306
13307         [BZ #12469]
13308         * Makeconfig: Remove RANLIB definition.
13309         * Makerules: Don't use RANLIB.
13310         * aclocal.m4: Remove ranlib test.
13311         * configure.in: No need to check for ranlib.
13312         * elf/rtld-Rules: Don't use RANLIB.
13313
13314 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13315
13316         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
13317         protection macro.
13318         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
13319         inclusion protection macro.
13320
13321         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
13322         SIGRTMIN and SIGRTMAX and print information in that case only when
13323         SIGRTMIN is defined.
13324
13325 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13326
13327         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
13328         arginfo fn returning -1.
13329
13330         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
13331         and thousands string is zero terminated.
13332
13333 2011-02-03  Andreas Schwab  <schwab@redhat.com>
13334
13335         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
13336         sysdeps/unix/sysv/linux/bits/socket.h.
13337
13338 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13339
13340         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
13341         (__CPU_COUNT): Remove old macros.
13342         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
13343         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
13344         (__CPU_ALLOC, __CPU_FREE): Add macros.
13345         (__sched_cpualloc, __sched_cpufree): Add declarations.
13346
13347 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
13348
13349         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
13350         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
13351         * nscd/aicache.c (addhstaiX): Return timeout of added value.
13352         (readdhstai): Return value of addhstaiX call.
13353         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
13354         (addgrbyX): Return value returned by cache_addgr.
13355         (readdgrbyname): Return value returned by addgrbyX.
13356         (readdgrbygid): Likewise.
13357         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
13358         (addpwbyX): Return value returned by cache_addpw.
13359         (readdpwbyname): Return value returned by addhstbyX.
13360         (readdpwbyuid): Likewise.
13361         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
13362         (addservbyX): Return value returned by cache_addserv.
13363         (readdservbyname): Return value returned by addservbyX:
13364         (readdservbyport): Likewise.
13365         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
13366         (addhstbyX): Return value returned by cache_addhst.
13367         (readdhstbyname): Return value returned by addhstbyX.
13368         (readdhstbyaddr): Likewise.
13369         (readdhstbynamev6): Likewise.
13370         (readdhstbyaddrv6): Likewise.
13371         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
13372         (readdinitgroups): Return value returned by addinitgroupsX.
13373         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
13374         (prune_cache): Keep track of timeout value of re-added entries.
13375         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
13376         * nscd/nscd.h: Adjust prototypes of readd* functions.
13377
13378 2011-02-04  Roland McGrath  <roland@redhat.com>
13379
13380         * nis/nis_server.c (nis_servstate): Use the right name for 0.
13381         (nis_stats): Likewise.
13382         * nis/nis_modify.c (nis_modify): Likewise.
13383         * nis/nis_remove.c (nis_remove): Likewise.
13384         * nis/nis_add.c (nis_add): Likewise.
13385
13386         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
13387
13388         * posix/fnmatch_loop.c: Add some consts.
13389
13390         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
13391
13392 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
13393
13394         [BZ #12460]
13395         * config.make.in (config-cflags-novzeroupper): Define.
13396         * configure.in: Substitute libc_cv_cc_novzeroupper.
13397         * elf/Makefile (AVX-CFLAGS): Define.
13398         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
13399         (CFLAGS-tst-auditmod4a.c): Likewise.
13400         (CFLAGS-tst-auditmod4b.c): Likewise.
13401         (CFLAGS-tst-auditmod6b.c): Likewise.
13402         (CFLAGS-tst-auditmod6c.c): Likewise.
13403         (CFLAGS-tst-auditmod7b.c): Likewise.
13404         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
13405
13406 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
13407
13408         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
13409         function to the callback.
13410         Patch partly by Jiri Olsa <jolsa@redhat.com>.
13411
13412 2011-02-02  Andreas Schwab  <schwab@redhat.com>
13413
13414         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
13415         of errno.
13416
13417 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
13418
13419         [BZ #11724]
13420         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
13421         of constructors.
13422         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
13423         of destructors.
13424         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
13425
13426         [BZ #11724]
13427         * elf/Makefile: Add rules to build and run new test.
13428         * elf/tst-initorder.c: New file.
13429         * elf/tst-initorder.exp: New file.
13430         * elf/tst-initordera1.c: New file.
13431         * elf/tst-initordera2.c: New file.
13432         * elf/tst-initordera3.c: New file.
13433         * elf/tst-initordera4.c: New file.
13434         * elf/tst-initorderb1.c: New file.
13435         * elf/tst-initorderb2.c: New file.
13436         * elf/tst-order-a1.c: New file.
13437         * elf/tst-order-a2.c: New file.
13438         * elf/tst-order-a3.c: New file.
13439         * elf/tst-order-a4.c: New file.
13440         * elf/tst-order-b1.c: New file.
13441         * elf/tst-order-b2.c: New file.
13442         * elf/tst-order-main.c: New file.
13443         New test case by George Gensure <werkt0@gmail.com>.
13444
13445 2010-10-01  Andreas Schwab  <schwab@redhat.com>
13446
13447         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13448         decoding ACE if AI_CANONIDN.
13449
13450 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
13451
13452         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
13453
13454 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
13455
13456         * version.h (RELEASE): Bump for 2.13 release.
13457         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
13458
13459         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
13460
13461         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
13462         MADV_NOHUGEPAGE.
13463         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
13464         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
13465         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13466         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13467         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13468         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13469
13470         * posix/getconf.c: Update copyright year.
13471         * catgets/gencat.c: Likewise.
13472         * csu/version.c: Likewise.
13473         * debug/catchsegv.sh: Likewise.
13474         * debug/xtrace.sh: Likewise.
13475         * elf/ldconfig.c: Likewise.
13476         * elf/ldd.bash.in: Likewise.
13477         * elf/sprof.c (print_version): Likewise.
13478         * iconv/iconv_prog.c: Likewise.
13479         * iconv/iconvconfig.c: Likewise.
13480         * locale/programs/locale.c: Likewise.
13481         * locale/programs/localedef.c: Likewise.
13482         * malloc/memusage.sh: Likewise.
13483         * malloc/mtrace.pl: Likewise.
13484         * nscd/nscd.c (print_version): Likewise.
13485         * nss/getent.c: Likewise.
13486
13487         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
13488         PF_CAIF, and PF_ALG.
13489         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13490
13491 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
13492
13493         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
13494         (modules-names): Use them.
13495         (ifunc-test-modules, ifunc-pie-tests): Define.
13496         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
13497         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
13498         (test-extras): Likewise.
13499         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
13500         $(compile-command.c).
13501         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
13502         (all-built-dso): Define.
13503         (check-textrel.out, check-execstack.out): Depend on it.
13504
13505         * configure.in: Don't override --enable-multi-arch.
13506
13507 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
13508
13509         [BZ #6812]
13510         * nscd/hstcache.c (tryagain): Define.
13511         (cache_addhst): Return tryagain not notfound for temporary errors.
13512         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
13513         failed.
13514
13515 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
13516
13517         [BZ #10563]
13518         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
13519         to make the syscall.
13520         * sysdeps/unix/sysv/linux/setgroups.c: New file.
13521
13522         [BZ #12378]
13523         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
13524         and fall back to matching as normal character if the string ends before
13525         the matching ']' is found.  This is what POSIX requires.
13526         * posix/testfnm.c: Adjust test result.
13527         * posix/globtest.sh: Adjust test result.  Add new test.
13528         * posix/tst-fnmatch.input: Likewise.
13529         * posix/tst-fnmatch2.c: Add new test.
13530
13531 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
13532
13533         * elf/Makefile (check-execstack): Revert last change.  Depend on
13534         check-execstack.h.
13535         (check-execstack.h): New target.
13536         (generated): Add check-execstack.h.
13537         * elf/check-execstack.c: Include "check-execstack.h".
13538         (main): Revert last change.
13539         (handle_file): Return zero if GNU_STACK is absent and
13540         DEFAULT_STACK_PERMS doesn't include PF_X.
13541
13542 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
13543
13544         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
13545         in child fails because the descriptor is already closed.
13546         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
13547         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
13548         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
13549
13550         [BZ #12397]
13551         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
13552         syscall.
13553
13554         [BZ #10484]
13555         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
13556         temporary buffer used to handle multi lookups locally.
13557         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
13558
13559 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13560
13561         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
13562         loader is ld.so.
13563
13564 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
13565
13566         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
13567         alignment for SSE2.
13568
13569 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13570
13571         [BZ #12394]
13572         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
13573         characters.  When rounding increased number of integer digits recompute
13574         number of groups.
13575         * stdio-common/tst-grouping.c: New file.
13576         * stdio-common/Makefile: Add rules to build and run tst-grouping.
13577
13578 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
13579
13580         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
13581         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
13582
13583         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
13584         void.
13585         * bits/select.h: Likewise.
13586
13587 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
13588
13589         * po/ja.po: Update from translation team.
13590
13591 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
13592
13593         [BZ #11155]
13594         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
13595         implementation just like for lxstat, fxstatat, et al.
13596
13597 2010-12-27  Jim Meyering  <meyering@redhat.com>
13598
13599         [BZ #12348]
13600         * posix/regexec.c (build_trtable): Return failure indication upon
13601         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13602
13603 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
13604
13605         [BZ #12201]
13606         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
13607         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
13608         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
13609         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
13610
13611         [BZ #12207]
13612         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
13613
13614         [BZ #12204]
13615         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
13616         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
13617
13618 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13619
13620         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
13621         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
13622         script has SORT_BY_INIT_PRIORITY.
13623         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
13624         NO_CTORS_DTORS_SECTIONS is defined.
13625         * elf/soinit.c: Likewise.
13626         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
13627         NO_CTORS_DTORS_SECTIONS is defined.
13628         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
13629         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
13630         * sysdeps/sh/init-first.c: Likewise.
13631         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
13632
13633 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
13634
13635         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
13636         always use the slow path.
13637
13638 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
13639
13640         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
13641         similar rule which adds the sysdep directories to the header search in
13642         order to pick up the correct platform stackinfo.h.
13643         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
13644         perform test if it is, otherwise return successfully without testing.
13645         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
13646         DEFAULT_STACK_PERMS define in stackinfo.h.
13647         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
13648         defined in stackinfo.h.
13649         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
13650         DEFAULT_STACK_PERMS defined in stackinfo.h.
13651         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
13652         * sysdeps/ia64/stackinfo.h: Likewise.
13653         * sysdeps/s390/stackinfo.h: Likewise.
13654         * sysdeps/sh/stackinfo.h: Likewise.
13655         * sysdeps/sparc/stackinfo.h: Likewise.
13656         * sysdeps/x86_64/stackinfo.h: Likewise.
13657         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
13658         PF_X for powerpc64.  Retain PF_X for powerpc32.
13659
13660 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
13661
13662         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
13663         accurately.
13664         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
13665         GETDENTS_64BIT_ALIGNED.
13666
13667 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
13668
13669         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
13670
13671 2010-12-10  Andreas Schwab  <schwab@redhat.com>
13672
13673         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
13674         _GNU_SOURCE.
13675
13676         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
13677         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
13678         Remove __restrict.
13679         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
13680         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
13681
13682 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
13683
13684         [BZ #11655]
13685         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
13686         are initialized.
13687
13688 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
13689
13690         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
13691
13692 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
13693
13694         * po/it.po: Update from translation team.
13695
13696 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13697
13698         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
13699         unused codes.
13700
13701 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
13702
13703         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
13704
13705 2010-11-24  Andreas Schwab  <schwab@redhat.com>
13706
13707         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
13708         specially.
13709         (gaih_getanswer_slice): Likewise.
13710
13711 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
13712
13713         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
13714
13715 2010-05-31  Petr Baudis  <pasky@suse.cz>
13716
13717         [BZ #11149]
13718         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
13719         silently even in the chroot mode.
13720
13721 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
13722
13723         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
13724         last patch a bit.  Pretty printing
13725
13726 2010-05-31  Petr Baudis <pasky@suse.cz>
13727
13728         [BZ #10085]
13729         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
13730         initialization of skip_initgroups_dyn.
13731
13732 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
13733
13734         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
13735         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13736
13737 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
13738
13739         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
13740
13741 2010-11-11  Andreas Schwab  <schwab@redhat.com>
13742
13743         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
13744         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
13745         (tst-fnmatch-ENV): Set MALLOC_TRACE.
13746         ($(objpfx)tst-fnmatch-mem): New rule.
13747         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
13748         * posix/tst-fnmatch.c (main): Call mtrace.
13749
13750 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
13751
13752         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13753         Support Intel processor model 6 and model 0x2c.
13754
13755 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
13756
13757         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
13758           signed comparison.
13759
13760 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
13761
13762         [BZ #12205]
13763         * string/test-strncasecmp.c (check_result): New function.
13764         (do_one_test): Use it.
13765         (check1): New function.
13766         (test_main): Use it.
13767         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
13768         Support strcasecmp and strncasecmp.
13769
13770 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
13771
13772         [BZ #12194]
13773         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
13774         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13775
13776 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13777
13778         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
13779         IFUNC support.
13780         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13781         memset-x86-64.
13782         * sysdeps/x86_64/multiarch/bzero.S: New file.
13783         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
13784         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
13785         * sysdeps/x86_64/multiarch/memset.S: New file.
13786         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
13787         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13788         Set bit_Prefer_SSE_for_memop for Intel processors.
13789         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
13790         Define.
13791         (index_Prefer_SSE_for_memop): Define.
13792         (HAS_PREFER_SSE_FOR_MEMOP): Define.
13793
13794 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
13795
13796         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
13797         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
13798
13799 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
13800
13801         [BZ #12191]
13802         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13803         (__x86_64_raw_data_cache_size_half): Likewise.
13804         (__x86_64_raw_shared_cache_size): Likewise.
13805         (__x86_64_raw_shared_cache_size_half): Likewise.
13806
13807         * sysdeps/x86_64/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         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
13812         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
13813         and __x86_64_raw_shared_cache_size_half.  Round
13814         __x86_64_data_cache_size_half, __x86_64_data_cache_size
13815         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
13816         to multiple of 256 bytes.
13817
13818 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
13819
13820         [BZ #12167]
13821         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
13822         of inacessible symlinks.  Verify result of symlink before returning it.
13823         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
13824         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
13825
13826 2010-10-28  Erich Ritz  <erichritz@gmail.com>
13827
13828         * math/math.h (isinf): Fix typo in comment.
13829
13830 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
13831
13832         * po/da.po: Update from translation team.
13833
13834 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
13835
13836         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
13837         is added to the list.
13838
13839 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13840             Ulrich Drepper  <drepper@gmail.com>
13841
13842         * elf/dl-object.c (_dl_new_object): Don't append the new object to
13843         the global list here.  Move code to...
13844         (_dl_add_to_namespace_list): ...here.  New function.
13845         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
13846         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
13847         * elf/dl-load.c (lose): Don't remove the element from the list.
13848         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
13849         (_dl_map_object): Likewise.
13850
13851 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
13852
13853         [BZ #12159]
13854         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
13855         into all bytes of SSE register.
13856         Patch by Richard Li <richardpku@gmail.com>.
13857
13858 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
13859
13860         [BZ #12140]
13861         * malloc/malloc.c (_int_free): Fill correct number of bytes when
13862         perturbing.
13863
13864 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
13865
13866         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
13867         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
13868         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
13869         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
13871         submachine.
13872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13873
13874 2010-10-22  Andreas Schwab  <schwab@redhat.com>
13875
13876         * include/dlfcn.h (__RTLD_SECURE): Define.
13877         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
13878         mode & __RTLD_SECURE instead.
13879         (open_path): Rename preloaded parameter to secure.
13880         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
13881         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
13882         * elf/dl-deps.c (openaux): Likewise.
13883         * elf/rtld.c (struct map_args): Remove is_preloaded.
13884         (map_doit): Don't use it.
13885         (dl_main): Likewise.
13886         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
13887         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
13888
13889 2010-09-09  Andreas Schwab  <schwab@redhat.com>
13890
13891         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
13892         (sysd-rules-targets): Remove duplicates.
13893         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
13894         rtld-%.$o dependency.
13895
13896 2010-10-18  Andreas Schwab  <schwab@redhat.com>
13897
13898         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
13899         _dl_map_object do it.
13900
13901 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
13902
13903         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
13904         fast fma builtins, define the macros in the C99 standard.
13905         (FP_FAST_FMAF): Likewise.
13906         (FP_FAST_FMAL): Likewise.
13907         * sysdeps/x86_64/bits/mathdef.h: Likewise.
13908
13909         * bits/mathdef.h: Update copyright year.
13910         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13911
13912 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13913
13914         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
13915         builtins, define the macros in the C99 standard.
13916         (FP_FAST_FMAF): Likewise.
13917         (FP_FAST_FMAL): Likewise.
13918         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
13919         multiply/add.
13920         (FP_FAST_FMAF): Likewise.
13921
13922 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
13923
13924         [BZ #3268]
13925         * math/libm-test.inc (fma_test): Some new testcases.
13926         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
13927         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
13928         y and infinite z.  Do multiplication by C already in long double.
13929         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
13930         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
13931         y and infinite z.  Do bitwise or of inexact bit into u.d.
13932         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
13933         * sysdeps/i386/fpu/s_fmaf.S: Removed.
13934         * sysdeps/i386/fpu/s_fma.S: Removed.
13935         * sysdeps/i386/fpu/s_fmal.S: Removed.
13936
13937 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
13938
13939         [BZ #3268]
13940         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
13941         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
13942         computation is not scheduled after fetestexcept.  Fix value
13943         of minimum denormal long double.
13944
13945 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
13946
13947         [BZ #3268]
13948         * math/libm-test.inc (fma_test): Add some more tests.
13949         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
13950         correctly.
13951
13952 2010-10-15  Andreas Schwab  <schwab@redhat.com>
13953
13954         * scripts/data/localplt-s390-linux-gnu.data: New file.
13955         * scripts/data/localplt-s390x-linux-gnu.data: New file.
13956
13957 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
13958
13959         [BZ #3268]
13960         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
13961         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
13962         instead of dbl-64.
13963         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
13964         inlines.
13965         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
13966         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
13967         if one of x and y is very large and the other is subnormal.
13968         * sysdeps/s390/fpu/s_fmaf.c: New file.
13969         * sysdeps/s390/fpu/s_fma.c: New file.
13970         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
13971         * sysdeps/powerpc/fpu/s_fma.S: New file.
13972         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
13973         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
13974         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
13975
13976 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
13977
13978         [BZ #3268]
13979         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
13980         fma tests.
13981         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
13982         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
13983         * sysdeps/i386/i686/multiarch/s_fma.c: Include
13984         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
13985         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
13986         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
13987         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
13988
13989 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
13990
13991         [BZ #12078]
13992         * posix/regcomp.c (parse_branch): One more memory leak plugged.
13993         * posix/bug-regex31.input: Add test case.
13994
13995 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
13996
13997         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
13998         * posix/bug-regex31.input: New file.
13999
14000         [BZ #12078]
14001         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
14002         (parse_sub_exp): Fix last change, use postorder.
14003
14004         * posix/bug-regex31.c: New file.
14005         * posix/Makefile: Add rules to build and run bug-regex31.
14006
14007         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
14008
14009         [BZ #12078]
14010         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
14011
14012         [BZ #12108]
14013         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
14014         to have entries in sys_siglist.
14015
14016         [BZ #12093]
14017         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
14018         be NULL.
14019
14020 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
14021
14022         [BZ #3268]
14023         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
14024         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
14025         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14026         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
14027         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14028         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
14029         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
14030         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
14031         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
14032         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
14033         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
14034         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
14035         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
14036         * math/ftestexcept.c (fetestexcept): Likewise.
14037         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
14038         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
14039         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
14040         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
14041         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
14042         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
14043         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14044
14045 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14046
14047         [BZ #12107]
14048         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
14049         newline.
14050
14051 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
14052
14053         * string/bug-strstr1.c: New file.
14054         * string/Makefile: Add rules to build and run bug-strstr1.
14055
14056 2010-10-05  Eric Blake  <eblake@redhat.com>
14057
14058         [BZ #12092]
14059         * string/str-two-way.h (two_way_long_needle): Always clear memory
14060         when skipping input due to the shift table.
14061
14062 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
14063
14064         [BZ #12005]
14065         * malloc/mcheck.c: Handle large requests.
14066
14067         [BZ #12077]
14068         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
14069         for strncmp and strncasecmp.
14070         * string/stratcliff.c: Add tests for strcmp and strncmp.
14071         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
14072
14073 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14074
14075         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
14076         __set_fpscr.
14077
14078 2010-09-30  Andreas Jaeger  <aj@suse.de>
14079
14080         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
14081         (CGROUP_SUPER_MAGIC): Define.
14082         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14083         Handle btrfs and cgroup file systems.
14084         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
14085         Likewise.
14086
14087 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
14088
14089         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
14090         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
14091
14092 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14093
14094         [BZ #12067]
14095         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
14096         trying to locate the ELF header.
14097
14098 2010-09-27  Andreas Schwab  <schwab@redhat.com>
14099
14100         [BZ #11611]
14101         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
14102         Mask out sign-bit copies when constructing f_fsid.
14103
14104 2010-09-24  Petr Baudis <pasky@suse.cz>
14105
14106         * debug/stack_chk_fail_local.c: Add missing licence exception.
14107         * debug/warning-nop.c: Likewise.
14108
14109 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
14110
14111         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
14112         implementing getdents64 using getdents syscall, set d_type if
14113         __ASSUME_GETDENTS32_D_TYPE.
14114
14115 2010-09-16  Andreas Schwab  <schwab@redhat.com>
14116
14117         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
14118         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
14119
14120 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
14121
14122         [BZ #12037]
14123         * posix/unistd.h: Undo change of feature selection for ftruncate from
14124         2010-01-11.
14125
14126 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
14127
14128         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
14129         detection.
14130
14131 2010-09-20  Andreas Schwab  <schwab@redhat.com>
14132
14133         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
14134         fanotify_mark.
14135         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14136
14137 2010-09-14  Andreas Schwab  <schwab@redhat.com>
14138
14139         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
14140         variables after CHECK_SP call.
14141         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
14142
14143 2010-09-13  Andreas Schwab  <schwab@redhat.com>
14144             Ulrich Drepper  <drepper@redhat.com>
14145
14146         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
14147         re-relocationg ld.so.
14148         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
14149         _dl_init_paths call.
14150         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
14151         here anymore.
14152
14153 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
14154
14155         * resolv/res_init.c (__res_vinit): Count the default server we added.
14156
14157 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
14158             Ulrich Drepper  <drepper@redhat.com>
14159
14160         [BZ #11968]
14161         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14162         (____longjmp_chk): Use %ebx for saving value across system call.
14163         Add unwind info.
14164
14165 2010-09-06  Andreas Schwab  <schwab@redhat.com>
14166
14167         * manual/Makefile: Don't mix pattern rules with normal rules.
14168
14169 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14170
14171         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
14172         operation.
14173         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
14174         * libio/iofopncook.c (_IO_cookie_init): Likewise.
14175         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
14176         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
14177         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14178         Likewise.
14179
14180 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
14181
14182         [BZ #11979]
14183         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
14184         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
14185
14186 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
14187
14188         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
14189         * sysdeps/x86_64/addmul_1.S: Likewise.
14190         * sysdeps/x86_64/lshift.S: Likewise.
14191         * sysdeps/x86_64/mul_1.S: Likewise.
14192         * sysdeps/x86_64/rshift.S: Likewise.
14193         * sysdeps/x86_64/sub_n.S: Likewise.
14194         * sysdeps/x86_64/submul_1.S: Likewise.
14195
14196 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14197
14198         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
14199         Define __sched_param instead of SCHED_* and sched_param when
14200         <bits/sched.h> is included with __need_schedparam defined.
14201         * bits/sched.h [__need_schedparam]
14202         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
14203         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
14204         (__defined_schedparam): Define to 1.
14205         (__sched_param): New structure, identical to sched_param.
14206         (__need_schedparam): Undefine.
14207
14208 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
14209
14210         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
14211         (epoll_create1): Declare.
14212
14213         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
14214
14215 2010-08-31  Andreas Schwab  <schwab@redhat.com>
14216
14217         [BZ #7066]
14218         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
14219         shifting retval into place.
14220
14221 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
14222
14223         * nis/rpcsvc/nis.h: Update copyright notice.
14224         * nis/rpcsvc/nis.x: Likewise.
14225         * nis/rpcsvc/nis_callback.h: Likewise.
14226         * nis/rpcsvc/nis_callback.x: Likewise.
14227         * nis/rpcsvc/nis_object.x: Likewise.
14228         * nis/rpcsvc/nis_tags.h: Likewise.
14229         * nis/rpcsvc/yp.h: Likewise.
14230         * nis/rpcsvc/yp.x: Likewise.
14231         * nis/rpcsvc/ypupd.h: Likewise.
14232         * nis/yp_xdr.c: Likewise.
14233         * nis/ypupdate_xdr.c: Likewise.
14234
14235         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
14236         mainly the body of pmap_getport.  Add parameters to specify timeouts.
14237         (pmap_getport): Use __libc_rpc_getport.
14238         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
14239         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
14240         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
14241
14242 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
14243
14244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
14245         fanotify_mark.
14246
14247 2010-08-27  Roland McGrath  <roland@redhat.com>
14248
14249         * sysdeps/i386/i686/multiarch/Makefile
14250         (CFLAGS-varshift.c): New variable.
14251
14252 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
14253
14254         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
14255         * sysdeps/i386/i686/multiarch/varshift.c: New file.
14256
14257         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
14258
14259         * sysdeps/x86_64/strlen.S: Minimal code improvement.
14260
14261 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
14262
14263         * sysdeps/x86_64/strlen.S: Unroll the loop.
14264         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14265         strlen-sse2 strlen-sse2-bsf.
14266         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
14267         __strlen_no_bsf if bit_Slow_BSF is set.
14268         (__strlen_sse42): Removed.
14269         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
14270         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
14271
14272 2010-08-25  Roland McGrath  <roland@redhat.com>
14273
14274         * sysdeps/x86_64/multiarch/varshift.S: File removed.
14275         * sysdeps/x86_64/multiarch/varshift.c: New file.
14276         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
14277         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
14278         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
14279         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14280
14281 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
14282
14283         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14284         strlen-sse2 strlen-sse2-bsf.
14285         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
14286         __strlen_sse2_bsf if bit_Slow_BSF is unset.
14287         (__strlen_sse2): Removed.
14288         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
14289         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
14290         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14291         bit_Slow_BSF for Atom.
14292         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
14293         (index_Slow_BSF): Define.
14294         (HAS_SLOW_BSF): Define.
14295
14296 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
14297
14298         [BZ #10851]
14299         * resolv/res_init.c (__res_vinit): When no server address at all
14300         is given default to loopback.
14301
14302 2010-08-24  Roland McGrath  <roland@redhat.com>
14303
14304         * configure.in: Remove config-name.h generation.
14305         * configure: Regenerated.
14306         * config-name.in: File removed.
14307         * scripts/config-uname.sh: New file.
14308         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
14309         ($(objdir)config-name.h): New target.
14310
14311         * sunrpc/rpc_parse.h: Avoid nested comment.
14312
14313 2010-08-24  Richard Henderson  <rth@redhat.com>
14314             Ulrich Drepper  <drepper@redhat.com>
14315             H.J. Lu  <hongjiu.lu@intel.com>
14316
14317         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
14318         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
14319         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
14320         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
14321         _mm_alignr_epi8 with _mm_loadu_si128.
14322         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
14323         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
14324         (__m128i_shift_right): Removed.
14325         * sysdeps/i386/i686/multiarch/varshift.h: New file.
14326         * sysdeps/i386/i686/multiarch/varshift.S: New file.
14327         * sysdeps/x86_64/multiarch/varshift.h: New file.
14328         * sysdeps/x86_64/multiarch/varshift.S: New file.
14329
14330 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
14331
14332         * configure.in: Move assembler checks to before sysdep dir checking.
14333
14334 2010-08-20  Petr Baudis  <pasky@suse.cz>
14335
14336         * LICENSES: Sync the sunrpc license.
14337
14338 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
14339
14340         * sunrpc/auth_des.c: Update copyright notice once again.
14341         * sunrpc/auth_none.c: Likewise.
14342         * sunrpc/auth_unix.c: Likewise.
14343         * sunrpc/authdes_prot.c: Likewise.
14344         * sunrpc/authuxprot.c: Likewise.
14345         * sunrpc/bindrsvprt.c: Likewise.
14346         * sunrpc/clnt_gen.c: Likewise.
14347         * sunrpc/clnt_perr.c: Likewise.
14348         * sunrpc/clnt_raw.c: Likewise.
14349         * sunrpc/clnt_simp.c: Likewise.
14350         * sunrpc/clnt_tcp.c: Likewise.
14351         * sunrpc/clnt_udp.c: Likewise.
14352         * sunrpc/clnt_unix.c: Likewise.
14353         * sunrpc/des_crypt.c: Likewise.
14354         * sunrpc/des_soft.c: Likewise.
14355         * sunrpc/get_myaddr.c: Likewise.
14356         * sunrpc/getrpcport.c: Likewise.
14357         * sunrpc/key_call.c: Likewise.
14358         * sunrpc/key_prot.c: Likewise.
14359         * sunrpc/openchild.c: Likewise.
14360         * sunrpc/pm_getmaps.c: Likewise.
14361         * sunrpc/pm_getport.c: Likewise.
14362         * sunrpc/pmap_clnt.c: Likewise.
14363         * sunrpc/pmap_prot.c: Likewise.
14364         * sunrpc/pmap_prot2.c: Likewise.
14365         * sunrpc/pmap_rmt.c: Likewise.
14366         * sunrpc/rpc/auth.h: Likewise.
14367         * sunrpc/rpc/auth_unix.h: Likewise.
14368         * sunrpc/rpc/clnt.h: Likewise.
14369         * sunrpc/rpc/des_crypt.h: Likewise.
14370         * sunrpc/rpc/key_prot.h: Likewise.
14371         * sunrpc/rpc/netdb.h: Likewise.
14372         * sunrpc/rpc/pmap_clnt.h: Likewise.
14373         * sunrpc/rpc/pmap_prot.h: Likewise.
14374         * sunrpc/rpc/pmap_rmt.h: Likewise.
14375         * sunrpc/rpc/rpc.h: Likewise.
14376         * sunrpc/rpc/rpc_des.h: Likewise.
14377         * sunrpc/rpc/rpc_msg.h: Likewise.
14378         * sunrpc/rpc/svc.h: Likewise.
14379         * sunrpc/rpc/svc_auth.h: Likewise.
14380         * sunrpc/rpc/types.h: Likewise.
14381         * sunrpc/rpc/xdr.h: Likewise.
14382         * sunrpc/rpc_clntout.c: Likewise.
14383         * sunrpc/rpc_cmsg.c: Likewise.
14384         * sunrpc/rpc_common.c: Likewise.
14385         * sunrpc/rpc_cout.c: Likewise.
14386         * sunrpc/rpc_dtable.c: Likewise.
14387         * sunrpc/rpc_hout.c: Likewise.
14388         * sunrpc/rpc_main.c: Likewise.
14389         * sunrpc/rpc_parse.c: Likewise.
14390         * sunrpc/rpc_parse.h: Likewise.
14391         * sunrpc/rpc_prot.c: Likewise.
14392         * sunrpc/rpc_sample.c: Likewise.
14393         * sunrpc/rpc_scan.c: Likewise.
14394         * sunrpc/rpc_scan.h: Likewise.
14395         * sunrpc/rpc_svcout.c: Likewise.
14396         * sunrpc/rpc_tblout.c: Likewise.
14397         * sunrpc/rpc_util.c: Likewise.
14398         * sunrpc/rpc_util.h: Likewise.
14399         * sunrpc/rpcinfo.c: Likewise.
14400         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
14401         * sunrpc/rpcsvc/key_prot.x: Likewise.
14402         * sunrpc/rpcsvc/klm_prot.x: Likewise.
14403         * sunrpc/rpcsvc/mount.x: Likewise.
14404         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
14405         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
14406         * sunrpc/rpcsvc/rex.x: Likewise.
14407         * sunrpc/rpcsvc/rstat.x: Likewise.
14408         * sunrpc/rpcsvc/rusers.x: Likewise.
14409         * sunrpc/rpcsvc/sm_inter.x: Likewise.
14410         * sunrpc/rpcsvc/spray.x: Likewise.
14411         * sunrpc/rpcsvc/yppasswd.x: Likewise.
14412         * sunrpc/rtime.c: Likewise.
14413         * sunrpc/svc.c: Likewise.
14414         * sunrpc/svc_auth.c: Likewise.
14415         * sunrpc/svc_authux.c: Likewise.
14416         * sunrpc/svc_raw.c: Likewise.
14417         * sunrpc/svc_run.c: Likewise.
14418         * sunrpc/svc_simple.c: Likewise.
14419         * sunrpc/svc_tcp.c: Likewise.
14420         * sunrpc/svc_udp.c: Likewise.
14421         * sunrpc/svc_unix.c: Likewise.
14422         * sunrpc/svcauth_des.c: Likewise.
14423         * sunrpc/xcrypt.c: Likewise.
14424         * sunrpc/xdr.c: Likewise.
14425         * sunrpc/xdr_array.c: Likewise.
14426         * sunrpc/xdr_float.c: Likewise.
14427         * sunrpc/xdr_mem.c: Likewise.
14428         * sunrpc/xdr_rec.c: Likewise.
14429         * sunrpc/xdr_ref.c: Likewise.
14430         * sunrpc/xdr_sizeof.c: Likewise.
14431         * sunrpc/xdr_stdio.c: Likewise.
14432
14433         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
14434         handling.
14435
14436 2010-08-19  Andreas Schwab  <schwab@redhat.com>
14437
14438         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
14439
14440 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
14441
14442         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
14443         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
14444         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
14445         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
14446         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
14447         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
14448         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
14449         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
14450         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
14451         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
14452         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
14453         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
14454         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
14455         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
14456
14457 2010-07-26  Anton Blanchard  <anton@samba.org>
14458
14459         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
14460         * malloc/arena.c (heap_trim): Likewise.
14461
14462 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
14463
14464         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
14465         here.  Not...
14466         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
14467         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
14468
14469 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14470
14471         * sysdeps/i386/elf/Makefile: New file.
14472
14473 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14474
14475         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
14476         from fanotify_init.
14477         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
14478         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14479
14480 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
14481
14482         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
14483         of strncasecmp_l.
14484         * sysdeps/multiarch/strcmp.S: Likewise.
14485
14486 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
14487
14488         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14489         strncase_l-nonascii.
14490         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14491         Add strncase_l-ssse3.
14492         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
14493         * sysdeps/x86_64/strcmp.S: Likewise.
14494         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
14495         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
14496         * sysdeps/x86_64/strncase.S: New file.
14497         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
14498         * sysdeps/x86_64/strncase_l.S: New file.
14499         * string/Makefile (strop-tests): Add strncasecmp.
14500         * string/test-strncasecmp.c: New file.
14501
14502         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
14503         warning.
14504
14505         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
14506         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
14507
14508 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14509
14510         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
14511
14512 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
14513
14514         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
14515         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
14516         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
14517
14518 2010-05-01  Alan Modra  <amodra@gmail.com>
14519
14520         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
14521         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
14522         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
14523         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
14524         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
14525         tidying.  Don't tail-call __sigjmp_save for static lib.
14526         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
14527         save location.
14528         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
14529         (CALL_MCOUNT): Add eh info, and nop after bl.
14530         (TAIL_CALL_SYSCALL_ERROR): New macro.
14531         (PSEUDO_RET): Use it.
14532         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
14533         Correct save location of integer regs and cr.
14534         (_dl_profile_resolve): Correct cr save location.  Delete nops
14535         after bl when SHARED.  Reduce cfi size a little by better
14536         placement of cfi directives.
14537         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
14538         make a stack frame.  Instead use parm save area as a temp.
14539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
14540         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
14541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
14542         Don't make a stack frame for parent, use parm save area.
14543         Increase child stack frame to 112 bytes.  Don't save unused reg,
14544         and adjust reg usage.  Set up cfi on error recovery and
14545         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
14546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14547         (__makecontext): Add dummy nop after jump to exit.
14548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
14549         Use correct parm save area and cr save, reduce stack frame.
14550         Correct cfi for possible PSEUDO_RET frame setup.
14551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
14552         Branch to local label emitted by PSEUDO_RET rather than
14553         __syscall_error.
14554
14555 2010-08-12  Andreas Schwab  <schwab@redhat.com>
14556
14557         [BZ #11904]
14558         * locale/programs/locale.c (print_assignment): New function.
14559         (show_locale_vars): Use it.
14560
14561 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
14562
14563         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
14564         field.
14565         (struct statfs64): Likewise.
14566         (_STATFS_F_FLAGS): Define.
14567         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
14568         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14569         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
14570         (ST_VALID): Define locally.
14571         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
14572         __statvfs_getflags, use the provided value.
14573         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14574         __ASSUME_STATFS_F_FLAGS.
14575
14576         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
14577
14578         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
14579         Add sys/fanotify.h.
14580         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
14581         fanotify_mask for GLIBC_2.13.
14582         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
14583         fanotify_init and fanotify_mark.
14584         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14585         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
14586
14587         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
14588         Add prlimit.
14589         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
14590         prlimit64 for GLIBC_2.13.
14591         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
14592         prlimit64.
14593         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
14594         syscall.
14595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14596         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14597         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
14598         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
14599         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
14600         add prlimit alias.
14601         * sysdeps/unix/sysv/linux/prlimit.c: New file.
14602
14603         [BZ #11903]
14604         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
14605         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
14606
14607         * nss/Makefile: Add rules to build and run tst-nss-test1.
14608         * shlib-versions: Add entry for libnss_test1.
14609         * nss/nss_test1.c: New file.
14610         * nss/tst-nss-test1.c: New file.
14611
14612         * nss/nsswitch.c (__nss_database_custom): Define new variable.
14613         (__nss_configure_lookup): Set appropriate entry in
14614         __nss_configure_lookup to true.
14615         * nss/nsswitch.h: Define enum with indeces of databases in
14616         databases and __nss_database_custom arrays.  Declare
14617         __nss_database_custom.
14618         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
14619         to avoid using nscd when custom rules are installed.
14620         * nss/getXXbyYY_r.c: Likewise.
14621         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14622
14623         * nss/nss_files/files-parse.c: Whitespace fixes.
14624
14625 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
14626
14627         [BZ #11883]
14628         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
14629         * posix/fnmatch_loop.c: Likewise.
14630
14631 2010-07-17  Andi Kleen  <ak@linux.intel.com>
14632
14633         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
14634         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
14635         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
14636         * Versions.def [GLIBC_2.13]: Add.
14637
14638 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
14639
14640         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14641         Also fail if tpwd after pwuid call is NULL.
14642
14643 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14644
14645         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
14646         when converting to ms.
14647
14648 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14649
14650         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
14651         EOPNOTSUPP errors with ENOTTY.
14652         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
14653         EOPNOTSUPP errors with ENOTTY.
14654
14655 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
14656
14657         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14658         Add strcasecmp_l-ssse3.
14659         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
14660         strcasecmp.
14661         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
14662         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
14663         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
14664
14665 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
14666
14667         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
14668
14669         * string/Makefile (strop-tests): Add strcasecmp.
14670         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14671         strcasecmp_l-nonascii.
14672         (gen-as-const-headers): Add locale-defines.sym.
14673         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
14674         * sysdeps/x86_64/strcasecmp.S: New file.
14675         * sysdeps/x86_64/strcasecmp_l.S: New file.
14676         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
14677         * sysdeps/x86_64/locale-defines.sym: New file.
14678         * string/test-strcasecmp.c: New file.
14679
14680         * string/test-strcasestr.c: Test both ends of the range of characters.
14681         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
14682
14683 2010-07-29  Roland McGrath  <roland@redhat.com>
14684
14685         [BZ #11856]
14686         * manual/locale.texi (Yes-or-No Questions): Fix example code.
14687
14688 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
14689
14690         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
14691         for ld.so.
14692
14693 2010-07-27  Andreas Schwab  <schwab@redhat.com>
14694
14695         * manual/memory.texi (Malloc Tunable Parameters): Document
14696         M_PERTURB.
14697
14698 2010-07-26  Roland McGrath  <roland@redhat.com>
14699
14700         [BZ #11840]
14701         * configure.in (-fgnu89-inline check): Set and substitute
14702         gnu89_inline, not libc_cv_gnu89_inline.
14703         * configure: Regenerated.
14704         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
14705
14706 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
14707
14708         * string/test-strnlen.c: New file.
14709         * string/Makefile (strop-tests): Add strnlen.
14710         * string/tester.c (test_strnlen): Add a few more test cases.
14711         * string/tst-strlen.c: Better error reporting.
14712
14713         * sysdeps/x86_64/strnlen.S: New file.
14714
14715 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
14716
14717         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
14718         lower-latency instructions.
14719
14720 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
14721
14722         * string/test-strcasestr.c: New file.
14723         * string/test-strstr.c: New file.
14724         * string/Makefile (strop-tests): Add strstr and strcasestr.
14725         * string/str-two-way.h: Don't undefine MAX.
14726         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14727
14728 2010-07-21  Andreas Schwab  <schwab@redhat.com>
14729
14730         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14731         strcasestr-nonascii.
14732         (CFLAGS-strcasestr-nonascii.c): Define.
14733         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
14734         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
14735         Remove unused attribute.
14736
14737 2010-07-20  Roland McGrath  <roland@redhat.com>
14738
14739         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
14740         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
14741         ld.so.cache was broken.  With it, there is no way to disable dsocaps
14742         like LD_HWCAP_MASK can disable hwcaps.
14743
14744 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14745
14746         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
14747
14748 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
14749
14750         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
14751         call in strcasestr.
14752         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
14753         __strcasestr_sse42_nonascii.
14754         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
14755         strcasestr-nonascii.c.
14756         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
14757
14758 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
14759
14760         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
14761         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
14762         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
14763         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
14764
14765 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
14766
14767         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
14768         fcntl.
14769
14770 2010-07-06  Andreas Schwab  <schwab@redhat.com>
14771
14772         [BZ #11577]
14773         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
14774         dl_signal_cerror.
14775
14776 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
14777
14778         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
14779         _PC_PIPE_BUF using F_GETPIPE_SZ.
14780
14781 2010-07-05  Roland McGrath  <roland@redhat.com>
14782
14783         * manual/arith.texi (Rounding Functions): Fix rint description
14784         implicit in round description.
14785
14786 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
14787
14788         * elf/Makefile: Fix linking for a few tests to make recent linker
14789         happy.
14790
14791 2010-06-30  Andreas Schwab  <schwab@redhat.com>
14792
14793         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14794         $(common-objpfx)libc_nonshared.a.
14795
14796 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
14797
14798         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
14799         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
14800         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14801         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14802         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
14803         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
14804         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14805         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
14807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
14808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
14809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
14811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
14813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
14814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
14815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
14816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
14818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
14820         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
14821         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
14822         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
14823         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
14824         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
14825         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
14826         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
14827         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
14828         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
14829         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
14830         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
14831         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
14832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
14833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
14834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
14835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
14836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
14837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
14838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
14839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
14840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
14841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
14842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
14843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
14844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
14845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
14846
14847 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14848
14849         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
14850         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
14851         * string/memmove.c (memmove): Renamed to ...
14852         (MEMMOVE): ...this.  Default to memmove.
14853         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
14854         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
14855         (END_CHK): Define.
14856         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14857         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
14858         mempcpy-ssse3-back memmove-ssse3-back.
14859         * sysdeps/x86_64/multiarch/bcopy.S: New file .
14860         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
14861         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
14862         * sysdeps/x86_64/multiarch/memcpy.S: New file.
14863         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
14864         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
14865         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
14866         * sysdeps/x86_64/multiarch/memmove.c: New file.
14867         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
14868         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
14869         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
14870         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
14871         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
14872         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
14873         Define.
14874         (index_Fast_Copy_Backward): Define.
14875         (HAS_ARCH_FEATURE): Define.
14876         (HAS_FAST_REP_STRING): Define.
14877         (HAS_FAST_COPY_BACKWARD): Define.
14878
14879 2010-06-21  Andreas Schwab  <schwab@redhat.com>
14880
14881         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14882         Restore proper fallback handling.
14883
14884 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
14885
14886         [BZ #11701]
14887         * posix/group_member.c (__group_member): Correct checking loop.
14888
14889         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
14890         OOM in getpwuid_r correctly.  Return error number when the caller
14891         should return, otherwise -1.
14892         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
14893         call returning > 0 value.
14894         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
14895
14896 2010-06-07  Andreas Schwab  <schwab@redhat.com>
14897
14898         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
14899         libc_nonshared.a from targets in modules-names.
14900
14901 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
14902
14903         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
14904         requires it.
14905
14906 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
14907
14908         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
14909         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
14910         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
14911         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
14912
14913 2010-06-02  Andreas Schwab  <schwab@redhat.com>
14914
14915         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
14916
14917 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
14918
14919         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
14920         and F_GETPIPE_SZ.
14921         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14922         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14923         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14924         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14925         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14926         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
14927
14928 2010-06-14  Roland McGrath  <roland@redhat.com>
14929
14930         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
14931
14932 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
14933
14934         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
14935         __REDIRECT followed by __THROW.
14936         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
14937         * posix/getopt.h (getopt): Likewise.
14938
14939 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14940
14941         * hurd/lookup-at.c (__file_name_lookup_at): Accept
14942         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
14943         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
14944         in AT_FLAGS.
14945         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
14946         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
14947
14948 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
14949
14950         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
14951
14952 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14953
14954         [BZ #11640]
14955         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14956         Properly check family and model.
14957
14958 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
14959
14960         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
14961
14962 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
14963
14964         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
14965
14966 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
14967
14968         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
14969         symbol reference.
14970
14971 2010-05-19  Andreas Schwab  <schwab@redhat.com>
14972
14973         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
14974         symbol reference.
14975
14976 2010-05-21  Andreas Schwab  <schwab@redhat.com>
14977
14978         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
14979         and internal_recvmmsg.
14980         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
14981         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
14982         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
14983         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
14984
14985         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
14986         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
14987         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
14988
14989 2010-05-20  Andreas Schwab  <schwab@redhat.com>
14990
14991         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
14992
14993 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
14994
14995         POWER7 optimizations.
14996         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
14997         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
14998
14999 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
15000
15001         * version.h: Update for 2.13 development version.
15002
15003 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
15004
15005         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
15006         exceptions.  Return 0.
15007
15008 2010-05-07  Roland McGrath  <roland@redhat.com>
15009
15010         * elf/ldconfig.c (main): Add a const.
15011
15012 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
15013
15014         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
15015         (args_options): Add no-idn option.
15016         (ahosts_keys_int): Add idn_flags to ai_flags.
15017         (parse_option): Handle 'i' option to clear idn_flags.
15018
15019         * malloc/malloc.c (_int_free): Possible race in the most recently
15020         added check.  Only act on the data if no current modification
15021         happened.
15022
15023 See ChangeLog.17 for earlier changes.