mktime: do not assume signed right shift propagates sign bit
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2
3         mktime: do not assume signed right shift propagates sign bit
4         * time/mktime.c (isdst_differ): New static function.
5         (__mktime_internal): No need to normalize tm_isdst now.
6         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7         tm_isdst values.
8
9         mktime: merge another wrapv change from gnulib
10         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
11         from some compilers.
12
13         mktime: remove incorrect attempt at unusual arithmetics
14         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
15         The code didn't really work on such machines anyway.
16         (TYPE_MINIMUM): Assume two's complement.
17         (twos_complement_arithmetic): Verify that long_int and time_t
18         are two's complement (or unsigned, in the latter case).
19
20         mktime: check signed shifts on long_int and time_t, too
21         * time/mktime.c (SHR): Check that shifts work as desired
22         on the types long_int and time_t too, as SHR is used on
23         such types.
24
25         mktime: do not assume 'long' is wide enough
26         * time/mktime.c (verify): Move decl up.
27         (long_int): New type.
28         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
29         to remove assumption in the code that 'long' is wide enough to
30         store year values.  This assumption is not true on x32 and on
31         some non-glibc platforms.
32
33         mktime: merge wrapv change from gnulib
34         * time/mktime.c (WRAPV): New macro.
35         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
36         (guess_time_tm, __mktime_internal): Do not assume that signed
37         integer overflow wraps around; modern compilers generate code
38         where this assumption is no longer valid.
39
40 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
41
42         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
43         Replace "jmp L(pseudo_end)" with "ret".
44         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
45         Likewise.
46
47 2012-05-23  Andreas Jaeger  <aj@suse.de>
48
49         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
50         * sysdeps/unix/sysv/linux/poll.c: Remove file.
51
52 2012-05-23  Andreas Jaeger  <aj@suse.de>
53             Maximilian Attems  <max@stro.at>
54
55         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
56         New macros.
57
58 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
59
60         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61         code so that pseudo_end is just ret and the stack pointer is
62         correct also for static library in error case.
63
64 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
65
66         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
67         move to syscalls.list.
68         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
69         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
70         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
71         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
72
73         * manual/install.texi (Running make install): Do not mention Linux
74         kernel version for which pt_chown is not needed.
75         (Linux): Do not mention problems with nscd with 2.0 kernels.
76         * INSTALL: Regenerated.
77
78 2012-05-23  Andreas Jaeger  <aj@suse.de>
79
80         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
81         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
82         macro.
83         * sysdeps/unix/sysv/linux/s390/bits/mman.h
84         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
85         * sysdeps/unix/sysv/linux/sh/bits/mman.h
86         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
87         * sysdeps/unix/sysv/linux/i386/bits/mman.h
88         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
89         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
90         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
91         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
92         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
93         * sysdeps/unix/sysv/linux/bits/in.h
94         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
95
96 2012-05-22  Roland McGrath  <roland@hack.frob.com>
97
98         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
99         (PREPARE_VERSION): Just use assert instead, it will be elided
100         under [NDEBUG] anyway.
101
102 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
103
104         * sysdeps/unix/sysv/linux/Makefile: Include
105         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
106         (sysdep_routines): Remove sysctl.
107         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
108         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
109         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
110         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
111         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
112
113 2012-05-22  Andreas Jaeger  <aj@suse.de>
114
115         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
116         that pseudo_end is just ret and the stack pointer is correct also
117         for static library in error case.
118
119 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
120
121         [BZ #14122]
122         * nss/nsswitch.c (defconfig_entries): New variable.
123         (__nss_database_lookup): Don't leak defconfig entries.
124         (nss_parse_service_list): Don't leak on error paths.
125         (free_database_entries): New function.
126         (free_defconfig): New function.
127         (free_mem): Move common code to free_database_entries.
128
129 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
130
131         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
132         Add arch_prctl.
133         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
134
135         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
136         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
137         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
138         New macro.
139         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
140         (INTERNAL_SYSCALL_TYPES): Likewise.
141         (LOAD_ARGS_TYPES_[1-6]): Likewise.
142         (LOAD_REGS_TYPES_[1-6]): Likewise.
143         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
144         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
145
146 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
147
148         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
149         copysignl for GLIBC_2_0.
150         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
151         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
152         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
153         logbl for GLIBC_2_0.
154         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
155         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
156
157 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
158
159         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
160         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
161
162         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
163         Use "neg %eax".
164
165         * time/mktime.c: Update copyright years.
166
167 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
168
169         mktime: merge comment-quoting-style change from gnulib
170         * time/mktime.c: Quote 'like this' in comments.
171         The GNU coding standards suggest that we no longer quote `like this',
172         as "`" and "'" are typically rendered asymmetrically nowadays.
173         The typical gnulib style is to quote 'like this' when quoting
174         code, and "like this" when quoting English.
175
176         * time/mktime.c (compile-command): Add "-I.".
177
178         mktime: merge mktime-internal.h change from gnulib
179         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
180
181         mktime: merge time_r change from gnulib
182         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
183
184         mktime: merge DEBUG change from gnulib
185         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
186         case system <time.h> has a #define.
187
188         mktime: merge <sys/types.h> change from gnulib
189         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
190         since <time.t> is now guaranteed to define time_t.
191
192         mktime: merge HAVE_CONFIG_H change from gnulib
193         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
194
195 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
196
197         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
198         Use "neg %eax".
199
200         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
201         __rlim_t cast.
202         (struct rusage): Use anonymous union to pad each field to
203         __syscall_slong_t.
204
205 2012-05-21  David S. Miller  <davem@davemloft.net>
206
207         * Makefules (o-iterator): Remove .s cases.
208         (compile-command.s): Delete.
209         (COMPILE.s): Delete.
210         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
211
212 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
213
214         * configure.in (libc_cv_predef_stack_protector): Only consider
215         "foobar" and "__stack_chk_fail" lines in libc_undefs.
216         * configure: Regenerated.
217
218 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
219
220         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
221         New macro.  Use R*LP on int and pointer.
222         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
223         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
224         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
225         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
226
227         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
228         [__WORDSIZE_TIME64_COMPAT32] instead of
229         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
230         (struct utmp): Likewise.
231         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
232         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
233         Renamed to ...
234         (__WORDSIZE_TIME64_COMPAT32): This.
235         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
236         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
237         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
238         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
239         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
240         (__WORDSIZE_TIME64_COMPAT32): New macro.
241
242 2012-05-21  Andreas Jaeger  <aj@suse.de>
243
244         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
245         only if [SHARED]. Add prototype for __wcschr_ia32.
246
247 2012-05-21  Roland McGrath  <roland@hack.frob.com>
248
249         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
250         of %rbp unmolested in the jmp_buf while mangling the low bits.
251         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
252         unmolested high bits of %rbp while demangling the low bits.
253         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
254
255 2012-05-21  Andreas Jaeger  <aj@suse.de>
256
257         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
258         * sunrpc/svc_simple.c: Use it for registerrpc.
259         * sunrpc/xcrypt.c: Use it for passwd2des.
260
261         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
262
263 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
264
265         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
266         Don't define if [__SYSCALL_WORDSIZE != 32].
267         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
268         New macro.
269
270 2012-05-21  Bruno Haible  <bruno@clisp.org>
271             Andreas Jaeger  <aj@suse.de>
272
273         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
274         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
275         inptr and inend for must_buffer_ch.
276         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
277         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
278         * stdio-common/Makefile (tests): Remove bug15.
279         (bug15-ENV): Remove macro.
280         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
281         anymore.
282
283 2012-05-19  Andreas Jaeger  <aj@suse.de>
284             Roland McGrath  <roland@hack.frob.com>
285
286         * manual/contrib.texi: Completely rewritten. It contains now an
287         alphabetical list of contributors and their contributions.
288
289 2012-05-21  Richard Henderson  <rth@twiddle.net>
290
291         * misc/getauxval.c (__getauxval): Use unsigned long int.
292         * misc/sys/auxv.h: Include <sys/cdefs.h>.
293         (getauxval): Use unsigned long int.
294
295 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
296
297         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
298
299 2012-05-21  Roland McGrath  <roland@hack.frob.com>
300
301         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
302         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
303         __alignof__ (long double).
304
305 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
306
307         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
308
309 2012-05-20  Richard Henderson  <rth@twiddle.net>
310
311         * misc/getauxval.c: New file.
312         * misc/sys/auxv.h: New file.
313         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
314         (routines): Add getauxval.
315         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
316         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
317         * elf/dl-sysdep.c (_dl_auxv): Remove.
318         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
319         * elf/dl-support.c (_dl_auxv): New variable.
320         (_dl_aux_init): Initialize it.
321         * manual/startup.texi (Auxiliary Vector): New node.
322         * sysdeps/generic/bits/hwcap.h: New file.
323         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
324         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
325         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
326         * sysdeps/sparc/sysdep.h: ... here.  Include it.
327         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
328         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
330         Update.
331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
332         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
333         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
334         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
336         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
337         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
338         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
339
340 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
341
342         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
343
344 2012-05-19  David S. Miller  <davem@davemloft.net>
345
346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
347
348 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
349
350         [BZ #14123]
351         * math/s_ccosh.c: Include <float.h>
352         (__ccosh): Avoid internal overflow calculating sinh and cosh
353         values before multiplying by sin and cos values.
354         * math/s_ccoshf.c: Likewise.
355         * math/s_ccoshl.c: Likewise.
356         * math/s_csin.c: Likewise.
357         * math/s_csinf.c: Likewise.
358         * math/s_csinl.c: Likewise.
359         * math/s_csinh.c: Likewise.
360         * math/s_csinhf.c: Likewise.
361         * math/s_csinhl.c: Likewise.
362         * math/libm-test.inc (ccos_test): Add more tests.
363         (ccosh_test): Likewise.
364         (csin_test): Likewise.
365         (csinh_test): Likewise.
366         * sysdeps/i386/fpu/libm-test-ulps: Update.
367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
368
369 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
370
371         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
372         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
373
374         * sysdeps/x86_64/x32/_itoa.h: Add comment.
375
376 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
377
378         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
379         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
380         * sysdeps/powerpc/soft-fp/Versions: Likewise.
381         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
382         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
383         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
384         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
385         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
386         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
387         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
388         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
389         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
390         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
391         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
392         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
393         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
394         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
395         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
396         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
397         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
398         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
399         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
400         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
401         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
402         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
403         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
404         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
405         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
406         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
407         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
408         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
409
410 2012-05-18  Andreas Jaeger  <aj@suse.de>
411
412         * csu/.gitignore: Delete.
413
414 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
415
416         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
417         (timex): Use __syscall_slong_t.
418
419 2012-05-18  Andreas Jaeger  <aj@suse.de>
420             Carlos O'Donell  <carlos_odonell@mentor.com>
421
422         * manual/install.texi (Configuring and compiling): Update
423         description about files modified in the source directory.
424         * INSTALL: Regenerated.
425
426 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
427
428         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
429         value.  Use "or" to set return value to -1.
430         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
431         negate return value.
432
433 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
434
435         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
436         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
437         failure if the compiler has Graphite support disabled.
438         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
439         Likewise.
440         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
441         CFLAGS-memmove.c): Likewise.
442         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
443         Likewise.
444
445 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
446
447         * sysdeps/x86_64/x32/_itoa.h: New file.
448
449         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
450         getdents system call only if kernel and user dirents have the
451         same d_ino and d_off.
452
453         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
454         LLONG_MAX != LONG_MAX.
455         (_itoa_word): Use _ITOA_WORD_TYPE on value.
456         (_fitoa_word): Likewise.
457
458         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
459         years.
460         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
461         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
462         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
463
464         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
465         include <bits/wordsize.h>.  Check __x86_64__ instead of
466         __WORDSIZE.
467         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
468         if __x86_64__ is defined.  Use anonymous union on fpstate.
469
470         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
471         anonymous union.
472
473 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
474
475         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
476         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
477         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
478         Refer to _rtld_local_ro instead of _rtld_global_ro.
479         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
480         Likewise.
481         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
482         Likewise.
483         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
484         Likewise.
485         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
486         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
487         of _rtld_global, and rtld_progname instead of _dl_argv[0].
488
489         * sysdeps/powerpc/powerpc32/dl-machine.c
490         (__elf_machine_runtime_setup) [PROF]: Don't reference
491         _dl_prof_resolve.
492
493 2012-05-18  Andreas Jaeger  <aj@suse.de>
494
495         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
496         function only available for GCCs before 3.4 since GCC 3.4
497         introduced a builtin.
498         (lrint): Likewise.
499         (llrintf): Likewise.
500         (llrint): Likewise.
501         (fmaxf): Likewise.
502         (fmax): Likewise.
503         (fminf): Likewise.
504         (fmin): Likewise.
505         (rint): Likewise.
506         (rintf): Likewise.
507         (nearbyint): Likewise.
508         (nearbyintf): Likewise.
509         (ceil): Likewise.
510         (ceilf): Likewise.
511         (floor): Likewise.
512         (floorf): Likewise.
513
514 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
515
516         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
517         on both fields and cast pointer to __syscall_ulong_t.
518
519         * bits/types.h (__fsword_t): New type.
520         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
521         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
522         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
523         (__FSWORD_T_TYPE): Likewise.
524         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
525         (__FSWORD_T_TYPE): Likewise.
526         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
527         (__FSWORD_T_TYPE): Likewise.
528         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
529         (__FSWORD_T_TYPE): Likewise.
530         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
531         __SWORD_TYPE with __fsword_t.
532         (statfs64): Likewise.
533
534 2012-05-17  David S. Miller  <davem@davemloft.net>
535
536         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
537
538 2012-05-17  Andreas Jaeger  <aj@suse.de>
539
540         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
541         warning.
542
543 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
544
545         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
546
547 2012-05-17  Andreas Jaeger  <aj@suse.de>
548
549         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
550         when it is used.
551
552 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
553
554         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
555
556 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
557
558         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
559         * sysdeps/x86_64/tst-mallocalign1.c: New file.
560
561 2012-05-17  Andreas Jaeger  <aj@suse.de>
562             Carlos O'Donell  <carlos_odonell@mentor.com>
563
564         [BZ #14059]
565         * sysdeps/x86_64/multiarch/init-arch.h
566         (bit_YMM_Usable): Rename to...
567         (bit_AVX_Usable): ... this.
568         (bit_FMA4_Usable): New macro.
569         (bit_XMM_state): New macro.
570         (bit_YMM_state): New macro.
571         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
572         [__ASSEMBLER__] (index_AVX_Usable): ... this.
573         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
574         (CPUID_OSXSAVE): New macro.
575         (CPUID_AVX): New macro.
576         (CPUID_FMA4): New macro.
577         (index_YMM_Usable): Rename to...
578         (index_AVX_Usable): ... this.
579         (HAS_AVX): Use HAS_ARCH_FEATURE.
580         (HAS_FMA4): Likewise.
581         (HAS_YMM_USABLE): Remove.
582         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
583         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
584         are present.
585         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
586         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
587         * sysdeps/x86_64/multiarch/Makefile: Likewise.
588         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
589         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
590
591 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
592
593         * math/libm-test.c: Support platforms without multiple rounding modes.
594         * math/bug-nextafter.c: Support platforms without FP exceptions.
595         * math/bug-nexttoward.c: Likewise.
596         * math/test-fenv.c: Likewise.
597         * math/test-misc.c: Likewise.
598         * stdlib/bug-getcontext.c: Likewise.
599
600 2012-05-17  Andreas Jaeger  <aj@suse.de>
601
602         * manual/examples/search.c (critter_cmp): Change signature to
603         avoid warnings.
604         * manual/string.texi (Collation Functions): Likewise.
605
606 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
607
608         * bits/types.h: Fold copyright years.
609         * bits/typesizes.h: Likewise.
610         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
611         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
612         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
613         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
614         * time/time.h: Likewise.
615
616 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
617
618         [BZ #208]
619         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
620         in instead of returning them.  Return void.
621         (__libc_mallinfo): Accumulate over all arenas.
622         (__malloc_stats): Adjust for change in int_mallinfo interface.
623
624 2012-05-16  Roland McGrath  <roland@hack.frob.com>
625
626         [BZ #10375]
627         * configure.in (NM): Add AC_CHECK_TOOL for it.
628         (libc_extra_cflags): New substituted variable.
629         Check for -fstack-protector being used implicitly.
630         * configure: Regenerated.
631         * config.make.in (config-extra-cflags): New variable,
632         gets @libc_extra_cflags@.
633         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
634
635         [BZ #10375]
636         * configure.in: Check for _FORTIFY_SOURCE being predefined.
637         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
638         * configure: Regenerated.
639         * config.make.in (CPPUNDEFS): New substituted variable.
640         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
641         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
642         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
643
644 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
645
646         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
647         (mq_attr): Use __syscall_slong_t.
648
649 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
650
651         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
652         Check __x86_64__ instead of __WORDSIZE.
653         (_STAT_VER_LINUX): Likewise.
654         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
655         __syscall_ulong_t and __syscall_slong_t.
656         (stat64): Likewise.
657
658 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
659
660         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
661
662 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
663
664         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
665
666 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
667
668         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
669         __syscall_ulong_t.
670
671         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
672         include <bits/wordsize.h>.  Check __x86_64__ instead of
673         __WORDSIZE.
674         (greg_t): Use "__extension__ long long int" if __x86_64__ is
675         defined.
676         (mcontext_t): Replace "unsigned long" with "unsigned long long".
677
678         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
679         include <bits/wordsize.h>.  Check __x86_64__ instead of
680         __WORDSIZE.
681         (user_regs_struct): Use "__extension__ unsigned long long"
682         instead of "unsigned long" if __x86_64__ is defined.
683         (user): Likewise.  Pad after pointer field if __ILP32__ is
684         defined.
685
686 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
687
688         * configure.in (makeinfo): Require version 4.5 or later.  Allow
689         versions 5 to 9.
690         * configure: Regenerated.
691         * manual/install.texi (texinfo): Increase version requirement to
692         4.5 or later.
693         * INSTALL: Regenerated.
694
695         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
696
697 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
698
699         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
700
701         * sysdeps/x86_64/x32/ffs.c: New file.
702
703         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
704         __syscall_ulong_t.
705         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
706         defined.  Use __syscall_ulong_t.
707         (shminfo): Use __syscall_ulong_t.
708         (shm_info): Likewise.
709
710         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
711         __syscall_ulong_t.
712
713         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
714         <bits/wordsize.h>.
715         (msgqnum_t): Use __syscall_ulong_t.
716         (msglen_t): Likewise.
717         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
718         __syscall_ulong_t.
719
720         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
721         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
722
723         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
724
725         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
726         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
727
728         * sysvipc/sys/msg.h (msgbuf): Replace long int with
729         __syscall_slong_t.
730
731         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
732         include <bits/wordsize.h>.  Check __x86_64__ instead of
733         __WORDSIZE.
734
735         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
736         "unsigned long long int" if __x86_64__ is defined.
737         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
738
739         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
740         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
741         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
742
743         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
744         <stdint.h>.
745         (GET_PC): Cast to uintptr_t first.
746         (GET_FRAME): Likewise.
747         (GET_STACK): Likewise.
748
749         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
750         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
751         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
752         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
753         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
754         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
755         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
756         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
757         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
758         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
759         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
760         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
761         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
762         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
763         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
764         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
765         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
766         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
767         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
768         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
769         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
770         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
771         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
772         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
773         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
774         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
775         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
776         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
777         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
778
779 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
780
781         * Makerules (+depfiles): Also collect depfiles from .oS in
782         $(extra-objs).
783         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
784         .oS, $(libnldbl-routines)).
785
786         * Makerules (native-compile-mkdep-flags): Define.
787         * sunrpc/Makefile (extra-objs): Add $(addprefix
788         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
789         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
790         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
791         calling $(make-target-directory).
792
793 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
794
795         * bits/types.h (__snseconds_t): Removed.
796         * time/time.h (struct timespec): Replace __snseconds_t with
797         __syscall_slong_t.
798         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
799         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
800         Likewise.
801         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
802         (__SNSECONDS_T_TYPE): Likewise.
803         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
804         (__SNSECONDS_T_TYPE): Likewise.
805         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
806         (__SNSECONDS_T_TYPE): Likewise.
807
808 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
809
810         * sysdeps/mach/hurd/bits/typesizes.h
811         (__SYSCALL_SLONG_TYPE): New macro.
812         (__SYSCALL_ULONG_TYPE): Likewise.
813
814 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
815
816         * bits/types.h (__syscall_slong_t): New type.
817         (__syscall_ulong_t): Likewise.
818
819         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
820         (__SYSCALL_ULONG_TYPE): Likewise.
821         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
822         (__SYSCALL_SLONG_TYPE): Likewise.
823         (__SYSCALL_ULONG_TYPE): Likewise.
824         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
825         (__SYSCALL_SLONG_TYPE): Likewise.
826         (__SYSCALL_ULONG_TYPE): Likewise.
827         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
828         (__SYSCALL_SLONG_TYPE): Likewise.
829         (__SYSCALL_ULONG_TYPE): Likewise.
830
831 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
832
833         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
834         Add sigaltstack-offsets.sym.
835         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
836         <sigaltstack-offsets.h>.
837         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
838         longjmp_msg pointer.
839         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
840         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
841         signal stack.
842         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
843
844 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
845
846         * elf/stackguard-macros.h: Remove file.
847         * sysdeps/generic/stackguard-macros.h: New file.
848         * sysdeps/i386/stackguard-macros.h: Likewise.
849         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
850         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
851         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
852         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
853         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
854         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
855         * sysdeps/x86_64/stackguard-macros.h: Likewise.
856         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
857         <elf/stackguard-macros.h>.
858
859         [BZ #14109]
860         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
861         __aligned__ in attribute.
862         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
863         (gregset_t): Likewise.
864
865 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
866
867         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
868         * sysdeps/x86_64/64/Implies-after: Here.  New file.
869         * sysdeps/x86_64/x32/Implies-after: New file.
870
871 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
872
873         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
874         and access return value for _dl_profile_fixup.  Use R10_LP to
875         load frame size.
876
877 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
878
879         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
880
881 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
882
883         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
884         * sysdeps/x86_64/x32/sysdep.h: New file.
885
886 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
887
888         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
889         * sysdeps/x86_64/setjmp.S: Likewise.
890
891 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
892
893         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
894         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
895         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
896         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
897         remove unused global constant.
898
899 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
900
901         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
902         include of <not-cancel.h>.
903
904 2012-05-15  Roland McGrath  <roland@hack.frob.com>
905
906         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
907
908 2012-05-15  Jeff Law  <law@redhat.com>
909             Andreas Jaeger  <aj@suse.de>
910
911         [BZ #13594]
912         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
913         out from...
914         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
915         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
916         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
917         code changing __hst_map_handle.map.
918
919 2012-05-15  Roland McGrath  <roland@hack.frob.com>
920
921         * configure.in (sysnames): Look for Implies-before and Implies-after
922         files.
923         * configure: Regenerated.
924
925 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
926
927         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
928         8-byte data alignment with LP_SIZE alignment.
929
930 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
931
932         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
933         into R10_LP.
934
935 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
936
937         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
938
939 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
940
941         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
942         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
943         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
944         Likewise.
945         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
946
947 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
948
949         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
950         (stackinfo_sub_sp): Likewise.
951
952 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
953
954         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
955         RAX_LP.
956
957 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
958
959         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
960         into R*_LP.
961
962 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
963
964         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
965         sizes into R*_LP.
966
967 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
968
969         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
970
971 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
972
973         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
974         into R11_LP and load __x86_64_shared_cache_size_half into
975         R8_LP.
976
977 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
978
979         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
980         R8_LP.
981
982 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
983
984         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
985         logb for POWER7.
986         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
987         logbf for POWER7.
988         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
989         logbl for POWER7.
990         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
991         powerpc32/power7/fpu/s_logb.c via #include.
992         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
993         powerpc32/power7/fpu/s_logbf.c via #include.
994         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
995         powerpc32/power7/fpu/s_logbl.c via #include.
996
997 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
998
999         * README.libm: Remove file.
1000
1001 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1002
1003         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
1004         count for x32.  Use R*_LP and omit operand-size suffix.
1005
1006 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1007
1008         * shlib-versions: Move x86_64-.*-linux.* entries to ...
1009         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
1010         * sysdeps/x86_64/x32/shlib-versions: New file.
1011
1012 2012-05-14  Roland McGrath  <roland@hack.frob.com>
1013
1014         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
1015         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
1016         Use _dl_fatal_printf instead.
1017
1018 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
1019
1020         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
1021         set if not set by the user.  Do not allow for being unset.
1022         * sysdeps/unix/sysv/linux/configure: Regenerated.
1023
1024 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1025
1026         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
1027         the `q' suffix from lea and replace .quad with ASM_ADDR.
1028
1029 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1030
1031         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
1032         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
1033         instead of $17.
1034         (PTR_DEMANGLE): Likewise.
1035
1036 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1037
1038         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
1039         (LP_OP): Likewise.
1040         (ASM_ADDR): Likewise.
1041         (RAX_LP): Likewise.
1042         (RBP_LP): Likewise.
1043         (RBX_LP): Likewise.
1044         (RCX_LP): Likewise.
1045         (RDI_LP): Likewise.
1046         (RSI_LP): Likewise.
1047         (RSP_LP): Likewise.
1048         (R8_LP): Likewise.
1049         (R9_LP): Likewise.
1050         (R10_LP): Likewise.
1051         (R10_LP): Likewise.
1052         (R11_LP): Likewise.
1053         (R12_LP): Likewise.
1054         (R13_LP): Likewise.
1055         (R14_LP): Likewise.
1056         (R15_LP): Likewise.
1057
1058 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1059
1060         * sysdeps/x86_64/x32/dl-machine.h: New file.
1061
1062 2012-05-14  Andreas Jaeger  <aj@suse.de>
1063
1064         * manual/Makefile (subdir): Remove export of subdir.
1065         (all): Remove target.
1066         (.PHONY): Remove all from list.
1067         (mkinstalldirs): Remove.
1068         (.PHONY): Remove installdirs from list.
1069         ($(inst_infodir)/libc.info): Use make-target-directory.
1070         (installdirs): Remove.
1071         (subdir_%): Remove.
1072         (glibc-targets): Remove.
1073         (lib): Remove.
1074         (stubs): Remove.
1075         ($(objpfx)stubs ../po/manual.pot): Remove.
1076         ($(objpfx)stamp%): Remove.
1077         (make-target-directory): Remove.
1078         (subdir_install): Remove.
1079         (routines): Remove.
1080         (aux): Remove.
1081         (sources): Remove.
1082         (objects): Remove.
1083         (headers): Remove.
1084
1085         [BZ #13750]
1086         * manual/.gitignore: Remove, it's not needed anymore.
1087         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
1088         all files in it.
1089         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
1090         directory.
1091         (texis): Renamed to $(objpfx)texis.
1092         (texis-path): New, contains path to generated files.
1093         (chapters.%): Use texis-path for complete path, add extra argument
1094         libc-texinfo.sh.
1095         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
1096         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
1097         (summary,texi, stamp-summary): Use complete path of
1098         files. Generate files in build dir.
1099         (dir-add.texi): Build in build dir.
1100         (libm-err.texi,stamp-libm-err): Likewise.
1101         (version.texi, stamp-version): Likewise.
1102         (.%c.texi): Likewise.
1103         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
1104         (mostlyclean): Remove target.
1105         (realclean): Remove target.
1106         (generated): Add new variable with contents from mostlyclean and
1107         realclean, remove entries duplicated in common-mostlyclean, add
1108         stamp-libm-err and stamp-version.
1109         (generated-dirs): Add libc directory.
1110         ($(inst_infodir)/libc.info): Install files from build dir.
1111
1112         * manual/install.texi (Configuring and compiling): Adjust since
1113         the info files are not part of the tar ball anymore.
1114
1115 2012-05-14  Andreas Jaeger  <aj@suse.de>
1116
1117         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
1118         variable.
1119
1120 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
1121
1122         [BZ #13717]
1123         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
1124         to 2.2.0 where earlier.
1125         * sysdeps/unix/sysv/linux/configure: Regenerated.
1126         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
1127         Remove conditional code.
1128         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
1129         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
1130         Remove conditional code.
1131         [!__NR_lchown]: Likewise.
1132         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1133         [__NR_lchown]: Likewise.
1134         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
1135         comment referencing __ASSUME_LCHOWN_SYSCALL.
1136         * sysdeps/unix/sysv/linux/i386/sigaction.c
1137         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1138         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1139         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
1140         Remove conditional code.
1141         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
1142         (__protocol_available): Remove #if 0 code.
1143         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
1144         conditional code.
1145         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
1146         * sysdeps/unix/sysv/linux/kernel-features.h
1147         (__ASSUME_GETCWD_SYSCALL): Don't define.
1148         (__ASSUME_REALTIME_SIGNALS): Likewise.
1149         (__ASSUME_PREAD_SYSCALL): Likewise.
1150         (__ASSUME_PWRITE_SYSCALL): Likewise.
1151         (__ASSUME_POLL_SYSCALL): Likewise.
1152         (__ASSUME_LCHOWN_SYSCALL): Likewise.
1153         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
1154         non-SPARC.
1155         (__ASSUME_SIOCGIFNAME): Don't define.
1156         (__ASSUME_MSG_NOSIGNAL): Likewise.
1157         (__ASSUME_SENDFILE): Define unconditionally.
1158         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
1159         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
1160         conditional code.
1161         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
1162         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
1163         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1164         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1165         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
1166         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1167         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
1169         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1170         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
1172         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1173         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
1175         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1176         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
1178         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1179         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
1181         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1182         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
1184         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1185         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
1187         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1188         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
1190         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1191         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1192         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
1193         Remove conditional code.
1194         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1195         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1196         Remove conditional code.
1197         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1198         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
1199         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
1200         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1201         Remove conditional code.
1202         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1203         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
1204         Remove conditional code.
1205         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1206         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
1207         Remove conditional code.
1208         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1209         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1210         Remove conditional code.
1211         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1212         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1213         Remove conditional code.
1214         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1215         * sysdeps/unix/sysv/linux/sh/pwrite64.c
1216         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1217         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1218         * sysdeps/unix/sysv/linux/sigaction.c
1219         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1220         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1221         * sysdeps/unix/sysv/linux/sigpending.c
1222         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1223         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1224         * sysdeps/unix/sysv/linux/sigprocmask.c
1225         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1226         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1227         * sysdeps/unix/sysv/linux/sigsuspend.c
1228         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1229         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1230         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1231         (__libc_missing_rt_sigs): Remove.
1232         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
1233         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
1234         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
1235         Remove conditional code.
1236         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
1237         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
1238         return 1.
1239         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
1240         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
1241         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
1242         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
1243
1244 2012-05-14  Andreas Jaeger  <aj@suse.de>
1245
1246         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
1247         it's not used in glibc.
1248         (__coshm1): Likewise.
1249         (__acosh1p): Likewise.
1250         (__sgn): Likewise.
1251
1252         * manual/string.texi (Copying and Concatenation): Add missing
1253         variable in concat example.
1254         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
1255
1256 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1257
1258         [BZ #14103]
1259         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
1260         __builtin_clzl with __builtin_clzll.
1261
1262 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1263
1264         [BZ #14104]
1265         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
1266         libc_freeres_ptr.
1267
1268 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1269
1270         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
1271         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
1272         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
1273         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
1274
1275 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
1276
1277         * NEWS: Update ia64 info.
1278
1279 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
1280
1281         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
1282         used as bcopy.
1283
1284 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1285
1286         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
1287         * sysdeps/unix/syscalls.list (dup3): Likewise.
1288         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
1289         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
1290
1291 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1292
1293         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
1294         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
1295
1296 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1297
1298         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
1299         thread pointer.
1300         (TLS_IE): Use mov/add instead of movq/addq to load thread
1301         pointer.
1302         (TLS_GD_PREFIX): New.
1303         (TLS_GD): Use it.
1304
1305 2012-05-11  David S. Miller  <davem@davemloft.net>
1306
1307         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
1308         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
1309         (_FPU_SETCW): Likewise.
1310
1311 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1312
1313         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
1314         is 32-byte aligned.
1315
1316 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
1317
1318         [BZ #11837]
1319         * iconvdata/gb18030.c: Update tables.
1320         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
1321         characters specially.
1322         (BODY for TO_LOOP): Add encoding of missing ranges.
1323
1324 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
1325
1326         [BZ #13673]
1327         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
1328         * sysdeps/mach/hurd/dup3.c: Likewise.
1329         * sysdeps/mach/hurd/readlinkat.c: Likewise.
1330         * sysdeps/powerpc/memmove.c:: Likewise.
1331
1332 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1333
1334         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
1335         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
1336
1337 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1338
1339         * elf/elf.h (R_X86_64_RELATIVE64): New.
1340         (R_X86_64_NUM): Updated.
1341         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1342         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
1343         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
1344         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
1345         tst-quad1pie tst-quad2pie
1346         (modules-names): Add tst-quadmod1 tst-quadmod2.
1347         ($(objpfx)tst-quad1): New dependency.
1348         ($(objpfx)tst-quad2): Likewise.
1349         ($(objpfx)tst-quad1pie): Likewise.
1350         ($(objpfx)tst-quad2pie): Likewise.
1351         * sysdeps/x86_64/tst-quad1.c: New file.
1352         * sysdeps/x86_64/tst-quad1pie.c: New file.
1353         * sysdeps/x86_64/tst-quad2.c: Likewise.
1354         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
1355         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
1356         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
1357         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
1358         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
1359
1360 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1361
1362         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
1363         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
1364         * streams/stropts.h (t_scalar_t): Define type.
1365
1366         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
1367         (_PATH_PRESERVE): Set to "/var/lib".
1368         (_PATH_RWHODIR): Set to "/var/spool/rwho".
1369
1370         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
1371         instead of int.
1372
1373         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
1374         if __dir_mkfile succeeded.
1375
1376         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
1377         checking for _hurd_dtablesize.  Unlock it right after having
1378         finished _hurd_dtable allocation.
1379
1380 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1381
1382         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
1383         * sysdeps/mach/hurd/configure: Regenerated.
1384         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
1385         special-casing to...
1386         * sysdeps/gnu/configure.in: ... this new file.
1387         * sysdeps/unix/sysv/linux/configure: Regenerated.
1388         * sysdeps/gnu/configure: New generated file.
1389
1390         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
1391         for Linux: use nsec instead of usec, as well as:
1392         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
1393         members of type struct timespec.
1394         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
1395         New macros.
1396         (struct stat64): Likewise.
1397         (_STATBUF_ST_NSEC): New macro.
1398         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
1399
1400         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1401         __strtoul_internal rather than strtoul.
1402
1403 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1404
1405         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
1406         and reject them.
1407
1408 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1409
1410         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
1411         which preserves existing values.
1412         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
1413
1414 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1415
1416         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
1417         TIMEOUT values.  Return EINVAL for NFDS values either negative or
1418         greater than FD_SETSIZE.
1419
1420 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1421
1422         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
1423         allocated, call __vm_protect to finish enabling the existing space, and
1424         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
1425         allocate the remainder.
1426
1427 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1428
1429         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
1430         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
1431
1432 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1433
1434         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
1435         sysdeps/mach/hurd/readlink.c.
1436
1437         * posix/tst-sysconf.c (posix_options): Only use
1438         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
1439         _POSIX_SYNCHRONIZED_IO when they are defined
1440         * sysdeps/mach/hurd/bits/posix_opt.h:
1441         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
1442         (_XOPEN_REALTIME): Undefine macro.
1443         (_XOPEN_REALTIME_THREADS): Undefine macro.
1444         (_XOPEN_SHM): Undefine macro.
1445         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
1446         macro to -1.
1447         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
1448         macro to -1.
1449         (_POSIX_ASYNC_IO): Undefine macro.
1450         (_POSIX_PRIORITIZED_IO): Undefine macro.
1451         (_POSIX_SPIN_LOCKS): Define macro to -1.
1452
1453         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
1454         SA_NODEFER, SA_RESETHAND.
1455         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
1456         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
1457         F_DUPFD_CLOEXEC.
1458
1459 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1460
1461         * elf/Makefile (pldd-modules): Define unconditionally.
1462
1463 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1464
1465         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
1466
1467 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1468
1469         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1470         Return ENOENT when name is empty.
1471         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
1472
1473 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1474
1475         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
1476
1477         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
1478
1479 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1480
1481         Fix mlock in all cases except non-readable pages.
1482         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
1483         instead of VM_PROT_ALL as parameter to __vm_wire function.
1484
1485         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
1486         (__mkdir): When path is `/', just fail with EEXIST.
1487         * sysdeps/mach/hurd/mkdirat.c: Likewise.
1488
1489 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1490
1491         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
1492         <sys/uio.h> (for writev).
1493         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
1494         and <sys/param.h> (for MIN).
1495
1496 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1497
1498         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
1499         REQUESTED_TIME.  Properly set the remaining time and return EINTR
1500         if interrupted.
1501
1502 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1503
1504         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
1505         Depend on against $(link-rpcuserlibs).
1506
1507 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1508
1509         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
1510         (__libc_stack_end): Do not use attribute_relro.
1511         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
1512         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
1513         to libthread-provided value.
1514         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
1515         attribute_relro.
1516
1517 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1518
1519         [BZ #3748]
1520         * bits/libc-lock.h (__libc_once_get): New macro.
1521         * sysdeps/mach/bits/libc-lock.h: Likewise.
1522         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1523         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
1524         instead of using implementation details.
1525
1526         * libio/fileops.c: Unconditionally include <kernel-features.h>.
1527         * libio/freopen.c: Likewise.
1528         * libio/freopen64.c: Likewise.
1529         * misc/syslog.c: Likewise.
1530         * nscd/connections.c: Likewise.
1531         * nscd/netgroupcache.c: Likewise.
1532         * sysdeps/posix/getcwd.c: Likewise.
1533
1534 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1535
1536         * math/w_ilogbf.c: Add #include <limits.h>.
1537
1538 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1539
1540         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
1541         path instead of returning without unlocking.
1542
1543         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
1544         immediate-write ioctls.
1545         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
1546
1547 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1548
1549         * sysdeps/mach/hurd/i386/init-first.c (init): Use
1550         __builtin_frame_address instead of making assumptions about the
1551         location of the return address relative to DATA.  Force early load of
1552         the return address.
1553         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
1554         __builtin_frame_address.
1555
1556         dup3 for GNU Hurd.
1557         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
1558         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
1559         implement dup3 and do some further code clean-ups.
1560         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
1561         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
1562
1563 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1564
1565         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
1566
1567         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
1568         HURD_CRITICAL_END around holding _hurd_dtable_lock.
1569         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
1570         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
1571         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
1572         d->port.lock.
1573
1574         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
1575         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
1576         when handler == SIG_ERR, not when handler != SIG_ERR.
1577
1578 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1579
1580         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
1581         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
1582         definitions.
1583
1584         accept4 for GNU Hurd.
1585         * include/sys/socket.h (__libc_accept4): New prototype.
1586         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
1587         to implement __libc_accept4.
1588         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
1589         __libc_accept4.
1590         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
1591
1592         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
1593         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
1594         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
1595         signal-defines.sym.
1596
1597 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1598
1599         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
1600
1601 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1602
1603         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
1604         assertion on O_CLOEXEC flag.
1605         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
1606         * hurd/intern-fd.c: Likewise.
1607         * hurd/port2fd.c: Likewise.
1608
1609 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1610
1611         [BZ #3906]
1612         * bits/in.h (IPV6_PKTINFO): Define new macro.
1613         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
1614
1615 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1616
1617         [BZ #13954]
1618         [BZ #13955]
1619         [BZ #13956]
1620         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
1621         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1622         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
1623         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1624         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1625         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1626         * math/libm-test.inc (logb_test) : Additional logb tests.
1627
1628 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
1629             Andreas Jaeger  <aj@suse.de>
1630
1631         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
1632         * configure: Regenerated.
1633         * config.h.in (LINK_OBSOLETE_RPC): New macro.
1634         * config.make.in (link-obsolete-rpc): New substituted variable.
1635         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
1636         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
1637         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1638         (shared-only-routines): Don't set it under [link-obsolete-rpc],
1639         so that libc.a contains the symbols.
1640         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1641         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
1642         * sunrpc/auth_none.c: Likewise.
1643         * sunrpc/auth_unix.c: Likewise.
1644         * sunrpc/authdes_prot.c: Likewise.
1645         * sunrpc/authuxprot.c: Likewise.
1646         * sunrpc/clnt_gen.c: Likewise.
1647         * sunrpc/clnt_perr.c: Likewise.
1648         * sunrpc/clnt_raw.c: Likewise.
1649         * sunrpc/clnt_simp.c: Likewise.
1650         * sunrpc/clnt_tcp.c: Likewise.
1651         * sunrpc/clnt_udp.c: Likewise.
1652         * sunrpc/clnt_unix.c: Likewise.
1653         * sunrpc/des_crypt.c: Likewise.
1654         * sunrpc/des_soft.c: Likewise.
1655         * sunrpc/get_myaddr.c: Likewise.
1656         * sunrpc/key_call.c: Likewise.
1657         * sunrpc/key_prot.c: Likewise.
1658         * sunrpc/netname.c: Likewise.
1659         * sunrpc/pm_getmaps.c: Likewise.
1660         * sunrpc/pm_getport.c: Likewise.
1661         * sunrpc/pmap_clnt.c: Likewise.
1662         * sunrpc/pmap_prot.c: Likewise.
1663         * sunrpc/pmap_prot2.c: Likewise.
1664         * sunrpc/pmap_rmt.c: Likewise.
1665         * sunrpc/publickey.c: Likewise.
1666         * sunrpc/rpc_cmsg.c: Likewise.
1667         * sunrpc/rpc_common.c: Likewise.
1668         * sunrpc/rpc_dtable.c: Likewise.
1669         * sunrpc/rpc_prot.c: Likewise.
1670         * sunrpc/rpc_thread.c: Likewise.
1671         * sunrpc/rtime.c: Likewise.
1672         * sunrpc/svc.c: Likewise.
1673         * sunrpc/svc_auth.c: Likewise.
1674         * sunrpc/svc_raw.c: Likewise.
1675         * sunrpc/svc_run.c: Likewise.
1676         * sunrpc/svc_tcp.c: Likewise.
1677         * sunrpc/svc_udp.c: Likewise.
1678         * sunrpc/svc_unix.c: Likewise.
1679         * sunrpc/svcauth_des.c: Likewise.
1680         * sunrpc/xcrypt.c: Likewise.
1681         * sunrpc/xdr.c: Likewise.
1682         * sunrpc/xdr_array.c: Likewise.
1683         * sunrpc/xdr_float.c: Likewise.
1684         * sunrpc/xdr_intXX_t.c: Likewise.
1685         * sunrpc/xdr_mem.c: Likewise.
1686         * sunrpc/xdr_rec.c: Likewise.
1687         * sunrpc/xdr_ref.c: Likewise.
1688         * sunrpc/xdr_sizeof.c: Likewise.
1689         * sunrpc/xdr_stdio.c: Likewise.
1690
1691 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1692
1693         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
1694         change.  Update copyright years.
1695
1696 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1697
1698         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
1699
1700 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
1701             Joseph Myers  <joseph@codesourcery.com>
1702             Paul Pluzhnikov  <ppluzhnikov@google.com>
1703
1704         [BZ #14012]
1705         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
1706         requiring rpcgen.
1707         [cross-compiling] (extra-libs): Likewise.
1708         [cross-compiling] (extra-libs-others): Likewise.
1709         [cross-compiling] (librpcsvc-routines): Likewise.
1710         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
1711         [cross-compiling] (omit-deps): Likewise.
1712         (sunrpc-CPPFLAGS): New variable.
1713         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
1714         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
1715         (cross-rpcgen-objs): New variable.
1716         (extra-objs): Append $(cross-rpcgen-objs).
1717         ($(cross-rpcgen-objs)): New rule.
1718         ($(objpfx)cross-rpcgen): Likewise.
1719         (rpcgen-cmd): Define to use $(built-program-file).  Expand
1720         comment.
1721         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
1722         ($(objpfx)x%.stmp): Likewise.
1723         * sunrpc/proto.h [IS_IN_build] (_): Define.
1724         [IS_IN_build] (_libc_intl_domainname): Likewise.
1725
1726 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1727
1728         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
1729         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
1730         and R_X86_64_TPOFF64.
1731
1732 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1733
1734         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
1735         sysdeps/unix/sysv/syscalls.list.
1736         (stime): Likewise.
1737         (utime): Likewise.
1738         * sysdeps/unix/sysv/syscalls.list: Remove file.
1739
1740 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1741
1742         [BZ #3440]
1743         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
1744         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
1745         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
1746         (__LC_IDENTIFICATION): Make these macros useful in #if
1747         expressions, as required by C99.
1748
1749 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
1750
1751         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
1752         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
1753         after this.
1754
1755 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1756
1757         * stdlib/longlong.h: Updated from GCC.
1758
1759 2012-05-09  Andreas Jaeger  <aj@suse.de>
1760
1761         * nscd/nscd.c (run_modes): Make named enum, reorder so that
1762         default is first entry.
1763         (run_mode): Set type.
1764         (main): Remove informal message about syslog.
1765         (options): Fix typo.
1766
1767         [BZ #14053]
1768         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
1769         to asm.
1770         (lrint): Likewise.
1771         (llrintf): Likewise.
1772         (llrint): Likewise.
1773         (rint): Likewise.
1774         (rintf): Likewise.
1775         (nearbyint): Likewise.
1776         (nearbyintf): Likewise.
1777
1778 2012-05-09  Andreas Jaeger  <aj@suse.de>
1779             Pedro Alves  <palves@redhat.com>
1780
1781         * nscd/nscd.c (run_mode): Use enum.
1782         (main): Cleanup coding style issue.
1783
1784 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
1785             Andreas Jaeger  <aj@suse.de>
1786
1787         * nscd/nscd.c (go_background): Replaced with...
1788         (run_mode): ... this.
1789         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
1790         (options): Add -F --foreground.
1791         (main): Implement it.
1792         (parse_opt): Parse it.
1793
1794 2012-05-09  Andreas Jaeger  <aj@suse.de>
1795
1796         [BZ #14083]
1797         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
1798         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
1799         -Wconversion warning.
1800         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
1801         Likewise.
1802
1803 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
1804
1805         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
1806         == 0.
1807         (LC_ALL): Use macro-int-constant.
1808         (LC_COLLATE): Likewise.
1809         (LC_CTYPE): Likewise.
1810         (LC_MESSAGES): Likewise.
1811         (LC_MONETARY): Likewise.
1812         (LC_NUMERIC): Likewise.
1813         (LC_TIME): Likewise.
1814         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
1815         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1816         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1817         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
1818         Specify type.
1819         [C99-based standards] (float_t): Expect type.
1820         [C99-based standards] (double_t): Expect type.
1821         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
1822         type.
1823         [C99-based standards] (HUGE_VALL): Likewise.
1824         [C99-based standards] (INFINITY): Likewise.
1825         [C99-based standards] (NAN): Likewise.
1826         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
1827         [C99-based standards] (FP_NAN): Likewise.
1828         [C99-based standards] (FP_NORMAL): Likewise.
1829         [C99-based standards] (FP_SUBNORMAL): Likewise.
1830         [C99-based standards] (FP_ZERO): Likewise.
1831         [C99-based standards] (FP_FAST_FMA): Use
1832         optional-macro-int-constant.  Specify type.  Require == 1.
1833         [C99-based standards] (FP_FAST_FMAF): Likewise.
1834         [C99-based standards] (FP_FAST_FMAL): Likewise.
1835         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
1836         [C99-based standards] (FP_ILOGBNAN): Likewise.
1837         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
1838         Specify type.
1839         [C99-based standards] (MATH_ERREXCEPT): Likewise.
1840         [C99-based standards] (math_errhandling): Specify type.
1841         [ISO99 || ISO11] (signgam): Do not allow.
1842         [non-C99-based standards] (copysignf): Do not allow.
1843         [non-C99-based standards] (exp2f): Likewise.
1844         [non-C99-based standards] (log2f): Likewise.
1845         [non-C99-based standards] (modff): Allow.
1846         [non-C99-based standards] (erff): Do not allow.
1847         [non-C99-based standards] (erfcf): Likewise.
1848         [non-C99-based standards] (gammaf): Likewise.
1849         [non-C99-based standards] (hypotf): Likewise.
1850         [non-C99-based standards] (j0f): Likewise.
1851         [non-C99-based standards] (j1f): Likewise.
1852         [non-C99-based standards] (jnf): Likewise.
1853         [non-C99-based standards] (lgammaf): Likewise.
1854         [non-C99-based standards] (tgammaf): Likewise.
1855         [non-C99-based standards] (y0f): Likewise.
1856         [non-C99-based standards] (y1f): Likewise.
1857         [non-C99-based standards] (ynf): Likewise.
1858         [non-C99-based standards] (isnanf): Likewise.
1859         [non-C99-based standards] (acoshf): Likewise.
1860         [non-C99-based standards] (asinhf): Likewise.
1861         [non-C99-based standards] (atanhf): Likewise.
1862         [non-C99-based standards] (cbrtf): Likewise.
1863         [non-C99-based standards] (expm1f): Likewise.
1864         [non-C99-based standards] (ilogbf): Likewise.
1865         [non-C99-based standards] (log1pf): Likewise.
1866         [non-C99-based standards] (logbf): Likewise.
1867         [non-C99-based standards] (nextafterf): Likewise.
1868         [non-C99-based standards] (remainderf): Likewise.
1869         [non-C99-based standards] (rintf): Likewise.
1870         [non-C99-based standards] (scalbf): Likewise.
1871         [non-C99-based standards] (copysignl): Likewise.
1872         [non-C99-based standards] (exp2l): Likewise.
1873         [non-C99-based standards] (log2l): Likewise.
1874         [non-C99-based standards] (modfl): Allow.
1875         [non-C99-based standards] (erfl): Do not allow.
1876         [non-C99-based standards] (erfcl): Likewise.
1877         [non-C99-based standards] (gammal): Likewise.
1878         [non-C99-based standards] (hypotl): Likewise.
1879         [non-C99-based standards] (j0l): Likewise.
1880         [non-C99-based standards] (j1l): Likewise.
1881         [non-C99-based standards] (jnl): Likewise.
1882         [non-C99-based standards] (lgammal): Likewise.
1883         [non-C99-based standards] (tgammal): Likewise.
1884         [non-C99-based standards] (y0l): Likewise.
1885         [non-C99-based standards] (y1l): Likewise.
1886         [non-C99-based standards] (ynl): Likewise.
1887         [non-C99-based standards] (isnanl): Likewise.
1888         [non-C99-based standards] (acoshl): Likewise.
1889         [non-C99-based standards] (asinhl): Likewise.
1890         [non-C99-based standards] (atanhl): Likewise.
1891         [non-C99-based standards] (cbrtl): Likewise.
1892         [non-C99-based standards] (expm1l): Likewise.
1893         [non-C99-based standards] (ilogbl): Likewise.
1894         [non-C99-based standards] (log1pl): Likewise.
1895         [non-C99-based standards] (logbl): Likewise.
1896         [non-C99-based standards] (nextafterl): Likewise.
1897         [non-C99-based standards] (remainderl): Likewise.
1898         [non-C99-based standards] (rintl): Likewise.
1899         [non-C99-based standards] (scalbl): Likewise.
1900         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1901         [non-C99-based standards] (FP_*): Do not allow.
1902         [C99-based standards] (FP_*): Change to
1903         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1904         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1905         allow.
1906         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
1907         (SIG_ERR): Likewise.
1908         [X/Open-based standards] (SIG_HOLD): Likewise.
1909         (SIG_IGN): Likewise.
1910         (SIGABRT): Use macro-int-constant.  Specify type.  Require
1911         positive value.
1912         (SIGFPE): Likewise.
1913         (SIGILL): Likewise.
1914         (SIGINT): Likewise.
1915         (SIGSEGV): Likewise.
1916         (SIGTER): Likewise.
1917         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
1918         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
1919         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
1920         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
1921         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
1922         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
1923         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
1924         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
1925         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
1926         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
1927         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
1928         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
1929         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
1930         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
1931         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
1932         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
1933         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
1934         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
1935         [X/Open-based standards] (SIGTRAP): Likewise.
1936         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
1937         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
1938         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
1939         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
1940         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1941         allow.
1942
1943 2012-05-08  Ian Wienand  <ianw@vmware.com>
1944
1945         [BZ #14080]
1946         * time/tzset.c (__tzset_parse_tz): Update default rules for
1947         daylight time changes in the Energy Policy Act of 2005.
1948
1949 2012-05-09  Andreas Jaeger  <aj@suse.de>
1950
1951         [BZ #13983]
1952         * elf/ldconfig.c (parse_conf): Change string to make clear that
1953         ldconfig only issued a warning if ld.so.conf does not exist.
1954
1955 2012-05-08  David S. Miller  <davem@davemloft.net>
1956
1957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
1958         movxtod instead of popping the value on the stack.
1959
1960         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1961
1962 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
1963
1964         * config.h.in: Add HAVE_ARM_PCS_VFP.
1965
1966 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
1967
1968         [BZ #13979]
1969         * include/features.h: Warn if user requests __FORTIFY_SOURCE
1970         checking but the checks are disabled for any reason.
1971
1972 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1973
1974         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
1975         and ELF64_R_TYPE with ELFW(R_TYPE).
1976
1977 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
1978
1979         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
1980         (ulimit): Likewise.
1981
1982         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
1983         (settimeofday): Likewise.
1984
1985 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
1986
1987         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
1988         a struct th_u2 inside the union, and move tu_block/tu_code into
1989         a new th_u3 union of tu_block/tu_code inside of that.  Move
1990         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
1991         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
1992         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
1993         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
1994         (th_stuff): Change to th_u1.tu_stuff.
1995         (th_data): Define.
1996         (th_msg): Change to th_u1.th_u2.tu_data.
1997
1998 2012-05-07  David S. Miller  <davem@davemloft.net>
1999
2000         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2001
2002         [BZ #14074]
2003         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
2004         (SETUP_PIC_REG): Use it.
2005         (SETUP_PIC_REG_LEAF): Use it.
2006
2007 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
2008
2009         [BZ #13885]
2010         [BZ #13923]
2011         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2012         USE_AS_EXPM1L.
2013         (EXPL_FINITE): Likewise.
2014         (FLDLOG): Likewise.
2015         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
2016         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
2017         e_expl.S.
2018         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2019         USE_AS_EXPM1L.
2020         (EXPL_FINITE): Likewise.
2021         (FLDLOG): Likewise.
2022         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
2023         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
2024         e_expl.S.
2025         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
2026         test of -max_value argument for long double.
2027         * sysdeps/i386/fpu/libm-test-ulps: Update.
2028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2029
2030 2012-05-06  David S. Miller  <davem@davemloft.net>
2031
2032         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
2033         quad soft-float symbols whose references which are compiler
2034         generated.
2035         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
2036
2037 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
2038
2039         [BZ #13884]
2040         [BZ #13914]
2041         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2042         USE_AS_EXP10L.
2043         (EXPL_FINITE): Likewise.
2044         (FLDLOG): Likewise.
2045         (c0): Likewise.
2046         (c1): Likewise.
2047         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
2048         Adjust comments for base varying.
2049         (__expl_finite): Change alias to EXPL_FINITE.
2050         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
2051         e_expl.S.
2052         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
2053         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
2054         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
2055         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
2056         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2057         USE_AS_EXP10L.
2058         (EXPL_FINITE): Likewise.
2059         (FLDLOG): Likewise.
2060         (c0): Likewise.
2061         (c1): Likewise.
2062         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
2063         Adjust comments for base varying.
2064         (__expl_finite): Change alias to EXPL_FINITE.
2065         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
2066         tests for bugs.
2067         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2068
2069         [BZ #14064]
2070         * math/libm-test.inc (check_float_internal): Correct ulp
2071         calculation for subnormal expected results.
2072
2073 2012-05-06  Andreas Jaeger  <aj@suse.de>
2074
2075         * Makeconfig (+math-flags): New, set to -frounding-math.
2076         (+cflags): Add +math-flags so that all of glibc gets compiled with
2077         it.
2078
2079         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
2080
2081 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
2082
2083         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
2084         Disable one test.
2085
2086         [BZ #13787]
2087         [BZ #13922]
2088         [BZ #14036]
2089         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
2090         (__ieee754_expl): Allow for and saturate large arguments.
2091         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
2092         (u_threshold): Likewise.
2093         (__exp): Call __ieee754_exp before checking for overflow and
2094         underflow.
2095         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
2096         (u_threshold): Likewise.
2097         (__expf): Call __ieee754_expf before checking for overflow and
2098         underflow.
2099         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
2100         (u_threshold): Likewise.
2101         (__expl): Call __ieee754_expl before checking for overflow and
2102         underflow.
2103         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
2104         (__ieee754_expl): Allow for and saturate large arguments.
2105         * math/libm-test.inc (exp_test): Add another test.  Do not allow
2106         missing overflow exception on overflow.
2107         (expm1_test): Do not allow missing overflow exception on overflow.
2108
2109         * sysdeps/i386/fpu/e_expl.c: Move to ...
2110         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
2111         rather than using inline asm.
2112         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
2113         * sysdeps/x86_64/fpu/e_expl.S: Copy from
2114         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
2115
2116         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
2117         (nice): Likewise.
2118         (poll): Likewise.
2119         (signal): Likewise.
2120         (time): Likewise.
2121         (times): Likewise.
2122
2123 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2124
2125         * sysdeps/unix/syscalls.list (adjtime): Add entry from
2126         sysdeps/unix/common/syscalls.list.
2127         (fchmod): Likewise.
2128         (fchown): Likewise.
2129         (ftruncate): Likewise.
2130         (getrusage): Likewise.
2131         (gettimeofday): Likewise.
2132         (setpgid): Likewise.
2133         (setregid): Likewise.
2134         (setreuid): Likewise.
2135         (sigaction): Likewise.
2136         (truncate): Likewise.
2137         (vhangup): Likewise.
2138         * sysdeps/unix/common/syscalls.list: Remove file.
2139         * sysdeps/unix/bsd/Implies: Don't include unix/common.
2140         * sysdeps/unix/sysv/linux/Implies: Likewise.
2141
2142 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2143
2144         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
2145         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
2146         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
2147         Moved to ...
2148         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2149         Here.
2150         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
2151         to ...
2152         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
2153         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
2154         to ...
2155         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
2156         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
2157         to ...
2158         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
2159         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
2160         to ...
2161         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
2162         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
2163         to ...
2164         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
2165         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
2166         to ...
2167         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
2168         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
2169         to ...
2170         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
2171         Here.
2172         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
2173         to ...
2174         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
2175         Here.
2176         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
2177         to ...
2178         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
2179         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
2180         Moved to ...
2181         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
2182         Here.
2183         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
2184         to ...
2185         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
2186
2187 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2188
2189         * sysdeps/unix/common/bits/dirent.h: Remove file.
2190         * sysdeps/unix/common/bits/fcntl.h: Likewise.
2191
2192         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
2193         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
2194         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
2195         * sysdeps/unix/bsd/isatty.c: Likewise.
2196         * sysdeps/unix/bsd/tcdrain.c: Likewise.
2197         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
2198         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
2199
2200 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2201
2202         [BZ #13563]
2203         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
2204         long double comparison inaccuracies.
2205         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
2206         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2207
2208 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
2209
2210         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
2211         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
2212
2213 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2214
2215         [BZ #14049]
2216         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
2217         nonzero digits before rounding a hex value.
2218         * stdlib/tst-strtod.c (tests): Add another test.
2219
2220 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2221
2222         * sysdeps/s390/fpu/libm-test-ulps: Update.
2223
2224 2012-05-03  Andreas Jaeger  <aj@suse.de>
2225
2226         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
2227         does not get optimized out.
2228         (malloc_opt_barrier): New.
2229
2230 2012-05-03  Andreas Jaeger  <aj@suse.de>
2231             Roland McGrath  <roland@hack.frob.com>
2232
2233         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
2234         intermediate file deletion.
2235         (generated): Add .symlist files.
2236
2237 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
2238
2239         [BZ #13775]
2240         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
2241         Redirect under this condition.
2242         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2243         [__USE_GNU] (__dprintf_chk): Not under this condition.
2244         [__USE_GNU] (__vdprintf_chk): Likewise.
2245         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
2246         under this condition.
2247         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2248         [__USE_XOPEN2K8] (dprintf): Define under this condition.
2249         [__USE_XOPEN2K8] (vdprintf): Likewise.
2250         [__USE_GNU] (__dprintf_chk): Not under this condition.
2251         [__USE_GNU] (__vdprintf_chk): Likewise.
2252         [__USE_GNU] (dprintf): Likewise.
2253         [__USE_GNU] (vdprintf): Likewise.
2254
2255 2012-05-03  Roland McGrath  <roland@hack.frob.com>
2256
2257         * elf/Makefile (common-generated): Set this instead of generated for
2258         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
2259         $(all-built-dso)-derived lists.
2260
2261 2012-05-03  Andreas Jaeger  <aj@suse.de>
2262
2263         * sysdeps/i386/fpu/libm-test-ulps: Update.
2264
2265         * FAQ: Removed.
2266         * FAQ.in: Likewise.
2267         * scripts/gen-FAQ.pl: Likewise.
2268         * manual/install.texi (Installation): Point to online location of
2269         FAQ.
2270         * Makefile (files-for-dist): Remove FAQ.
2271         (FAQ): Remove.
2272
2273 2012-05-02  Allan McRae  <allan@archlinux.org>
2274
2275         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
2276         (LDFLAGS-reldepmod5.so): Likewise.
2277         (LDFLAGS-reldep6mod1.so): Likewise.
2278         (LDFLAGS-reldep6mod4.so): Likewise.
2279         (LDFLAGS-reldep8mod3.so): Likewise.
2280         (LDFLAGS-unload4mod1.so): Likewise.
2281         (LDFLAGS-unload4mod2.so): Likewise.
2282         (LDFLAGS-tst-initorder): Likewise.
2283         (LDFLAGS-tst-initordera2.so): Likewise.
2284         (LDFLAGS-tst-initordera3.so): Likewise.
2285         (LDFLAGS-tst-initordera4.so): Likewise.
2286         (LDFLAGS-tst-initorderb2.so): Likewise.
2287         (LDFLAGS-noload): Likewise.
2288         (LDFLAGS-next): Likewise.
2289         (LDFLAGS-order2mod1.so): Likewise.
2290         (LDFLAGS-order2mod2.so): Likewise.
2291         (LDFLAGS-tst-initorder2): Likewise.
2292         (LDFLAGS-tst-initorder2a.so): Likewise.
2293         (LDFLAGS-tst-initorder2b.so): Likewise.
2294         (LDFLAGS-tst-initorder2c.so): Likewise.
2295         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
2296
2297 2012-05-02  David S. Miller  <davem@davemloft.net>
2298
2299         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2300
2301 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
2302
2303         [BZ #14055]
2304         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
2305
2306 2012-05-02  Andreas Jaeger  <aj@suse.de>
2307
2308         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
2309         since we manipulate rounding mode.
2310         (CPPFLAGS-test-idouble.c): Likewise.
2311         (CPPFLAGS-test-ifloat.c): Likewise.
2312         (CFLAGS-test-ldouble.c): Likewise.
2313         (CFLAGS-test-double.c): Likewise.
2314         (CFLAGS-test-float.c): Likewise.
2315         (CFLAGS-test-misc.c): Likewise.
2316         (CFLAGS-test-test-fenv.c): Likewise.
2317
2318 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2319
2320         [BZ #2550]
2321         [BZ #2570]
2322         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
2323         comparisons to determine direction to adjust input.
2324
2325 2012-05-01  Roland McGrath  <roland@hack.frob.com>
2326
2327         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
2328         output to the target.
2329
2330         * scripts/localplt.awk: New file.
2331         * elf/Makefile ($(objpfx)check-localplt): Target removed.
2332         (check-localplt-CFLAGS): Variable removed.
2333         ($(all-built-dso:=.jmprel)): New static pattern rule.
2334         (generated): Add those targets.
2335         (localplt-built-dso): New variable.
2336         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
2337
2338         * elf/check-localplt.c: File removed.
2339
2340         * scripts/check-execstack.awk: New file.
2341         * elf/Makefile ($(objpfx)check-execstack): Target removed.
2342         (check-execstack-CFLAGS): Variable removed.
2343         ($(objpfx)check-execstack.h): Target removed.
2344         ($(objpfx)execstack-default): New target.
2345         (generated): Add that instead of check-execstack.h.
2346         ($(all-built-dso:=.phdr)): New static pattern rule.
2347         (generated): Add those targets.
2348         * elf/check-execstack.c: File removed.
2349
2350         * scripts/check-textrel.awk: New file.
2351         * elf/Makefile ($(objpfx)check-textrel): Target removed.
2352         (check-textrel-CFLAGS): Variable removed.
2353         (all-built-dso): Use := to define.o
2354         ($(all-built-dso:=.dyn)): New static pattern rule.
2355         (generated): Add those targets.
2356         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
2357         * config.make.in (READELF): New substituted variable.
2358         * elf/check-textrel.c: File removed.
2359
2360 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2361
2362         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2363         allow.
2364         * conform/data/ctype.h-data [C99-based standards] (isblank):
2365         Expect function.
2366         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
2367         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
2368         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2369         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
2370         Specify type.  Require positive value.
2371         (EILSEQ): Likewise.
2372         (ERANGE): Likewise.
2373         [ISO || POSIX] (EILSEQ): Do not expect.
2374         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
2375         Specify type.  Require positive value.
2376         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
2377         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
2378         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
2379         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
2380         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
2381         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
2382         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
2383         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
2384         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
2385         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
2386         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
2387         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
2388         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
2389         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
2390         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
2391         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
2392         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
2393         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
2394         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
2395         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
2396         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
2397         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
2398         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
2399         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
2400         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
2401         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
2402         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
2403         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
2404         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
2405         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
2406         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
2407         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
2408         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
2409         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
2410         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
2411         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
2412         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
2413         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
2414         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
2415         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
2416         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
2417         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
2418         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
2419         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
2420         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
2421         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
2422         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
2423         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
2424         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
2425         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
2426         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
2427         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
2428         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
2429         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
2430         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
2431         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
2432         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
2433         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
2434         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
2435         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
2436         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
2437         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
2438         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
2439         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
2440         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
2441         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
2442         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
2443         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
2444         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
2445         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
2446         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
2447         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
2448         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
2449         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
2450         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
2451         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
2452         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
2453         Require >= 2.
2454         (FLT_ROUNDS): Expect as macro, not constant.
2455         (FLT_MANT_DIG): Use macro-int-constant.
2456         (DBL_MANT_DIG): Likewise.
2457         (LDBL_MANT_DIG): Likewise.
2458         (FLT_DIG): Likewise.
2459         (DBL_DIG): Likewise.
2460         (LDBL_DIG): Likewise.
2461         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
2462         (DBL_MIN_EXP): Likewise.
2463         (LDBL_MIN_EXP): Likewise.
2464         (FLT_MAX_EXP): Use macro-int-constant.
2465         (DBL_MAX_EXP): Likewise.
2466         (LDBL_MAX_EXP): Likewise.
2467         (FLT_MAX_10_EXP): Likewise.
2468         (DBL_MAX_10_EXP): Likewise.
2469         (LDBL_MAX_10_EXP): Likewise.
2470         (FLT_MAX): Use macro-constant.
2471         (DBL_MAX): Likewise.
2472         (LDBL_MAX): Likewise.
2473         (FLT_EPSILON): Use macro-constant.  Give upper bound.
2474         (DBL_EPSILON): Likewise.
2475         (LDBL_EPSILON): Likewise.
2476         (FLT_MIN): Likewise.
2477         (DBL_MIN): Likewise.
2478         (LDBL_MIN): Likewise.
2479         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
2480         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
2481         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
2482         [ISO11] (FLT_HAS_SUBNORM): Likewise.
2483         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
2484         [ISO11] (DBL_DECIMAL_DIG): Likewise.
2485         [ISO11] (FLT_DECIMAL_DIG): Likewise.
2486         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
2487         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
2488         [ISO11] (FLT_TRUE_MIN): Likewise.
2489         [ISO11] (LDBL_TRUE_MIN): Likewise.
2490         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2491         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
2492         (SCHAR_MIN): Use macro-int-constant.  Specify type.
2493         (SCHAR_MAX): Likewise.
2494         (UCHAR_MAX): Likewise.
2495         (CHAR_MIN): Likewise.
2496         (CHAR_MAX): Likewise.
2497         (MB_LEN_MAX): Use macro-int-constant.
2498         (SHRT_MIN): Use macro-int-constant.  Specify type.
2499         (SHRT_MAX): Likewise.
2500         (USHRT_MAX): Likewise.
2501         (INT_MAX): Likewise.
2502         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
2503         bound negative.
2504         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2505         bound with "U".
2506         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2507         bound with "L".
2508         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
2509         bound negative.  Suffix upper bound with "L".
2510         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2511         bound with "UL".
2512         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
2513         Specify type.
2514         [C99-based standards] (LLONG_MAX): Likewise.
2515         [C99-based standards] (ULLONG_MAX): Likewise.
2516         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
2517         == 0.
2518         [ISO11] (max_align_t): Require type.
2519         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2520
2521         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
2522         from $CFLAGS, without defining away __attribute__ calls.
2523         (checknamespace): Use $CFLAGS_namespace.
2524
2525         * conform/conformtest.pl (@keywords): Only include C99 keywords
2526         for standards based on C99 or C11.
2527
2528         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
2529         Disable tests.
2530         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
2531         UNIX98]: Likewise.
2532
2533         * conform/conformtest.pl: Handle "macro-int-constant" and test for
2534         usability of symbols in #if.
2535
2536         * conform/conformtest.pl: If macro or constant types start
2537         "promoted:", expect the symbol to be of the following type
2538         promoted by the integer promotions.
2539
2540         * conform/conformtest.pl: Parse all "constant" and "macro" lines
2541         in one place.  Also handle "macro-constant".
2542
2543         * conform/conformtest.pl: Only accept expected macro values with
2544         "==".  Parse all "macro" lines in one place.
2545         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
2546
2547         * conform/conformtest.pl: Handle braced types on "constant" lines
2548         instead of handling "typed-constant".
2549         * conform/data/signal.h-data: Use "constant" instead of
2550         "typed-constant".
2551
2552         * conform/conformtest.pl: Handle "optional-" at start of lines in
2553         one place rather than duplicating several cases.  Handle each
2554         format of "macro" line with initial "optional-".
2555
2556         * conform/conformtest.pl: Only accept expected constant or
2557         optional-constant values with "==".  Parse all "constant" lines in
2558         one place.  Parse all "optional-constant" lines in one place.
2559         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
2560         * conform/data/fmtmsg.h-data: Likewise.
2561         * conform/data/netinet/in.h-data: Likewise.
2562         * conform/data/tar.h-data: Likewise.
2563         * conform/data/limits.h-data: Use "==" form on "constant" and
2564         "optional-constant" lines.
2565
2566         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
2567         Use -std=c99 for XOPEN2K.
2568         (@knownproblems): Remove.
2569         (newtoken): Don't check %isknown.
2570
2571         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
2572         Do not expect macro.
2573         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
2574         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
2575         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
2576         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
2577         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
2578         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
2579         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
2580         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
2581         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
2582         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
2583         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
2584         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
2585         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
2586         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
2587         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
2588         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
2589         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
2590         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
2591         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
2592         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
2593         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
2594         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
2595         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
2596         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
2597         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
2598         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
2599         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
2600         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
2601         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
2602         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
2603         [XPG3] (acosh): Likewise.
2604         [XPG3] (asinh): Likewise.
2605         [XPG3] (atanh): Likewise.
2606         [XPG3] (cbrt): Likewise.
2607         [XPG3] (expm1): Likewise.
2608         [XPG3] (ilogb): Likewise.
2609         [XPG3] (log1p): Likewise.
2610         [XPG3] (logb): Likewise.
2611         [XPG3] (nextafter): Likewise.
2612         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
2613         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
2614         [XPG3] (remainder): Likewise.
2615         [XPG3] (rint): Likewise.
2616         [XPG3 || XPG4 || UNIX98] (round): Likewise.
2617         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
2618         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
2619         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
2620         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
2621         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
2622         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
2623         [UNIX98 || XOPEN2K] (scalb): Expect.
2624         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
2625         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
2626         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
2627         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
2628         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
2629         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
2630         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
2631         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
2632         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
2633         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
2634         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
2635         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
2636         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
2637         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
2638         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
2639         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
2640         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
2641         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
2642         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
2643         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
2644         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
2645         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
2646         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
2647         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
2648         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
2649         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
2650         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
2651         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
2652         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
2653         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
2654         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
2655         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
2656         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
2657         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
2658         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
2659         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
2660         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
2661         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
2662         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
2663         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
2664         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
2665         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
2666         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
2667         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
2668         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
2669         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
2670         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
2671         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
2672         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
2673         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
2674         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
2675         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
2676         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
2677         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
2678         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
2679         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
2680         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
2681         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
2682         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
2683         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
2684         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
2685         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
2686         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
2687         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
2688         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
2689         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
2690         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
2691         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
2692         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
2693         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
2694         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
2695         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
2696         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
2697         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
2698         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
2699         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
2700         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
2701         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
2702         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
2703         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
2704         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
2705         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
2706         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
2707         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
2708         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
2709         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
2710         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
2711         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
2712         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
2713         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
2714         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
2715         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
2716         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
2717         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
2718         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
2719         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
2720         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
2721         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
2722         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
2723         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
2724         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
2725         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
2726         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
2727         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
2728         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
2729         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
2730         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
2731         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
2732         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
2733         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
2734         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
2735         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
2736         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
2737         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
2738         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
2739         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
2740         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
2741         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
2742         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
2743         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
2744         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
2745         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
2746         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
2747         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
2748         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
2749         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
2750         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
2751         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
2752         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
2753         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
2754         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
2755         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
2756         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
2757         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
2758         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
2759         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
2760         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
2761
2762         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
2763         _XOPEN_SOURCE_EXTENDED for XPG4.
2764
2765         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
2766
2767         * Makeconfig (localtime): Remove variable.
2768         (inst_localtime-file): Likewise.
2769
2770 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2771
2772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
2773         Update.
2774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2775         Update.
2776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
2777         Update.
2778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2779         Update.
2780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
2781         Update.
2782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
2783         Update.
2784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2785         Update.
2786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
2787         Update.
2788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2789         Update.
2790
2791 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2792
2793         [BZ #2550]
2794         [BZ #2570]
2795         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
2796         comparisons to determine direction to adjust input.
2797         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2798         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
2799         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
2800         Likewise.
2801         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
2802         Likewise.
2803         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2804         Likewise.
2805         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2806         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
2807         Likewise.
2808         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
2809         Likewise.
2810         * math/libm-test.inc (nexttoward_test): Add more tests.
2811
2812 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2813
2814         [BZ #14040]
2815         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
2816         in version GLIBC_2.1, not GLIBC_2.0.
2817         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
2818         Likewise.
2819
2820 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
2821
2822         [BZ #13942]
2823         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
2824         (1 - x) * (1 + x).
2825         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2826         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
2827         * math/libm-test.inc (acos_test): Add more tests.
2828         (asin_test): Likewise.
2829         * sysdeps/i386/fpu/libm-test-ulps: Update.
2830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2831
2832         [BZ #14034]
2833         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
2834         of square root.
2835         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
2836         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2837         * math/libm-test.inc (acos_test_tonearest): New function.
2838         (acos_test_towardzero): Likewise.
2839         (acos_test_downward): Likewise.
2840         (acos_test_upward): Likewise.
2841         (asin_test_tonearest): Likewise.
2842         (asin_test_towardzero): Likewise.
2843         (asin_test_downward): Likewise.
2844         (asin_test_upward): Likewise.
2845         (main): Call the new functions.
2846         * sysdeps/i386/fpu/libm-test-ulps: Update.
2847         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2848
2849         [BZ #13884]
2850         [BZ #13924]
2851         * math/e_exp10.c: Include <float.h>.
2852         (__ieee754_exp10): Handle underflow here rather than multiplying
2853         large negative argument by M_LN10.
2854         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
2855         of __ieee754_expf.
2856         * math/e_exp10l.c: Include <float.h>.
2857         (__ieee754_exp10l): Handle underflow here rather than multiplying
2858         large negative argument by M_LN10l.
2859         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
2860         spurious overflow exception on underflow.
2861
2862 2012-04-29  Marek Polacek  <polacek@redhat.com>
2863
2864         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
2865         (__fortify_function): New macro.
2866         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
2867         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
2868         __extern_always_inline.
2869         * libio/bits/stdio2.h: Likewise.
2870         * libio/bits/stdio.h: Likewise.
2871         * string/string.h: Likewise.
2872         * string/bits/string3.h: Likewise.
2873         * include/stdio.h: Likewise.
2874         * stdlib/bits/stdlib.h: Likewise.
2875         * stdlib/stdlib.h: Likewise.
2876         * rt/bits/mqueue2.h: Likewise.
2877         * rt/mqueue.h: Likewise.
2878         * posix/bits/unistd.h: Likewise.
2879         * posix/unistd.h: Likewise.
2880         * io/bits/poll2.h: Likewise.
2881         * io/bits/fcntl2.h: Likewise.
2882         * io/fcntl.h: Likewise.
2883         * io/sys/poll.h: Likewise.
2884         * misc/bits/syslog.h: Likewise.
2885         * misc/bits/syslog-ldbl.h: Likewise.
2886         * misc/sys/syslog.h: Likewise.
2887         * socket/bits/socket2.h: Likewise.
2888         * socket/sys/socket.h: Likewise.
2889         * debug/tst-chk1.c: Likewise.
2890         * wcsmbs/bits/wchar2.h: Likewise.
2891         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2892         * wcsmbs/wchar.h: Likewise.
2893
2894 2012-04-29  Andreas Jaeger  <aj@suse.de>
2895
2896         * Makerules (tests): Remove enable-check-abi protection.
2897         (check-abi-warn): Remove.
2898         (check-abi-%): Remove check-abi-warn usage.
2899
2900         * configure.in: Remove check-abi configure option.
2901         * configure: Regenerated.
2902         * config.make.in (enable-check-abi): Remove.
2903
2904 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2905
2906         [BZ #14033]
2907         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
2908         double functions to double *_finite functions.
2909
2910         [BZ #13941]
2911         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
2912         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
2913         LDBL_MIN_EXP.
2914         * stdio-common/Makefile (tests): Add tst-sprintf3.
2915         * stdio-common/tst-sprintf3.c: New file.
2916
2917         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
2918         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
2919
2920 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2921
2922         * conform/conformtest.pl: Remove duplicate typed-constant
2923         handling.
2924
2925 2012-04-28  David S. Miller  <davem@davemloft.net>
2926
2927         * Makerules (%.abilist): Add vpath on sysdep_dirs.
2928         (check-abi-%): Remove AWK script prerequisite and explicit
2929         abilist directory.
2930         (check-abi): Rewrite to just diff the symlist with the abilist.
2931         (config-tls, config-abi-config): Delete, no longer used.
2932         (update-abi-%): Remove AWK script and explicit abilist directory.
2933         (update-abi): Rewrite to simply compare and conditionally copy the
2934         symlist and the sysdep abilist file.  Remove update-abi-config
2935         checks.
2936         * abilist/ld.abilist: Remove.
2937         * abilist/libBrokenLocale.abilist: Remove.
2938         * abilist/libanl.abilist: Remove.
2939         * abilist/libcrypt.abilist: Remove.
2940         * abilist/libdl.abilist: Remove.
2941         * abilist/librt.abilist: Remove.
2942         * abilist/libthread_db.abilist: Remove.
2943         * abilist/libutil.abilist: Remove.
2944         * scripts/extract-abilist.awk: Remove.
2945         * scripts/merge-abilist.awk: Remove.
2946         * sysdeps/generic/libcidn.abilist: New file.
2947         * sysdeps/generic/libnss_compat.abilist: New file.
2948         * sysdeps/generic/libnss_db.abilist: New file.
2949         * sysdeps/generic/libnss_dns.abilist: New file.
2950         * sysdeps/generic/libnss_files.abilist: New file.
2951         * sysdeps/generic/libnss_hesiod.abilist: New file.
2952         * sysdeps/generic/libnss_nis.abilist: New file.
2953         * sysdeps/generic/libnss_nisplus.abilist: New file.
2954         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
2955         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
2956         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
2957         file.
2958         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
2959         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
2960         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
2961         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
2962         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
2963         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
2964         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
2965         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
2966         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
2967         file.
2968         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
2969         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
2970         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
2971         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
2972         file.
2973         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
2974         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
2975         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
2976         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
2977         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
2978         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
2979         file.
2980         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
2981         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
2982         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
2983         file.
2984         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
2985         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
2986         New file.
2987         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
2988         New file.
2989         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
2990         New file.
2991         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
2992         New file.
2993         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
2994         New file.
2995         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
2996         New file.
2997         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
2998         New file.
2999         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
3000         New file.
3001         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
3002         New file.
3003         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
3004         New file.
3005         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
3006         New file.
3007         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
3008         New file.
3009         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
3010         New file.
3011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
3012         file.
3013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
3014         New file.
3015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
3016         New file.
3017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
3018         file.
3019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
3020         New file.
3021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
3022         New file.
3023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
3024         file.
3025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
3026         New file.
3027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3028         New file.
3029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
3030         New file.
3031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
3032         New file.
3033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
3034         New file.
3035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
3036         New file.
3037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
3038         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
3039         file.
3040         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
3041         New file.
3042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
3043         file.
3044         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
3045         file.
3046         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
3047         file.
3048         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
3049         file.
3050         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
3051         file.
3052         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3053         New file.
3054         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
3055         file.
3056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
3057         file.
3058         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
3059         New file.
3060         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
3061         file.
3062         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
3063         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
3064         file.
3065         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
3066         New file.
3067         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
3068         file.
3069         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
3070         file.
3071         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
3072         file.
3073         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
3074         file.
3075         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
3076         file.
3077         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3078         New file.
3079         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
3080         file.
3081         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
3082         file.
3083         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
3084         New file.
3085         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
3086         file.
3087         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3088         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
3089         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
3090         file.
3091         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
3092         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
3093         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
3094         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
3095         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
3096         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
3097         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
3098         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
3099         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
3100         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
3101         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
3102         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
3103         file.
3104         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
3105         New file.
3106         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
3107         file.
3108         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
3109         file.
3110         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
3111         file.
3112         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
3113         file.
3114         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
3115         file.
3116         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
3117         New file.
3118         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
3119         New file.
3120         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
3121         file.
3122         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
3123         New file.
3124         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
3125         file.
3126         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
3127         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
3128         file.
3129         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
3130         New file.
3131         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
3132         file.
3133         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
3134         file.
3135         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
3136         file.
3137         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
3138         file.
3139         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
3140         file.
3141         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
3142         New file.
3143         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
3144         New file.
3145         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
3146         file.
3147         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
3148         New file.
3149         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
3150         file.
3151
3152 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
3153
3154         * conform/conformtest.pl: Fix typo in handling typed-constant from
3155         allow-header.
3156
3157 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3158
3159         * README: Cut down references to pre-2.6 Linux kernels and
3160         Linuxthreads.  Update lists of configurations in libc and ports
3161         and sort alphabetically.  Say "or newer" with Linux kernel version
3162         requirements.
3163
3164         * config.h.in [IS_IN_build]: Allow compiling without optimization.
3165
3166 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3167
3168         [BZ #887]
3169         * math/libm-test.inc (logb_test_downward): New test to expose
3170         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
3171         rounding mode.
3172
3173 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3174
3175         [BZ #14027]
3176         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
3177         to be done.
3178         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
3179         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
3180
3181 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
3182
3183         * sysdeps/unix/i386/brk.S: Remove file.
3184         * sysdeps/unix/i386/dl-brk.S: Likewise.
3185         * sysdeps/unix/i386/pipe.S: Likewise.
3186         * sysdeps/unix/i386/sigreturn.S: Likewise.
3187         * sysdeps/unix/i386/syscall.S: Likewise.
3188         * sysdeps/unix/i386/vfork.S: Likewise.
3189         * sysdeps/unix/i386/wait.S: Likewise.
3190
3191         * sysdeps/unix/common/tcsendbrk.c: Move to ...
3192         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
3193
3194         * configure.in (arm*-none*): Do not allow without
3195         --enable-hacker-mode.
3196         (netbsd*): Remove case setting base_os.
3197         (386bsd*): Likewise.
3198         (freebsd*): Likewise.
3199         (bsdi*): Likewise.
3200         (osf*): Likewise.
3201         (sunos*): Likewise.
3202         (ultrix*): Likewise.
3203         (newsos*): Likewise.
3204         (dynix*): Likewise.
3205         (*bsd*): Likewise.
3206         (sysv*): Likewise.
3207         (isc*): Likewise.
3208         (esix*): Likewise.
3209         (sco*): Likewise.
3210         (minix*): Likewise.
3211         (irix4*): Likewise.
3212         (irix6*): Likewise.
3213         (solaris[2-9]*): Likewise.
3214         (none): Likewise.
3215         * configure: Regenerated.
3216
3217 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3218
3219         [BZ #11521]
3220         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
3221         overflow or cancellation in calculating denominator.
3222         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
3223         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
3224         down expression to avoid unexpected rounding in newer GCCs.
3225         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
3226
3227 2012-04-26  David S. Miller  <davem@davemloft.net>
3228
3229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
3230         long-double compat symbols.
3231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
3235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
3237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
3238         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
3239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
3240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
3241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
3242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
3243         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3244
3245 2012-04-25  David S. Miller  <davem@davemloft.net>
3246
3247         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
3248         HWCAP_* values only after the memory barriers have been defined.
3249         (atomic_full_barrier): Define.
3250         (atomic_read_barrier): Define.
3251         (atomic_write_barrier): Define.
3252
3253 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3254
3255         * shlib-versions: Add libgcc_s version information.
3256         * sysdeps/generic/libgcc_s.h: Remove.
3257         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
3258         libgcc_s.h.
3259         * sysdeps/gnu/unwind-resume.c: Likewise.
3260         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
3261
3262 2012-04-25  David S. Miller  <davem@davemloft.net>
3263
3264         * sysdeps/unix/sparc/brk.S: Delete.
3265         * sysdeps/unix/sparc/dl-brk.S: Delete.
3266         * sysdeps/unix/sparc/pipe.S: Delete.
3267         * sysdeps/unix/sparc/sysdep.S: Delete.
3268         * sysdeps/unix/sparc/sysdep.h: Delete.
3269         * sysdeps/unix/sparc/vfork.S: Delete.
3270         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
3271         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
3272         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
3273         ret_ERRVAL, r0, r1, MOVE): Define.
3274         (JUMPTARGET): Remove.
3275         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
3276         sysdeps/unix/sparc/sysdep.h
3277         (ENTRY, END): Remove.
3278         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3279
3280 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
3281
3282         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
3283         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
3284         -DIS_IN_build.
3285
3286         * timezone/README: Update upstream location and email address for
3287         tzcode and tzdata.
3288         * timezone/zdump.c: Update from tzcode 2012b.
3289         * timezone/zic.c: Likewise.
3290
3291         * configure.in (libc_cv_as_needed): Remove test.
3292         * configure: Regenerated.
3293         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
3294         conditional definition.
3295         [$(have-as-needed) != yes] (no-as-needed): Likewise.
3296         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
3297         * config.make.in (have-as-needed): Remove variable.
3298
3299 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3300             Paul Pluzhnikov  <ppluzhnikov@google.com>
3301
3302         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
3303         strings correctly.
3304
3305 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3306
3307         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
3308         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
3309         * sysdeps/sh/strlen.S: Likewise.
3310
3311 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3312
3313         * sysdeps/unix/fork.S: Remove file.
3314         * sysdeps/unix/i386/fork.S: Likewise.
3315         * sysdeps/unix/sparc/fork.S: Likewise.
3316
3317         * sysdeps/unix/system.c: Remove file.
3318         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
3319
3320         * sysdeps/unix/getegid.S: Remove file.
3321         * sysdeps/unix/geteuid.S: Likewise.
3322
3323 2012-04-24  Roland McGrath  <roland@hack.frob.com>
3324
3325         * scripts/check-localplt.awk: New file.
3326         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
3327         of diff.
3328         * scripts/data/localplt-generic.data: Add a comment.
3329
3330         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
3331         NODE when __dir_mkfile failed.
3332         * sysdeps/mach/hurd/symlinkat.c: Likewise.
3333         Reported by Ludovic Courtès <ludo@gnu.org>.
3334
3335 2012-04-24  Andreas Jaeger  <aj@suse.de>
3336
3337         * Makerules (common-clean): Also remove gen-as-const-headers
3338         files.
3339
3340 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3341
3342         * Makerules (native-compile): Do not change working directory for
3343         build.  Use $(OUTPUT_OPTION) in command.
3344         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
3345
3346 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3347
3348         [BZ #13886]
3349         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
3350         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
3351         * math/libm-test.inc (floor_test): Add more tests.
3352         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
3353
3354 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3355
3356         * sysdeps/unix/getdents.c: Remove file.
3357         * sysdeps/unix/sysv/getdents.c: Likewise.
3358         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
3359
3360         * sysdeps/unix/syscalls.list (madvise): Add syscall from
3361         sysdeps/unix/mman/syscalls.list.
3362         (mmap): Likewise.
3363         (mprotect): Likewise.
3364         (msync): Likewise.
3365         (munmap): Likewise.
3366         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
3367         * sysdeps/unix/mman/syscalls.list: Remove.
3368         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
3369
3370         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
3371         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
3372         * configure: Regenerated.
3373         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
3374         $(libgcc_s_suffix).
3375         * config.make.in (libgcc_s_suffix): Remove variable.
3376
3377 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
3378
3379         * sysdeps/unix/sysv/gethostname.c: Move to ...
3380         * sysdeps/posix/gethostname.c: ... here.
3381
3382         * sysdeps/unix/execve.S: Remove file.
3383
3384         * sysdeps/unix/_exit.S: Remove file.
3385
3386 2012-04-23  Andreas Jaeger  <aj@suse.de>
3387
3388         [BZ #13739]
3389         * manual/Makefile: Remove make dist support, there's no
3390         need for a stand-alone documentation tar ball.
3391         (TEXI2DVI): Define always, it's not in Makeconfig.
3392         (dist): Removed.
3393         (tar-it): Removed.
3394         (edition): Removed.
3395         (glibc-doc-$(edition).tar): Removed
3396         (%.Z): Removed.
3397         (%.gz): Removed.
3398         (%.uu): Removed.
3399         (ETAGS): Remove, it's in Makeconfig.
3400         (move-if-change): Remove, it's in Makeconfig.
3401
3402 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3403
3404         [BZ #13970]
3405         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
3406         (strtod, strtof, strtold, strtol, strtoul, strtoq)
3407         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
3408         (strtod_l, strtof_l, strtold_l): Remove __wur.
3409         It is not necessarily an error to ignore strtol's return value.
3410         One can reliably look at the stored endptr to decide whether
3411         the number had valid syntax.
3412
3413 2012-04-21  Andreas Jaeger  <aj@suse.de>
3414
3415         [BZ #13739]
3416         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
3417
3418 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
3419
3420         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
3421         * sysdeps/unix/sysv/Versions: Remove file.
3422
3423 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
3424
3425         [BZ #13927]
3426         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3427
3428 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
3429
3430         [BZ #7064]
3431         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
3432         version from __vm86.
3433
3434 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
3435
3436         * sysdeps/unix/common/lxstat.c: Remove file.
3437         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
3438
3439         * sysdeps/unix/sysv/Makefile: Remove file.
3440
3441         * sysdeps/unix/sysv/direct.h: Remove file.
3442
3443         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
3444         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
3445         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
3446         * sysdeps/unix/sysv/bits/signum.h: Likewise.
3447         * sysdeps/unix/sysv/bits/stat.h: Likewise.
3448         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
3449         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
3450
3451         * sysdeps/unix/sysv/setrlimit.c: Remove file.
3452
3453         * sysdeps/unix/xmknod.c: Remove file.
3454         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
3455
3456         * sysdeps/unix/sysv/settimeofday.c: Remove file.
3457
3458         * sysdeps/unix/sysv/i386/time.S: Remove file.
3459
3460         * sysdeps/unix/fxstat.c: Remove file.
3461         * sysdeps/unix/xstat.c: Likewise.
3462         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
3463
3464         * sysdeps/unix/sysv/sigaction.c: Remove file.
3465
3466         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
3467         (sysdep_headers): Remove variable.
3468         [termio.h not in sysdep_headers] (generated): Likewise.
3469         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
3470         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
3471         * sysdeps/unix/sysv/tcdrain.c: Likewise.
3472         * sysdeps/unix/sysv/tcflow.c: Likewise.
3473         * sysdeps/unix/sysv/tcflush.c: Likewise.
3474         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
3475         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
3476         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
3477         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
3478         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
3479
3480         * sysdeps/unix/siglist.c: Remove file.
3481
3482         * sysdeps/unix/getppid.S: Remove file.
3483
3484         * sysdeps/unix/mkdir.c: Remove file.
3485         * sysdeps/unix/rmdir.c: Likewise.
3486
3487 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
3488
3489         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
3490         ERR_MAX value.
3491         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
3492         errlist-compat value.
3493
3494 2012-04-18  David S. Miller  <davem@davemloft.net>
3495
3496         * sysdeps/generic/memcopy.h (reg_char): Delete.
3497         * debug/strcat_chk.c: Use char, not reg_char.
3498         * debug/strcpy_chk.c: Likewise.
3499         * debug/strncat_chk.c: Likewise.
3500         * debug/strncpy_chk.c: Likewise.
3501         * string/memchr.c: Likewise.
3502         * string/memrchr.c: Likewise.
3503         * string/rawmemchr.c: Likewise.
3504         * string/strcat.c: Likewise.
3505         * string/strchr.c: Likewise.
3506         * string/strchrnul.c: Likewise.
3507         * string/strcmp.c: Likewise.
3508         * string/strcpy.c: Likewise.
3509         * string/strncat.c: Likewise.
3510         * string/strncmp.c: Likewise.
3511         * string/strncpy.c: Likewise.
3512
3513 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3514
3515         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
3516         __builtin_memcopy is called when src and dest ranges are known to not
3517         overlap.
3518
3519 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3520
3521         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
3522         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
3523         fwd_align_merge macro call.
3524         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
3525         bwd_align_merge macro call.
3526         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3527
3528 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3529
3530         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
3531         bwd_align_merge macros.
3532         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
3533         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
3534         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3535
3536 2012-04-18  David S. Miller  <davem@davemloft.net>
3537
3538         * sysdeps/sparc/sparc64/memcopy.h: Delete.
3539
3540 2012-04-18  Andreas Jaeger  <aj@suse.de>
3541
3542         [BZ# 6794]
3543         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
3544         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
3545         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3546
3547         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
3548         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
3549         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3550
3551         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
3552         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
3553         Adjust for changed ldbl-128 files.
3554
3555         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
3556         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
3557         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3558
3559 2012-04-17  David S. Miller  <davem@davemloft.net>
3560
3561         * sysdeps/sparc/sparc32/memcopy.h: Delete.
3562
3563 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
3564
3565         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
3566         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
3567         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
3568         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
3569         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3570         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
3571
3572 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3573
3574         [BZ #6794]
3575         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
3576         * math/libm-test.inc: Add ilogb errno and exception tests.
3577         * math/w_ilogb.c: New file: ilogb wrapper.
3578         * math/w_ilogbf.c: New file: ilogbf wrapper.
3579         * math/w_ilogbl.c: New file: ilogbl wrapper.
3580         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
3581         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
3582         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
3583         exception being thrown with 0.0 as argument.
3584         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
3585         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
3586         exception being thrown with 0.0 as argument.
3587         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
3588         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3589         exception being thrown with 0.0 as argument.
3590         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
3591         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3592         exception being thrown with 0.0 as argument.
3593         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
3594         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
3595         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
3596         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
3597         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
3598         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
3599         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
3600         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
3601         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
3602
3603 2012-04-17  Petr Baudis  <pasky@ucw.cz>
3604
3605         * include/sys/uio.h: Change __vector to __iovec to avoid clash
3606         with altivec.
3607
3608 2012-04-16  Marek Polacek  <polacek@redhat.com>
3609
3610         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
3611
3612 2012-04-16  Marek Polacek  <polacek@redhat.com>
3613
3614         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
3615         operands of fdivp instruction.
3616
3617 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3618
3619         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
3620         * elf/tst-auditmod3b.c: Likewise.
3621         * elf/tst-auditmod4b.c: Likewise.
3622         * elf/tst-auditmod5b.c: Likewise.
3623         * elf/tst-auditmod6b.c: Likewise.
3624         * elf/tst-auditmod6c.c: Likewise.
3625         * elf/tst-auditmod7b.c: Likewise.
3626         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
3627         * sysdeps/x86_64/preconfigure.in: Likewise.
3628         * sysdeps/x86_64/preconfigure: Regenerated.
3629
3630 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3631
3632         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
3633         __ILP32__.
3634
3635 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
3636
3637         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3638         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
3639
3640 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
3641
3642         [BZ #13973]
3643         * locale/iso-639.def: Fix gl language name. Spotted by
3644         Yaron Shahrabani.
3645
3646 2012-04-12  Roland McGrath  <roland@hack.frob.com>
3647
3648         [BZ #2074]
3649         * libio/libio.h (__io_write_fn): Update comment.
3650
3651 2012-04-12  Petr Baudis  <pasky@ucw.cz>
3652
3653         [BZ #2074]
3654         * stdio.texi (Hook Functions): The user provided writer function
3655         is not allowed to return -1.
3656
3657 2012-04-11  David S. Miller  <davem@davemloft.net>
3658
3659         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3660
3661 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
3662
3663         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
3664         Add a leading slash to rtkaio.
3665
3666 2012-04-11  Jim Meyering  <meyering@redhat.com>
3667
3668         [BZ #11959]
3669         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
3670         It is not necessarily an error to ignore fwrite's return
3671         value.  One can reliably use ferror to test for errors after
3672         the fact.
3673
3674 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3675
3676         * bits/types.h (__snseconds_t): New type.
3677         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
3678
3679         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
3680         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3681         (__SNSECONDS_T_TYPE): Likewise.
3682         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3683         (__SNSECONDS_T_TYPE): Likewise.
3684         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3685         (__SNSECONDS_T_TYPE): Likewise.
3686
3687 2012-04-10  Andreas Jaeger  <aj@suse.de>
3688
3689         [BZ #2636]
3690         * manual/time.texi (Processor Time): Return type of times is
3691         elapsed real time since an arbitrary point in the past.
3692         (CPU Time): Move CLK_TCK from here...
3693         (Processor Time): ...to here.  Correct description.
3694         * manual/conf.texi (Constants for Sysconf): Correct description of
3695         _SC_CLK_TCK.
3696
3697 2012-04-10  David S. Miller  <davem@davemloft.net>
3698
3699         [BZ #13967]
3700         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
3701         where the is a gap between DT_REL(A) and DT_JMPREL.
3702
3703 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3704
3705         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
3706         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3707         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3708
3709 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3710
3711         * elf/dl-support.c (_dl_inhibit_cache): New variable.
3712         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
3713         (dl_main): Handle --inhibit-cache.
3714         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
3715         _dl_inhibit_cache.
3716         * elf/dl-load.c (_dl_map_object): Use it.
3717         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
3718
3719 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3720
3721         [BZ #13872]
3722         * sysdeps/i386/fpu/e_powl.S (p78): New object.
3723         (__ieee754_powl): Saturate large exponents rather than testing for
3724         overflow of y*log2(x).
3725         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3726         * math/libm-test.inc (pow_test): Do not permit spurious overflow
3727         exceptions.
3728
3729         [BZ #11521]
3730         * math/s_ctan.c: Include <float.h>.
3731         (__ctan): Avoid internal overflow or cancellation in calculating
3732         denominator.
3733         * math/s_ctanf.c: Likewise.
3734         * math/s_ctanl.c: Likewise.
3735         * math/s_ctanh.c: Likewise.
3736         * math/s_ctanhf.c: Likewise.
3737         * math/s_ctanhl.c: Likewise.
3738         * math/libm-test.inc (ctan_test): Add more tests.
3739         (ctanh_test): Likewise.
3740         * sysdeps/i386/fpu/libm-test-ulps: Update.
3741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3742
3743 2012-04-09  Andreas Jaeger  <aj@suse.de>
3744
3745         [BZ #6894]
3746         * manual/filesys.texi (Directory Entries): Mention that d_namlen
3747         is an optional BSD extension.
3748
3749         [BZ #10254]
3750         * manual/stdio.texi (Opening Streams): Document additional fopen
3751         parameters.
3752
3753 2012-04-09  Roland McGrath  <roland@hack.frob.com>
3754
3755         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
3756         %eax without telling the compiler.
3757
3758 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
3759
3760         [BZ # 13963]
3761         * manual/install.texi: Use sourceware.org.
3762
3763 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3764
3765         [BZ #13873]
3766         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
3767         (__ieee754_pow): Generate overflow and underflow using huge*huge
3768         and tiny*tiny rather than just returning constant infinity or zero
3769         for large exponents.
3770         * math/libm-test.inc (pow_test): Require overflow exceptions for
3771         applicable cases of large exponents.
3772
3773         [BZ #706]
3774         * sysdeps/i386/fpu/e_pow.S (p10): New object.
3775         (__ieee754_pow): Use iterative multiplication algorithm only for
3776         integer exponents with absolute value below 1024.  Check for odd
3777         integer exponents when using algorithm for real exponents.
3778         * math/libm-test.inc (pow_test): Add more tests.
3779         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3780
3781 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
3782
3783         [BZ #13705]
3784         * math/libm-test.inc (exp_test): Do not allow overflow exception
3785         on underflow test.
3786
3787 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
3788
3789         [BZ #13705]
3790         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
3791         instead of __kernel_standard_f.
3792
3793 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
3794
3795         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
3796         * sysdeps/x86_64/memset_chk.S: Likewise.
3797
3798 2012-04-08  Andreas Jaeger  <aj@suse.de>
3799
3800         [BZ #10153]
3801         * manual/startup.texi (Environment Access): Describe return value
3802         for putenv and setenv.
3803
3804         [BZ #6895]
3805         * manual/filesys.texi (Directory Entries): Add description for
3806         DT_LNK.
3807
3808         [BZ #6890]
3809         * manual/filesys.texi (Directory Entries): Clarify that it's file
3810         system not operating system in the description of DT_UNKNOWN.
3811
3812         [BZ #6578]
3813         * manual/syslog.texi (closelog): Fix reference, it's openlog.
3814
3815 2012-04-08  Stephen Compall  <s11@member.fsf.org>
3816
3817         [BZ #6649]
3818         * manual/llio.texi (Opening and Closing Files): Add cross
3819         reference to explain mode argument.
3820
3821 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
3822
3823         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
3824         * sysdeps/x86_64/memset_chk.S: Likewise.
3825
3826 2012-04-07  David S. Miller  <davem@davemloft.net>
3827
3828         * elf/elf.h (R_SPARC_WDISP10): Define.
3829         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
3830         R_SPARC_SIZE32.
3831         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3832         R_SPARC_SIZE64 and R_SPARC_H34.
3833
3834 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
3835
3836         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
3837         conditions and remove no longer applicable assertion.
3838
3839 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3840
3841         * bits/byteswap.h: Include <features.h>.
3842         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3843         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3844
3845 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3846
3847         * bits/byteswap.h (__bswap_16): Removed.
3848         Include <bits/byteswap-16.h> to get __bswap_16.
3849         * sysdeps/i386/bits/byteswap.h: Likewise.
3850         * sysdeps/s390/bits/byteswap.h: Likewise.
3851         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3852         * bits/byteswap-16.h: New file.
3853         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3854         * sysdeps/s390/bits/byteswap-16.h: Likewise.
3855         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
3856         * string/Makefile (headers): Add bits/byteswap-16.h.
3857
3858 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3859
3860         [BZ #13895]
3861         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
3862         extra indirection.
3863         * nss/Makefile (tests-static, tests): Add tst-nss-static.
3864         * nss/tst-nss-static.c: New.
3865
3866 2012-04-06  Robert Millan  <rmh@gnu.org>
3867
3868         [BZ #6486]
3869         * manual/llio.texi (File Position Primitive): lseek
3870         refers to WHENCE when it really means OFFSET.
3871
3872 2012-04-06  Andreas Jaeger  <aj@suse.de>
3873
3874         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
3875         strncmp declarations.
3876
3877         * abilist/libc.abilist: Add __poll and __ppoll.
3878
3879 2012-04-05  David S. Miller  <davem@davemloft.net>
3880
3881         * scripts/check-local-headers.sh: Accept a host triplet in the
3882         path matched by the exclude regexp.
3883
3884         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
3885         definition.
3886         * sysdeps/powerpc/powerpc32/dl-machine.h
3887         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
3888         * sysdeps/s390/s390-32/dl-machine.h
3889         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3890         * sysdeps/sparc/sparc32/dl-machine.h
3891         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3892         * sysdeps/sparc/sparc64/dl-machine.h
3893         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3894
3895         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
3896         lazy binding.
3897         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
3898         undefined symbol errors.
3899
3900         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
3901         DT_NEEDED entries.
3902
3903 2012-04-05  Michael Matz  <matz@suse.de>
3904
3905         [BZ #13592]
3906         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
3907
3908 2012-04-05  Andreas Jaeger  <aj@suse.de>
3909
3910         [BZ #13908]
3911         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
3912         comment.
3913
3914 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3915
3916         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
3917         which ROUND is no valid rounding mode.
3918
3919 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3920
3921         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
3922         read again.
3923         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
3924
3925 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3926
3927         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
3928         an exception using FPU order intentionally.
3929
3930 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3931
3932         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
3933         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
3934         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
3935         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
3936
3937 2012-04-05  Simon Josefsson  <simon@josefsson.org>
3938
3939         [BZ #12340]
3940         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
3941         EINVAL when BUFLEN is too smal.
3942
3943 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
3944
3945         [BZ #13553]
3946         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
3947         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3948
3949 2012-04-03  Andreas Jaeger  <aj@suse.de>
3950
3951         [BZ #13938]
3952         * manual/setjmp.texi (System V contexts): Fix sentence.
3953
3954         [BZ #13926]
3955         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
3956         New macro for this case.
3957         [!__GNUC__] (__bswap_64): New inline function for this case.
3958         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3959         * bits/byteswap.h: Likewise.
3960         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
3961         ull, guard with __GLIBC_HAVE_LONG_LONG.
3962
3963         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
3964         __GLIBC_HAVE_LONG_LONG.
3965
3966         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
3967         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
3968
3969 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3970
3971         [BZ #13691]
3972         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
3973         inptr and inend, rather than using last_ch.
3974
3975 2012-04-02  David S. Miller  <davem@davemloft.net>
3976
3977         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
3978         * stdio-common/printf-parse.h (read_int): Change return type to
3979         'int', return -1 on INT_MAX overflow.
3980         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
3981         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
3982         overflows INT_MAX.  Check for overflow of in-format-string precision
3983         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
3984         SIZE_MAX not INT_MAX for integer overflow test.
3985         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
3986         skip the construct in the format string but do not record anything.
3987         * stdio-common/bug22.c: Adjust to test both width/prevision
3988         INT_MAX overflow as well as total length INT_MAX overflow.  Check
3989         explicitly for proper errno values.
3990
3991 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
3992
3993         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
3994         CHAR_MAX.
3995         * string/test-strcmp.c [! WIDE]: Likewise.
3996         * time/tst-mktime2.c: Likewise for INT_MAX.
3997         * string/test-string.h: #include <sys/param.h> for MIN.
3998
3999         * csu/init-first.c (__libc_init_first): Call __ctype_init.
4000         * sysdeps/i386/init-first.c (init): Likewise.
4001         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
4002         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
4003         * sysdeps/sh/init-first.c (init): Likewise.
4004
4005 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
4006
4007         * po/ru.po: Update from translation team.
4008         * po/vi.po: Likewise.
4009
4010 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
4011
4012         * resolv/nss_dns/dns-host.c: Merge copyright years.
4013
4014 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4015
4016         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
4017         Optimize memcpy with prefetch if
4018         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
4019         src, dst pointers have unequal 16 byte alignments.
4020
4021 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4022
4023         [BZ #13928]
4024         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
4025         from a CNAME entry and return the minimum ttl for the query.
4026         (gaih_getanswer_slice): Likewise.
4027
4028 2012-03-30  Jeff Law  <law@redhat.com>
4029
4030         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
4031         due to long keys.
4032         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
4033         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
4034
4035         * resolv/nss_dns/dns-host.c: Update copyright year.
4036
4037 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
4038
4039         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
4040         requests to save a system call.  Fix check that all bytes are sent.
4041
4042         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
4043         comments for sendmmsg.
4044
4045 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4046
4047         [BZ #13691]
4048         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
4049         with only 1 character between 0x0041 and 0x01b0.
4050         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
4051         * wcsmbs/tst-mbsnrtowcs.c: New file.
4052
4053 2012-03-29  David S. Miller  <davem@davemloft.net>
4054
4055         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
4056         small copies by hand.
4057
4058 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4059
4060         [BZ #13761]
4061         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
4062         _nss_compat_initgroups_dyn): Fall back to malloc/free
4063         for large group memberships.
4064
4065 2012-03-28  David S. Miller  <davem@davemloft.net>
4066
4067         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
4068         that branches into memcpy.
4069         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4070         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
4071         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4072         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
4073         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
4074         bits.
4075         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
4076         implementation too.
4077         * sysdeps/sparc/mempcpy.S: New file.
4078
4079         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
4080         the IFUNC routine in the libc case.
4081         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
4082
4083         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
4084         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
4085         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
4086         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
4087         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
4088         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
4089         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
4090         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
4091
4092         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
4093         loop to 256 bytes instead of 64 bytes and fix test signedness.
4094
4095         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
4096         * sysdeps/sparc/sparc32/Makefile: rather than here...
4097         * sysdeps/sparc/sparc64/Makefile: and here.
4098
4099 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
4100
4101         * malloc/mallocbug.c: Avoid warnings about unused variables.
4102
4103 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4104
4105         [BZ #13760]
4106         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
4107         in the right place. Discard and retry query if response is
4108         larger than input buffer size.
4109
4110 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
4111
4112         [BZ #369]
4113         [BZ #2678]
4114         [BZ #3866]
4115         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
4116         x for large integer exponent.
4117         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
4118         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
4119         sign of result as needed afterwards.
4120         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
4121         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
4122         result for underflowing pow the same as for overflow.
4123         (__kernel_standard_l): Handle powl overflow and underflow here
4124         rather than calling __kernel_standard.
4125         * math/libm-test.inc (pow_test): Add more tests.
4126
4127         [BZ #3868]
4128         [BZ #13879]
4129         [BZ #13910]
4130         [BZ #13911]
4131         [BZ #13912]
4132         [BZ #13913]
4133         [BZ #13915]
4134         [BZ #13916]
4135         [BZ #13917]
4136         [BZ #13918]
4137         [BZ #13919]
4138         [BZ #13920]
4139         [BZ #13921]
4140         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
4141         * sysdeps/ieee754/k_standard.c: Include <float.h>.
4142         (__kernel_standard_l): New function.
4143         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
4144         __kernel_standard.
4145         * math/w_acosl.c (__acosl): Likewise.
4146         * math/w_asinl.c (__asinl): Likewise.
4147         * math/w_atan2l.c (__atan2l): Likewise.
4148         * math/w_atanhl.c (__atanhl): Likewise.
4149         * math/w_coshl.c (__coshl): Likewise.
4150         * math/w_exp10l.c (__exp10l): Likewise.
4151         * math/w_exp2l.c (__exp2l): Likewise.
4152         * math/w_fmodl.c (__fmodl): Likewise.
4153         * math/w_hypotl.c (__hypotl): Likewise.
4154         * math/w_j0l.c (__j0l, __y0l): Likewise.
4155         * math/w_j1l.c (__j1l, __y1l): Likewise.
4156         * math/w_jnl.c (__jnl, __ynl): Likewise.
4157         * math/w_lgammal.c (__lgammal): Likewise.
4158         * math/w_log10l.c (__log10l): Likewise.
4159         * math/w_log2l.c (__log2l): Likewise.
4160         * math/w_logl.c (__logl): Likewise.
4161         * math/w_powl.c (__powl): Likewise.
4162         * math/w_remainderl.c (__remainderl): Likewise.
4163         * math/w_scalbl.c (sysv_scalbl): Likewise.
4164         * math/w_sinhl.c (__sinhl): Likewise.
4165         * math/w_sqrtl.c (__sqrtl): Likewise.
4166         * math/w_tgammal.c (__tgammal): Likewise.
4167         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
4168         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
4169         * math/libm-test.inc (acos_test): Add more tests.
4170         (acosh_test): Likewise.
4171         (asin_test): Likewise.
4172         (atanh_test): Likewise.
4173         (exp_test): Likewise.
4174         (exp10_test): Likewise.
4175         (exp2_test): Likewise.
4176         (expm1_test): Likewise.
4177         (lgamma_test): Likewise.
4178         (log_test): Likewise.
4179         (log10_test): Likewise.
4180         (log1p_test): Likewise.
4181         (log2_test): Likewise.
4182         (pow_test): Do not allow some spurious overflow exceptions.
4183         (sqrt_test): Add more tests.
4184         (tgamma_test): Likewise.
4185         (y0_test): Likewise.
4186         (y1_test): Likewise.
4187         (yn_test): Likewise.
4188
4189 2012-03-27  Anton Blanchard  <anton@samba.org>
4190
4191         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
4192         MAP_HUGETLB.
4193         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4194         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4195         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4196
4197 2012-03-27  David S. Miller  <davem@davemloft.net>
4198
4199         * conform/Makefile: Run run-conformtest.sh using $(BASH).
4200
4201         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
4202         have-as-vis3 check.
4203
4204 2012-03-27  Andreas Jaeger  <aj@suse.de>
4205
4206         * sysdeps/x86_64/elf/configure.in: Moved to ...
4207         * sysdeps/x86_64/configure.in: ... here.
4208         * sysdeps/x86_64/elf/start.S: Moved to ...
4209         * sysdeps/x86_64/start.S: ... here.
4210         * sysdeps/x86_64/elf/configure: Delete.
4211
4212         * sysdeps/x86_64/configure.in: Merge contents from
4213         sysdeps/i386/configure.in (without i686 check).
4214
4215         * sysdeps/i386/elf/Versions: Merge into ...
4216         * sysdeps/i386/Versions: ... this.
4217         * sysdeps/i386/elf/Versions: Delete file.
4218         * sysdeps/i386/elf/start.S: Moved to ...
4219         * sysdeps/i386/start.S: ...here.
4220         * sysdeps/i386/elf/configure.in: Merge into...
4221         * sysdeps/i386/configure.in: ...here.
4222         * sysdeps/i386/elf/configure.in: Delete file.
4223         * sysdeps/i386/elf/configure: Delete file.
4224
4225         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
4226         * debug/backtracesyms.c: ... here.
4227         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
4228         * debug/backtracesymsfd.c: ... here.
4229         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
4230         * sysdeps/generic/ifunc-sel.h: ... here.
4231
4232         * sysdeps/unix/i386/start.c: Delete file.
4233         * sysdeps/unix/sparc/start.c: Delete file.
4234         * sysdeps/unix/start.c: Delete file.
4235
4236         * sysdeps/sh/elf/configure.in: Moved to ...
4237         * sysdeps/sh/configure.in: ... here.
4238         * sysdeps/sh/elf/start.S: Moved to ...
4239         * sysdeps/sh/start.S: ... here.
4240         * sysdeps/sh/elf/configure: Delete file.
4241
4242         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
4243         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
4244         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
4245         * sysdeps/powerpc/powerpc64/entry.h: ... here.
4246         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
4247         * sysdeps/powerpc/powerpc64/start.S: here.
4248         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
4249         * sysdeps/powerpc/powerpc64/Makefile: ... this.
4250         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
4251         * sysdeps/powerpc/powerpc64/configure.in: ... this.
4252         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
4253
4254         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
4255         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
4256         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
4257         * sysdeps/powerpc/powerpc32/start.S: ... here.
4258         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
4259         * sysdeps/powerpc/powerpc32/configure.in: ... this.
4260         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
4261
4262         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
4263         * sysdeps/powerpc/ifunc-sel.h: ... here.
4264         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
4265         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
4266
4267         * sysdeps/sparc/elf/configure.in: Moved to ...
4268         * sysdeps/sparc/configure.in: ... here.
4269         * sysdeps/sparc/elf/configure: Delete file.
4270         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
4271         * sysdeps/sparc/sparc32/start.S: ... here.
4272         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
4273         * sysdeps/sparc/sparc64/start.S: ... here.
4274         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
4275         * sysdeps/sparc/sparc32/Makefile: ... this.
4276         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
4277         * sysdeps/sparc/sparc64/Makefile: ... this.
4278
4279         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
4280         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
4281         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
4282         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
4283         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
4284         * sysdeps/s390/s390-32/setjmp.S: ... here.
4285         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
4286         * sysdeps/s390/s390-32/configure.in: ... here.
4287         * sysdeps/s390/s390-32/elf/configure: Delete file.
4288         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
4289         * sysdeps/s390/s390-32/start.S: ... here.
4290
4291         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
4292         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
4293         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
4294         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
4295         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
4296         * sysdeps/s390/s390-64/setjmp.S: ... here.
4297         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
4298         * sysdeps/s390/s390-64/configure.in: ... here
4299         * sysdeps/s390/s390-64/elf/configure: Delete file.
4300         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
4301         * sysdeps/s390/s390-64/start.S: ... here.
4302         * sysdeps/s390/s390-64/elf/configure: Delete.
4303
4304         * configure.in: Remove support for elf directories in sysdeps.
4305
4306         * configure: Regenerated.
4307         * sysdeps/i386/configure: Regenerated.
4308         * sysdeps/powerpc/powerpc32/configure: Regenerated.
4309         * sysdeps/powerpc/powerpc64/configure: Regenerated.
4310         * sysdeps/s390/s390-32/configure: Regenerated.
4311         * sysdeps/s390/s390-64/configure: Regenerated.
4312         * sysdeps/sh/configure: Regenerated.
4313         * sysdeps/sparc/configure: Regenerated.
4314         * sysdeps/x86_64/configure: Regenerated.
4315
4316 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
4317
4318         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4319
4320         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
4321         denormal result into account.
4322
4323 2012-03-25  Roland McGrath  <roland@hack.frob.com>
4324
4325         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
4326         Reported by Allan McRae <allan@archlinux.org>.
4327
4328 2012-03-23  Jeff Law  <law@redhat.com>
4329
4330         * nss/getnssent.c (__nss_getent): Fix typo.
4331
4332 2012-03-23  David S. Miller  <davem@davemloft.net>
4333
4334         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4335
4336 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
4337
4338         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
4339         to pad to uint64_t for each field.
4340         (dl_tls_index): Replace unsigned long with uint64_t.
4341
4342 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
4343         Paul Pluzhnikov  <ppluzhnikov@google.com>
4344
4345         [BZ #6528]
4346         * grp/Makefile (otherlibs): Don't set it.
4347         * inet/Makefile (otherlibs): Likewise.
4348         * login/Makefile (otherlibs): Likewise.
4349         * nscd/Makefile (otherlibs): Likewise.
4350         * posix/Makefile (otherlibs): Likewise.
4351         * pwd/Makefile (otherlibs): Likewise.
4352         * rt/Makefile (otherlibs): Likewise.
4353         * sunrpc/Makefile (otherlibs): Likewise.
4354         * nss/Makefile (otherlibs): Likewise.
4355         Add libnss_files to routines and static-only-routines.
4356         ($(objpfx)getent): Remove rule.
4357         * resolv/Makefile: Add libnss_dns and libresolv to routines and
4358         static-only-routines.
4359
4360 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4361
4362         [BZ #13892]
4363         * math/s_cexp.c: Include <float.h>.
4364         (__cexp): Handle exp result overflowing not necessarily
4365         overflowing both real and imaginary parts of result.
4366         * math/s_cexpf.c: Likewise.
4367         * math/s_cexpl.c: Likewise.
4368         * math/libm-test.inc (cexp_test): Add more tests.
4369         * sysdeps/i386/fpu/libm-test-ulps: Update.
4370         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4371
4372 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4373
4374         * include/link.h (ELFW): New macro.
4375         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
4376         Replace ELF64_R_TYPE with ELFW(R_TYPE).
4377
4378 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4379
4380         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
4381         with uint64_t.
4382
4383 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4384
4385         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
4386         declaration.
4387         (struct La_x32_retval): Likewise.
4388
4389 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4390
4391         * sysdeps/x86_64/preconfigure.in: New file.
4392         * sysdeps/x86_64/preconfigure: New generated file.
4393
4394 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4395
4396         [BZ #13824]
4397         * math/e_exp2l.c: Include <float.h>.
4398         (__ieee754_exp2l): Handle overflow and underflow cases
4399         separately.  Only pass fractional part of argument to
4400         __ieee754_expl.
4401         * math/libm-test.inc (exp2_test): Add more tests.
4402
4403         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
4404         negating x to take absolute value.
4405         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
4406         Likewise.
4407         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4408         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
4409         Likewise.
4410         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
4411         computing low part if x was negated.
4412         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4413
4414 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4415
4416         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
4417         la_x32_gnu_pltexit.
4418         (pltexit): Cast int_retval to ptrdiff_t.
4419         * elf/tst-auditmod3b.c: Likewise.
4420         * elf/tst-auditmod4b.c: Likewise.
4421         * elf/tst-auditmod5b.c: Likewise.
4422         * elf/tst-auditmod6b.c: Likewise.
4423         * elf/tst-auditmod6c.c: Likewise.
4424         * elf/tst-auditmod7b.c: Likewise.
4425
4426         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
4427         and x32_gnu_pltexit.
4428
4429         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
4430         __ELF_NATIVE_CLASS.
4431         (La_x32_regs): New macro.
4432         (La_x32_retval): Likewise.
4433         (la_x32_gnu_pltenter): New function prototype.
4434         (la_x32_gnu_pltexit): Likewise.
4435
4436 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
4437
4438         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
4439         exponent.
4440
4441         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4442
4443         * configure.in (libc_cv_cc_nofma): Check for option to disable
4444         generation of FMA instructions.
4445         * configure: Regenerate.
4446         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
4447         * sysdeps/ieee754/dbl-64/Makefile: New file.
4448         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4449         Remove brandred-fma4.
4450         (CFLAGS-brandred-fma4.c): Remove.
4451         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
4452         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
4453         define.
4454         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
4455         define.
4456
4457 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4458
4459         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4460         LLONG_MAX != LONG_MAX.
4461         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4462         (_fitoa_word): Likewise.
4463         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
4464         LLONG_MAX != LONG_MAX.
4465         * stdio-common/_itowa.h: Include <_itoa.h>.
4466         (_itowa_word): Use _ITOA_WORD_TYPE on value.
4467         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
4468         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
4469         only if not defined.
4470         (_ITOA_WORD_TYPE): Likewise.
4471         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4472         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
4473
4474 2012-03-21  David S. Miller  <davem@davemloft.net>
4475
4476         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4477
4478 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4479
4480         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
4481         of x86_64 when setting libc_cv_slibdir, libdir and
4482         libc_cv_localedir.
4483         * sysdeps/unix/sysv/linux/configure: Regenerated.
4484
4485 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4486
4487         * manual/lang.texi (Old Varargs): Remove section.
4488         (How Variadic): Update menu.
4489         (va_start): Do not mention varargs.h.
4490
4491 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4492             Joseph Myers  <joseph@codesourcery.com>
4493
4494         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
4495         link test.
4496         * configure: Regenerated.
4497
4498 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4499
4500         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
4501         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
4502         conformtest.pl
4503
4504 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4505
4506         * NOTES: Remove.
4507         * Makefile (files-for-dist): Remove NOTES.
4508         (NOTES): Remove rule.
4509         * README: Don't refer to NOTES.
4510         * manual/creature.texi: Don't include macros.texi.
4511         * manual/intro.texi (creature.texi): Remove comment referring to
4512         NOTES.
4513
4514         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
4515         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
4516         * configure: Regenerated.
4517         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
4518         LIBC_TRY_CC_OPTION.
4519         (libc_cv_as_i686): Likewise.
4520         (libc_cv_cc_avx): Likewise.
4521         (libc_cv_cc_sse2avx): Likewise.
4522         (libc_cv_cc_fma4): Likewise.
4523         (libc_cv_cc_novzeroupper): Likewise.
4524         * sysdeps/i386/configure: Regenerated.
4525
4526         [BZ #13883]
4527         * sysdeps/i386/fpu/s_cexp.S: Remove.
4528         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4529         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4530         * math/libm-test.inc (cexp_test): Add more tests.
4531         * sysdeps/i386/fpu/libm-test-ulps: Update.
4532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4533
4534 2012-03-21  Allan McRae  <allan@archlinux.org>
4535
4536         * timezone/Makefile: Do not install iso3166.tab and zone.tab
4537
4538 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4539
4540         [BZ #13871]
4541         * math/w_exp2.c: Do not include <float.h>.
4542         (o_threshold, u_threshold): Remove.
4543         (__exp2): Calculate result before checking finiteness and calling
4544         __kernel_standard.
4545         * math/w_exp2f.c: Likewise.
4546         * math/w_exp2l.c: Likewise.
4547         * math/libm-test.inc (exp2_test): Require overflow exception for
4548         1e6 input.
4549
4550         [BZ #3866]
4551         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
4552         range of signed 64-bit integers before using fistpll.  Remove
4553         checks for whether integers fit in mantissa bits.
4554         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
4555         the range of signed 32-bit integers before using fistpl.  Remove
4556         checks for whether integers fit in mantissa bits.
4557         * sysdeps/i386/fpu/e_powl.S (p64): New object.
4558         (__ieee754_powl): Test for y outside the range of signed 64-bit
4559         integers before using fistpll.  Reduce 64-bit values to 63-bit
4560         ones as needed.
4561         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
4562         divide-by-zero is raised for zero to large negative powers.
4563         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
4564         (__ieee754_powl): Test for y outside the range of signed 64-bit
4565         integers before using fistpll.  Reduce 64-bit values to 63-bit
4566         ones as needed.
4567         * math/libm-test.inc (pow_test): Add more tests.
4568
4569 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4570
4571         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
4572         <stdio-common/_itoa.h>.
4573         * debug/segfault.c: Likewise.
4574         * elf/dl-cache.c: Likewise.
4575         * elf/dl-minimal.c: Likewise.
4576         * elf/dl-misc.c: Likewise.
4577         * elf/dl-sysdep.c: Likewise.
4578         * elf/dl-version.c: Likewise.
4579         * elf/rtld.c: Likewise.
4580         * hurd/hurdsock.c: Likewise.
4581         * hurd/lookup-retry.c: Likewise.
4582         * malloc/malloc.c: Likewise.
4583         * malloc/mtrace.c: Likewise.
4584         * nscd/nscd_getgr_r.c: Likewise.
4585         * nscd/nscd_getpw_r.c: Likewise.
4586         * nscd/nscd_getserv_r.c: Likewise.
4587         * posix/getopt_init.c: Likewise.
4588         * posix/wordexp.c: Likewise.
4589         * stdio-common/_itoa.c: Likewise.
4590         * stdio-common/printf_fphex.c: Likewise.
4591         * stdio-common/vfprintf.c: Likewise.
4592         * string/_strerror.c: Likewise.
4593         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4594         * sysdeps/i386/i686/hp-timing.h: Likewise.
4595         * sysdeps/mach/_strerror.c: Likewise.
4596         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
4597         * sysdeps/mach/hurd/sethostid.c: Likewise.
4598         * sysdeps/mach/hurd/xmknodat.c: Likewise.
4599         * sysdeps/mach/xpg-strerror.c: Likewise.
4600         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4601         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4602         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
4603         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
4604         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4605         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
4606         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4607         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4608         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
4609         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
4610         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
4611         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4612         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
4613         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4614         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4615         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4616         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
4617         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
4618         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4619         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4620         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
4621
4622         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
4623
4624         * stdio-common/_itoa.h: Moved to ...
4625         * sysdeps/generic/_itoa.h: Here.
4626
4627         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
4628
4629         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
4630         instead of "_itoa.h" and "_itowa.h".
4631         * stdio-common/vfprintf.: Likewise.
4632
4633 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4634
4635         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
4636         <bits/wordsize.h>.
4637         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
4638         (__signbit): Likwise.
4639         (llrintf): Likwise.
4640         (llrint): Likwise.
4641
4642 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4643
4644         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
4645         __WORDSIZE != 64.
4646
4647 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
4648
4649         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
4650         OVERFLOW_EXCEPTION_OK.
4651         * math/libm-test.inc ("Philosophy"): Update comment about
4652         exception testing.
4653         (OVERFLOW_EXCEPTION): Define.
4654         (OVERFLOW_EXCEPTION_OK): Likewise.
4655         (INVALID_EXCEPTION_OK): Renumber.
4656         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4657         (IGNORE_ZERO_INF_SIGN): Likewise.
4658         (test_exceptions): Handle FE_OVERFLOW.
4659         (exp10_test): Expect overflow exceptions.
4660         (exp2_test): Likewise.
4661         (expm1_test): Likewise.
4662         (nextafter_test): Likewise.
4663         (pow_test): Likewise.
4664         (scalbn_test): Likewise.
4665         (scalbln_test): Likewise.
4666
4667 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4668
4669         * sysdeps/x86_64/bits/atomic.h
4670         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
4671         64bit integer.
4672         (atomic_exchange_acq): Likewise.
4673         (__arch_exchange_and_add_body): Likewise.
4674         (__arch_add_body): Likewise.
4675         (atomic_add_negative): Likewise.
4676         (atomic_add_zero): Likewise.
4677
4678 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4679
4680         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
4681         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
4682
4683 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4684
4685         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
4686         Check __x86_64__ instead of __WORDSIZE.
4687
4688 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4689
4690         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
4691
4692 2012-03-19  David S. Miller  <davem@davemloft.net>
4693
4694         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4695
4696         * sysdeps/sparc/fpu/fenv_private.h: New file.
4697         * sysdeps/sparc/fpu/math_private.h: Use it.
4698         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
4699         Remove.
4700         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
4701         (libc_feholdexcept_setroundl): Remove.
4702         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
4703         Remove.
4704         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
4705         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
4706
4707 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4708
4709         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
4710         int64_t instead of long int.
4711         (INSERT_WORDS64): Likwise.
4712
4713 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4714
4715         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
4716         _Unwind_GetCFA return to _Unwind_Ptr first.
4717
4718 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
4719
4720         [BZ #13629]
4721         * math/s_clog.c: Include <float.h>.
4722         (__clog): Scale large or subnormal inputs.
4723         * math/s_clogf.c: Likewise.
4724         * math/s_clogl.c: Likewise.
4725         * math/s_clog10.c: Include <float.h>.
4726         (M_LOG10_2): Define.
4727         (__clog10): Scale large or subnormal inputs.
4728         * math/s_clog10f.c: Likewise.
4729         * math/s_clog10l.c: Likewise.
4730         * math/libm-test.inc (clog_test): Add more tests.
4731         (clog10_test): Likewise.
4732         * sysdeps/i386/fpu/libm-test-ulps: Update.
4733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4734
4735         [BZ #11451]
4736         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
4737         x and y.
4738         * math/libm-test.inc (atan2_test): Add another test.
4739
4740         * Makerules (common-objdir-compile): Remove.
4741         * sysdeps/unix/Makefile (config-generated): Do not add
4742         $(unix-generated) to variable.
4743         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
4744         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
4745         Remove rule.
4746         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
4747         Likewise.
4748         [generic bits/local_lim.h] (before-compile): Do not append to
4749         variable.
4750         [generic bits/local_lim.h] (common-generated): Likewise.
4751         [generic sys/param.h] (before-compile): Do not append to variable.
4752         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
4753         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
4754         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
4755         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
4756         include.
4757         [generic sys/param.h] (sys/param.h-includes): Remove variable.
4758         [generic sys/param.h] (sys/param.h-includes): Remove rule.
4759         [generic sys/param.h] ($(addprefix
4760         $(common-objpfx),$(sys/param.h-includes))): Likewise.
4761         [generic sys/param.h] (common-generated): Do not append to
4762         variable.
4763         [generic sys/param.h] (sysdep_headers): Likewise.
4764         [generic bits/errno.h] (before-compile): Do not append to
4765         variable.
4766         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
4767         rule.
4768         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
4769         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
4770         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
4771         [generic bits/errno.h] (common-generated): Do not append to
4772         variable.
4773         [generic bits/ioctls.h] (before-compile): Do not append to
4774         variable.
4775         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
4776         rule.
4777         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
4778         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
4779         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
4780         rule.
4781         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
4782         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
4783         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
4784         [generic bits/ioctls.h] (common-generated): Do not append to
4785         variable.
4786         [generic sys/syscall.h] (syscall.h): Remove variable.
4787         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
4788         rule.
4789         [generic sys/syscall.h] (before-compile): Do not append to
4790         variable.
4791         [generic sys/syscall.h] (common-generated): Likewise.
4792         * sysdeps/unix/errnos-tmpl.c: Remove file.
4793         * sysdeps/unix/errnos.awk: Likewise.
4794         * sysdeps/unix/ioctls-tmpl.c: Likewise.
4795         * sysdeps/unix/ioctls.awk: Likewise.
4796         * sysdeps/unix/mk-local_lim.c: Likewise.
4797         * sysdeps/unix/snarf-ioctls: Likewise.
4798
4799 2012-03-19  Richard Henderson  <rth@twiddle.net>
4800
4801         * sysdeps/i386/fpu/fenv_private.h: New file.
4802         * sysdeps/i386/fpu/math_private.h: Use it.
4803         (math_opt_barrier, math_force_eval): Remove.
4804         (libc_feholdexcept_setround_53bit): Remove.
4805         (libc_feupdateenv_53bit): Remove.
4806         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4807         (math_opt_barrier, math_force_eval): Remove.
4808         (libc_feholdexcept): Remove.
4809         (libc_feholdexcept_setround): Remove.
4810         (libc_fetestexcept, libc_fesetenv): Remove.
4811         (libc_feupdateenv_test): Remove.
4812         (libc_feupdateenv, libc_feholdsetround): Remove.
4813         (libc_feresetround): Remove.
4814
4815         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
4816         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
4817
4818         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
4819         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
4820         (libc_feupdateenv_testl): New.
4821         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
4822         (libc_feupdateenv_testf): New.
4823         (libc_feupdateenv): Use libc_feupdateenv_test.
4824         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
4825         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
4826
4827         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
4828         (libc_feholdsetroundf, libc_feholdsetroundl): New.
4829         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
4830         (libc_feresetround_noex): New.
4831         (libc_feresetround_noexf): New.
4832         (libc_feresetround_noexl): New.
4833         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
4834         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
4835         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
4836         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
4837         SET_RESTORE_ROUND.
4838         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4839         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
4840         (__cos): Likewise.
4841         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
4842         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
4843         SET_RESTORE_ROUND_NOEX.
4844         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
4845         SET_RESTORE_ROUND_NOEXF.
4846         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
4847         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
4848         (libc_feholdsetroundf): New.
4849         (libc_feresetround, libc_feresetroundf): New.
4850
4851         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
4852         (libc_feholdexcept_setround_53bit): Convert from macro to function.
4853         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
4854
4855         * sysdeps/generic/math_private.h: Include <fenv.h>.
4856         (default_libc_feholdexcept): New.
4857         (default_libc_feholdexcept_setround): New.
4858         (default_libc_fesetenv, default_libc_feupdateenv): New.
4859         (libc_feholdexcept): Only define if undefined.
4860         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
4861         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
4862         (libc_feholdexcept_setroundl): Likewise.
4863         (libc_feholdexcept_setround_53bit): Likewise.
4864         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
4865         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
4866         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
4867         (libc_feupdateenv_53bit): Likewise.
4868         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
4869         (libc_feholdexcept): Convert from macro to inline function.
4870         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
4871         (libc_fesetenv, libc_feupdateenv): Likewise.
4872
4873         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
4874         not previously defined.
4875         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
4876         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
4877         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
4878         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
4879         * sysdeps/ieee754/flt-32/math_private.h: New file.
4880         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
4881         math_private.h below SET_FLOAT_WORD.
4882         (__isnan, __isinf_ns, __finite): Remove.
4883         (__isnanf, __isinf_nsf, __finitef): Remove.
4884
4885 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
4886
4887         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4888
4889 2012-03-17  David S. Miller  <davem@davemloft.net>
4890
4891         [BZ #6471]
4892         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
4893         for 2.16.
4894
4895 2012-03-16  David S. Miller  <davem@davemloft.net>
4896
4897         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
4898         warnings.
4899
4900         [BZ #6471]
4901         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
4902         properly.
4903         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
4904         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
4905         sysdep_routines when subdir is sysvipc.
4906         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
4907         __getshmlba helper.
4908
4909         * sysdeps/sparc/fpu/libm-test/ulps: Update.
4910
4911 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4912
4913         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
4914         [__LP64__].
4915
4916 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4917
4918         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
4919         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
4920         (__lround): Renamed to ...
4921         (__llround): This.  Replace long int with long long int.
4922         Define lround functions as aliases of llround functions.
4923         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
4924
4925 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4926
4927         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4928         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
4929         adresses to uintptr_t.  Replace "long int" and "unsigned long
4930         int" with "greg_t" on va_arg.
4931
4932 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4933
4934         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
4935         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
4936
4937         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
4938         Move e_machine check before EI_CLASS check.  Handle x32
4939         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
4940         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
4941         SKIP_EM_IA_64 and include
4942         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
4943
4944         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
4945         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
4946         (add_system_dir): New macro.
4947
4948         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
4949         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
4950
4951 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4952
4953         [BZ #2551]
4954         [BZ #2552]
4955         [BZ #2553]
4956         [BZ #2554]
4957         [BZ #2562]
4958         [BZ #2563]
4959         [BZ #2565]
4960         [BZ #2566]
4961         [BZ #2576]
4962         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
4963         (y0): Likewise.
4964         * math/w_j0f.c (j0f): Likewise.
4965         (y0f): Likewise.
4966         * math/w_j0l.c (__j0l): Likewise.
4967         (__y0l): Likewise.
4968         * math/w_j1.c (j1): Likewise.
4969         (y1): Likewise.
4970         * math/w_j1f.c (j1f): Likewise.
4971         (y1f): Likewise.
4972         * math/w_j1l.c (__j1l): Likewise.
4973         (__y1l): Likewise.
4974         * math/w_jn.c (jn): Likewise.
4975         (yn): Likewise.
4976         * math/w_jnf.c (jnf): Likewise.
4977         (ynf): Likewise.
4978         * math/w_jnl.c (__jnl): Likewise.
4979         (__ynl): Likewise.
4980         * math/libm-test.inc (j0_test): Add more tests.
4981         (j1_test): Likewise.
4982         (jn_test): Likewise.  Add trailing semicolon to existing test.
4983         (y0_test): Likewise.
4984         (y1_test): Likewise.
4985         * sysdeps/i386/fpu/libm-test-ulps: Update.
4986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4987
4988         [BZ #13851]
4989         [BZ #13854]
4990         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
4991         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
4992         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
4993         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
4994         (__tanl): Set errno for infinite argument.
4995         * sysdeps/i386/fpu/mptan.c: Remove.
4996         * sysdeps/i386/fpu/s_tan.S: Likewise.
4997         * sysdeps/i386/fpu/s_tanl.S: Likewise.
4998         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
4999         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
5000         * math/libm-test.inc (tan_test): Add more tests and enable more
5001         tests for double and long double.
5002         * sysdeps/i386/fpu/libm-test-ulps: Update.
5003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5004
5005 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5006
5007         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
5008         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
5009
5010 2012-03-16  Roland McGrath  <roland@hack.frob.com>
5011
5012         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
5013         * configure.in: Use it for both main tree and add-ons.
5014         * configure: Regenerated.
5015
5016 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5017
5018         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
5019
5020 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
5021
5022         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
5023         in comment.
5024
5025         [BZ #13851]
5026         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
5027         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
5028         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
5029         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
5030         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
5031         infinite argument.
5032         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
5033         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
5034         != 0 for prec == 2.
5035         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
5036         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
5037         * sysdeps/i386/fpu/s_cosl.S: Likewise.
5038         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
5039         * sysdeps/i386/fpu/s_sinl.S: Likewise.
5040         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
5041         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
5042         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
5043         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
5044         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
5045         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
5046         * math/libm-test.inc (cos_test): Add more tests and enable more
5047         tests for long double.
5048         (sin_test): Likewise.
5049         (sincos_test): Likewise.
5050         * sysdeps/i386/fpu/libm-test-ulps: Update.
5051         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5052
5053 2012-03-16  David S. Miller  <davem@davemloft.net>
5054
5055         * sysdeps/sparc/fpu/math_private.h: New file.
5056
5057 2012-03-15  David S. Miller  <davem@davemloft.net>
5058
5059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
5060         file.
5061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
5062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
5063         file.
5064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
5065         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
5066         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
5067         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
5068         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
5069         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
5070         sysdep routines.
5071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5072
5073         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
5074         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
5075
5076         * sysdeps/sparc/sparc-ifunc.h: New file.
5077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
5078         sparc-ifunc.h
5079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
5081         Likewise.
5082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
5083         Likewise.
5084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
5085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
5086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
5088         Likewise.
5089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
5090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
5091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
5092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
5093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
5094         Likewise.
5095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
5096         Likewise.
5097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
5098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
5099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
5100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
5101         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5102         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5103         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
5104         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
5105         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5106         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5107         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
5108         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
5109         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
5110         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
5111         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
5112         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
5113         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
5114         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
5115         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
5116         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
5117         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
5118         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
5119         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
5120         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
5121
5122 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5123
5124         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
5125         scaling.
5126         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5127
5128 2012-03-15  Andreas Jaeger  <aj@suse.de>
5129
5130         [BZ #13852]
5131         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
5132         ieee754/flt-32 implementation for sin, cos and sincos.
5133         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
5134         * sysdeps/i386/fpu/s_cosf.S: Likewise.
5135         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
5136         * sysdeps/i386/fpu/s_sinf.S: Likewise.
5137         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
5138         ieee754/flt-32 implementation for tan.
5139
5140         * math/libm-test.inc (cos_test): Enable some large input tests for
5141         float as well
5142         (sin_test): Likewise.
5143         (sincos_test): Likewise.
5144         (tan_test): Add tests for large input.
5145
5146         * sysdeps/i386/fpu/libm-test-ulps: Update.
5147
5148 2012-03-15  Andreas Jaeger  <aj@suse.de>
5149
5150         [BZ #13658]
5151         * math/libm-test.inc (cos_test): Add more test cases.
5152         (sin_test): Likewise.
5153         (sincos_test): Likewise.
5154
5155 2012-03-15  Andreas Jaeger  <aj@suse.de>
5156
5157         [BZ #13837]
5158         * math/libm-test.inc (cos_test): Add a test case for large input
5159         value.
5160         (sin_test): Likewise.
5161         (sincos_test): Likewise.
5162
5163 2012-03-15  Andreas Jaeger  <aj@suse.de>,
5164         Joseph Myers  <joseph@codesourcery.com>
5165
5166         [BZ #13658]
5167         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
5168         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
5169         * sysdeps/i386/fpu/branred.c: Likewise.
5170         * sysdeps/i386/fpu/dosincos.c: Likewise.
5171         * sysdeps/i386/fpu/mpa.c: Likewise.
5172         * sysdeps/i386/fpu/s_cos.S: Likewise.
5173         * sysdeps/i386/fpu/s_sin.S: Likewise.
5174         * sysdeps/i386/fpu/s_sincos.S: Likewise.
5175         * sysdeps/i386/fpu/sincos32.c: Likewise.
5176
5177         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
5178         Define.
5179         (libc_feupdateenv_53bit): Define.
5180         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
5181         Define.
5182         (libc_feupdateenv_53bit): Define.
5183
5184         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
5185         53 bit (without extend i386 double precision).
5186
5187         * math/libm-test.inc (sincos_test): Add tests for large input.
5188         (sin): Likewise.
5189         (cos): Likewise.
5190
5191         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
5192
5193 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5194
5195         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5196
5197 2012-03-15  David S. Miller  <davem@davemloft.net>
5198
5199         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
5200         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
5201         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
5202         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
5203         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
5204         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
5205         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
5206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
5207         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
5208         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
5209         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
5210         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
5211         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
5212         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
5213         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
5214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
5215         file.
5216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
5217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
5218         file.
5219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
5220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
5221         file.
5222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
5223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
5224         file.
5225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
5226         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
5227         fmin/fmax sysdep routines.
5228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5229
5230 2012-03-14  David S. Miller  <davem@davemloft.net>
5231
5232         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
5233         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
5234         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
5235         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
5236         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
5237         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
5238         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
5239         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
5240         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
5241         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
5242         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
5243         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
5244         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
5245         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
5246         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
5247         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
5248         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
5249         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
5250         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
5251         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
5252         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
5253         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
5254         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
5255         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
5256         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
5257         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
5258         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
5259         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
5260         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
5261         routines.
5262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
5263         file.
5264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
5265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
5266         file.
5267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
5268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
5269         file.
5270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
5271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
5272         file.
5273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
5274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
5275         file.
5276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
5277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
5278         file.
5279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
5280         file.
5281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
5282         file.
5283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
5284         file.
5285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
5286         New file.
5287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
5288         file.
5289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
5290         file.
5291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
5292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
5293         file.
5294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
5295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
5296         file.
5297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
5298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
5299         file.
5300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
5301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
5302         VIS3 routines.
5303
5304         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5305         New file.
5306
5307         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5308
5309         * sysdeps/sparc/configure.in: New file.
5310         * sysdeps/sparc/configure: Generate.
5311         * configure.in (libc_cv_sparc_as_vis3): Substitute.
5312         * configure: Regenerate.
5313         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
5314         * config.make.in (have-as-vis3): New.
5315         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
5316         available use -Av9d instead of -Av9a.
5317         * sysdeps/sparc/sparc64/Makefile: Likewise.
5318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
5319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
5320         New file.
5321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
5322         file.
5323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
5324         New file.
5325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
5326         file.
5327         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
5328         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
5329         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
5330         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
5331         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
5332
5333         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
5334         fzeros/fnegs to load 0x80000000 into a float register instead of
5335         using the stack.
5336         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
5337
5338 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5339
5340         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5341         bits/syscall.h.
5342         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
5343         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
5344         ($(inst_includedir)/bits/syscall.h): Remove rule.
5345         ($(objpfx)bits/syscall.d): Include instead of
5346         $(objpfx)syscall-list.d.
5347         (generated): Change syscall-list.h and syscall-list.d to
5348         bits/syscall.h and bits/syscall.d.
5349
5350 2012-03-14  Roland McGrath  <roland@hack.frob.com>
5351
5352         [BZ #13846]
5353         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
5354
5355 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5356
5357         [BZ #13841]
5358         * math/s_csqrt.c: Include <float.h>.
5359         (__csqrt): Scale large or subnormal inputs.
5360         * math/s_csqrtf.c: Likewise.
5361         * math/s_csqrtl.c: Likewise.
5362         * math/libm-test.inc (csqrt_test): Add more tests.
5363         * sysdeps/i386/fpu/libm-test-ulps: Update.
5364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5365
5366         [BZ #13840]
5367         * math/libm-test.inc (hypot_test): Add more tests.
5368
5369 2012-03-13  David S. Miller  <davem@davemloft.net>
5370
5371         [BZ #13840]
5372         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
5373         double-precision for the calculation instead of scaling.
5374
5375 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
5376
5377         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
5378         manipulate bits before adding and subtracting TWO52[sx].
5379         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
5380         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5381         Likewise.
5382         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
5383
5384 2012-03-13  David S. Miller  <davem@davemloft.net>
5385
5386         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
5387         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
5388         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
5389         rtld-global-offsets.h
5390         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5391
5392         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
5393         large parameters.
5394
5395         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
5396
5397         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
5398         'err' in the ifdef scope in which it is actually used.
5399
5400         * nss/nss_db/db-init.c: Include string.h
5401
5402 2012-03-12  David S. Miller  <davem@davemloft.net>
5403
5404         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
5405         masking out of the most significant byte of random value used.
5406         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5407         Fix coding style in previous change.
5408
5409         * sysdeps/unix/sysv/linux/kernel-features.h
5410         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
5411         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
5412         expression.
5413         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
5414         later.
5415
5416 2012-03-11  David S. Miller  <davem@davemloft.net>
5417
5418         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
5419         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
5420         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
5421         for 'resultvar' otherwise things get truncated on 64-bit.
5422
5423         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5424         Fix masking out of the most significant byte of random value used.
5425
5426         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5427
5428 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
5429
5430         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5431
5432 2012-03-09  David S. Miller  <davem@davemloft.net>
5433
5434         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
5435         variables with appropriate CPP guards.
5436         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
5437         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
5438         on resulting framesize and the management of the outregs buffer for pltexit.
5439         Preserve floating point return values across _dl_call_pltexit call.
5440         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
5441         framesize and the management of the outregs buffer for pltexit.
5442         Preserve floating point return values across _dl_call_pltexit
5443         call.
5444         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
5445         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
5446         (print_exit): Fix format string for return register value.
5447
5448 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
5449
5450         * sunrpc/Makefile (others): Add rpcgen.
5451         ($(objpfx)rpcgen): Remove special build rule and dependency on
5452         libc.
5453         * sunrpc/rpcgen.c: New file.
5454
5455 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
5456
5457         [BZ #13673]
5458         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
5459         * stdio-common/bug-vfprintf-nargs.c: Likewise.
5460         * sysdeps/i386/crti.S: Likewise.
5461         * sysdeps/i386/crtn.S: Likewise.
5462         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
5463         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
5464         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
5465         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
5466         * sysdeps/sh/crti.S: Likewise.
5467         * sysdeps/sh/crtn.S: Likewise.
5468         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5469
5470         [BZ #13673]
5471         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
5472         with URL.
5473         * locale/programs/locfile-kw.gperf: Likewise.
5474         * locale/programs/charmap-kw.h: Regenerated.
5475         * locale/programs/locfile-kw.h: Likewise.
5476
5477         [BZ #13673]
5478         * intl/plural.y: Replace FSF snail mail address with URL.
5479         * intl/plural.c: Regenerated.
5480
5481 2012-03-09  Richard Henderson  <rth@twiddle.net>
5482
5483         * include/math_private.h: Remove file.
5484         * math/math_private.h: Move file ...
5485         * sysdeps/generic/math_private.h: ... here.
5486
5487         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
5488         * sysdeps/powerpc/fpu/math_private.h: Likewise.
5489         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5490
5491         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
5492         and <math_private.h>.
5493         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5494         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5495         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5496         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5497         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5498         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
5499         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5500         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5501         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
5502         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5503         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5504         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5505         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
5506         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5507         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
5508         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
5509         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5510         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5511         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
5512         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
5513         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5514         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
5515         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
5516         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5517         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
5518         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5519         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
5520         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5521         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5522         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5523         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
5524         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5525         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5526         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5527         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5528         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5529         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5530         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5531         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5532         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5533         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
5534         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5535         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5536         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5537         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
5538         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5539         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
5540         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
5541         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5542         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5543         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
5544         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
5545         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
5546         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5547         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
5548         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5549         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5550         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
5551         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
5552         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
5553         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5554         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
5555         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5556         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5557         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5558         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5559         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5560         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5561         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
5562         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
5563         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5564         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5565         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5566         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5567         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
5568         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5569         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
5570         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5571         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
5572         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
5573         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5574         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
5575         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5576         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5577         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5578         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
5579         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
5580         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5581         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
5582         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5583         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5584         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
5585         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5586         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
5587         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
5588         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
5589         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5590         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
5591         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
5592         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5593         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
5594         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
5595         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
5596         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
5597         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5598         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
5599         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
5600         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
5601         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5602         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5603         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5604         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5605         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
5606         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5607         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5608         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5609         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5610         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5611         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5612         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5613         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5614         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5615         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5616         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
5617         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5618         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5619         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
5620         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5621         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5622         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
5623         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
5624         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5625         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5626         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
5627         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
5628         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5629         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
5630         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5631         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
5632         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5633         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5634         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5635         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5636         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
5637         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
5638         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5639         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5640         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5641         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5642         * sysdeps/ieee754/k_standard.c: Likewise.
5643         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
5644         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5645         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5646         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5647         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5648         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5649         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5650         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5651         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5652         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5653         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5654         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5655         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5656         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5657         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5658         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5659         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5660         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5661         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5662         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5663         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5664         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5665         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5666         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5667         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5668         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5669         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5670         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5671         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5672         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5673         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5674         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5675         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5676         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5677         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5678         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5679         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5680         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
5681         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5682         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5683         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5684         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5685         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5686         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5687         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5688         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5689         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5690         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5691         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5692         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5693         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5694         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5695         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5696         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5697         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5698         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5699         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
5700         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5701         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5702         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5703         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5704         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5705         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5706         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
5707         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5708         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5709         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
5710         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
5711         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
5712         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
5713         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
5714         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5715         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
5716         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
5717         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
5718         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
5719         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
5720         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
5721         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5722         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5723         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5724         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
5725         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5726         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5727         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
5728         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5729         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5730         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
5731         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5732         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5733         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
5734         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5735         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
5736         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5737         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5738         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5739         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
5740         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
5741         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
5742         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
5743         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5744         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5745         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5746         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5747         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
5748         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5749         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5750         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
5751         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
5752         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5753         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5754         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5755         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
5756         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5757         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
5758         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5759         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
5760         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5761         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5762         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
5763         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
5764         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5765         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
5766         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
5767         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5768         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5769         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5770         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5771         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5772         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5773         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5774         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5775         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5776         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
5777         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5778         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5779         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
5780         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5781         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5782         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
5783         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
5784         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5785         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
5786         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
5787         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5788         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5789         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5790         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5791         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5792         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
5793         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5794         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5795         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5796         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5797         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
5798         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
5799         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5800         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5801         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5802         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
5803         * sysdeps/ieee754/s_lib_version.c: Likewise.
5804         * sysdeps/ieee754/s_matherr.c: Likewise.
5805         * sysdeps/ieee754/s_signgam.c: Likewise.
5806         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5807         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5808         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
5809         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
5810         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
5811         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5812         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
5813         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
5814         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5815         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
5816         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
5817         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
5818         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5819         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5820         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
5821         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5822         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5823         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5824         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5825         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5826         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5827
5828 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5829
5830         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
5831         * sunrpc/rpc_main.c: Likewise.
5832         * sunrpc/rpc_svcout.c: Likewise.
5833
5834 2012-03-09  David S. Miller  <davem@davemloft.net>
5835
5836         * include/math_private.h: New file.
5837
5838 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5839
5840         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
5841         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
5842         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
5843         from <bits/socket_type.h>.
5844         (enum __socket_type): Don't define here.
5845         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
5846         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5847         bits/socket_type.h.
5848
5849         [BZ #13566]
5850         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
5851         checking __USE_GNU.
5852
5853         * Makerules ($(inst_includedir)/%.h): New rule.
5854         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
5855         (install-others): Remove variable setting.
5856         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
5857
5858 2012-03-08  Richard Henderson  <rth@twiddle.net>
5859
5860         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
5861         from macro to inline function; merge with the
5862         !__LIBC_INTERNAL_MATH_INLINES version.
5863         (__ieee754_sqrtf): Likewise.
5864
5865         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
5866         to inline function.
5867         (__rintf, __floor, __floorf): Likewise.
5868
5869         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
5870         macro to inline function.
5871         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
5872
5873         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
5874         not <math/math_private.h>.
5875
5876 2012-03-08  David S. Miller  <davem@davemloft.net>
5877
5878         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
5879         copyright year.
5880         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5881
5882 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
5883
5884         * resolv/gai_misc.c (handle_requests): Fix struct timespec
5885         normalization.
5886         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
5887         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
5888
5889 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
5890
5891         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
5892         be defined individually, they must be defined as a block.  Define
5893         S for printing a string instead of hidint the different by using a
5894         macro for adding the 'l'.
5895         * stdio-common/tst-fphex-wide.c: Adjust.
5896
5897 2012-03-07  Marek Polacek  <polacek@redhat.com>
5898
5899         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
5900
5901 2012-03-08  Marek Polacek  <polacek@redhat.com>
5902
5903         [BZ #13806]
5904         * stdio-common/Makefile (tests): Add tst-fphex-wide.
5905         * stdio-common/tst-fphex.c: Define a few macros to make the
5906         test reusable.  Use them.
5907         * stdio-common/tst-fphex-wide.c: New file.
5908
5909 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
5910
5911         [BZ #6911]
5912         * manual/macros.texi (gnusystems): New macro.
5913         (nongnusystems): Likewise.
5914         (gnulinuxhurdsystems): Likewise.
5915         (gnuhurdsystems): Likewise..
5916         (gnulinuxsystems): Likewise.
5917         * manual/charset.texi: Use new macros or @theglibc{} to refer to
5918         variants of the GNU system, not "GNU system".
5919         * manual/conf.texi: Likewise.
5920         * manual/errno.texi: Likewise.  Update example of errno macro
5921         expansion.
5922         * manual/filesys.texi: Likewise.
5923         (getumask): Document as specific to GNU/Hurd.
5924         * manual/install.texi: Likewise.  Reword some references to
5925         GNU/Linux.
5926         * manual/intro.texi: Likewise.
5927         * manual/io.texi: Likewise.
5928         (File Name Portability): Detail which constraints are inapplicable
5929         to all GNU systems and which are only inapplicable to GNU/Hurd.
5930         * manual/job.texi: Likewise.
5931         * manual/llio.texi: Likewise.
5932         (O_NOCTTY): Document as present on GNU/Linux.
5933         * manual/maint.texi: Likewise.
5934         * manual/memory.texi: Likewise.
5935         * manual/pattern.texi: Likewise.
5936         * manual/pipe.texi: Likewise.
5937         * manual/process.texi: Likewise.
5938         * manual/resource.texi: Likewise.
5939         (RUSAGE_CHILDREN): Remove statement about specifying a particular
5940         child on GNU/Hurd.
5941         * manual/setjmp.texi: Likewise.
5942         * manual/signal.texi: Likewise.
5943         * manual/startup.texi: Likewise.
5944         * manual/stdio.texi: Likewise.
5945         * manual/terminal.texi: Likewise.
5946         (ONLCR): Document as POSIX.
5947         (OXTABS): Document availability on GNU/Linux as XTABS.
5948         (ONOEOT): Document availability separately from other bits.
5949         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
5950         * manual/time.texi: Likewise.
5951         * manual/users.texi: Likewise.
5952         * INSTALL: Regenerated.
5953         * sysdeps/gnu/errlist.c: Regenerated.
5954
5955         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
5956         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
5957         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
5958         puts.
5959         * configure: Regenerated.
5960
5961 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
5962
5963         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
5964         default includes instead of AC_HEADER_CHECK.
5965         * sysdeps/i386/configure: Regenerated.
5966
5967         [BZ #10716]
5968         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
5969         * math/s_cacoshf.c (__cacoshf): Likewise.
5970         * math/s_cacoshl.c (__cacoshl): Likewise.
5971         * math/s_casinh.c (__casinh): Set signs of result from argument.
5972         * math/s_casinhf.c (__casinhf): Likewise.
5973         * math/s_casinhl.c (__casinhl): Likewise.
5974         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
5975         (casinh_test): Add more tests.
5976         * sysdeps/i386/fpu/libm-test-ulps: Update.
5977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5978
5979 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
5980
5981         * po/zh_TW.po: Update from translation team.
5982
5983         * login/Makefile (distribute): Remove variable.
5984         * catgets/Makefile: Likewise.
5985         * mach/Makefile: Likewise.
5986         * malloc/Makefile: Likewise.
5987         * misc/Makefile: Likewise.
5988         * iconv/Makefile: Likewise.
5989         * nscd/Makefile: Likewise.
5990         * hurd/Makefile: Likewise.
5991         * manual/Makefile: Likewise.
5992         * locale/Makefile: Likewise.
5993         * intl/Makefile: Likewise.
5994         * conform/Makefile: Likewise.
5995         * nss/Makefile: Likewise.
5996         * time/Makefile: Likewise.
5997         * soft-fp/Makefile: Likewise.
5998         * dirent/Makefile: Likewise.
5999         * gmon/Makefile: Likewise.
6000         * po/Makefile: Likewise.
6001         * rt/Makefile: Likewise.
6002         * socket/Makefile: Likewise.
6003         * math/Makefile: Likewise.
6004         * signal/Makefile: Likewise.
6005         * debug/Makefile: Likewise.
6006         * elf/Makefile: Likewise.
6007         * timezone/Makefile: Likewise.
6008         * stdlib/Makefile: Likewise.
6009         * iconvdata/Makefile: Likewise.
6010         * sunrpc/Makefile: Likewise.
6011         * io/Makefile: Likewise.
6012         * argp/Makefile: Likewise.
6013         * inet/Makefile: Likewise.
6014         * hesiod/Makefile: Likewise.
6015         * grp/Makefile: Likewise.
6016         * csu/Makefile: Likewise.
6017         * wctype/Makefile: Likewise.
6018         * crypt/Makefile: Likewise.
6019         * libio/Makefile: Likewise.
6020         * string/Makefile: Likewise.
6021         * nis/Makefile: Likewise.
6022         * resolv/Makefile: Likewise.
6023         * stdio-common/Makefile: Likewise.
6024         * wcsmbs/Makefile: Likewise.
6025         * dlfcn/Makefile: Likewise.
6026         * posix/Makefile: Likewise.
6027
6028         [BZ #6959]
6029         * timezone/Makefile: Don't install timezone files, just the programs
6030         and scripts.
6031
6032 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
6033
6034         * nss/databases.def: Add missing gshadow entry.
6035
6036         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
6037
6038 2012-03-06  Marek Polacek  <polacek@redhat.com>
6039
6040         [BZ #13726]
6041         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
6042         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
6043         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
6044         * stdio-common/tst-long-dbl-fphex.c: New file.
6045
6046 2012-03-06  David S. Miller  <davem@davemloft.net>
6047
6048         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6049         (set_obp_int): New function.
6050         (get_obp_int): New function.
6051         (__get_clockfreq_via_dev_openprom): Likewise.
6052         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6053         Avoid unused variable warnings on 'val' and use builtin_expect.
6054         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
6055         __builtin_expect.
6056         (INLINE_CLONE_SYSCALL): Likewise.
6057
6058 2012-03-05  David S. Miller  <davem@davemloft.net>
6059
6060         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6061
6062 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
6063
6064         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6065
6066         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
6067         only for |x| >= 40.
6068         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6069
6070 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6071
6072         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
6073         Replace gettimeofday with __vdso_gettimeofday.
6074
6075         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6076         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
6077         __vdso_clock_gettime and __vdso_getcpu.
6078
6079         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
6080         time with __vdso_time.
6081
6082 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
6083
6084         * manual/lang.texi (size_t): Note types to which size_t may be
6085         equivalent with the GNU C Library, but do not describe when
6086         differences between them are significant.
6087
6088 2012-03-05  Andreas Jaeger  <aj@suse.de>
6089
6090         * sysdeps/i386/fpu/libm-test-ulps: Update.
6091
6092 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
6093
6094         [BZ #3976]
6095         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
6096         (__ieee754_pow): Save and restore rounding mode and use
6097         round-to-nearest for main computations.
6098         * math/libm-test.inc (pow_test_tonearest): New function.
6099         (pow_test_towardzero): Likewise.
6100         (pow_test_downward): Likewise.
6101         (pow_test_upward): Likewise.
6102         (main): Call the new functions.
6103         * sysdeps/i386/fpu/libm-test-ulps: Update.
6104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6105
6106         [BZ #3976]
6107         * math/libm-test.inc (cosh_test_tonearest): New function.
6108         (cosh_test_towardzero): Likewise.
6109         (cosh_test_downward): Likewise.
6110         (cosh_test_upward): Likewise.
6111         (sinh_test_tonearest): Likewise.
6112         (sinh_test_towardzero): Likewise.
6113         (sinh_test_downward): Likewise.
6114         (sinh_test_upward): Likewise.
6115         (main): Call the new functions.
6116         * sysdeps/i386/fpu/libm-test-ulps: Update.
6117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6118
6119 2012-03-05  Tom de Vries  <tom@codesourcery.com>
6120
6121         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
6122         default stack guard is set in last bytes.
6123         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
6124
6125 2012-03-05  Kees Cook  <keescook@chromium.org>
6126
6127         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
6128
6129         [BZ #13656]
6130         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
6131         possibly allocate from heap instead of stack.
6132         * stdio-common/bug-vfprintf-nargs.c: New file.
6133         * stdio-common/Makefile (tests): Add nargs overflow test.
6134
6135 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
6136
6137         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6138
6139 2012-03-03  Marek Polacek  <polacek@redhat.com>
6140
6141         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
6142         * math/math_private.h: Likewise.
6143         * stdlib/tst-strtod.c: Likewise.
6144         * sysdeps/i386/i486/bits/atomic.h: Likewise.
6145         * sysdeps/x86_64/bits/atomic.h: Likewise.
6146
6147 2012-03-02  David S. Miller  <davem@davemloft.net>
6148
6149         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
6150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
6151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
6152         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
6153         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
6154         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
6155         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
6156         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
6157
6158 2012-03-02  Roland McGrath  <roland@hack.frob.com>
6159
6160         [BZ #13792]
6161         * manual/examples/README: New file, says the example source files
6162         can be used under GPL>=2.
6163         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
6164         line containing just "*/".
6165         * manual/examples/add.c: Add copyright header (GPL>=2).
6166         * manual/examples/argp-ex1.c: Likewise.
6167         * manual/examples/argp-ex2.c: Likewise.
6168         * manual/examples/argp-ex3.c: Likewise.
6169         * manual/examples/argp-ex4.c: Likewise.
6170         * manual/examples/atexit.c: Likewise.
6171         * manual/examples/db.c: Likewise.
6172         * manual/examples/dir.c: Likewise.
6173         * manual/examples/dir2.c: Likewise.
6174         * manual/examples/execinfo.c: Likewise.
6175         * manual/examples/filecli.c: Likewise.
6176         * manual/examples/filesrv.c: Likewise.
6177         * manual/examples/fmtmsgexpl.c: Likewise.
6178         * manual/examples/genpass.c: Likewise.
6179         * manual/examples/inetcli.c: Likewise.
6180         * manual/examples/inetsrv.c: Likewise.
6181         * manual/examples/isockad.c: Likewise.
6182         * manual/examples/longopt.c: Likewise.
6183         * manual/examples/memopen.c: Likewise.
6184         * manual/examples/memstrm.c: Likewise.
6185         * manual/examples/mkfsock.c: Likewise.
6186         * manual/examples/mkisock.c: Likewise.
6187         * manual/examples/mygetpass.c: Likewise.
6188         * manual/examples/pipe.c: Likewise.
6189         * manual/examples/popen.c: Likewise.
6190         * manual/examples/rprintf.c: Likewise.
6191         * manual/examples/search.c: Likewise.
6192         * manual/examples/select.c: Likewise.
6193         * manual/examples/setjmp.c: Likewise.
6194         * manual/examples/sigh1.c: Likewise.
6195         * manual/examples/sigusr.c: Likewise.
6196         * manual/examples/stpcpy.c: Likewise.
6197         * manual/examples/strdupa.c: Likewise.
6198         * manual/examples/strftim.c: Likewise.
6199         * manual/examples/strncat.c: Likewise.
6200         * manual/examples/subopt.c: Likewise.
6201         * manual/examples/swapcontext.c: Likewise.
6202         * manual/examples/termios.c: Likewise.
6203         * manual/examples/testopt.c: Likewise.
6204         * manual/examples/testpass.c: Likewise.
6205         * manual/examples/timeval_subtract.c: Likewise.
6206
6207         [BZ #13792]
6208         * manual/time.texi (Elapsed Time): Move timeval_subtract example
6209         function to ...
6210         * manual/timeval_subtract.c.texi: ... here, new file.
6211
6212 2012-03-02  David S. Miller  <davem@davemloft.net>
6213
6214         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
6215
6216 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
6217
6218         [BZ #3976]
6219         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
6220         (__sin): Save and restore rounding mode and use round-to-nearest
6221         for all computations.
6222         (__cos): Save and restore rounding mode and use round-to-nearest
6223         for all computations.
6224         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
6225         <fenv.h>.
6226         (tan): Save and restore rounding mode and use round-to-nearest for
6227         all computations.
6228         * math/libm-test.inc (cos_test_tonearest): New function.
6229         (cos_test_towardzero): Likewise.
6230         (cos_test_downward): Likewise.
6231         (cos_test_upward): Likewise.
6232         (sin_test_tonearest): Likewise.
6233         (sin_test_towardzero): Likewise.
6234         (sin_test_downward): Likewise.
6235         (sin_test_upward): Likewise.
6236         (tan_test_tonearest): Likewise.
6237         (tan_test_towardzero): Likewise.
6238         (tan_test_downward): Likewise.
6239         (tan_test_upward): Likewise.
6240         (main): Call the new functions.
6241         * sysdeps/i386/fpu/libm-test-ulps: Update.
6242         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6243
6244         [BZ #10135]
6245         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
6246         small n, then large n, before computing and testing k+n.
6247         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6248         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6249         Likewise.
6250         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6251         Likewise.
6252         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
6253         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6254         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6255         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6256         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6257         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6258         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6259         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
6260         * math/libm-test.inc (scalbn_test): Add more tests.
6261         (scalbln_test): Likewise.
6262
6263         * manual/filesys.texi (mode_t): Describe constraints on size and
6264         signedness, not exact equivalence to a particular type.
6265         (ino_t): Likewise.
6266         (ino64_t): Likewise.
6267         (dev_t): Likewise.
6268         (nlink_t): Likewise.
6269         (blkcnt_t): Likewise.
6270         (blkcnt64_t): Likewise.
6271         * manual/llio.texi (off_t): Likewise.
6272
6273         [BZ #3976]
6274         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
6275         (__ieee754_exp): Save and restore rounding mode and use
6276         round-to-nearest for all computations.
6277         * math/libm-test.inc (exp_test_tonearest): New function.
6278         (exp_test_towardzero): Likewise.
6279         (exp_test_downward): Likewise.
6280         (exp_test_upward): Likewise.
6281         (main): Call the new functions.
6282         * sysdeps/i386/fpu/libm-test-ulps: Update.
6283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6284
6285 2012-03-01  Chris Demetriou  <cgd@google.com>
6286
6287         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
6288         have predictable order.
6289
6290 2012-03-01  David S. Miller  <davem@davemloft.net>
6291
6292         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
6293
6294         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
6295         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
6296         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
6297         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
6298
6299         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
6300         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
6301         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
6302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
6303         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
6304         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
6305         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
6306         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
6307         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
6308
6309         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6310
6311         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
6312         * sysdeps/sparc/fpu/libm-test-ulps: to here.
6313         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
6314
6315         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
6316         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6317         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6318         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
6319         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
6320         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
6321         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
6322         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6323         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6324         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
6325         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
6326         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6327         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6328         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6329         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6330         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6331         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
6332         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
6333         * sysdeps/sparc/elf/configure: Regenerated.
6334
6335 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
6336
6337         * configure.in (AS, LD): Require binutils 2.20 or later.
6338         * configure: Regenerated.
6339         * manual/install.texi (Tools for Compilation): Give binutils 2.20
6340         as required minimum version.
6341         * INSTALL: Regenerated.
6342
6343         [BZ #2541]
6344         [BZ #4108]
6345         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
6346         before squaring exponent.
6347         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
6348         bottom long double and 27 bits of top long double before squaring
6349         exponent.
6350         * math/libm-test.inc (erfc_test): Add more tests.
6351         * sysdeps/i386/fpu/libm-test-ulps: Update.
6352         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6354
6355 2012-03-01  Kai Tietz  <ktietz@redhat.com>
6356
6357         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
6358         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
6359         containing bit-fields.
6360         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6361         * soft-fp/single.h (_FP_UNION_S): Likewise.
6362         * soft-fp/double.h (_FP_UNION_D): Likewise.
6363
6364 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6365
6366         [BZ #13786]
6367         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
6368         not include ../strcmp.S.
6369         [USE_AS_STRNCASECMP_L]: Likewise.
6370         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
6371         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
6372         * sysdeps/i386/i686/multiarch/strncase_l-c.c
6373         (__strncasecmp_l_ia32): Define as alias to
6374         __strncasecmp_l_nonascii.
6375
6376         [BZ #5794]
6377         * math/libm-test.inc (expm1_test): Add test for bug 5794.
6378         * sysdeps/i386/fpu/libm-test-ulps: Update.
6379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6380
6381         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
6382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6383
6384 2012-02-29  Jeff Law  <law@redhat.com>
6385
6386         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
6387         out of bounds read.
6388
6389 2012-02-29  Marek Polacek  <polacek@redhat.com>
6390
6391         [BZ #13706]
6392         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
6393         * elf/Makefile: Add rules to run tst-unused-dep.out.
6394
6395 2012-02-28  David S. Miller  <davem@davemloft.net>
6396
6397         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
6398         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
6399         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
6400         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
6401         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
6402         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
6403
6404 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6405
6406         * math/libm-test.inc (llround_test): Move one test from
6407         lround_test.  Use TEST_f_L in moved test.
6408         (lround_test): Move misplaced test to llround_test.  Add testcase
6409         from bug 2561.
6410
6411 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
6412
6413         * sysdeps/x86_64/fpu/e_expf.S: New file.
6414         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
6415
6416 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
6417
6418         [BZ #13637]
6419         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
6420         of remain_len that may cause incomplete multi-byte character and
6421         false match.
6422         * posix/bug-regex33.c: New file.
6423         * posix/Makefile (tests): Add bug-regex33.
6424
6425 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
6426
6427         * manual/macros.texi: New file.
6428         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
6429         * manual/libc.texinfo: Include macros.texi.
6430         * manual/creatute.texi: Likewise.
6431         * manual/install.texi: Likewise.
6432         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
6433         @glibcadj{} in references to the GNU C Library.
6434         * manual/charset.texi: Likewise.
6435         * manual/conf.texi: Likewise.
6436         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
6437         when not using those macros.
6438         * manual/creature.texi: Likewise.
6439         * manual/crypt.texi: Likewise.
6440         * manual/errno.texi: Likewise.
6441         * manual/filesys.texi: Likewise.
6442         * manual/header.texi: Likewise.
6443         * manual/install.texi: Likewise.
6444         * manual/intro.texi: Likewise.
6445         * manual/io.texi: Likewise.
6446         * manual/job.texi: Likewise.
6447         * manual/lang.texi: Likewise.
6448         * manual/libc.texiinfo: Likewise.
6449         * manual/llio.texi: Likewise.
6450         * manual/locale.texi: Likewise.
6451         * manual/maint.texi: Likewise.
6452         * manual/math.texi: Likewise.
6453         * manual/memory.texi: Likewise.
6454         * manual/message.texi: Likewise.
6455         * manual/nss.texi: Likewise.
6456         * manual/pattern.texi: Likewise.
6457         * manual/process.texi: Likewise.
6458         * manual/resource.texi: Likewise.
6459         * manual/search.texi: Likewise.
6460         * manual/setjmp.texi: Likewise.
6461         * manual/signal.texi: Likewise.
6462         * manual/socket.texi: Likewise.
6463         * manual/startup.texi: Likewise.
6464         * manual/stdio.texi: Likewise.
6465         * manual/string.texi: Likewise.
6466         * manual/sysinfo.texi: Likewise.
6467         * manual/syslog.texi: Likewise.
6468         * manual/terminal.texi: Likewise.
6469         * manual/time.texi: Likewise.
6470         * manual/users.texi: Likewise.
6471         * INSTALL: Regenerated.
6472         * NOTES: Regenerated.
6473         * sysdeps/gnu/errlist.c: Regenerated.
6474
6475 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
6476
6477         * include/dirent.h: Include <dirstream.h> before
6478         <dirent/dirent.h>.
6479
6480 2012-02-28  David S. Miller  <davem@davemloft.net>
6481
6482         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
6483         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
6484         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
6485         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
6486
6487 2012-02-27  David S. Miller  <davem@davemloft.net>
6488
6489         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
6490         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
6491         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
6492         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
6493
6494         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
6495         frame pointer instead of stack pointer relative arg slot.
6496         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6497         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6498         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6499
6500 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
6501
6502         [BZ #3992]
6503         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
6504
6505 2012-02-27  David S. Miller  <davem@davemloft.net>
6506
6507         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
6508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
6511         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6512         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6513         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
6514         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
6515
6516 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6517
6518         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
6519         later.  Allow versions 5-9.
6520         * configure: Regenerated.
6521         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
6522         required minimum version and 4.6 as recommended version.  Do not
6523         mention bugs in GCC 2.7 and 2.8.
6524         * INSTALL: Regenerated.
6525
6526 2012-02-27  David S. Miller  <davem@davemloft.net>
6527
6528         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
6529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
6530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
6531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
6532         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
6533         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
6534         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
6535         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
6536
6537         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
6538         manipulate bits before adding and subtracting TWO112[sx].
6539         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6540
6541 2012-02-27  Roland McGrath  <roland@hack.frob.com>
6542
6543         [BZ #13775]
6544         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
6545         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
6546         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
6547         being in POSIX, because they are in 1003.1-2008.
6548
6549         * rt/tst-aio.c: Include <fcntl.h>.
6550         * rt/tst-aio7.c: Likewise.
6551         * rt/tst-aio64.c: Likewise.
6552
6553         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
6554
6555 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6556
6557         * manual/install.texi (--with-headers): Describe headers as
6558         interface headers, not private headers.
6559         (Specific advice for GNU/Linux systems): Describe use of headers
6560         from "make headers_install", not private headers from older
6561         kernels.
6562         * INSTALL: Regenerated.
6563         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
6564         Change to 2.6.19.
6565         * sysdeps/unix/sysv/linux/configure: Regenerated.
6566
6567         * manual/llio.texi (fclean): Remove documentation.
6568
6569         * manual/Makefile (libc-texi-generated): New variable.  Include
6570         version.texi.
6571         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
6572         $(libc-texi-generated), not duplicated list of files.
6573         (version.texi, stamp-version): New rules.
6574         (realclean): Remove $(libc-texi-generated), not individual files
6575         from that list.  Do not remove dir-add.texinfo.
6576         * manual/libc.texinfo: Comment out uses of edition numbers and
6577         references to printed manual.  Remove last-updated dates.
6578         (EDITION): Comment out.
6579         (ISBN): Likewise.
6580         (VERSION, UPDATED): Remove.
6581         (version.texi): Include.
6582
6583 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6584
6585         * sysdeps/posix/spawni.c: Include <signal.h>.
6586         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
6587         * sysdeps/pthread/aio_fsync.c: Likewise.
6588
6589 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
6590
6591         * conform/Makefile (tests): Run only when not cross-compiling and
6592         when fast-check is not defined.
6593
6594         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
6595         * conform/data/limits.h-data: Fixes for POSIX2008.
6596         * conform/run-conformtest.sh: Run all tests.
6597         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
6598         headers.
6599         * include/bits/dlfcn.h: Likewise.
6600         * include/langinfo.h: Likewise.
6601         * include/monetary.h: Likewise.
6602         * include/sys/poll.h: Likewise.
6603
6604         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
6605         for __USE_GNU.
6606         * posix/spawn.h: Define __need_sigset_t.
6607         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
6608         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
6609         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
6610         to get sigevent_t only.
6611         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
6612         only for __USE_GNU.
6613         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6614         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6615         process_vm_writev only for __USE_GNU.
6616         * termios/termios.h: Declare tcgetsid also for POSIX2008.
6617
6618         * conform/Makefile: For now ignore errors from run-conformtest.
6619         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
6620         POSIX to avoid namespace pollution.  Don't prepend headers.
6621         * conform/data/aio.h-data: Fixes for POSIX testing.
6622         * conform/data/fcntl.h-data: Likewise.
6623         * conform/data/glob.h-data: Likewise.
6624         * conform/data/grp.h-data: Likewise.
6625         * conform/data/pthread.h-data: Likewise.
6626         * conform/data/pwd.h-data: Likewise.
6627         * conform/data/signal.h-data: Likewise.
6628         * conform/data/spawn.h-data: Likewise.
6629         * conform/data/stdio.h-data: Likewise.
6630         * conform/data/stdlib.h-data: Likewise.
6631         * conform/data/stropts.h-data: Likewise.
6632         * conform/data/sys/mman.h-data: Likewise.
6633         * conform/data/sys/stat.h-data: Likewise.
6634         * conform/data/sys/types.h-data: Likewise.
6635         * conform/data/sys/wait.h-data: Likewise.
6636         * conform/data/time.h-data: Likewise.
6637         * conform/data/unistd.h-data: Likewise.
6638         * conform/data/utime.h-data: Likewise.
6639
6640         * io/sys/stat.h: fchmod was always in POSIX.
6641         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
6642         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
6643         * rt/aio.h: Define __need_timespec before including <time.h>.
6644         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
6645         struct.  Add forward declaration of pthread_attr_t and use it in
6646         sigevent.
6647         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6648         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6649         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
6650         always remove CLK_TCK definition.
6651
6652 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
6653
6654         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
6655
6656 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
6657
6658         * conform/run-conformtest.sh: New file.
6659         * conform/Makefile: Run run-conformtest for tests.
6660         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
6661         support.
6662
6663         * conform/data/uchar.h-data: New file.
6664         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
6665         * conform/data/arpa/inet.h-data: Likewise.
6666         * conform/data/assert.h-data: Likewise.
6667         * conform/data/complex.h-data: Likewise.
6668         * conform/data/cpio.h-data: Likewise.
6669         * conform/data/ctype.h-data: Likewise.
6670         * conform/data/dirent.h-data: Likewise.
6671         * conform/data/dlfcn.h-data: Likewise.
6672         * conform/data/errno.h-data: Likewise.
6673         * conform/data/fcntl.h-data: Likewise.
6674         * conform/data/float.h-data: Likewise.
6675         * conform/data/fmtmsg.h-data: Likewise.
6676         * conform/data/fnmatch.h-data: Likewise.
6677         * conform/data/ftw.h-data: Likewise.
6678         * conform/data/glob.h-data: Likewise.
6679         * conform/data/grp.h-data: Likewise.
6680         * conform/data/iconv.h-data: Likewise.
6681         * conform/data/inttypes.h-data: Likewise.
6682         * conform/data/langinfo.h-data: Likewise.
6683         * conform/data/libgen.h-data: Likewise.
6684         * conform/data/limits.h-data: Likewise.
6685         * conform/data/locale.h-data: Likewise.
6686         * conform/data/math.h-data: Likewise.
6687         * conform/data/monetary.h-data: Likewise.
6688         * conform/data/mqueue.h-data: Likewise.
6689         * conform/data/ndbm.h-data: Likewise.
6690         * conform/data/net/if.h-data: Likewise.
6691         * conform/data/netdb.h-data: Likewise.
6692         * conform/data/netinet/in.h-data: Likewise.
6693         * conform/data/nl_types.h-data: Likewise.
6694         * conform/data/poll.h-data: Likewise.
6695         * conform/data/pthread.h-data: Likewise.
6696         * conform/data/pwd.h-data: Likewise.
6697         * conform/data/regex.h-data: Likewise.
6698         * conform/data/sched.h-data: Likewise.
6699         * conform/data/search.h-data: Likewise.
6700         * conform/data/semaphore.h-data: Likewise.
6701         * conform/data/setjmp.h-data: Likewise.
6702         * conform/data/signal.h-data: Likewise.
6703         * conform/data/spawn.h-data: Likewise.
6704         * conform/data/stdarg.h-data: Likewise.
6705         * conform/data/stdio.h-data: Likewise.
6706         * conform/data/stdlib.h-data: Likewise.
6707         * conform/data/string.h-data: Likewise.
6708         * conform/data/strings.h-data: Likewise.
6709         * conform/data/stropts.h-data: Likewise.
6710         * conform/data/sys/ipc.h-data: Likewise.
6711         * conform/data/sys/mman.h-data: Likewise.
6712         * conform/data/sys/msg.h-data: Likewise.
6713         * conform/data/sys/resource.h-data: Likewise.
6714         * conform/data/sys/select.h-data: Likewise.
6715         * conform/data/sys/sem.h-data: Likewise.
6716         * conform/data/sys/shm.h-data: Likewise.
6717         * conform/data/sys/socket.h-data: Likewise.
6718         * conform/data/sys/stat.h-data: Likewise.
6719         * conform/data/sys/statvfs.h-data: Likewise.
6720         * conform/data/sys/time.h-data: Likewise.
6721         * conform/data/sys/timeb.h-data: Likewise.
6722         * conform/data/sys/times.h-data: Likewise.
6723         * conform/data/sys/types.h-data: Likewise.
6724         * conform/data/sys/uio.h-data: Likewise.
6725         * conform/data/sys/un.h-data: Likewise.
6726         * conform/data/sys/utsname.h-data: Likewise.
6727         * conform/data/sys/wait.h-data: Likewise.
6728         * conform/data/syslog.h-data: Likewise.
6729         * conform/data/tar.h-data: Likewise.
6730         * conform/data/termios.h-data: Likewise.
6731         * conform/data/utime.h-data: Likewise.
6732         * conform/data/utmpx.h-data: Likewise.
6733         * conform/data/varargs.h-data: Likewise.
6734         * conform/data/wchar.h-data: Likewise.
6735         * conform/data/wctype.h-data: Likewise.
6736         * conform/data/wordexp.h-data: Likewise.
6737
6738         * include/stropts.h: New file.
6739         * include/uchar.h: New file.
6740         * include/aio.h: Changes to allow conformtest.pl to use the headers.
6741         * include/assert.h: Likewise.
6742         * include/ctype.h: Likewise.
6743         * include/dirent.h: Likewise.
6744         * include/dlfcn.h: Likewise.
6745         * include/fcntl.h: Likewise.
6746         * include/fnmatch.h: Likewise.
6747         * include/glob.h: Likewise.
6748         * include/grp.h: Likewise.
6749         * include/libio.h: Likewise.
6750         * include/locale.h: Likewise.
6751         * include/math.h: Likewise.
6752         * include/net/if.h: Likewise.
6753         * include/netdb.h: Likewise.
6754         * include/netinet/in.h: Likewise.
6755         * include/pthread.h: Likewise.
6756         * include/pwd.h: Likewise.
6757         * include/regex.h: Likewise.
6758         * include/sched.h: Likewise.
6759         * include/search.h: Likewise.
6760         * include/setjmp.h: Likewise.
6761         * include/signal.h: Likewise.
6762         * include/stdio.h: Likewise.
6763         * include/stdlib.h: Likewise.
6764         * include/string.h: Likewise.
6765         * include/sys/cdefs.h: Likewise.
6766         * include/sys/mman.h: Likewise.
6767         * include/sys/msg.h: Likewise.
6768         * include/sys/resource.h: Likewise.
6769         * include/sys/select.h: Likewise.
6770         * include/sys/socket.h: Likewise.
6771         * include/sys/stat.h: Likewise.
6772         * include/sys/statvfs.h: Likewise.
6773         * include/sys/time.h: Likewise.
6774         * include/sys/times.h: Likewise.
6775         * include/sys/uio.h: Likewise.
6776         * include/sys/utsname.h: Likewise.
6777         * include/sys/wait.h: Likewise.
6778         * include/termios.h: Likewise.
6779         * include/time.h: Likewise.
6780         * include/ulimit.h: Likewise.
6781         * include/unistd.h: Likewise.
6782         * include/utime.h: Likewise.
6783         * include/wchar.h: Likewise.
6784         * include/wctype.h: Likewise.
6785         * include/wordexp.h: Likewise.
6786
6787         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
6788
6789         * time/time.h: TIME_UTC must be a macro.
6790         Make timespec_get available for ISO C11 only as well.
6791
6792 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
6793
6794         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
6795         Reported by Peng Haitao <penght@cn.fujitsu.com>.
6796
6797 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6798
6799         * configure.in: Use -o not -a in test for unsupported multi-arch.
6800
6801 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6802
6803         * manual/texinfo.tex: Update to version 2012-01-19.16.
6804
6805 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6806
6807         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
6808
6809 2012-02-24  Roland McGrath  <roland@hack.frob.com>
6810
6811         [BZ #13738]
6812         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
6813         * manual/fdl-1.3.texi: New file.
6814         * manual/fdl-1.1.texi: File removed.
6815
6816         [BZ #13738]
6817         * manual/libc.texinfo (FDL_VERSION): New @set.
6818         Use it for mention of FDL in cover text.
6819         (Documentation License): Use it in @include file name.
6820
6821 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6822             Roland McGrath  <roland@hack.frob.com>
6823
6824         [BZ #5461]
6825         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
6826         not LONG_LONG_MAX and LONG_LONG_MIN.
6827         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
6828         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
6829         name.
6830         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
6831
6832 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6833
6834         [BZ #2547]
6835         [BZ #11365]
6836         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
6837         manipulate bits before adding and subtracting TWO23[sx].
6838         * math/libm-test.inc (nearbyint_test): Add more tests.
6839
6840 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6841
6842         [BZ #2548]
6843         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
6844         bits before adding and subtracting TWO23[sx].
6845         * math/libm-test.inc (rint_test): Add more tests.
6846         (rint_test_tonearest): Likewise.
6847         (rint_test_towardzero): Likewise.
6848         (rint_test_downward): Likewise.
6849         (rint_test_upward: Likewise.
6850
6851 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6852
6853         [BZ #10110]
6854         * include/stdc-predef.h: New file.  Extracted from features.h.
6855         * include/features.h: Include stdc-predef.h.
6856         * Makefile (headers): Add stdc-predef.h.
6857         * CONFORMANCE (Compiler limitations): Update.
6858
6859 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6860
6861         * manual/libc.texinfo (VERSION, UPDATED): Revert.
6862
6863 2012-02-21  David S. Miller  <davem@davemloft.net>
6864
6865         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
6866         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6867
6868 2012-02-20  David S. Miller  <davem@davemloft.net>
6869
6870         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
6871         using a normal save/restore sequence, rather than allocating a
6872         dummy stack frame just to store a frame pointer and restore.
6873         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6874
6875 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6876
6877         * manual/install.texi: Fix stray word in line-wrapped comment.
6878
6879 2012-02-20  David S. Miller  <davem@davemloft.net>
6880
6881         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
6882         both binutils and gcc support GOTDATA.
6883
6884         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
6885         "rd %pc" in the PIC register setup sequences.
6886
6887         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
6888         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
6889         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6890         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6891         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6892         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6893         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6894         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6895         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6896         (SYSCALL_ERROR_HANDLER): Likewise.
6897         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6898         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6899         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6900         (SYSCALL_ERROR_HANDLER): Likewise.
6901
6902         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
6903         (HAVE_GCC_GOTDATA): New.
6904         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
6905         relocation support in both binutils and gcc.
6906         * sysdeps/sparc/elf/configure: Regenerate.
6907
6908         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
6909         * sysdeps/sparc/sparc32/elf/configure: Delete.
6910         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
6911         * sysdeps/sparc/sparc64/elf/configure: Delete.
6912         * sysdeps/sparc/elf/configure.in: New file.
6913         * sysdeps/sparc/elf/configure: Generate.
6914
6915         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
6916         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
6917         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6918         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
6919         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
6920
6921 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6922
6923         * manual/install.texi: Do not mention specific glibc version
6924         numbers.
6925         * manual/libc.texinfo (VERSION, UPDATED): Update.
6926         (@copying): Use @copyright{} and range of years.
6927
6928 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6929
6930         [BZ #13695]
6931         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
6932         [crti.S not in sysdirs] (generated): Do not append.
6933         [crti.S not in sysdirs] (omit-deps): Likewise.
6934         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
6935         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
6936         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
6937         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
6938         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
6939         Likewise.
6940         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
6941         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
6942         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
6943         * csu/defs.awk: Remove file.
6944         * sysdeps/generic/initfini.c: Likewise.
6945         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
6946         variable.
6947         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
6948         Likewise.
6949
6950 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6951
6952         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
6953         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
6954         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
6955         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
6956         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6957         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
6958         <bits/epoll.h>.
6959         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
6960         (__EPOLL_PACKED): Define to empty if not defined by
6961         <bits/epoll.h>.
6962         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
6963         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6964         bits/epoll.h.
6965
6966 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6967
6968         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
6969         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
6970         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
6971         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
6972         <bits/timerfd.h>.
6973         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
6974         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6975         bits/timerfd.h.
6976
6977 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6978
6979         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
6980         in C locale.
6981         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6982         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6983         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
6984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6985
6986 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
6987
6988         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6989         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6990
6991 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
6992
6993         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
6994         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
6995         defined.
6996         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
6997         Likewise.
6998         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
6999         entry for 2.16.
7000
7001 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
7002
7003         * math/w_acos.c: Use non-signaling floating-point comparisons.
7004         * math/w_acosf.c: Likewise.
7005         * math/w_acosh.c: Likewise.
7006         * math/w_acoshf.c: Likewise.
7007         * math/w_acoshl.c: Likewise.
7008         * math/w_acosl.c: Likewise.
7009         * math/w_asin.c: Likewise.
7010         * math/w_asinf.c: Likewise.
7011         * math/w_asinl.c: Likewise.
7012         * math/w_atanh.c: Likewise.
7013         * math/w_atanhf.c: Likewise.
7014         * math/w_atanhl.c: Likewise.
7015         * math/w_exp2.c: Likewise.
7016         * math/w_exp2f.c: Likewise.
7017         * math/w_exp2l.c: Likewise.
7018         * math/w_j0.c: Likewise.
7019         * math/w_j0f.c: Likewise.
7020         * math/w_j0l.c: Likewise.
7021         * math/w_j1.c: Likewise.
7022         * math/w_j1f.c: Likewise.
7023         * math/w_j1l.c: Likewise.
7024         * math/w_jn.c: Likewise.
7025         * math/w_jnf.c: Likewise.
7026         * math/w_log.c: Likewise.
7027         * math/w_log10.c: Likewise.
7028         * math/w_log10f.c: Likewise.
7029         * math/w_log10l.c: Likewise.
7030         * math/w_log2.c: Likewise.
7031         * math/w_log2f.c: Likewise.
7032         * math/w_log2l.c: Likewise.
7033         * math/w_logf.c: Likewise.
7034         * math/w_logl.c: Likewise.
7035         * math/w_sqrt.c: Likewise.
7036         * math/w_sqrtf.c: Likewise.
7037         * math/w_sqrtl.c: Likewise.
7038         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7039         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
7040         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7041         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
7042         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
7043
7044 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
7045
7046         [BZ #9739]
7047         * manual/string.texi (strnlen): Use correct parameter name in
7048         equivalent expression.
7049
7050 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
7051
7052         [BZ #11174]
7053         * manual/users.texi (seteuid): Consistently use neweuid for
7054         argument name.
7055
7056 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
7057
7058         [BZ #13704]
7059         * manual/nss.texi (Services in the NSS configuration): Correct
7060         list of services in example configuration file.
7061
7062 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
7063
7064         [BZ #11322]
7065         * manual/arith.texi: Remove statements about negative zero
7066         behaving identically to zero.
7067
7068 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
7069
7070         [BZ #5993]
7071         * manual/install.texi: Do not document upgrading from libc5.
7072
7073 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
7074
7075         [BZ #4596]
7076         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
7077
7078 2012-02-18  David S. Miller  <davem@davemloft.net>
7079
7080         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
7081         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
7082         %o7 across the call.
7083         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
7084         instead.
7085         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
7086         SETUP_PIC_REG_LEAF.
7087         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7088         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
7089         * sysdeps/sparc/crtn.S: Likewise.
7090
7091 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
7092
7093         * aout/Makefile: Remove.
7094
7095 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
7096
7097         [BZ #13058]
7098         * manual/examples/argp-ex1.c (main): Format definition in GNU
7099         style.
7100         * manual/examples/argp-ex2.c (main): Likewise.
7101         * manual/examples/argp-ex3.c (main): Likewise.
7102         * manual/examples/argp-ex4.c (main): Likewise.
7103         * manual/examples/longopt.c (main): Use new-style prototype
7104         definition.
7105         * manual/examples/strncat.c (main): Specify return type and use
7106         (void) for arguments.
7107         * manual/examples/subopt.c (main): Use char **argv argument.
7108
7109 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7110
7111         [BZ #5077]
7112         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
7113         rounding modes.
7114
7115 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
7116
7117         [BZ #6907]
7118         * manual/string.texi (strchr): Change when strchrnul is
7119         recommended.
7120
7121 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
7122
7123         [BZ #174]
7124         * manual/locale.texi (setlocale): Document LOCPATH.
7125
7126 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7127
7128         [BZ #10210]
7129         * manual/process.texi (execle): Move @dots{} before last argument.
7130
7131 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
7132
7133         [BZ #12047]
7134         * manual/charset.texi (Generic Charset Conversion): Fix typo
7135         (LC_TYPE -> LC_CTYPE).
7136
7137 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
7138
7139         [BZ #5805]
7140         * manual/arith.texi (scalbn): Use @var{} on parameter names.
7141         (scalbnf): Likewise.
7142         (scalbnl): Likewise.
7143         (scalbln): Likewise.
7144         (scalblnf): Likewise.
7145         (scalblnl): Likewise.
7146         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
7147         (vwarnx): Likewise.
7148         (verr): Likewise.
7149         (verrx): Likewise.
7150         * manual/filesys.texi (telldir): Use braces around return type.
7151         * manual/llio.texi (mmap): Add space after comma.
7152         (mmap64): Likewise.
7153         * manual/math.texi (jn): Use @var{} on parameter names.
7154         (jnf): Likewise.
7155         (jnl): Likewise.
7156         (yn): Likewise.
7157         (ynf): Likewise.
7158         (ynl): Likewise.
7159         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
7160         line.
7161         * manual/resource.texi (ulimit): Use @dots{} instead of literal
7162         "...".
7163         (sched_get_priority_min): Remove semicolon on @deftypefun line.
7164         (sched_get_priority_max): Likewise.
7165         * manual/signal.texi (sigvec): Add space after comma.
7166         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
7167         names.
7168         (if_indextoname): Likewise.
7169         (if_freenameindex): Likewise.
7170         (sendto): Use ',' instead of '.' in prototype.
7171         * manual/startup.texi (syscall): Use @dots{} instead of literal
7172         "...".
7173         * manual/stdio.texi (__fpending): Separate initial words of
7174         paragraph from @deftypefun line.
7175         * manual/syslog.texi (syslog): Use @dots{} instead of literal
7176         "...".
7177         (vsyslog): Use @var{} on parameter names.
7178         * manual/terminal.texi (stty): Use @var{} on parameter names.
7179         * manual/users.texi (getutmp): Use @var{} on parameter names.
7180         (getutmpx): Likewise.
7181
7182 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7183
7184         [BZ #6884]
7185         * manual/stdio.texi (fopen): Fix typos in description of
7186         ",ccs=STRING".
7187
7188 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
7189
7190         [BZ #4026]
7191         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
7192         get clock_id definition.
7193
7194 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
7195
7196         [BZ #4822]
7197         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
7198         (madvise): Cast every argument to void on its own.
7199
7200 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7201
7202         [BZ #9902]
7203         * manual/startup.texi (Exit Status): Fix typo.
7204
7205 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7206
7207         [BZ #10140]
7208         * manual/examples/argp-ex1.c: Include <stdlib.h>.
7209         * manual/examples/argp-ex2.c: Likewise.
7210         * manual/examples/argp-ex3.c: Likewise.
7211
7212 2012-02-16  Richard Henderson  <rth@redhat.com>
7213
7214         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
7215         * sysdeps/s390/s390-32/initfini.c: Remove.
7216         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
7217         * sysdeps/s390/s390-64/initfini.c: Remove.
7218
7219 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7220
7221         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
7222         compiler output for sysdeps/generic/initfini.c.
7223         * sysdeps/sh/elf/initfini.c: Remove file.
7224
7225 2012-02-16  David S. Miller  <davem@davemloft.net>
7226
7227         [BZ #11494]
7228         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
7229
7230         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
7231         * sysdeps/sparc/crti.S: New file.
7232         * sysdeps/sparc/crtn.S: New file.
7233         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
7234         * sysdeps/sparc/sparc64/Makefile: Likewise.
7235
7236 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
7237
7238         [BZ #3335]
7239         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
7240
7241 2012-02-15  Roland McGrath  <roland@hack.frob.com>
7242
7243         [BZ #4822]
7244         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
7245
7246         * mach/devstream.c (cookie_io_functions_t): Macro removed.
7247         (write, read, close): Likewise.
7248         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7249
7250 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
7251
7252         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
7253         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
7254         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
7255         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
7256         <bits/signalfd.h>.
7257         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
7258         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7259         bits/signalfd.h.
7260
7261 2012-02-14  Marek Polacek  <polacek@redhat.com>
7262
7263         * sysdeps/x86_64/crti.S: New file.
7264         * sysdeps/x86_64/crtn.S: New file.
7265         * sysdeps/x86_64/elf/initfini.c: Remove file.
7266
7267 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7268
7269         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
7270         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
7271         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
7272         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
7273         <bits/inotify.h>.
7274         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
7275         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7276         bits/inotify.h.
7277
7278 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7279
7280         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
7281         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
7282         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
7283         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
7284         <bits/eventfd.h>.
7285         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
7286         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7287         bits/eventfd.h.
7288
7289 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
7290
7291         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
7292         __feraiseexcept instead of feraiseexcept.
7293
7294         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
7295         nanosleep invocations.
7296         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
7297         strings, and add error checking for a nanosleep invocations.
7298
7299 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7300
7301         Replace FSF snail mail address with URLs, as per GNU coding standards.
7302         Most of the snail mail addresses were wrong anyway, and omitting
7303         them makes the source code easier to maintain.  Almost all of the
7304         changes are to license notices and to locale LC_IDENTIFICATION
7305         addresses, except for this one:
7306         * manual/libc.texinfo: In "Published by", give the FSF's URL,
7307         not its snail mail address.
7308
7309 2012-02-09  Richard Henderson  <rth@twiddle.net>
7310
7311         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
7312         of kernel-features.h.
7313
7314         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
7315
7316 2012-02-08  Marek Polacek  <polacek@redhat.com>
7317
7318         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
7319         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
7320         * sysdeps/gnu/_G_config.h: Likewise.
7321         * sysdeps/generic/_G_config.h: Likewise.
7322
7323 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
7324
7325         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
7326         tests.
7327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7328
7329         * sysdeps/powerpc/powerpc32/crti.S: New file.
7330         * sysdeps/powerpc/powerpc32/crtn.S: New file.
7331         * sysdeps/powerpc/powerpc64/crti.S: New file.
7332         * sysdeps/powerpc/powerpc64/crtn.S: New file.
7333
7334         * Makeconfig (have-initfini): Don't set.
7335         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
7336         * configure.in (nopic_initfini): Don't substitute.
7337         * config.h.in (HAVE_INITFINI): Don't #undef.
7338         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
7339         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
7340
7341 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
7342
7343         Support crti.S and crtn.S provided directly by architectures.
7344         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
7345         [crti.S in sysdirs] (omit-deps): Likewise.
7346         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
7347         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
7348         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
7349         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
7350         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
7351         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
7352         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
7353         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
7354         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
7355         compiler output for sysdeps/generic/initfini.c.
7356         * sysdeps/i386/elf/Makefile: Remove file.
7357         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
7358
7359 2012-02-07  Marek Polacek  <polacek@redhat.com>
7360
7361         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
7362         * sysdeps/gnu/_G_config.h: Likewise.
7363         * sysdeps/mach/hurd/_G_config.h: Likewise.
7364
7365 2012-02-07  Marek Polacek  <polacek@redhat.com>
7366
7367         * math/Makefile (tests): Add tst-CMPLX2.
7368         * math/tst-CMPLX2.c: New file.
7369
7370 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
7371
7372         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7373
7374         * math/libm-test.inc (jn_test): Add missing L suffix.
7375
7376 2012-02-06  Marek Polacek  <polacek@redhat.com>
7377
7378         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
7379         * sysdeps/i386/fpu/e_powf.S: Likewise.
7380         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7381         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7382         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7383         * sysdeps/i386/fpu/e_pow.S: Likewise.
7384         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
7385         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7386         * sysdeps/i386/fpu/s_expm1.S: Likewise.
7387         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
7388         * sysdeps/i386/fpu/e_log2.S: Likewise.
7389         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7390         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7391         * sysdeps/i386/fpu/e_powl.S: Likewise.
7392         * sysdeps/i386/fpu/s_log1p.S: Likewise.
7393         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7394         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
7395         * sysdeps/i386/fpu/e_logl.S: Likewise.
7396         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
7397         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
7398         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
7399         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
7400         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7401         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7402         * sysdeps/i386/fpu/e_log.S: Likewise.
7403         * sysdeps/i386/fpu/s_cexp.S: Likewise.
7404         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7405         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
7406         * sysdeps/i386/fpu/e_logf.S: Likewise.
7407         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7408         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7409         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
7410         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
7411         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7412         * sysdeps/i386/fpu/e_log10.S: Likewise.
7413         * sysdeps/i386/fpu/s_frexp.S: Likewise.
7414         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7415         * sysdeps/i386/fpu/s_asinh.S: Likewise.
7416         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
7417         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7418         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
7419         * sysdeps/i386/asm-syntax.h: Likewise.
7420         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7421         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7422         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7423         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
7424         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
7425         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7426         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
7427         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
7428         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7429         * sysdeps/powerpc/sysdep.h: Likewise.
7430         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7431         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7432
7433 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7434
7435         [BZ #411]
7436         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
7437
7438 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7439
7440         * sysdeps/i386/sysdep.h: Include <features.h>.
7441         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
7442         version.
7443
7444 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
7445
7446         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
7447         Define.
7448         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
7449         LOAD_PIC_REG_STR.
7450
7451 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7452
7453         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
7454         (SETUP_PIC_REG): Use GET_PC_THUNK.
7455         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
7456         macro.
7457
7458 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7459
7460         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
7461         for non-PIC compilation.
7462         (SETUP_PIC_REG): Add .p2align directive.
7463         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
7464         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
7465         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7466         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7467         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
7468         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7469         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
7470         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
7471         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7472         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7473         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7474         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7475         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7476         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7477         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7478         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7479         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7480         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7481         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7482         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7483         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7484         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7485         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7486         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7487         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
7488         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
7489         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7490         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7491         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7492         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7493         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7494         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7495         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7496         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7497         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7498         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7499         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7500         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7501         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7502         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7503         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7504
7505 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7506
7507         * math/tst-CMPLX.c: Include <stdio.h>.
7508
7509 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
7510
7511         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
7512         float.
7513         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7514         * sysdeps/sparc/bits/mathdef.h: Likewise.
7515
7516 2012-01-31  Marek Polacek  <polacek@redhat.com>
7517
7518         * libio/libio.h: Don't define _PARAMS.
7519         * locale/programs/config.h: Don't define PARAMS.
7520         * stdlib/strtol_l.c: Likewise.
7521         (__strtol_l): Remove PARAMS from the prototype.
7522
7523 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
7524
7525         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
7526         names.  Just use the correct names.  Remove unnecessary wrapper
7527         functions.
7528         * malloc/arena.c: Likewise.
7529         * malloc/hooks.c: Likewise.
7530
7531         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
7532         ARENA_TEST says not to.  Simplify test for creation of a new arena.
7533         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
7534
7535 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
7536
7537         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
7538         into tail calls.
7539         (update_get_addr): New function.
7540         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
7541         GET_ADDR_MODULE parameter.
7542
7543 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7544
7545         * crypt/cert.c: Remove __STDC__ conditionals.
7546         * crypt/crypt-entry.c: Likewise.
7547         * crypt/crypt_util.c: Likewise.
7548         * libio/filedoalloc.c: Likewise.
7549         * libio/fileops.c: Likewise.
7550         * libio/genops.c: Likewise.
7551         * libio/iofclose.c: Likewise.
7552         * libio/iofdopen.c: Likewise.
7553         * libio/iofopen.c: Likewise.
7554         * libio/iofopen64.c: Likewise.
7555         * libio/iogetdelim.c: Likewise.
7556         * libio/iopopen.c: Likewise.
7557         * libio/obprintf.c: Likewise.
7558         * libio/oldfileops.c: Likewise.
7559         * libio/oldiofclose.c: Likewise.
7560         * libio/oldiofdopen.c: Likewise.
7561         * libio/oldiofopen.c: Likewise.
7562         * libio/oldiopopen.c: Likewise.
7563         * libio/wfiledoalloc.c: Likewise.
7564         * libio/wgenops.c: Likewise.
7565         * locale/programs/xmalloc.c: Likewise.
7566         * misc/syslog.c: Likewise.
7567         * stdio-common/xbug.c: Likewise.
7568         * string/memchr.c: Likewise.
7569         * string/memcmp.c: Likewise.
7570         * string/memrchr.c: Likewise.
7571         * string/rawmemchr.c: Likewise.
7572         * sysdeps/posix/getcwd.c: Likewise.
7573         * time/strftime_l.c: Likewise.
7574
7575 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7576
7577         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
7578         * config.make.in (config-cflags-sse2avx): Define.
7579         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
7580         Fix typo.
7581
7582 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
7583
7584         * scripts/config.guess: Update from upstream config git repository.
7585         * scripts/config.sub: Likewise.
7586
7587 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
7588
7589         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
7590         (EM_NUM): Update.
7591         (R_TILEPRO_*, R_TILEGX_*): New macros.
7592
7593         * scripts/firstversions.awk: Fix bug in version range handling.
7594
7595         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
7596
7597         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
7598
7599         * include/sys/epoll.h: New file.
7600         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
7601         libc_hidden_def.
7602
7603 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
7604
7605         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
7606         Avoid unnecessary __WORDSIZE == 64 test.
7607         (fmaxf): Use VEX format if possible.
7608         (fmax): Likewise.
7609         (fminf): Likewise.
7610         (fmin): Likewise.
7611
7612         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
7613         * math/math_private.h: Remove libc_fegetround* and
7614         libc_fesetround*.
7615         * sysdeps/i386/configure.in: Check for -msse2avx.
7616         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
7617         also if SSE2AVX is defined.
7618         Remove libc_fegetround* and libc_fesetround*.
7619         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
7620         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
7621         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
7622         of HAS_YMM_USABLE.
7623         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7624         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7625         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7626         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7627         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7628
7629         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
7630
7631 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7632
7633         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
7634         size is not set.
7635         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7636
7637 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
7638
7639         [BZ #13618]
7640         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
7641         relocation.
7642         * Makeconfig (libm): Define.
7643         * elf/Makefile: Add rules to build and run tst-relsort1.
7644         * elf/tst-relsort1.c: New file.
7645         * elf/tst-relsort1mod1.c: New file.
7646         * elf/tst-relsort1mod2.c: New file.
7647
7648 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
7649
7650         * math/s_ldexp.c: Remove __STDC__ conditionals.
7651         * math/s_ldexpf.c: Likewise.
7652         * math/s_ldexpl.c: Likewise.
7653         * math/s_nextafter.c: Likewise.
7654         * math/s_nexttowardf.c: Likewise.
7655         * math/s_significand.c: Likewise.
7656         * math/s_significandf.c: Likewise.
7657         * math/s_significandl.c: Likewise.
7658         * math/w_jnl.c: Likewise.
7659         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7660         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7661         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7662         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7663         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7664         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7665         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
7666         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7667         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7668         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7669         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7670         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7671         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7672         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7673         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7674         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7675         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7676         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7677         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7678         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7679         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7680         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7681         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7682         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7683         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7684         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7685         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7686         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7687         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7688         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7689         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7690         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7691         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7692         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7693         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7694         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7695         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7696         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7697         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7698         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7699         * sysdeps/ieee754/k_standard.c: Likewise.
7700         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7701         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7702         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7703         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7704         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7705         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7706         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7707         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7708         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7709         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7710         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7711         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7712         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7713         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7714         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7715         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7716         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7717         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7718         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7719         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7720         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7721         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7722         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7723         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7724         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7725         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7726         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7727         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7728         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7729         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7730         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7731         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7732         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7733         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7734         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7735         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7736         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7737         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7738         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7739         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7740         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7741         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7742         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7743         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7744         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7745         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
7746         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7747         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7748         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7749         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7750         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7751         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7752         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7753         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7754         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7755         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7756         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7757         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7758         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7759         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7760         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7761         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7762         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7763         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7764         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7765         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7766         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7767         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7768         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7769         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7770         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7771         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7772         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7773         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7774         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7775         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7776         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7777         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7778         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7779         * sysdeps/ieee754/s_matherr.c: Likewise.
7780         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7781         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7782         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7783         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7784
7785 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7786
7787         * crypt/md5.h: Remove __STDC__ conditionals.
7788         * libio/libioP.h: Likewise.
7789         * locale/programs/config.h: Likewise.
7790         * sysdeps/generic/sysdep.h: Likewise.
7791         * sysdeps/i386/asm-syntax.h: Likewise.
7792         * sysdeps/s390/asm-syntax.h: Likewise.
7793         * sysdeps/unix/sysdep.h: Likewise.
7794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7796
7797 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7798
7799         * libio/libio.h: Remove __STDC__ conditionals.
7800         * malloc/obstack.h: Likewise.
7801         * math/complex.h: Likewise.
7802         * math/math.h: Likewise.
7803         * sysdeps/generic/_G_config.h: Likewise.
7804         * sysdeps/gnu/_G_config.h: Likewise.
7805         * sysdeps/mach/hurd/_G_config.h: Likewise.
7806         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7807         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7808         * sysdeps/sparc/bits/mathdef.h: Likewise.
7809
7810 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
7811
7812         [BZ #13583]
7813         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
7814         Clean up HAS_* macros.
7815         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
7816         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
7817         possible.
7818         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
7819         HAS_AVX.
7820         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7821         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7822         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7823         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7824         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7825
7826 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
7827
7828         * elf/tst-unique3.cc (gets): Remove declaration.
7829         * elf/tst-unique3lib.cc (gets): Likewise.
7830         * elf/tst-unique3lib2.cc (gets): Likewise.
7831         * elf/tst-unique4.cc (gets): Likewise.
7832
7833 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
7834
7835         * include/stdio.h: Add C++ protection.  Add gets declarations and
7836         definitions.
7837         * debug/tst-chk1.c: Don't declare gets here.
7838         * stdio-common/tst-gets.c: Likewise.
7839
7840 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7841
7842         * posix/glob: Remove directory.
7843
7844 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7845
7846         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
7847
7848 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
7849
7850         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
7851         of the non-standard EPFNOSUPPORT.
7852
7853 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7854
7855         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
7856         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
7857         ANYWHERE set to 1 only on KERN_NO_SPACE error.
7858
7859 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
7860
7861         * wcsmbs/uchar.h: Test __STDC_VERSION__.
7862
7863 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
7864
7865         * nscd/aicache.c (addhstaiX): Do not cache negative results of
7866         transient errors.
7867         * nscd/grpcache.c (cache_addgr): Likewise.
7868         * nscd/hstcache.c (cache_addhst): Likewise.
7869         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7870         * nscd/pwdcache.c (cache_addpw): Likewise.
7871         * nscd/servicescache.c (cache_addserv): Likewise.
7872
7873 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
7874
7875         * malloc/malloc.c: Various cleanups.
7876         * malloc/hooks.c: Likewise.
7877
7878         * stdlib/Makefile (tests): Add bug-fmtmsg1.
7879         * stdlib/bug-fmtmsg1.c: New file.
7880
7881         * stdlib/fmtmsg.c (init): Add missing unlock.
7882         Patch by Peng Haitao <penght@cn.fujitsu.com>.
7883
7884 2012-01-12  Marek Polacek  <polacek@redhat.com>
7885
7886         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
7887         and _GNU_SOURCE.
7888
7889 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7890
7891         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
7892         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
7893         macro to ensure uniqueness of label name.
7894         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7895         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7896
7897 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
7898
7899         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
7900
7901         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
7902         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7903         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7904         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
7905
7906 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
7907
7908         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
7909
7910         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
7911         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7912         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7913
7914         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
7915
7916         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
7917         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7918         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7919         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
7920
7921         * math/bits/math-finite.h: Add ldexp support.
7922
7923 2012-01-10  Marek Polacek  <polacek@redhat.com>
7924
7925         * locale/programs/localedef.h (show_archive_content): Add noreturn
7926         attribute.
7927
7928 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
7929
7930         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
7931
7932 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7933
7934         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
7935
7936         * io/Makefile (headers): Add bits/poll2.h.
7937
7938 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
7939
7940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
7941         typo #include statement.
7942
7943 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7944
7945         * include/sys/cdefs.h: Define __attribute_alloc_size.
7946         * catgets/gencat.c: Add alloc_size attribute and apply consistently
7947         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
7948         * elf/pldd.c: Likewise.
7949         * iconv/iconv_charmap.c: Likewise.
7950         * iconv/iconvconfig.c: Likewise.
7951         * iconv/strtab.c: Likewise.
7952         * locale/programs/locale.c: Likewise.
7953         * locale/programs/localedef.h: Likewise.
7954         * locale/programs/simple-hash.c: Likewise.
7955         * nscd/nscd.h: Likewise.
7956         * nss/makedb.c: Likewise.
7957         * sysdeps/generic/ldconfig.h: Likewise.
7958         * locale/programs/localedef.c: Remove xmalloc prototype.
7959         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
7960
7961 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7962
7963         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
7964         appropriate.
7965
7966 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7967
7968         * math/Makefile (tests): Add tst-CMPLX.
7969         * math/tst-CMPLX.c: New file.
7970
7971         * math/complex.h (CMPLXL): Fix typo.
7972
7973         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
7974         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
7975         GLIBC_2.16.
7976         * debug/tst-chk1.c: Add poll and ppoll tests.
7977         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
7978         * include/sys/poll.h: Add hidden proto for ppoll.
7979         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
7980         * sysdeps/mach/hurd/ppoll.c: Likewise.
7981         * io/ppoll.c: Likewise.
7982         * debug/poll_chk.c: New file.
7983         * debug/ppoll_chk.c: New file.
7984         * include/bits/poll2.h: New file.
7985         * io/bits/poll2.h: New file.
7986
7987         [BZ #1350]
7988         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
7989
7990         * configure.in: static is always set to yes.  Remove.
7991         * config.make.in: Don't set build-static.
7992         * Makeconfig: Remove use of build-static.
7993         * dlfcn/Makefile: Likewise.
7994         * elf/Makefile: Likewise.
7995         * math/Makefile: Likewise.
7996         * misc/Makefile: Likewise.
7997         * nptl/Makefile: Likewise.
7998         * sysdeps/mach/hurd/Makefile: Likewise.
7999
8000         * configure.in: PWD_P is not used anymore.
8001         * config.make.in: Remove PWD_P entry.
8002
8003         * configure.in: Remove last remnants of RANLIB.
8004         No need to check for signed size_t anymore.
8005         Don't set libc_commonpagesize and libc_relro_required here for Alpha
8006         and IA-64.
8007         Remove __builtin_expect test because we require at least gcc 3.4.
8008         * aclocal.m4: Likewise.
8009
8010         * wcsmbs/mbrtoc16.c: Implement using towc function.
8011         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
8012         * wcsmbs/wcsmbsload.c: Likewise.
8013         * iconv/gconv_simple.c: Likewise.
8014         * iconv/gconv_int.h: Likewise.
8015         * iconv/gconv_builtin.h: Likewise.
8016         * iconv/iconv_prog.c: Remove CHAR16 handling.
8017
8018         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
8019
8020         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
8021
8022         * configure.in: Remove --with-elf and --enable-bounded options.
8023         Dont set base_machine for ia64.  More non-ELF conditions removed.
8024         Remove testing and setting of leading underscore information.
8025         * config.make.in (build-bounded): Set to no.
8026         * config.h.in: Remove NO_UNDERSCORES entry.
8027         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
8028         them.
8029         * csu/start.c: Remove !NO_UNDERSCORE code.
8030         * locale/localeinfo.h: Likewise.
8031         * sysdeps/generic/machine-gmon.h: Likewise.
8032         * sysdeps/generic/sysdep.h: Likewise.
8033         * sysdeps/i386/sysdep.h: Likewise.
8034         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8035         * sysdeps/mach/sysdep.h: Likewise.
8036         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8037         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8038         * sysdeps/sh/sysdep.h: Likewise.
8039         * sysdeps/sparc/sparc32/alloca.S: Likewise.
8040         * sysdeps/unix/i386/sysdep.S: Likewise.
8041         * sysdeps/unix/sparc/start.c: Likewise.
8042         * sysdeps/unix/sparc/sysdep.S: Likewise.
8043         * sysdeps/unix/sparc/sysdep.h: Likewise.
8044         * sysdeps/unix/start.c: Likewise.
8045         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8046         * sysdeps/x86_64/sysdep.h: Likewise.
8047
8048 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
8049
8050         [BZ #13553]
8051         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
8052         for non-gcc.
8053         * argp/argp-fmtstream.h: Use const instead __const.
8054         * argp/argp.h: Likewise.
8055         * assert/assert.h: Likewise.
8056         * bits/fenv.h: Likewise.
8057         * bits/sched.h: Likewise.
8058         * bits/sigset.h: Likewise.
8059         * bits/sigthread.h: Likewise.
8060         * catgets/nl_types.h: Likewise.
8061         * conform/data/pthread.h-data: Likewise.
8062         * crypt/crypt-private.h: Likewise.
8063         * crypt/crypt.h: Likewise.
8064         * crypt/crypt_util.c: Likewise.
8065         * ctype/ctype.h: Likewise.
8066         * debug/execinfo.h: Likewise.
8067         * debug/mbsnrtowcs_chk.c: Likewise.
8068         * debug/mbsrtowcs_chk.c: Likewise.
8069         * debug/wcsnrtombs_chk.c: Likewise.
8070         * debug/wcsrtombs_chk.c: Likewise.
8071         * debug/wcstombs_chk.c: Likewise.
8072         * dirent/dirent.h: Likewise.
8073         * dlfcn/dlfcn.h: Likewise.
8074         * elf/neededtest4.c: Likewise.
8075         * grp/grp.h: Likewise.
8076         * gshadow/gshadow.h: Likewise.
8077         * iconv/gconv.h: Likewise.
8078         * iconv/gconv_int.h: Likewise.
8079         * iconv/gconv_simple.c: Likewise.
8080         * iconv/iconv.h: Likewise.
8081         * iconv/loop.c: Likewise.
8082         * iconv/skeleton.c: Likewise.
8083         * include/aio.h: Likewise.
8084         * include/aliases.h: Likewise.
8085         * include/argz.h: Likewise.
8086         * include/arpa/inet.h: Likewise.
8087         * include/assert.h: Likewise.
8088         * include/dirent.h: Likewise.
8089         * include/dlfcn.h: Likewise.
8090         * include/execinfo.h: Likewise.
8091         * include/fcntl.h: Likewise.
8092         * include/fenv.h: Likewise.
8093         * include/glob.h: Likewise.
8094         * include/grp.h: Likewise.
8095         * include/libintl.h: Likewise.
8096         * include/mntent.h: Likewise.
8097         * include/netdb.h: Likewise.
8098         * include/pwd.h: Likewise.
8099         * include/rpc/netdb.h: Likewise.
8100         * include/sched.h: Likewise.
8101         * include/search.h: Likewise.
8102         * include/shadow.h: Likewise.
8103         * include/signal.h: Likewise.
8104         * include/stdio.h: Likewise.
8105         * include/stdlib.h: Likewise.
8106         * include/string.h: Likewise.
8107         * include/sys/socket.h: Likewise.
8108         * include/sys/stat.h: Likewise.
8109         * include/sys/statfs.h: Likewise.
8110         * include/sys/statvfs.h: Likewise.
8111         * include/sys/syslog.h: Likewise.
8112         * include/sys/time.h: Likewise.
8113         * include/sys/uio.h: Likewise.
8114         * include/time.h: Likewise.
8115         * include/unistd.h: Likewise.
8116         * include/utmp.h: Likewise.
8117         * include/wchar.h: Likewise.
8118         * include/wctype.h: Likewise.
8119         * inet/aliases.h: Likewise.
8120         * inet/arpa/inet.h: Likewise.
8121         * inet/netinet/ether.h: Likewise.
8122         * inet/netinet/in.h: Likewise.
8123         * intl/libintl.h: Likewise.
8124         * io/bits/fcntl2.h: Likewise.
8125         * io/fcntl.h: Likewise.
8126         * io/ftw.h: Likewise.
8127         * io/sys/poll.h: Likewise.
8128         * io/sys/stat.h: Likewise.
8129         * io/sys/statfs.h: Likewise.
8130         * io/sys/statvfs.h: Likewise.
8131         * io/utime.h: Likewise.
8132         * libio/bits/stdio.h: Likewise.
8133         * libio/bits/stdio2.h: Likewise.
8134         * libio/libio.h: Likewise.
8135         * libio/libioP.h: Likewise.
8136         * libio/stdio.h: Likewise.
8137         * locale/lc-ctype.c: Likewise.
8138         * locale/locale.h: Likewise.
8139         * login/utmp.h: Likewise.
8140         * malloc/arena.c: Likewise.
8141         * malloc/malloc.c: Likewise.
8142         * malloc/malloc.h: Likewise.
8143         * malloc/mcheck.c: Likewise.
8144         * malloc/mtrace.c: Likewise.
8145         * math/bits/mathcalls.h: Likewise.
8146         * math/fenv.h: Likewise.
8147         * math/math_private.h: Likewise.
8148         * misc/bits/error.h: Likewise.
8149         * misc/bits/syslog.h: Likewise.
8150         * misc/err.h: Likewise.
8151         * misc/error.h: Likewise.
8152         * misc/fstab.h: Likewise.
8153         * misc/mntent.h: Likewise.
8154         * misc/regexp.h: Likewise.
8155         * misc/search.h: Likewise.
8156         * misc/sgtty.h: Likewise.
8157         * misc/sys/mman.h: Likewise.
8158         * misc/sys/syslog.h: Likewise.
8159         * misc/sys/uio.h: Likewise.
8160         * misc/sys/xattr.h: Likewise.
8161         * misc/ttyent.h: Likewise.
8162         * nis/rpcsvc/ypclnt.h: Likewise.
8163         * nss/nss.h: Likewise.
8164         * posix/bits/unistd.h: Likewise.
8165         * posix/fnmatch.h: Likewise.
8166         * posix/glob.h: Likewise.
8167         * posix/sched.h: Likewise.
8168         * posix/spawn.h: Likewise.
8169         * posix/sys/wait.h: Likewise.
8170         * posix/unistd.h: Likewise.
8171         * posix/wordexp.h: Likewise.
8172         * pwd/pwd.h: Likewise.
8173         * resolv/netdb.h: Likewise.
8174         * resource/sys/resource.h: Likewise.
8175         * rt/aio.h: Likewise.
8176         * rt/bits/mqueue2.h: Likewise.
8177         * rt/mqueue.h: Likewise.
8178         * shadow/shadow.h: Likewise.
8179         * signal/signal.h: Likewise.
8180         * socket/send.c: Likewise.
8181         * socket/sendto.c: Likewise.
8182         * socket/sys/socket.h: Likewise.
8183         * stdio-common/printf.h: Likewise.
8184         * stdlib/bits/stdlib.h: Likewise.
8185         * stdlib/fmtmsg.h: Likewise.
8186         * stdlib/monetary.h: Likewise.
8187         * stdlib/stdlib.h: Likewise.
8188         * stdlib/ucontext.h: Likewise.
8189         * streams/stropts.h: Likewise.
8190         * string/argz.h: Likewise.
8191         * string/bits/string2.h: Likewise.
8192         * string/string.h: Likewise.
8193         * string/strings.h: Likewise.
8194         * sunrpc/rpc/auth.h: Likewise.
8195         * sunrpc/rpc/auth_des.h: Likewise.
8196         * sunrpc/rpc/clnt.h: Likewise.
8197         * sunrpc/rpc/netdb.h: Likewise.
8198         * sunrpc/rpc/pmap_clnt.h: Likewise.
8199         * sunrpc/rpc/xdr.h: Likewise.
8200         * sysdeps/generic/inttypes.h: Likewise.
8201         * sysdeps/generic/net/if.h: Likewise.
8202         * sysdeps/generic/sys/swap.h: Likewise.
8203         * sysdeps/gnu/net/if.h: Likewise.
8204         * sysdeps/gnu/utmpx.h: Likewise.
8205         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
8206         * sysdeps/i386/i486/bits/string.h: Likewise.
8207         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
8208         * sysdeps/s390/bits/string.h: Likewise.
8209         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
8210         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
8211         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8212         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
8213         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8214         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8215         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8216         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
8217         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
8218         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
8219         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
8220         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8221         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
8222         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8223         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8224         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
8225         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
8226         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8227         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
8228         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
8229         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8230         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
8231         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
8232         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
8233         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
8234         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
8235         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
8236         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8237         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
8238         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
8239         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
8240         * sysvipc/sys/ipc.h: Likewise.
8241         * sysvipc/sys/msg.h: Likewise.
8242         * sysvipc/sys/sem.h: Likewise.
8243         * sysvipc/sys/shm.h: Likewise.
8244         * termios/termios.h: Likewise.
8245         * time/sys/time.h: Likewise.
8246         * time/time.h: Likewise.
8247         * wcsmbs/bits/wchar2.h: Likewise.
8248         * wcsmbs/uchar.h: Likewise.
8249         * wcsmbs/wchar.h: Likewise.
8250         * wctype/wctype.h: Likewise.
8251
8252         [BZ #13551]
8253         * Makeconfig: Remove all but ELF support including AIX support.
8254         * Makerules: Likewise.
8255         * config.h.in: Likewise.
8256         * config.make.in: Likewise.
8257         * configure: Likewise.
8258         * configure.in: Likewise.
8259         * csu/Makefile: Likewise.
8260         * csu/version.c: Likewise.
8261         * debug/Makefile: Likewise.
8262         * dlfcn/Makefile: Likewise.
8263         * elf/Makefile: Likewise.
8264         * extra-lib.mk: Likewise.
8265         * iconv/Makefile: Likewise.
8266         * include/libc-symbols.h: Likewise.
8267         * include/shlib-compat.h: Likewise.
8268         * resolv/Makefile: Likewise.
8269         * resolv/res_libc.c: Likewise.
8270         * rt/Makefile: Likewise.
8271         * sysdeps/i386/asm-syntax.h: Likewise.
8272         * sysdeps/i386/sysdep.h: Likewise.
8273         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8274         * sysdeps/mach/sysdep.h: Likewise.
8275         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
8276         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
8277         * sysdeps/s390/asm-syntax.h: Likewise.
8278         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8279         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8280         * sysdeps/sh/sysdep.h: Likewise.
8281         * sysdeps/unix/sparc/sysdep.h: Likewise.
8282         * sysdeps/wordsize-32/divdi3.c: Likewise.
8283         * sysdeps/x86_64/sysdep.h: Likewise.
8284
8285         * argp/Versions: Remove _argp_unlock_xxx.
8286
8287         [BZ #13559]
8288         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
8289         * abilist/libBrokenLocale.abilist: Likewise.
8290         * abilist/libanl.abilist: Likewise.
8291         * abilist/libc.abilist: Likewise.
8292         * abilist/libcrypt.abilist: Likewise.
8293         * abilist/libdl.abilist: Likewise.
8294         * abilist/libm.abilist: Likewise.
8295         * abilist/libnsl.abilist: Likewise.
8296         * abilist/libpthread.abilist: Likewise.
8297         * abilist/libresolv.abilist: Likewise.
8298         * abilist/librt.abilist: Likewise.
8299         * abilist/libthread_db.abilist: Likewise.
8300         * abilist/libutil.abilist: Likewise.
8301         * abilist/libnss_db.abilist: New file.
8302
8303         * scripts/abilist.awk: Add support for indirect functions.
8304
8305         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
8306
8307         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
8308
8309         * shlib-versions: Remove entries for ports architectures.
8310
8311         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
8312         files in ports.
8313         * elf/stackguard-macros.h: Remove support for IA-64.
8314         * elf/tst-auditmod1.c: Likewise.
8315         * sysdeps/generic/ldsodefs.h: Likewise.
8316
8317         * sysdeps/unix/sysv/linux/configure.in: Ports should define
8318         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
8319         configure files.
8320
8321         [BZ #13552]
8322         * configure.in: Remove --enable-omitfp support.
8323         * FAQ.in: Adjust.
8324         * config.make.in: Likewise.
8325         * Makeconfig: Likewise.
8326         * manual/install.texi: Likewise.
8327
8328         In case anyone cares, the IA-64 architecture could move to ports.
8329         * sysdeps/ia64/*: Removed.
8330         * sysdeps/unix/sysv/linux/ia64/*: Removed.
8331         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
8332
8333         [BZ #13555]
8334         * configure.in: Remove entries for unsupported architectures.
8335
8336         [BZ #13533]
8337         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
8338         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
8339         routines.
8340         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
8341         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
8342         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
8343         fall back to using wcrtomb.
8344         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
8345         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
8346         renaming.
8347         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
8348         * wcsmbs/tst-c16c32-1.c: New file.
8349
8350         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
8351         local variable.
8352
8353         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
8354
8355         * elf/tst-unique3.cc: Add explicit declaration of gets.
8356         * elf/tst-unique3lib.cc: Likewise.
8357         * elf/tst-unique3lib2.cc: Likewise.
8358         * elf/tst-unique4.cc: Likewise.
8359
8360         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
8361
8362 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
8363
8364         [BZ #13566]
8365         * assert/assert.h (static_assert): Don't define for C++.
8366         * libio/stdio.h (gets): Do declare for C++ <= C++11.
8367         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
8368
8369 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
8370
8371         * iconv/loop.c (single loop): Fix assertion in storing of
8372         remaining bytes.
8373
8374         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
8375
8376 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
8377
8378         * posix/getconf.c: Update copyright year.
8379         * nss/getent.c: Likewise.
8380         * nss/makedb.c: Likewise.
8381         * iconv/iconvconfig.c: Likewise.
8382         * iconv/iconv_prog.c: Likewise.
8383         * elf/ldconfig.c: Likewise.
8384         * elf/pldd.c: Likewise.
8385         * elf/sotruss.ksh: Likewise.
8386         * catgets/gencat.c: Likewise.
8387         * csu/version.c: Likewise.
8388         * elf/ldd.bash.in: Likewise.
8389         * elf/sprof.c (print_version): Likewise.
8390         * locale/programs/locale.c: Likewise.
8391         * locale/programs/localedef.c: Likewise.
8392         * login/programs/pt_chown.c: Likewise.
8393         * nscd/nscd.c (print_version): Likewise.
8394         * debug/xtrace.sh: Likewise.
8395         * malloc/memusage.sh: Likewise.
8396         * malloc/mtrace.pl: Likewise.
8397         * debug/catchsegv.sh: Likewise.
8398
8399 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
8400
8401         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
8402         pure attribute.
8403
8404 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
8405
8406         [BZ #13533]
8407         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
8408         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
8409         transformations.
8410         * iconv/gconv_int.h: Likewise.
8411         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
8412         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
8413         from libc for GLIBC_2.16.
8414         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
8415         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
8416         * wcsmbs/uchar.h: Really define mbstate_t.
8417         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
8418         * wcsmbs/c16rtomb.c: New file.
8419         * wcsmbs/mbrtoc16.c: New file.
8420         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
8421         for C/POSIX locale.
8422         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
8423         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
8424
8425         * wcsmbs/wchar.h: Add missing __restrict.
8426
8427 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8428
8429         [BZ #13532]
8430         * time/Makefile (routines): Add timespec_get.
8431         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
8432         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
8433         timespec for ISO C11.
8434         * time/timespec_get.c: New file.
8435         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
8436         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
8437
8438         [BZ #13531]
8439         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
8440         * stdlib/stdlib.h: Declare aligned_alloc.
8441         * Versions.def: Add GLIBC_2.16 for libc.
8442         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
8443
8444         [BZ 13527]
8445         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
8446         ISO C11.
8447
8448         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
8449         code.
8450
8451         [BZ #13528]
8452         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
8453
8454         [BZ #13529]
8455         * assert/assert.h (static_assert): Define.
8456
8457         * version.h: Update for 2.16 development version.
8458
8459         [BZ #13526]
8460         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
8461         _ISOC11_SOURCE.
8462
8463         * version.h (RELEASE): Bump for 2.15 release.
8464         * include/features.h (__GLIBC_MINOR__): Bump to 15.
8465
8466         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
8467         Patch by Marek Polacek <mpolacek@redhat.com>.
8468
8469         * bits/byteswap.h: Protect long long constants with __extension__.
8470         * sysdeps/i386/bits/byteswap.h: Likewise.
8471         * sysdeps/ia64/bits/byteswap.h: Likewise.
8472         * sysdeps/s390/bits/byteswap.h: Likewise.
8473         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8474
8475 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8476
8477         [BZ #13540]
8478         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
8479         destination buffer.
8480         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
8481
8482 2011-12-23  Marek Polacek  <polacek@redhat.com>
8483
8484         * elf/dl-addr.c (determine_info): Add inline keyword.
8485         * elf/tst-auditmod4b.c (check_avx): Likewise.
8486         * elf/tst-auditmod6b.c (check_avx): Likewise.
8487         * elf/tst-auditmod6c.c (check_avx): Likewise.
8488         * elf/tst-auditmod7b.c (check_avx): Likewise.
8489
8490 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8491
8492         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
8493         !__SSE_MATH__.
8494
8495 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8496
8497         [BZ #13540]
8498         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
8499         processing for last bytes.
8500
8501 2011-08-06  Bruno Haible  <bruno@clisp.org>
8502
8503         [BZ #13061]
8504         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
8505         U+0385, not to U+1FEE.
8506
8507         [BZ #13062]
8508         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
8509         entry for U+00A5 U+0301.
8510
8511 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8512
8513         [BZ #13166]
8514         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
8515         buffer for the output is too small.
8516
8517         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
8518         optimization.
8519
8520         [BZ #13185]
8521         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
8522         SSE flags if possible.
8523
8524 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8525
8526         [BZ #13540]
8527         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
8528         processing for last bytes.
8529
8530 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
8531
8532         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
8533         (syscall-list-default-options, syscall-list-default-condition)
8534         (syscall-list-includes): Define.
8535         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
8536         list of ABIs and options and #if conditions for each ABI.  Do not
8537         handle common syscalls between ABIs specially.
8538         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
8539         Remove.
8540         (syscall-list-variants, syscall-list-32bit-options)
8541         (syscall-list-32bit-condition, syscall-list-64bit-options)
8542         (syscall-list-64bit-condition): Define.
8543         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
8544         (syscall-list-variants, syscall-list-32bit-options)
8545         (syscall-list-32bit-condition, syscall-list-64bit-options)
8546         (syscall-list-64bit-condition): Define.
8547         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
8548         Remove.
8549         (syscall-list-variants, syscall-list-32bit-options)
8550         (syscall-list-32bit-condition, syscall-list-64bit-options)
8551         (syscall-list-64bit-condition): Define.
8552         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
8553         Remove.
8554         (syscall-list-variants, syscall-list-32bit-options)
8555         (syscall-list-32bit-condition, syscall-list-64bit-options)
8556         (syscall-list-64bit-condition): Define.
8557
8558 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8559
8560         * locale/iso-639.def: Add brx entry.
8561
8562         [BZ #13328]
8563         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
8564         Proposed by Mariusz_Cukr <marcukr@op.pl>.
8565
8566         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
8567         __feraiseexcept_renamed.
8568
8569 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8570
8571         [BZ #13538]
8572         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
8573         EPOLLET with unsigned values.
8574         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8575         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8576
8577         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
8578         to large cancellation.
8579         * math/s_cacoshf.c: Likewise.
8580         * math/s_cacoshl.c: Likewise.
8581
8582 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
8583
8584         [BZ #13305]
8585         [BZ #12786]
8586         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
8587         * math/s_cacoshf.c: Likewise.
8588         * math/s_cacoshl.c: Likewise.
8589
8590 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8591
8592         [BZ #13439]
8593         * iconv/gconv.h: Define __GCONV_SWAP.
8594         * iconvdata/unicode.c: The swap bit must be stored in __flags.
8595         * iconvdata/utf-16.c: Likewise.
8596         * iconvdata/utf-32.c: Likewise.
8597
8598 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
8599
8600         [BZ #13524]
8601         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
8602         numerator after shifting it by one limb.
8603
8604 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
8605
8606         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
8607         under [__USE_EXTERN_INLINES].
8608
8609 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8610
8611         [BZ #13446]
8612         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
8613
8614 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8615
8616         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
8617         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
8618         optimized code.
8619         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
8620         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
8621         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
8622         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
8623         for strncasecmp/strncasecmp_l compilation.
8624         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
8625         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
8626
8627 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
8628
8629         [BZ #13484]
8630         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
8631         of __asm__.
8632
8633 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8634
8635         [BZ #13506]
8636         * time/tzfile.c (__tzfile_read): Check values from file header.
8637
8638 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8639
8640         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
8641         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
8642         * powerpc/powerpc32/dl-start.S: Likewise.
8643         * powerpc/powerpc32/elf/start.S: Likewise.
8644         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8645         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
8646         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
8647         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
8648         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8649         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
8650         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
8651         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
8652         * powerpc/powerpc32/fpu/s_round.S: Likewise.
8653         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8654         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8655         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8656         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
8657         * powerpc/powerpc32/memset.S: Likewise.
8658         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8659         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8660         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8661         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8662         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8663         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
8664         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
8665         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
8666         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
8667         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
8668         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
8669         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8670         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8671
8672 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8673
8674         * math/libm-test.inc: Added more nearbyint tests.
8675         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
8676         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
8677         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
8678         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
8679
8680 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
8681
8682         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
8683         FD_CLOEXEC.
8684
8685 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8686
8687         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
8688         Add wcscpy-ssse3 wcscpy-c.
8689         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
8690         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
8691         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
8692         * sysdeps/x86_64/wcschr.S: New file.
8693         * sysdeps/x86_64/wcsrchr.S: New file.
8694         * string/test-strcmp.c: Remove checking of wcscmp function for
8695         wrong alignments.
8696         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
8697         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
8698         wcsrchr-sse2 wcsrchr-c.
8699         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
8700         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
8701         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
8702         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
8703         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
8704         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
8705         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
8706         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
8707         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
8708         * wcsmbc/wcschr.c (WCSCHR): New macro.
8709
8710 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8711
8712         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
8713         * wcsmbs/test-wcsrchr.c: New file.
8714         * string/test-strrchr.c: Add wcsrchr support.
8715         (WIDE): New macro.
8716         * wcsmbs/test-wcscpy.c: New file.
8717         * string/test-strcpy.c: Add wcscpy support.
8718         (WIDE): New macro.
8719
8720 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
8721
8722         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
8723         the inner loop.
8724
8725 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
8726
8727         [BZ #13472]
8728         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
8729
8730 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
8731
8732         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
8733         Minor optimizations.
8734
8735         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
8736         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
8737         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8738
8739 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
8740
8741         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
8742         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
8743         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
8744         for gcc to avoid warnings.
8745         * inet/Makefile (tests): Add tst-checks.
8746         * inet/tst-checks.c: New file.
8747
8748         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
8749         warning.
8750
8751         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
8752         __wmemcmp_sse2.
8753
8754         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
8755         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
8756
8757         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
8758
8759 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
8760
8761         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
8762         problem.
8763
8764         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
8765
8766 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
8767
8768         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
8769         conditional on GCC version.
8770         (__arch_compare_and_exchange_val_8_acq)
8771         (__arch_compare_and_exchange_val_16_acq)
8772         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
8773         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
8774         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
8775
8776 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
8777
8778         * sysdeps/sh/backtrace.c: New file.
8779
8780 2011-12-02  Andreas Schwab  <schwab@redhat.com>
8781
8782         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
8783         parenthesis.
8784
8785 2011-12-01  Andreas Schwab  <schwab@redhat.com>
8786
8787         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
8788         falling back to utime.
8789
8790 2011-11-30  Andreas Schwab  <schwab@redhat.com>
8791
8792         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
8793         expectations for float.
8794
8795 2011-11-29  Andreas Schwab  <schwab@redhat.com>
8796
8797         * locale/weight.h (findidx): Add parameter len.
8798         * locale/weightwc.h (findidx): Likewise.
8799         * posix/fnmatch_loop.c (FCT): Adjust caller.
8800         * posix/regcomp.c (build_equiv_class): Likewise.
8801         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
8802         * posix/regexec.c (check_node_accept_bytes): Likewise.
8803         * string/strcoll_l.c (STRCOLL): Likewise.
8804         * string/strxfrm_l.c (STRXFRM): Likewise.
8805
8806 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
8807
8808         * Makefile.in: Remove CVSOPT handling.
8809         * configure.in: Remove use of AC_REVISION.
8810         * iconvdata/Makefile (distribute): No need to filter out CVS.
8811         * scripts/list-sources.sh: Remove CVS, subversion and monotone
8812         handling.
8813
8814 2011-11-16  Andreas Schwab  <schwab@redhat.com>
8815
8816         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
8817         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
8818         [USE_AS_STRNCASECMP_L]: Likewise.
8819         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
8820         NO_TLS_DIRECT_SEG_REFS.
8821         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
8822         Fix argument offsets for non-PIC.
8823         [USE_AS_STRNCASECMP_L]: Likewise.
8824         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
8825         NO_TLS_DIRECT_SEG_REFS.
8826
8827 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8828
8829         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
8830         O_CLOEXEC.
8831         * locale/loadlocale.c (_nl_load_locale): Likewise.
8832
8833 2011-11-15  Andreas Schwab  <schwab@redhat.com>
8834
8835         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
8836         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
8837         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
8838         (SYSCALL_GETTIME): Set errno on error.
8839
8840         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
8841         count references to noai6ai_cached.
8842
8843 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8844
8845         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
8846
8847         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
8848         FD_CLOEXEC for /proc/self/maps.
8849
8850         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
8851         FD_CLOEXEC for /proc/meminfo.
8852
8853         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
8854         gai.conf.
8855
8856         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
8857         FD_CLOEXEC for given file.
8858
8859         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
8860
8861         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
8862         FD_CLOEXEC for /etc/hosts.
8863         (_gethtent): Likewise.
8864
8865         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
8866
8867         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
8868         cancellation and set FD_CLOEXEC for /etc/netgroup.
8869
8870         * nss/nss_files/files-key.c (search): Don't allow cancellation when
8871         reading /etc/publickey.
8872
8873         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
8874         allow cancellation when reading /etc/group.
8875
8876         * nss/nss_files/files-alias.c (internal_setent): Don't allow
8877         cancellation.
8878         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
8879
8880         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
8881         when using data file.
8882
8883         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
8884
8885         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
8886         (write_nis_obj): Use "c" and "e" in fopen.
8887
8888         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
8889
8890         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
8891
8892         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
8893
8894         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
8895
8896         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
8897         locale.alias.
8898
8899         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
8900
8901         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
8902
8903         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
8904
8905         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
8906         file parsing and set FD_CLOEXEC.
8907
8908 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8909
8910         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
8911
8912 2011-11-14  Andreas Schwab  <schwab@redhat.com>
8913
8914         * malloc/arena.c (arena_get2): Don't call reused_arena when
8915         _int_new_arena failed.
8916
8917 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8918
8919         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
8920         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
8921         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
8922         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8923         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8924         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
8925         to compile strcasecmp and strncasecmp.
8926         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
8927         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
8928
8929         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
8930
8931 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
8932
8933         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
8934         locale-defines.sym to gen-as-const-headers.
8935         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
8936         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
8937         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
8938         to compile strcasecmp and strncasecmp.
8939         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
8940         strcasecmp_l and strncasecmp_l.
8941         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
8942         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
8943         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
8944         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
8945         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
8946         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
8947         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
8948         * sysdeps/i386/i686/multiarch/strncase.S: New file.
8949         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
8950         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
8951         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
8952
8953 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
8954
8955         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
8956         result of SYSDEP_GETTIME_CPU to retval.
8957         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
8958         parameter list to macro.  Remove trailing semicolon.  Adjust users.
8959
8960         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
8961         variable.
8962
8963         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
8964         mantissa words.
8965         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8966
8967         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
8968         from unused variable.
8969
8970         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
8971         DWARF definitions.
8972         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
8973         for assembling.
8974
8975         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
8976         over namespaces.
8977
8978         * sunrpc/rpc_prot.c (rejected): Fix case value.
8979
8980         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
8981         unsigned long long int to avoid warnings in shift.
8982
8983         * posix/regex_internal.c (re_string_reconstruct): Actually use result
8984         of use of trans.
8985         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
8986         variable tmp.
8987
8988         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
8989         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
8990         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
8991
8992         * nis/nis_table.c (nis_list): Use variable of correct type for
8993         result of __follow_path call.
8994
8995 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8996
8997         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
8998         of math functions ceil, trunc, floor, round, and sqrt, when
8999         avaliable on the platform.
9000         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
9001         name clash.
9002         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9003         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
9004         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
9005
9006 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
9007
9008         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
9009         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
9010
9011 2011-11-11  Roland McGrath  <roland@hack.frob.com>
9012
9013         * include/unistd.h: Fix __readlink return type.
9014         Reported by Chris Metcalf <cmetcalf@tilera.com>.
9015
9016 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
9017
9018         * stdlib/ucontext.h: Undo last change for makecontext.
9019
9020 2011-11-11  Andreas Schwab  <schwab@redhat.com>
9021
9022         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
9023
9024         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
9025         * setjmp/setjmp.h: Mark functions as non-leaf.
9026         * setjmp/bits/setjmp2.h: Likewise.
9027         * stdlib/ucontext.h: Likewise.
9028
9029 2011-11-10  Andreas Schwab  <schwab@redhat.com>
9030
9031         * malloc/arena.c (_int_new_arena): Don't increment narenas.
9032         (reused_arena): Don't check arena limit.
9033         (arena_get2): Atomically check arena limit.
9034
9035 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
9036
9037         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
9038         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
9039
9040         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
9041         instructions.
9042
9043 2011-11-07  Andreas Schwab  <schwab@redhat.com>
9044
9045         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
9046         handler when locking.
9047
9048         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9049         Fix size of allocated buffer.
9050
9051 2011-11-04  Andreas Schwab  <schwab@redhat.com>
9052
9053         [BZ #10103]
9054         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
9055         declarations for long double functions.
9056         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
9057
9058         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
9059
9060 2011-11-03  Andreas Schwab  <schwab@redhat.com>
9061
9062         * nscd/nscd.c (main): Don't start AVC thread until credentials are
9063         installed.
9064
9065         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
9066         is disabled.
9067
9068 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9069
9070         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
9071
9072 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
9073
9074         * include/alloca.h (stackinfo_alloca_round): Define.
9075         (extend_alloca): Use it.
9076         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
9077         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
9078         here.
9079
9080         * scripts/check-local-headers.sh: Ignore libaudit.h.
9081
9082         * nscd/Makefile (extra-objs): Make recursively expanded.
9083
9084 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
9085
9086         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
9087         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
9088
9089         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
9090         * posix/tst-rfc3484-2.c: Likewise.
9091         * posix/tst-rfc3484-3.c: Likewise.
9092
9093         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
9094         process_vm_writev.
9095         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
9096         process_vm_writev.
9097         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
9098         process_vm_writev from libc using GLIBC_2.15 version.
9099
9100         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
9101
9102 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
9103
9104         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
9105         stack usage.
9106
9107 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
9108
9109         [BZ #13367]
9110         * nss/getent.c (initgroups_keys): Show error message in case no group
9111         names are given.
9112
9113         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
9114         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
9115         __bump_nl_timestamp.
9116         * nscd/connections (nscd_init): When host database is served open
9117         netlink socket and request notification about configuration changes.
9118         (main_loop_poll): Track netlink file descriptor and bump timestamp
9119         in case data becomes available.
9120         (main_loop_epoll): Likewise.
9121         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
9122         (database_pers_head): Add extra_data fileds.
9123         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
9124         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
9125         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
9126         Adjust caller.
9127         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
9128         in6ai data, call __free_in6ai.
9129         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
9130         Add -DHAVE_NETLINK.
9131         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
9132         interface information.  Reuse previous data if netlink timestamp
9133         is not changed.
9134         (__bump_nl_timestamp): New function.
9135         (__free_in6ai): New function.
9136
9137 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
9138
9139         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
9140         close_not_cancel_no_status here.
9141         (__check_pf): Reorganize code a bit to not call close twice if OOM.
9142
9143 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
9144
9145         [BZ #13276]
9146         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
9147         return value.
9148
9149         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
9150         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
9151         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
9152
9153 2011-07-03  Andreas Jaeger  <aj@suse.de>
9154
9155         [BZ #10709]
9156         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
9157         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
9158         * math/libm-test.inc (sin_test): Add test case.
9159
9160 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
9161
9162         [BZ #13337]
9163         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
9164         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9165
9166         * elf/chroot_canon.c (chroot_canon): Cleanups.
9167
9168         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
9169
9170         [BZ #13335]
9171         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
9172         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9173
9174         * string/test-strchr.c: Make usable for strchrnul testing.
9175         * string/test-strchrnul.c: New file.
9176         * string/Makefile (strop-tests): Add strchrnul.
9177
9178         * po/it.po: Update from translation team.
9179         * po/es.po: Likewise.
9180
9181 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
9182
9183         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
9184         the three constants needed as parameters.  Drop the others.
9185         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
9186         __m128i_strloadu_tolower.
9187         Create and initialize variable zero and use it in all the places
9188         where _mm_setzero_si128 was used.
9189
9190         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
9191         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
9192         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
9193         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
9194         anymore.
9195         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
9196         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
9197         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
9198         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
9199         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
9200         __mpranred, __mptan.
9201         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
9202         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
9203         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
9204         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
9205         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
9206         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
9207         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
9208         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
9209         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
9210
9211 2011-10-28  Andreas Schwab  <schwab@redhat.com>
9212
9213         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
9214         redefine if SHARED.
9215         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
9216
9217         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
9218         wide char related routines to wcsmbs subdir.
9219
9220 2011-10-27  Andreas Schwab  <schwab@redhat.com>
9221
9222         [BZ #13344]
9223         * misc/sys/cdefs.h (__THROWNL): Define.
9224         * posix/unistd.h: Use __THREADNL instead of __THREAD
9225         for memory synchronization functions.
9226
9227 2011-10-26  Roland McGrath  <roland@hack.frob.com>
9228
9229         [BZ #13349]
9230         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
9231         doesn't exist.
9232         * manual/stdio.texi (Obstack Streams): Node removed.
9233
9234 2011-10-26  Andreas Schwab  <schwab@redhat.com>
9235
9236         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
9237         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9238         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9239
9240         * math/math_private.h (math_force_eval): Allow non-addressable
9241         arguments.
9242         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
9243
9244 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9245
9246         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
9247         file is not needed.
9248
9249         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
9250         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9251         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9252         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9253         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9254         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9255         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9256         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
9257         Add AVX variants.
9258         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
9259         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
9260         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
9261         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
9262         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
9263         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
9264         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
9265         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
9266         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
9267         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
9268         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
9269         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
9270         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
9271         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
9272         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
9273         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
9274         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
9275         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
9276         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
9277
9278         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
9279         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
9280
9281         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
9282         place.  Use VEX encoding when compiling for AVX.
9283
9284 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9285
9286         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
9287         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9288
9289         * string/test-strchr.c (do_test): Don't generate NUL bytes.
9290
9291 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9292
9293         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
9294         useless if() expression.
9295         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9296         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9297         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9298         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9299         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9300         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9301         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9302         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9303         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9304         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9305         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9306         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9307         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9308         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9309         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9310         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9311         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9312         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9313         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9314
9315         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
9316
9317 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9318
9319         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
9320         condition.
9321         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9322
9323 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9324
9325         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
9326         .text section.  Avoid duplicate constants.
9327         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9328         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9329         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9330         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9331         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9332         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9333         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9334         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9335         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
9336         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
9337         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
9338         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9339         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
9340         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
9341         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
9342         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
9343         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
9344         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
9345         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9346         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9347         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9348         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9349         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9350         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
9351         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
9352         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
9353         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
9354         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
9355         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
9356         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
9357         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
9358         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
9359         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9360         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
9361         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
9362         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
9363         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
9364         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
9365         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
9366         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
9367         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
9368         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
9369         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
9370         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
9371         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
9372
9373 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
9374
9375         * sysdeps/x86_64/dla.h: Move to ...
9376         * sysdeps/x86_64/fpu/dla.h: ...here.
9377         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
9378         situations.  Use __builtin_fma only for gcc 4.6 and up.
9379
9380         * config.make.in: Add have-mfma4 entry.
9381         * configure.in: Substitute libc_cv_cc_fma4.
9382         * math/Makefile (dbl-only-routines): Add sincostab.
9383         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
9384         Use __sincostab not sincos.
9385         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
9386         name is a macro.
9387         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9388         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9389         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9390         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
9391         using __copysign.
9392         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
9393         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
9394         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
9395         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
9396         and __inv.
9397         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
9398         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
9399         __copysign.
9400         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
9401         define aliases when function name is a macro.
9402         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
9403         sysdeps/ieee754/dbl-64/sincos.tbl.
9404         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
9405         fma4-enabled routines.
9406         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
9407         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
9408         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
9409         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
9410         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
9411         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
9412         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
9413         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
9414         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
9415         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
9416         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
9417         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
9418         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
9419         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
9420         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
9421         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
9422         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
9423         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
9424         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
9425         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
9426         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
9427         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
9428         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
9429         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
9430         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
9431         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
9432         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
9433         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
9434         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
9435         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
9436
9437         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
9438         rename.
9439         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9440         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9441         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9442         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9443         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9444         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9445         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9446         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9447
9448 2011-10-24  Andreas Schwab  <schwab@redhat.com>
9449
9450         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
9451
9452 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9453
9454         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
9455
9456         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
9457         prediction.
9458         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
9459
9460         * string/strnlen.c: Don't define STRNLEN, reverse logic.
9461         Remove unused variable magic_bits.
9462         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
9463
9464         * string/strnlen.c: Define and use STRNLEN macro.
9465         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
9466         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
9467         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
9468         * wcsmbs/wcslen.c: Define and use WCSLEN.
9469         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
9470         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
9471         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
9472         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
9473         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
9474         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
9475         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9476
9477 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9478
9479         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9480         strnlen-sse2-no-bsf.
9481         Rename strlen-no-bsf to strlen-sse2-no-bsf.
9482         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
9483         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
9484         Add strnlen support.
9485         (USE_AS_STRNLEN): New macro.
9486         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
9487         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
9488         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
9489         * sysdeps/x86_64/wcslen.S: New file.
9490
9491 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9492
9493         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9494         XMM-moves are used for copying on small sizes.
9495
9496 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9497
9498         * wcsmbs/Makefile (strop-tests): Add wcschr.
9499         * wcsmbs/test-wcschr.c: New file.
9500         * string/test-strchr.c: Update.
9501         Add wcschr support.
9502         (WIDE): New macro.
9503
9504 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9505
9506         * wcsmbs/Makefile (strop-tests): Add wcslen.
9507         * wcsmbs/test-wcslen.c: New file.
9508         * string/test-strlen.c: Update.
9509         Add wcslen support.
9510         (WIDE): New macro.
9511
9512 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9513
9514         * po/it.po: Update from translation team.
9515
9516 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9517
9518         * sysdeps/x86_64/wcscmp.S: Update.
9519         Fix wrong comparison semantics.
9520         wcscmp shall use signed comparison not unsigned.
9521         Don't use substraction to avoid overflow bug.
9522         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
9523         * wcsmbc/wcscmp.c: Likewise.
9524         * string/test-strcmp.c: Likewise.
9525         Add new tests to check cases with negative values.
9526
9527 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9528
9529         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
9530         * sysdeps/x86_64/dla.h: ...here.  New file.
9531         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
9532         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9533         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9534         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9535         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9536         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9537         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9538         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9539         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9540
9541 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9542
9543         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
9544         __ynl_finite aliases.
9545
9546 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9547
9548         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9549
9550         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
9551         define DLA_FMA.
9552         [DLA_FMA] (EMULV): Use DLA_FMA.
9553         [DLA_FMA] (MUL12): Use EMULV.
9554         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
9555         that are not needed.
9556         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9557         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9558         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9559         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9560         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9561         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9562         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9563
9564 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
9565
9566         * math/s_nan.c: Undef __nan.
9567         * math/s_nanf.c: Undef __nanf.
9568         * math/s_nanl.c: Undef __nanl.
9569         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
9570         "math_private.h".
9571
9572 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9573
9574         * math/s_catan.c: Add branch predictions.
9575         * math/s_catanf.c: Likewise.
9576         * math/s_catanh.c: Likewise.
9577         * math/s_catanhf.c: Likewise.
9578         * math/s_catanhl.c: Likewise.
9579         * math/s_catanl.c: Likewise.
9580         * math/s_cexp.c: Likewise.
9581         * math/s_cexpf.c: Likewise.
9582         * math/s_cexpl.c: Likewise.
9583         * math/s_clog.c: Likewise.
9584         * math/s_clog10.c: Likewise.
9585         * math/s_clog10f.c: Likewise.
9586         * math/s_clog10l.c: Likewise.
9587         * math/s_clogf.c: Likewise.
9588         * math/s_clogl.c: Likewise.
9589         * math/s_csqrt.c: Likewise.
9590         * math/s_csqrtf.c: Likewise.
9591         * math/s_csqrtl.c: Likewise.
9592         * math/s_ctanf.c: Likewise.
9593         * math/s_ctanh.c: Likewise.
9594         * math/s_ctanhf.c: Likewise.
9595         * math/s_ctanhl.c: Likewise.
9596         * math/s_ctanl.c: Likewise.
9597
9598         * math/math_private.h: Define __nan, __nanf, __nanl.
9599         * math/s_cacosh.c: Include <math_private.h>.
9600         * math/s_cacoshl.c: Likewise.
9601         * math/s_casinh.c: Likewise.
9602         * math/s_casinhf.c: Likewise.
9603         * math/s_casinhl.c: Likewise.
9604         * math/s_ccos.c: Rely entire on ccosh.
9605         * math/s_ccosf.c: Rely entire on ccoshf.
9606         * math/s_ccosl.c: Rely entirely on ccoshl.
9607         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
9608         Remove tests for FE_INVALID.
9609         * math/s_ccoshf.c: Likewise.
9610         * math/s_ccoshl.c: Likewise.
9611         * math/s_csin.c: Likewise.
9612         * math/s_csinf.c: Likewise.
9613         * math/s_csinh.c Likewise.
9614         * math/s_csinhf.c: Likewise.
9615         * math/s_csinhl.c: Likewise.
9616         * math/s_csinl.c: Likewise.
9617         * math/s_ctan.c: Likewise.
9618         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
9619         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
9620         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
9621
9622 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
9623
9624         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
9625         compilation problems.
9626
9627         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
9628         __builtin_expect.
9629
9630 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
9631
9632         * sysdeps/i386/configure.in: Test for -mfma4 option.
9633         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
9634         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
9635         COMMON_CPUID_INDEX_80000001.
9636         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
9637         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
9638         use it if FMA3 is not supported.
9639         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
9640
9641         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
9642         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
9643
9644 2011-10-20  Andreas Schwab  <schwab@redhat.com>
9645
9646         [BZ #12892]
9647         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
9648         it would create a cycle with a link time dependency.
9649
9650 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
9651
9652         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
9653         instruction.
9654         * string/Makefile (strop-tests): Add rawmemchr.
9655         * string/test-rawmemchr.c: New file.
9656
9657         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
9658         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
9659         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
9660         when compiling str{,n}casecmp and when AVX is available.  Hook up
9661         new optimized code in initializers.
9662
9663 2011-10-19  Andreas Schwab  <schwab@redhat.com>
9664
9665         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
9666         __feraiseexcept instead of feraiseexcept.
9667
9668 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
9669
9670         * math/math_private.h: Define defaults for libc_fetestexcept and
9671         libc_feupdateenv.
9672         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
9673         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9674         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9675         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9676         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9677         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9678         libc_fetestexcept and libc_feupdateenv.
9679
9680         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
9681         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
9682         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
9683         * sysdeps/x86_64/fpu/math_private.h: Define special version of
9684         libc_feholdexcept_setround.
9685
9686         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
9687         Add s_nearbyint-c and s_nearbyintf-c.
9688         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
9689         nearbyintf inlines.
9690         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
9691         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
9692         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
9693         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
9694
9695         * math/math_private.h: Define defaults for libc_fegetround,
9696         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
9697         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
9698         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
9699         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
9700         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
9701         standard functions.
9702         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9703         Remove comments and hacks for old compiler versions.
9704         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9705         libc_fegetround, libc_fesetround, libc_feholdexcept, and
9706         libc_feholdexceptl.
9707
9708 2011-10-18  Andreas Schwab  <schwab@redhat.com>
9709
9710         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
9711         (__feraiseexcept_renamed): Add __NTH.
9712         (feraiseexcept): Add __NTH.  Rename local variables to fix
9713         namespace violations.
9714
9715 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
9716
9717         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
9718
9719         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
9720
9721         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
9722         recently added interfaces.
9723         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9724
9725         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
9726         about macro parameter expansion.
9727
9728         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
9729         __NO_MATH_INLINES is defined.  Cleanups.
9730
9731         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
9732         and __floorf is target has SSE4.1.
9733         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
9734         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
9735         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
9736         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
9737
9738         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
9739         name.
9740         (floorf): Likewise.
9741
9742         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
9743
9744 2011-10-17  Andreas Schwab  <schwab@redhat.com>
9745
9746         * misc/sys/cdefs.h: Fix last change.
9747
9748         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
9749         database lookup.
9750
9751 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
9752
9753         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
9754
9755         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
9756         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9757         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9758         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9759         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9760         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9761         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9762         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9763         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9764         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
9765         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
9766         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
9767         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
9768         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
9769         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
9770         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
9771         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
9772         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
9773         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
9774         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
9775         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
9776         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
9777
9778         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
9779         ceil, ceilf, floor, floorf.
9780
9781         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
9782         Perform IRELATIVE relocations last.
9783
9784         * elf/do-rel.h: Add another parameter nrelative, replacing the
9785         local variable with the same name.  Change name of the function
9786         to end in Rel or Rela (uppercase).
9787         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
9788         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
9789         elf_dynamic_do_##reloc function.
9790
9791 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9792
9793         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
9794         is sufficient, at least on modern CPUs.
9795
9796         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
9797
9798         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
9799         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
9800
9801         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
9802         __expl_finite.
9803         * math/bits/math-finite.h: Add entries for exp.
9804         * math/e_expl.c: Add __*_finite alias.
9805         * sysdeps/i386/fpu/e_exp.S: Likewise.
9806         * sysdeps/i386/fpu/e_expf.S: Likewise.
9807         * sysdeps/i386/fpu/e_expl.c: Likewise.
9808         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9809         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9810         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9811         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9812         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
9813         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9814         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9815
9816         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
9817         is sufficient, at least on modern CPUs.
9818
9819         * ctype/ctype-info.c (__ctype_init): Define.
9820         * include/ctype.h (__ctype_init): Declare.
9821         (__ctype_b_loc): The variable is always initialized.
9822         (__ctype_toupper_loc): Likewise.
9823         (__ctype_tolower_loc): Likewise.
9824         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
9825         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
9826
9827 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
9828
9829         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
9830
9831         * configure.in: Also look in $cxxmachine/include for C++ system
9832         headers.
9833
9834 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9835
9836         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
9837         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
9838         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
9839         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
9840         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
9841         (USE_AS_WMEMCMP): New macro.
9842         Fixing indents.
9843         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
9844         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
9845         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
9846         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
9847         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9848         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
9849         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
9850         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
9851         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
9852         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
9853         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
9854         (USE_AS_WMEMCMP): New macro.
9855         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
9856         * sysdeps/string/test-memcmp.c: Update.
9857         Fix simple_wmemcmp.
9858         Add new tests.
9859         * wcsmbs/wmemcmp.c: Update.
9860         (WMEMCMP): New macro.
9861         Fix overflow bug.
9862
9863 2011-10-12  Andreas Jaeger  <aj@suse.de>
9864
9865         [BZ #13268]
9866         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
9867
9868 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9869
9870         * libio/iofwide.c (do_length): Avoid warning.
9871
9872         * ctype/ctype.h (__isctype_f): Add missing __THROW.
9873
9874 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
9875
9876         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
9877
9878         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
9879         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
9880         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
9881         * sysdeps/i386/i686/fpu/e_log.S: New file.
9882         * sysdeps/i386/i686/fpu/e_logf.S: New file.
9883         * sysdeps/i386/i686/fpu/e_logl.S: New file.
9884
9885         * ctype/ctype.h: Add support for inlined isXXX functions when
9886         compiling C++ code.
9887
9888 2011-10-14  Andreas Schwab  <schwab@redhat.com>
9889
9890         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9891
9892         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
9893
9894 2011-10-13  Roland McGrath  <roland@hack.frob.com>
9895
9896         [BZ #13291]
9897         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
9898
9899 2011-10-13  Andreas Schwab  <schwab@redhat.com>
9900
9901         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
9902         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
9903         feraiseexcept.
9904
9905         * sysdeps/x86_64/memrchr.S: Check for zero size.
9906
9907         * string/stratcliff.c: Add memrchr tests.
9908
9909 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9910
9911         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9912         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
9913         rawmemchr-sse2 rawmemchr-sse2-bsf.
9914         * sysdeps/i386/i686/multiarch/memchr.S: New file.
9915         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
9916         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9917         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
9918         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
9919         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
9920         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
9921         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
9922         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
9923         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
9924         * string/memrchr.c (MEMRCHR): New macro.
9925
9926 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
9927
9928         Add integration with gcc's -ffinite-math-only and optimize wrapper
9929         functions in libm.
9930         * Versions.def: Define GLIBC_2.15 version for libm.
9931         * math/Makefile (headers): Add bits/math-finite.h.
9932         * math/bits/math-finite.h: New file.
9933         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
9934         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
9935         * math/e_acoshl.c: Add __*_finite alias.
9936         * math/e_acosl.c: Likewise.
9937         * math/e_asinl.c: Likewise.
9938         * math/e_atan2l.c: Likewise.
9939         * math/e_atanhl.c: Likewise.
9940         * math/e_coshl.c: Likewise.
9941         * math/e_exp10.c: Likewise.
9942         * math/e_exp10f.c: Likewise.
9943         * math/e_exp10l.c: Likewise.
9944         * math/e_exp2l.c: Likewise.
9945         * math/e_fmodl.c: Likewise.
9946         * math/e_gammal_r.c: Likewise.
9947         * math/e_hypotl.c: Likewise.
9948         * math/e_j0l.c: Likewise.
9949         * math/e_j1l.c: Likewise.
9950         * math/e_jnl.c: Likewise.
9951         * math/e_lgammal_r.c: Likewise.
9952         * math/e_log10l.c: Likewise.
9953         * math/e_log2l.c: Likewise.
9954         * math/e_logl.c: Likewise.
9955         * math/e_powl.c: Likewise.
9956         * math/e_sinhl.c: Likewise.
9957         * math/e_sqrtl.c: Likewise.
9958         * math/e_scalb.c: Completely rewritten and optimized.
9959         * math/e_scalbf.c: Likewise.
9960         * math/e_scalbl.c: Likewise.
9961         * math/w_acos.c: Likewise.
9962         * math/w_acosf.c: Likewise.
9963         * math/w_acosl.c: Likewise.
9964         * math/w_acosh.c: Likewise.
9965         * math/w_acoshf.c: Likewise.
9966         * math/w_acoshl.c: Likewise.
9967         * math/w_asin.c: Likewise.
9968         * math/w_asinf.c: Likewise.
9969         * math/w_asinl.c: Likewise.
9970         * math/w_atan2.c: Likewise.
9971         * math/w_atan2f.c: Likewise.
9972         * math/w_atan2l.c: Likewise.
9973         * math/w_atanh.c: Likewise.
9974         * math/w_atanhf.c: Likewise.
9975         * math/w_atanhl.c: Likewise.
9976         * math/w_exp10.c: Likewise.
9977         * math/w_exp10f.c: Likewise.
9978         * math/w_exp10l.c: Likewise.
9979         * math/w_fmod.c: Likewise.
9980         * math/w_fmodf.c: Likewise.
9981         * math/w_fmodl.c: Likewise.
9982         * math/w_j0.c: Likewise.
9983         * math/w_j0f.c: Likewise.
9984         * math/w_j0l.c: Likewise.
9985         * math/w_j1.c: Likewise.
9986         * math/w_j1f.c: Likewise.
9987         * math/w_j1l.c: Likewise.
9988         * math/w_jn.c: Likewise.
9989         * math/w_jnf.c: Likewise.
9990         * math/w_log.c: Likewise.
9991         * math/w_logf.c: Likewise.
9992         * math/w_logl.c: Likewise.
9993         * math/w_log10.c: Likewise.
9994         * math/w_log10f.c: Likewise.
9995         * math/w_log10l.c: Likewise.
9996         * math/w_log2.c: Likewise.
9997         * math/w_log2f.c: Likewise.
9998         * math/w_log2l.c: Likewise.
9999         * math/w_pow.c: Likewise.
10000         * math/w_powf.c: Likewise.
10001         * math/w_powl.c: Likewise.
10002         * math/w_remainder.c: Likewise.
10003         * math/w_remainderf.c: Likewise.
10004         * math/w_remainderl.c: Likewise.
10005         * math/w_scalb.c: Likewise.
10006         * math/w_scalbf.c: Likewise.
10007         * math/w_scalbl.c: Likewise.
10008         * math/w_sqrt.c: Likewise.
10009         * math/w_sqrtf.c: Likewise.
10010         * math/w_sqrtl.c: Likewise.
10011         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
10012         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
10013         used.
10014         * math/math_private.h: Declare __kernel_standard_f.
10015         * math/w_cosh.c: Remove cruft and optimize a bit.
10016         * math/w_coshf.c: Likewise.
10017         * math/w_coshl.c: Likewise.
10018         * math/w_exp2.c: Likewise.
10019         * math/w_exp2f.c: Likewise.
10020         * math/w_exp2l.c: Likewise.
10021         * math/w_hypot.c: Likewise.
10022         * math/w_hypotf.c: Likewise.
10023         * math/w_hypotl.c: Likewise.
10024         * math/w_lgamma.c: Likewise.
10025         * math/w_lgamma_r.c: Likewise.
10026         * math/w_lgammaf.c: Likewise.
10027         * math/w_lgammaf_r.c: Likewise.
10028         * math/w_lgammal.c: Likewise.
10029         * math/w_lgammal_r.c: Likewise.
10030         * math/w_sinh.c: Likewise.
10031         * math/w_sinhf.c: Likewise.
10032         * math/w_sinhl.c: Likewise.
10033         * math/w_tgamma.c: Likewise.
10034         * math/w_tgammaf.c: Likewise.
10035         * math/w_tgammal.c: Likewise.
10036         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10037         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10038         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
10039         Minor optimizations.  Pretty printing.  Remove cruft.
10040         * sysdeps/i386/fpu/e_acosf.S: Likewise.
10041         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10042         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10043         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10044         * sysdeps/i386/fpu/e_acosl.c: Likewise.
10045         * sysdeps/i386/fpu/e_asin.S: Likewise.
10046         * sysdeps/i386/fpu/e_asinf.S: Likewise.
10047         * sysdeps/i386/fpu/e_atan2.S: Likewise.
10048         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
10049         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
10050         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10051         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10052         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10053         * sysdeps/i386/fpu/e_exp10.S: Likewise.
10054         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
10055         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
10056         * sysdeps/i386/fpu/e_exp2.S: Likewise.
10057         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
10058         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
10059         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10060         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
10061         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10062         * sysdeps/i386/fpu/e_hypot.S: Likewise.
10063         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
10064         * sysdeps/i386/fpu/e_log.S: Likewise.
10065         * sysdeps/i386/fpu/e_log10.S: Likewise.
10066         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10067         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10068         * sysdeps/i386/fpu/e_log2.S: Likewise.
10069         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10070         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10071         * sysdeps/i386/fpu/e_logf.S: Likewise.
10072         * sysdeps/i386/fpu/e_logl.S: Likewise.
10073         * sysdeps/i386/fpu/e_pow.S: Likewise.
10074         * sysdeps/i386/fpu/e_powf.S: Likewise.
10075         * sysdeps/i386/fpu/e_powl.S: Likewise.
10076         * sysdeps/i386/fpu/e_remainder.S: Likewise.
10077         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
10078         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
10079         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10080         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10081         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10082         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
10083         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
10084         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
10085         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10086         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10087         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10088         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10089         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10090         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10091         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10092         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10093         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10094         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10095         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10096         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10097         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10098         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10099         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10100         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10101         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10102         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10103         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10104         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10105         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10106         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10107         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10108         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10109         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10110         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10111         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
10112         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10113         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10114         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10115         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10116         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10117         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10118         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10119         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10120         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10121         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10122         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10123         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10124         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10125         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10126         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10127         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10128         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10129         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10130         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10131         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10132         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10133         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10134         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10135         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10136         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10137         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10138         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10139         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10140         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10141         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10142         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10143         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10144         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10145         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10146         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10147         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10148         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10149         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10150         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10151         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10152         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10153         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10154         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10155         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10156         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10157         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10158         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10159         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10160         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10161         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
10162         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10163         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10164         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10165         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10166         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10167         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10168         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10169         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10170         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10171         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10172         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10173         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10174         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10175         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10176         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10177         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10178         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10179         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10180         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10181         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10182         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
10183         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
10184         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
10185         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
10186         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
10187         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
10188         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
10189         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10190         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10191         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10192         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10193         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
10194         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10195         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
10196         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
10197         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
10198         (__isnanf): Likewise.
10199         (__isinf_ns): Likewise.
10200         (__isinf_nsf): Likewise.
10201         (__finite): Likewise.
10202         (__finitef): Likewise.
10203         (__ieee754_sqrt): Define as macro.
10204         (__ieee754_sqrtf): Define as macro.
10205         (__ieee754_sqrtl): Define as macro.
10206         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
10207         inlined copy.
10208         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
10209         __FINITE_MATH_ONLY__ consistent.
10210         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
10211
10212 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
10213
10214         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
10215         of rawmemchr.
10216
10217         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
10218
10219 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
10220
10221         * po/ja.po: Update from translation team.
10222
10223 2011-10-08  Roland McGrath  <roland@hack.frob.com>
10224
10225         * locale/programs/locarchive.c (prepare_address_space): New function.
10226         (create_archive, enlarge_archive, open_archive): Use it.
10227
10228         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
10229         inside [SHARED], where it is used.
10230
10231         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
10232
10233         * nss/getent.c (netgroup_keys): Remove unused variable.
10234         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10235
10236 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
10237
10238         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
10239         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
10240         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
10241         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
10242         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
10243         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
10244         * math/Makefile (libm-calls): Add s_isinf_ns.
10245         * math/divtc3.c: Use __isinf_nsl instead of isinf.
10246         * math/multc3.c: Likewise.
10247         * math/s_casin.c: Likewise.
10248         * math/s_casinf.c: Likewise.
10249         * math/s_casinl.c: Likewise.
10250         * math/s_ccos.c: Likewise.
10251         * math/s_ccosf.c: Likewise.
10252         * math/s_ccosl.c: Likewise.
10253         * math/s_ctan.c: Likewise.
10254         * math/s_ctanf.c: Likewise.
10255         * math/s_ctanh.c: Likewise.
10256         * math/s_ctanhf.c: Likewise.
10257         * math/s_ctanhl.c: Likewise.
10258         * math/s_ctanl.c: Likewise.
10259         * math/w_fmod.c: Likewise.
10260         * math/w_fmodf.c: Likewise.
10261         * math/w_fmodl.c: Likewise.
10262         * math/w_remainder.c: Likewise.
10263         * math/w_remainderf.c: Likewise.
10264         * math/w_remainderl.c: Likewise.
10265         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
10266         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
10267         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
10268         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
10269         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
10270         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
10271         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
10272         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
10273
10274         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
10275         of the number.
10276         * stdio-common/printf_fphex.c: Likewise.
10277         * stdio-common/printf_size.c: Likewise.
10278
10279         * math/e_exp10.c: Include math_private.h using <...> not "...".
10280         * math/e_exp10f.c: Likewise.
10281         * math/e_exp10l.c: Likewise.
10282         * math/e_exp2l.c: Likewise.
10283         * math/e_j0l.c: Likewise.
10284         * math/e_j1l.c: Likewise.
10285         * math/e_jnl.c: Likewise.
10286         * math/e_lgammal_r.c: Likewise.
10287         * math/e_rem_pio2l.c: Likewise.
10288         * math/e_scalb.c: Likewise.
10289         * math/e_scalbf.c: Likewise.
10290         * math/e_scalbl.c: Likewise.
10291         * math/k_cosl.c: Likewise.
10292         * math/k_sinl.c: Likewise.
10293         * math/k_tanl.c: Likewise.
10294         * math/s_cacoshf.c: Likewise.
10295         * math/s_catan.c: Likewise.
10296         * math/s_catanf.c: Likewise.
10297         * math/s_catanh.c: Likewise.
10298         * math/s_catanhf.c: Likewise.
10299         * math/s_catanhl.c: Likewise.
10300         * math/s_catanl.c: Likewise.
10301         * math/s_ccosh.c: Likewise.
10302         * math/s_ccoshf.c: Likewise.
10303         * math/s_ccoshl.c: Likewise.
10304         * math/s_cexp.c: Likewise.
10305         * math/s_cexpf.c: Likewise.
10306         * math/s_cexpl.c: Likewise.
10307         * math/s_clog.c: Likewise.
10308         * math/s_clog10.c: Likewise.
10309         * math/s_clog10f.c: Likewise.
10310         * math/s_clog10l.c: Likewise.
10311         * math/s_clogf.c: Likewise.
10312         * math/s_clogl.c: Likewise.
10313         * math/s_csin.c: Likewise.
10314         * math/s_csinf.c: Likewise.
10315         * math/s_csinh.c: Likewise.
10316         * math/s_csinhf.c: Likewise.
10317         * math/s_csinhl.c: Likewise.
10318         * math/s_csinl.c: Likewise.
10319         * math/s_csqrt.c: Likewise.
10320         * math/s_csqrtf.c: Likewise.
10321         * math/s_csqrtl.c: Likewise.
10322         * math/s_ctan.c: Likewise.
10323         * math/s_ctanf.c: Likewise.
10324         * math/s_ctanh.c: Likewise.
10325         * math/s_ctanhf.c: Likewise.
10326         * math/s_ctanhl.c: Likewise.
10327         * math/s_ctanl.c: Likewise.
10328         * math/s_ldexp.c: Likewise.
10329         * math/s_ldexpf.c: Likewise.
10330         * math/s_ldexpl.c: Likewise.
10331         * math/s_significand.c: Likewise.
10332         * math/s_significandf.c: Likewise.
10333         * math/s_significandl.c: Likewise.
10334         * math/w_acos.c: Likewise.
10335         * math/w_acosf.c: Likewise.
10336         * math/w_acosh.c: Likewise.
10337         * math/w_acoshf.c: Likewise.
10338         * math/w_acoshl.c: Likewise.
10339         * math/w_acosl.c: Likewise.
10340         * math/w_asin.c: Likewise.
10341         * math/w_asinf.c: Likewise.
10342         * math/w_asinl.c: Likewise.
10343         * math/w_atan2.c: Likewise.
10344         * math/w_atan2f.c: Likewise.
10345         * math/w_atan2l.c: Likewise.
10346         * math/w_atanh.c: Likewise.
10347         * math/w_atanhf.c: Likewise.
10348         * math/w_atanhl.c: Likewise.
10349         * math/w_cosh.c: Likewise.
10350         * math/w_coshf.c: Likewise.
10351         * math/w_coshl.c: Likewise.
10352         * math/w_dremf.c: Likewise.
10353         * math/w_exp10.c: Likewise.
10354         * math/w_exp10f.c: Likewise.
10355         * math/w_exp10l.c: Likewise.
10356         * math/w_exp2.c: Likewise.
10357         * math/w_exp2f.c: Likewise.
10358         * math/w_fmod.c: Likewise.
10359         * math/w_fmodf.c: Likewise.
10360         * math/w_fmodl.c: Likewise.
10361         * math/w_hypot.c: Likewise.
10362         * math/w_hypotf.c: Likewise.
10363         * math/w_hypotl.c: Likewise.
10364         * math/w_j0.c: Likewise.
10365         * math/w_j0f.c: Likewise.
10366         * math/w_j0l.c: Likewise.
10367         * math/w_j1.c: Likewise.
10368         * math/w_j1f.c: Likewise.
10369         * math/w_j1l.c: Likewise.
10370         * math/w_jn.c: Likewise.
10371         * math/w_jnf.c: Likewise.
10372         * math/w_jnl.c: Likewise.
10373         * math/w_lgamma.c: Likewise.
10374         * math/w_lgamma_r.c: Likewise.
10375         * math/w_lgammaf.c: Likewise.
10376         * math/w_lgammaf_r.c: Likewise.
10377         * math/w_lgammal.c: Likewise.
10378         * math/w_lgammal_r.c: Likewise.
10379         * math/w_log.c: Likewise.
10380         * math/w_log10.c: Likewise.
10381         * math/w_log10f.c: Likewise.
10382         * math/w_log10l.c: Likewise.
10383         * math/w_log2.c: Likewise.
10384         * math/w_log2f.c: Likewise.
10385         * math/w_log2l.c: Likewise.
10386         * math/w_logf.c: Likewise.
10387         * math/w_logl.c: Likewise.
10388         * math/w_pow.c: Likewise.
10389         * math/w_powf.c: Likewise.
10390         * math/w_powl.c: Likewise.
10391         * math/w_remainder.c: Likewise.
10392         * math/w_remainderf.c: Likewise.
10393         * math/w_remainderl.c: Likewise.
10394         * math/w_scalb.c: Likewise.
10395         * math/w_scalbf.c: Likewise.
10396         * math/w_scalbl.c: Likewise.
10397         * math/w_sinh.c: Likewise.
10398         * math/w_sinhf.c: Likewise.
10399         * math/w_sinhl.c: Likewise.
10400         * math/w_sqrt.c: Likewise.
10401         * math/w_sqrtf.c: Likewise.
10402         * math/w_sqrtl.c: Likewise.
10403         * math/w_tgamma.c: Likewise.
10404         * math/w_tgammaf.c: Likewise.
10405         * math/w_tgammal.c: Likewise.
10406
10407         * po/ja.po: Update from translation team.
10408
10409 2011-09-29  Andreas Jaeger  <aj@suse.de>
10410
10411         [BZ #13179]
10412         * sunrpc/netname.c (netname2host): Fix logic.
10413
10414         [BZ #6779]
10415         [BZ #6783]
10416         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
10417         correctly.
10418         * math/w_remainder.c (__remainder): Likewise.
10419         * math/w_remainderf.c (__remainderf): Likewise.
10420         * math/libm-test.inc (remainder_test): Add test cases.
10421
10422 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10423
10424         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
10425         sdiv_qrnnd.
10426
10427 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10428
10429         * string/test-memcmp.c: Avoid unncessary #defines.
10430         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10431
10432 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10433
10434         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
10435         Use new sse2 version for core i3 - i7 as it's faster
10436         than sse42 version.
10437         (bit_Prefer_PMINUB_for_stringop): New.
10438         * sysdeps/x86_64/rawmemchr.S: Update.
10439         Replace with faster SSE2 version.
10440         * sysdeps/x86_64/memrchr.S: New file.
10441         * sysdeps/x86_64/memchr.S: Update.
10442         Replace with faster SSE2 version.
10443
10444 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
10445
10446         * elf/dl-load.c (lose): Add cast to avoid warning.
10447
10448 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10449
10450         * po/ca.po: Update from translation team.
10451
10452         * inet/getnetgrent_r.c: Hook up nscd.
10453         * nscd/Makefile (routines): Add nscd_netgroup.
10454         (nscd-modules): Add netgroupcache.
10455         (CFLAGS-netgroupcache.c): Define.
10456         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
10457         (cache_search): Add const to second parameter.
10458         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
10459         INNETGR.
10460         (dbs): Add netgrdb entry.
10461         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
10462         (verify_persistent_db): Handle netgrdb.
10463         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
10464         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
10465         GETFDNETGR.
10466         (netgroup_response_header): Define.
10467         (innetgroup_response_header): Define.
10468         (datahead): Add netgroup_response_header and innetgroup_response_header
10469         elements.
10470         * nscd/nscd.conf: Add entries for netgroup cache.
10471         * nscd/nscd.h (dbtype): Add netgrdb.
10472         (_PATH_NSCD_NETGROUP_DB): Define.
10473         (netgroup_iov_disabled): Declare.
10474         (xmalloc, xcalloc, xrealloc): Move declarations here.
10475         (cache_search): Adjust prototype.
10476         Add netgroup-related prototypes.
10477         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
10478         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
10479         (__nscd_innetgr): Declare.
10480         * nscd/selinux.c (perms): Use access_vector_t as element type and
10481         add netgroup-related initializers.
10482         * nscd/netgroupcache.c: New file.
10483         * nscd/nscd_netgroup.c: New file.
10484         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
10485         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
10486         For four parameters use innetgr.
10487         * nss/nss_files/files-init.c: Add definition and callback for netgr.
10488         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
10489         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
10490         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
10491
10492         * nscd/connections.c (register_traced_file): Don't register file
10493         for disabled databases.
10494
10495 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
10496
10497         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
10498
10499         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
10500         from tree and freeing node.
10501
10502 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
10503
10504         * nss/nsswitch.c (__nss_database_lookup): Handle
10505         nss_parse_service_list out of memory case.
10506
10507 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
10508
10509         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
10510         out of memory case.
10511
10512 2011-10-04  Andreas Schwab  <schwab@redhat.com>
10513
10514         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
10515         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
10516         pass it down.
10517         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
10518         elf_machine_rela, elf_machine_lazy_rel.
10519         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
10520         (ELF_DYNAMIC_DO_REL): Likewise.
10521         (ELF_DYNAMIC_DO_RELA): Likewise.
10522         (ELF_DYNAMIC_RELOCATE): Likewise.
10523         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
10524         to ELF_DYNAMIC_DO_REL.
10525         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
10526         (dl_main): In trace mode always set __RTLD_NOIFUNC.
10527         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
10528         elf_machine_rela.
10529         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
10530         skip_ifunc, don't call ifunc function if non-zero.
10531         (elf_machine_rela): Likewise.
10532         (elf_machine_lazy_rel): Likewise.
10533         (elf_machine_lazy_rela): Likewise.
10534         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
10535         (elf_machine_lazy_rel): Likewise.
10536         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10537         Likewise.
10538         (elf_machine_lazy_rel): Likewise.
10539         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10540         Likewise.
10541         (elf_machine_lazy_rel): Likewise.
10542         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
10543         (elf_machine_lazy_rel): Likewise.
10544         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
10545         (elf_machine_lazy_rel): Likewise.
10546         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10547         (elf_machine_lazy_rel): Likewise.
10548         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10549         (elf_machine_lazy_rel): Likewise.
10550         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10551         (elf_machine_lazy_rel): Likewise.
10552         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10553         (elf_machine_lazy_rel): Likewise.
10554
10555 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
10556
10557         * nss/nss_files/files-init.c (_nss_files_init): Use static
10558         initialization for all the *_traced_file variables.
10559
10560 2011-09-28  Andreas Schwab  <schwab@redhat.com>
10561
10562         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10563
10564 2011-09-27  Roland McGrath  <roland@hack.frob.com>
10565
10566         [BZ #13226]
10567         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
10568
10569 2011-09-27  Andreas Schwab  <schwab@redhat.com>
10570
10571         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10572         Reread the line before reparsing it.
10573
10574 2011-09-26  Andreas Schwab  <schwab@redhat.com>
10575
10576         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
10577
10578 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
10579             Maxim Kuvyrkov  <maxim@codesourcery.com>
10580             Joseph Myers  <joseph@codesourcery.com>
10581
10582         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
10583         if needed for __stack_chk_guard.
10584
10585 2011-09-19  Roland McGrath  <roland@hack.frob.com>
10586
10587         * sysdeps/posix/spawni.c (script_execute): Always define it.
10588         It will be optimized away if unused.
10589         (maybe_script_execute): New function.
10590         (__spawni): Call it.
10591
10592         * Makerules: Don't include tls.make.
10593         (config-tls): Always set to thread.
10594         * tls.make.c: File removed.
10595
10596 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
10597
10598         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
10599         * config.make.in (CPPFLAGS-config): New substituted variable.
10600
10601 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10602
10603         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
10604
10605         [BZ #13192]
10606         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
10607         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
10608
10609 2011-09-15  Roland McGrath  <roland@hack.frob.com>
10610
10611         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
10612         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
10613         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10614         (CALL_FAIL): Likewise.
10615         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
10616         (CALL_FAIL): Macro removed.
10617         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
10618
10619 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10620
10621         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
10622         for __FINITE_MATH_ONLY__ == 1.
10623
10624 2011-09-15  Andreas Schwab  <schwab@redhat.com>
10625
10626         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
10627         __ieee754_sqrt instead of sqrt.
10628         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
10629         __ieee754_sqrtf instead of sqrtf.
10630         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
10631         __floorf instead of floorf.
10632         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
10633         __floorf, __truncf instead of floorf, truncf.
10634
10635 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
10636
10637         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
10638
10639         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
10640         __extern_always_inline.
10641         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
10642         32-bit.
10643
10644 2011-09-14  Andreas Schwab  <schwab@redhat.com>
10645
10646         * elf/rtld.c (dl_main): Also relocate in dependency order when
10647         doing symbol dependency testing.
10648
10649 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
10650
10651         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10652         Always define `refsym'.
10653
10654 2011-09-13  Andreas Schwab  <schwab@redhat.com>
10655
10656         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
10657         (__FD_ELT): Renamed from __FDELT.
10658         * misc/bits/select2.h (__FD_ELT): Likewise.
10659         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
10660         __FD_MASK instead of __FDELT, __FDMASK.
10661         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10662         Likewise.
10663         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10664         Likewise.
10665
10666         * elf/Makefile (gen-ldd): Fix pattern.
10667
10668         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
10669         (init_tls): Likewise.
10670
10671 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
10672
10673         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
10674
10675 2011-09-12  Andreas Schwab  <schwab@redhat.com>
10676
10677         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
10678         `struct cmsghdr *' instead of `void *'.
10679         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
10680         Likewise.
10681
10682 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
10683
10684         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
10685         if non-absolute.
10686         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
10687         ldd_rewrite_script.
10688
10689 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
10690
10691         * configure.in: Remove --with-tls option.
10692         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
10693         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
10694         out in case it is missing.
10695         * sysdeps/ia64/elf/configure.in: Likewise.
10696         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
10697         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
10698         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
10699         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10700         * sysdeps/sh/elf/configure.in: Likewise.
10701         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
10702         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10703         * sysdeps/x86_64/elf/configure.in: Likewise.
10704         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
10705         * sysdeps/mach/hurd/tls.h: Likewise.
10706
10707         [BZ #13067]
10708         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
10709
10710         [BZ #13090]
10711         * configure.in: Fix use of AC_INIT.
10712
10713         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
10714
10715 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
10716
10717         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
10718         __set_errno.
10719         * malloc/hooks.c: Likewise.
10720
10721         [BZ #11929]
10722         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
10723         variables statically.
10724         (narenas): Initialize.
10725         (list_lock): Initialize.
10726         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
10727         initializtion of main_arena and list_lock.  Small cleanups.
10728         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
10729         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
10730         Add initializers to main_arena and mp_.
10731         (malloc_state): Remove pagesize member.  Change all users to use
10732         GLRO(dl_pagesize).
10733
10734         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
10735         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
10736         is always initialized.
10737
10738         * malloc/malloc.c: Removed unused configurations and dead code.
10739         * malloc/arena.c: Likewise.
10740         * malloc/hooks.c: Likewise.
10741         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
10742
10743         * include/tls.h: Removed.  USE___THREAD must always be defined.
10744         * bits/libc-tsd.h: Don't handle !USE___THREAD.
10745         * elf/dl-libc.c: Likewise.
10746         * elf/dl-tsd.c: Likewise.
10747         * include/errno.h: Likewise.
10748         * include/netdb.h: Likewise.
10749         * include/resolv.h: Likewise.
10750         * inet/herrno-loc.c: Likewise.
10751         * inet/herrno.c: Likewise.
10752         * malloc/arena.c: Likewise.
10753         * malloc/hooks.c: Likewise.
10754         * malloc/malloc.c: Likewise.
10755         * resolv/res-state.c: Likewise.
10756         * resolv/res_libc.c: Likewise.
10757         * sysdeps/i386/dl-machine.h: Likewise.
10758         * sysdeps/ia64/dl-machine.h: Likewise.
10759         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10760         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10761         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10762         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10763         * sysdeps/sh/dl-machine.h: Likewise.
10764         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10765         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10766         * sysdeps/unix/i386/sysdep.S: Likewise.
10767         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10768         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10769         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10770         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10771         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10772         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10773         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10774         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10775         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10776         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10777         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10778         * sysdeps/x86_64/dl-machine.h: Likewise.
10779         * tls.make.c: Likewise.
10780
10781         * configure.in: Remove --with-__thread option.  Make tests for
10782         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
10783         tls_model attribute fail if no support is available.  Remove
10784         USE_IN_LIBIO.
10785         * Makeconfig: Adjust for dropped configure option.  All features are
10786         now mandatory.
10787         * Makerules: Likewise.
10788         * Versions.def: Likewise.
10789         * argp/argp-fmtstream.c: Likewise.
10790         * argp/argp-fmtstream.h: Likewise.
10791         * argp/argp-help.c: Likewise.
10792         * assert/assert.c: Likewise.
10793         * config.h.in: Likewise.
10794         * config.make.in: Likewise.
10795         * configure: Likewise.
10796         * configure.in: Likewise.
10797         * csu/Versions: Likewise.
10798         * csu/init.c: Likewise.
10799         * elf/tst-audit2.c: Likewise.
10800         * elf/tst-tls10.c: Likewise.
10801         * elf/tst-tls10.h: Likewise.
10802         * elf/tst-tls11.c: Likewise.
10803         * elf/tst-tls12.c: Likewise.
10804         * elf/tst-tls14.c: Likewise.
10805         * elf/tst-tlsmod11.c: Likewise.
10806         * elf/tst-tlsmod12.c: Likewise.
10807         * elf/tst-tlsmod13.c: Likewise.
10808         * elf/tst-tlsmod13a.c: Likewise.
10809         * elf/tst-tlsmod14a.c: Likewise.
10810         * elf/tst-tlsmod15b.c: Likewise.
10811         * elf/tst-tlsmod16a.c: Likewise.
10812         * elf/tst-tlsmod16b.c: Likewise.
10813         * elf/tst-tlsmod7.c: Likewise.
10814         * elf/tst-tlsmod8.c: Likewise.
10815         * elf/tst-tlsmod9.c: Likewise.
10816         * gmon/gmon.c: Likewise.
10817         * grp/fgetgrent_r.c: Likewise.
10818         * grp/putgrent.c: Likewise.
10819         * hurd/fopenport.c: Likewise.
10820         * include/libc-symbols.h: Likewise.
10821         * include/tls.h: Likewise.
10822         * intl/gettextP.h: Likewise.
10823         * intl/loadinfo.h: Likewise.
10824         * locale/global-locale.c: Likewise.
10825         * locale/localeinfo.h: Likewise.
10826         * mach/devstream.c: Likewise.
10827         * malloc/arena.c: Likewise.
10828         * malloc/set-freeres.c: Likewise.
10829         * misc/err.c: Likewise.
10830         * misc/getttyent.c: Likewise.
10831         * misc/mntent_r.c: Likewise.
10832         * posix/getopt.c: Likewise.
10833         * posix/wordexp.c: Likewise.
10834         * pwd/fgetpwent_r.c: Likewise.
10835         * resolv/Versions: Likewise.
10836         * resolv/res_hconf.c: Likewise.
10837         * shadow/fgetspent_r.c: Likewise.
10838         * shadow/putspent.c: Likewise.
10839         * stdio-common/printf_fphex.c: Likewise.
10840         * stdio-common/tmpfile.c: Likewise.
10841         * stdlib/abort.c: Likewise.
10842         * stdlib/fmtmsg.c: Likewise.
10843         * sunrpc/auth_unix.c: Likewise.
10844         * sunrpc/clnt_perr.c: Likewise.
10845         * sunrpc/clnt_tcp.c: Likewise.
10846         * sunrpc/clnt_udp.c: Likewise.
10847         * sunrpc/clnt_unix.c: Likewise.
10848         * sunrpc/openchild.c: Likewise.
10849         * sunrpc/svc_simple.c: Likewise.
10850         * sunrpc/svc_tcp.c: Likewise.
10851         * sunrpc/svc_udp.c: Likewise.
10852         * sunrpc/svc_unix.c: Likewise.
10853         * sunrpc/xdr.c: Likewise.
10854         * sunrpc/xdr_array.c: Likewise.
10855         * sunrpc/xdr_rec.c: Likewise.
10856         * sunrpc/xdr_ref.c: Likewise.
10857         * sunrpc/xdr_stdio.c: Likewise.
10858
10859 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10860
10861         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10862
10863 2011-07-03  Andreas Jaeger  <aj@suse.de>
10864
10865         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
10866         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
10867         regenerate with gen-libm-tests.pl.
10868
10869 2010-05-12  Petr Baudis  <pasky@suse.cz>
10870
10871         [BZ #11589]
10872         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
10873         around j0() zero points by switching to j1().
10874         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10875         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10876         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10877         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10878
10879 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10880
10881         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
10882         instead of 0.
10883         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
10884         instead of 0.                              .
10885         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10886         Patch in part by Pavel Roskin <proski@gnu.org>.
10887
10888         [BZ #13138]
10889         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
10890         realloc.
10891         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
10892         Free memory block if necessary.
10893
10894         [BZ #12847]
10895         * libio/genops.c (INTDEF): For string streams the _lock pointer can
10896         be NULL.  Don't lock in this case.
10897
10898 2011-09-09  Roland McGrath  <roland@hack.frob.com>
10899
10900         * elf/elf.h (ELFOSABI_GNU): New macro.
10901         (ELFOSABI_LINUX): Define to that.
10902
10903 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
10904
10905         * string/strncat.c (strncat): Undef the symbol in case it has been
10906         defined in bits/string.h.
10907
10908 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10909
10910         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
10911
10912         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
10913         link map.
10914
10915 2011-08-17  Andreas Jaeger  <aj@suse.de>
10916
10917         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
10918
10919 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10920             Ian Lance Taylor  <iant@google.com>
10921
10922         * math/libm-test.inc (lround_test): New testcase.
10923         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
10924
10925 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
10926
10927         * Makefile: Remove support for automatic cvs check-ins.
10928         * Makerules: Likewise.
10929         * config.make.in: Likewise.
10930         * configure.in: Likewise.
10931         * intl/Makefile: Likewise.
10932         * locale/Makefile: Likewise.
10933         * po/Makefile: Likewise.
10934         * posix/Makefile: Likewise.
10935         * sysdeps/gnu/Makefile: Likewise.
10936         * sysdeps/mach/hurd/Makefile: Likewise.
10937         * sysdeps/sparc/sparc32/Makefile: Likewise.
10938
10939         [BZ #13118]
10940         * posix/Makefile (bug-regex32-ENV): Define.
10941         Patch by John Stanley <jpsinthemix@verizon.net>.
10942
10943         * misc/Makefile (headers): Add bits/select2.h.
10944         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
10945         * misc/bits/select2.h: New file.
10946         * include/bits/select2.h: New file.
10947         * debug/Makefile (routines): Add fdelt_chk.
10948         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
10949         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
10950         FD_ISSET.
10951         * debug/fdelt_chk.c: New file.
10952
10953         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
10954         * wcsmbs/test-wmemcmp.c: Likewise.
10955         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
10956         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
10957
10958 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10959
10960         * string/Makefile (strop-tests): Add memcmp.
10961         * string/test-wmemcmp.c: New file.
10962         * string/test-memcmp.c: Add wmemcmp support.
10963
10964 2011-09-08  Roland McGrath  <roland@hack.frob.com>
10965
10966         [BZ #13153]
10967         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
10968         2011-07-19 change.
10969
10970         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
10971         garbage value in a __mach_port_mod_refs call in the cases of the
10972         task-self and thread-self ports.
10973
10974 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10975
10976         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
10977
10978 2011-09-08  Andreas Schwab  <schwab@redhat.com>
10979
10980         * elf/dl-load.c (lose): Check for non-null L.
10981
10982 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10983
10984         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
10985
10986         * elf/dl-libc.c (dlerror_run): Pass back error code from
10987         dl_catch_error.
10988
10989         [BZ #13123]
10990         * elf/dl-load.c (lose): Free l_origin if it is valid.
10991
10992         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
10993         names.
10994         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
10995         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10996         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10997         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10998         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
10999         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
11000
11001 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11002
11003         * sysdeps/powerpc/fpu/e_hypot.c: New file.
11004         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
11005         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
11006         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
11007         * sysdeps/powerpc/fpu/k_cosf.c: New file.
11008         * sysdeps/powerpc/fpu/k_sinf.c: New file.
11009         * sysdeps/powerpc/fpu/s_cosf.c: New file.
11010         * sysdeps/powerpc/fpu/s_sinf.c: New file.
11011         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
11012         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
11013
11014 2011-08-15  Alan Modra  <amodra@gmail.com>
11015
11016         [BZ #13092]
11017         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
11018         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
11019         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
11020         ppc_mcount to static-only-routines.
11021         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
11022         __mcount_internal.
11023         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
11024         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
11025
11026 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
11027
11028         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
11029         for finite and infinity parameters.
11030
11031 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11032
11033         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
11034         and add nop instructions for throughput optimization.
11035         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11036
11037 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
11038
11039         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
11040         aligned copy for power7 with vector-scalar instructions.
11041         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
11042
11043 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11044
11045         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
11046         AVX check.
11047
11048 2011-09-07  Andreas Schwab  <schwab@redhat.com>
11049
11050         [BZ #13144]
11051         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
11052         last change.
11053
11054 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
11055
11056         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11057         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
11058         syscall wrapper around clock_gettime in __vdso_clock_gettime.
11059         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
11060         clock_gettime.
11061
11062 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
11063
11064         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
11065         Forgot to demangle the pointer.
11066
11067         * sysdeps/i386/sysdep.h: Define atom_text_section.
11068         * sysdeps/x86_64/sysdep.h: Likewise.
11069         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
11070         section with atom_text_section.
11071         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
11072         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
11073         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
11074         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11075         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
11076
11077         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
11078         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
11079         already be defined.  Change to take two parameters and don't assign
11080         result to variable.  Adjust all users.
11081         Define INTERNAL_GETTIME if not already defined.
11082         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
11083         call.
11084         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
11085         HAVE_CLOCK_GETTIME_VSYSCALL.
11086         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
11087
11088         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
11089         gettimeofday vsyscall, just use time.
11090
11091 2011-09-06  Andreas Schwab  <schwab@redhat.com>
11092
11093         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
11094         <errno.h>.
11095
11096 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
11097
11098         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
11099         syscall on x86-64.
11100         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
11101         syscall.
11102         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
11103         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
11104         syscall if possible.
11105
11106 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11107
11108         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
11109         e_ident.  Don't pass to find_mapsXX.
11110         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
11111
11112 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11113
11114         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11115         strchr-sse2-no-bsf strrchr-sse2-no-bsf
11116         * sysdeps/x86_64/multiarch/strchr.S: Update.
11117         Check bit_slow_BSF bit.
11118         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
11119         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
11120         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
11121
11122 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11123
11124         [BZ #13134]
11125         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
11126         before glibc 2.15.
11127         (tryshell): Define.
11128         (__spawni): Change last parameter to be flag.  Test
11129         SPAWN_XFLAGS_USE_PATH flag to use path or not.
11130         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
11131         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
11132         * posix/spawni.c: Likewise.
11133         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
11134         * posix/spawnp.c: Likewise.  Change normal version to use
11135         SPAWN_XFLAGS_USE_PATH.
11136         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
11137         SPAWN_XFLAGS_TRY_SHELL.
11138
11139         [BZ #13150]
11140         * posix/glob.h: Remove gcc 1.x support.
11141
11142         [BZ #13068]
11143         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
11144
11145 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11146
11147         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11148         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
11149         strrchr-sse2-bsf
11150         * sysdeps/i386/i686/multiarch/strchr.S: New file.
11151         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
11152         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
11153         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
11154         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
11155         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
11156
11157 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11158
11159         * sysdeps/x86_64/wcscmp.S: New file.
11160
11161         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
11162         wcscmp-c wcscmp-sse2
11163         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
11164         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
11165         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
11166         * wcsmbs/wcscmp.c: Allow renaming.
11167
11168 2011-09-05  David S. Miller  <davem@davemloft.net>
11169
11170         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
11171         stack slot, rather than the struct return pointer slot.
11172         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
11173         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
11174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
11175         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
11176
11177 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11178
11179         * po/ja.po: Update from translation team.
11180
11181         [BZ #13144]
11182         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
11183         kernel in 64-bit binaries.
11184
11185 2011-09-01  David S. Miller  <davem@davemloft.net>
11186
11187         * elf/elf.h (HWCAP_SPARC_*): Move to..
11188         * sysdeps/sparc/sysdep.h: this new file and add new values.
11189         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
11190         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
11191         _DL_HWCAP_COUNT to 24.
11192         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
11193         entries.
11194         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
11195         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
11196         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
11197         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
11198         instead of magic constants.
11199         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11200
11201 2011-08-31  David S. Miller  <davem@davemloft.net>
11202
11203         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
11204         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
11205         Reimplement to do errno handling inline.
11206         (SYSCALL_ERROR_HANDLER): New macro.
11207         (__SYSCALL_STRING): Do not do errno handling in asm.
11208         (__CLONE_SYSCALL_STRING): Delete.
11209         (__INTERNAL_SYSCALL_STRING): Delete.
11210         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
11211         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
11212         (PSEUDO): Reimplement to do errno handling inline.
11213         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
11214         (SYSCALL_ERROR_HANDLER): New macro.
11215         (__SYSCALL_STRING): Do not do errno handling in asm.
11216         (__CLONE_SYSCALL_STRING): Delete.
11217         (__INTERNAL_SYSCALL_STRING): Delete.
11218         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
11219         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
11220         i386.
11221         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
11222         (inline_syscall*): Add 'err' argument.
11223         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
11224         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
11225         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
11226         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
11227
11228         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
11229         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
11230
11231 2011-08-30  Andreas Schwab  <schwab@redhat.com>
11232
11233         * elf/rtld.c (dl_main): Relocate objects in dependency order.
11234
11235 2011-08-29  Jiri Olsa <jolsa@redhat.com>
11236
11237         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
11238         directive.
11239
11240 2011-08-24  David S. Miller  <davem@davemloft.net>
11241
11242         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
11243
11244 2011-08-24  Andreas Schwab  <schwab@redhat.com>
11245
11246         * elf/Makefile: Add rules to build and run unload8 test.
11247         * elf/unload8.c: New file.
11248         * elf/unload8mod1.c: New file.
11249         * elf/unload8mod1x.c: New file.
11250         * elf/unload8mod2.c: New file.
11251         * elf/unload8mod3.c: New file.
11252
11253         * elf/dl-close.c (_dl_close_worker): Reset private search list if
11254         it wasn't used.
11255
11256 2011-08-23  David S. Miller  <davem@davemloft.net>
11257
11258         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
11259         subtract stack bias.
11260         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
11261         %sp not %fp in calculations.
11262         (_JMPBUF_UNWINDS_ADJ): Likewise.
11263
11264         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
11265         (aio_suspend): Call it to force an exception region around the
11266         AIO_MISC_WAIT() invocation.
11267
11268 2011-08-23  Andreas Schwab  <schwab@redhat.com>
11269
11270         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
11271         backslash.
11272
11273 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
11274
11275         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
11276         protection macro.
11277         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
11278         and <dl-machine.h>.
11279         (Elf64_FuncDesc): Remove.
11280
11281 2011-08-22  David S. Miller  <davem@davemloft.net>
11282
11283         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
11284         sigaltstack check, add missing cfi directives.
11285         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
11286         missing cfi directives, and sigaltstack handling.
11287
11288 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11289
11290         [BZ #11724]
11291         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
11292         object is seen twice.
11293         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11294
11295         * elf/Makefile (distribute): Add tst-initorder2.c.
11296         (tests): Add tst-initorder2.
11297         (modules-names): Add tst-initorder2a tst-initorder2b
11298         tst-initorder2c tst-initorder2d.  Add rules to build them.
11299         ($(objpfx)tst-initorder2.out): New rule.
11300         * elf/tst-initorder2.c: New file.
11301         * elf/tst-initorder2.exp: New file.
11302
11303 2011-08-22  Andreas Schwab  <schwab@redhat.com>
11304
11305         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
11306
11307         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
11308         dependencies back to end of function.
11309
11310         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11311         $(elfobjdir)/ld.so.
11312
11313 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
11314
11315         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
11316         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
11317         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11318         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11319         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
11320         of __vdso_gettimeofday.
11321         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
11322         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
11323         attribute_hidden.
11324         (_libc_vdso_platform_setup): Remove initialization of
11325         __vdso_gettimeofday and __vdso_time.
11326
11327 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11328
11329         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
11330         and fgetc_unlocked.
11331         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
11332         getc_unlocked.
11333
11334         * elf/dl-open.c (add_to_global): Report additions to the global scope
11335         for LD_DEBUG=scopes.
11336         (dl_open_worker): Also print scope of newly loaded dependencies.
11337         (_dl_show_scope): Indicate if there is no scope.
11338
11339         [BZ #13114]
11340         * stdio-common/Makefile (tests): Add bug24.
11341         * stdio-common/bug24.c: New file.
11342
11343 2011-08-19  Andreas Jaeger  <aj@suse.de>
11344
11345         [BZ #13114]
11346         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
11347         non-existant file when using close-on-exec mode.
11348
11349 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11350
11351         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
11352         the very first instruction.
11353
11354         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
11355         the CFI state in the end.
11356         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
11357         inclusion of dl-trampoline.h.
11358         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
11359
11360 2011-08-19  Andreas Schwab  <schwab@redhat.com>
11361
11362         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
11363         expectations for long double.
11364
11365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
11366         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
11367
11368 2011-08-14  David S. Miller  <davem@davemloft.net>
11369
11370         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
11371         artificual limit depends upon the system page size.
11372
11373 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11374
11375         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
11376         * resolv/Makefile: Define CFLAGS-libresolv.
11377
11378 2011-08-17  Andreas Schwab  <schwab@redhat.com>
11379
11380         * nss/makedb.c (compute_tables): Make variables used in nested
11381         function static.
11382
11383 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11384
11385         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
11386         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
11387         if buffer was too small.
11388
11389         * elf/pldd.c (main): Attach to all threads in the process.
11390         Rewrite /proc handling to use *at functions.
11391
11392 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
11393
11394         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
11395         specifies first scope to show.
11396         (dl_open_worker): Update callers.  Move printing scope of new
11397         object to before the relocation.
11398         * elf/rtld.c (dl_main): Update _dl_show_scope call.
11399         * sysdeps/generic/ldsodefs.h: Update declaration.
11400
11401         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
11402         string for the scope number.
11403
11404 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
11405
11406         * nscd/servicescache.c (cache_addserv): Make sure written is always
11407         initialized.
11408
11409 2011-08-14  Roland McGrath  <roland@hack.frob.com>
11410
11411         * sysdeps/i386/i486/bits/atomic.h
11412         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
11413         statement expression, so as to suppress "set but not used" warning.
11414         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
11415
11416         * string/strncat.c (STRNCAT): Use prototype definition.
11417
11418         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
11419         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
11420         -Iprograms here.
11421         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
11422         (localedef-modules): Add localedef.
11423         (locale-modules): Add locale.
11424
11425         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
11426         * elf/rtld.c (dl_main): Invert order of assignment in last change,
11427         to avoid a warning.
11428
11429 2011-08-14  David S. Miller  <davem@davemloft.net>
11430
11431         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
11432         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
11433
11434 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
11435
11436         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
11437         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
11438         * elf/rtld.c (dl_main): Set l_name of vDSO.
11439         Call _dl_show_scope when DL_DEBUG_SCOPES.
11440         (process_dl_debug): Recognize scopes flag and also set it for all.
11441         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
11442         Declare _dl_show_scope.
11443
11444         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
11445         (do_dlopen): Pass caller_dlopen to dl_open.
11446         (__libc_dlopen_mode): Initialize caller_dlopen.
11447
11448         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
11449         of libc.  Make tolower call locale-independent.  Optimize a bit by
11450         using isdigit instead of isalnum.
11451         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
11452
11453 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
11454
11455         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
11456         was a dependency or dynamically loaded.
11457
11458 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
11459
11460         * intl/l10nflist.c: Allow architecture-specific pop function.
11461         * sysdeps/x86_64/l10nflist.c: New file.
11462
11463         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
11464         classification.
11465
11466 2011-08-10  Andreas Schwab  <schwab@redhat.com>
11467
11468         * include/dirent.h: Add libc_hidden_proto for scandirat and
11469         scandirat64.  Don't declare __scandirat64.
11470         * dirent/scandirat.c: Add libc_hidden_def.
11471         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
11472         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
11473
11474 2011-08-10  David S. Miller  <davem@davemloft.net>
11475
11476         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
11477         enum.
11478         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11479         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11480         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11481
11482 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
11483
11484         * Versions.def [libc]: Add GLIBC_2.15.
11485         * dirent/Makefile (routines): Add scandirat and scandirat64.
11486         * dirent/Versions [libc]: Export scandirat and scandirat64 for
11487         GLIBC_2.15.
11488         * dirent/dirent.h: Declare scandirat and scandirat64.
11489         * dirent/scandirat.c: New file.
11490         * dirent/scandirat64.c: New file.
11491         * sysdeps/wordsize-64/scandirat.c: New file.
11492         * sysdeps/wordsize-64/scandirat64.c: New file.
11493         * dirent/opendir.c: Define opendirat.
11494         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
11495         using scandirat.
11496         * dirent/scandir64.c: Adjust for scandir.c change.
11497         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
11498         __scandirat64, and __scandir_cancel_handler.
11499         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
11500         additional parameter and use openat instead of open (outside of ld.so).
11501         Add new __opendir as wrapper around __opendirat.
11502         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
11503         here without requiring old scandirat implementation.
11504
11505 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
11506
11507         * dirent/scandir.c (cancel_handler): Renamed to
11508         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
11509         defined.  Adjust users.
11510         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
11511         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
11512
11513 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
11514
11515         * string/test-string.h (IMPL): Use __STRING to expand name and then
11516         stringify it.
11517
11518         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
11519         of cleanups.
11520
11521 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11522
11523         * string/Makefile: Update.
11524         (strop-tests): Append strncat.
11525         * string/test-wcscmp.c: New file.
11526         New comprehensive test for wcscmp.
11527         * string/test-strcmp.c: Update.
11528         (WIDE): New define.
11529
11530 2011-07-22  Andreas Schwab  <schwab@redhat.com>
11531
11532         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
11533         line.
11534
11535 2011-07-26  Andreas Schwab  <schwab@redhat.com>
11536
11537         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11538         encoding to ACE if AI_IDN.
11539
11540 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
11541
11542         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
11543         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
11544
11545 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11546
11547         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
11548         Fix overflow bug in strncat.
11549         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
11550
11551         * string/test-strncat.c: Update.
11552         Add new tests for checking overflow bugs.
11553
11554 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11555
11556         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11557         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
11558         * sysdeps/i386/i686/multiarch/strcat.S: New file.
11559         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
11560         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
11561         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
11562         * sysdeps/i386/i686/multiarch/strncat.S: New file.
11563         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
11564         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
11565
11566         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
11567         (USE_AS_STRCAT): Define.
11568         Add strcat and strncat support.
11569         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11570
11571 2011-07-25  Andreas Schwab  <schwab@redhat.com>
11572
11573         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
11574         __n bigger than INT_MAX+1.
11575         (__strncmp_g): Likewise.
11576
11577 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
11578
11579         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
11580         * libio/stido.h: Likewise.
11581
11582         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
11583         (AF_NFC): Define.
11584         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
11585         (AF_NFC): Define.
11586
11587         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
11588         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11589         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11590         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11591         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11592
11593         [BZ #13021]
11594         * scripts/test-installation.pl: Don't expect libnss_test1 to be
11595         installed.
11596
11597         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
11598         typo.
11599         (_dl_x86_64_save_sse): Likewise.
11600
11601 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
11602
11603         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
11604         OSXSAVE.
11605         (_dl_x86_64_save_sse): Likewise.
11606
11607         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
11608
11609         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
11610
11611 2011-07-21  Andreas Schwab  <schwab@redhat.com>
11612
11613         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
11614         change.
11615         (_dl_x86_64_save_sse): Use correct AVX check.
11616
11617 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11618
11619         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
11620         bug in strncpy/strncat.
11621         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
11622
11623 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
11624
11625         * string/tester.c (test_strcat): Add tests for different alignments
11626         of source and destination.
11627         (test_strncat): Likewise.
11628
11629 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11630
11631         [BZ #12852]
11632         * posix/glob.c (glob): Check passed in values before using them in
11633         expressions to avoid some overflows.
11634         (glob_in_dir): Likewise.
11635
11636         [BZ #13007]
11637         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
11638         check for AVX enablement so that we don't crash with old kernels and
11639         new hardware.
11640         * elf/tst-audit4.c: Add same checks here.
11641         * elf/tst-audit6.c: Likewise.
11642
11643         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
11644
11645 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
11646
11647         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
11648
11649 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11650
11651         * po/cs.po: Update from translation team.
11652         * po/bg.po: Likewise.
11653
11654 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
11655
11656         * misc/sys/cdefs.h: Add support for const attribute.
11657         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
11658         to gnu_dev_{major,minor,makedev} functions.
11659
11660 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
11661
11662         * intl/dcigettext.c (get_output_charset): Add missing bracket.
11663
11664 2011-07-20  Andreas Schwab  <schwab@redhat.com>
11665
11666         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
11667         strlen results.
11668
11669 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11670
11671         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
11672         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
11673         register in order to avoid conflicts with the soft frame pointer
11674         being held in r11 when necessary.
11675         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11676         (INTERNAL_VSYSCALL_NCS): Likewise.
11677
11678 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
11679
11680         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
11681         * elf/dl-fini.c (_dl_fini): Adjust caller.
11682         * elf/dl-close.c (_dl_close_worker): Likewise.
11683         * sysdeps/generic/ldsodefs.h: Adjust declaration.
11684
11685 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11686
11687         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
11688         "aux_cache->nlibs < 0".
11689
11690         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
11691         in the reload-count case.
11692
11693 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11694
11695         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11696         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
11697         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
11698         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
11699         * sysdeps/x86_64/multiarch/strcat.S: New file.
11700         * sysdeps/x86_64/multiarch/strncat.S: New file.
11701         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
11702         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
11703         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
11704         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
11705         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
11706         (USE_AS_STRCAT): Define.
11707         Add strcat and strncat support.
11708         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11709         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
11710         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
11711         * string/strncat.c: Update.
11712         (USE_AS_STRNCAT): Define.
11713         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11714         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
11715         and i7.
11716         * sysdeps/x86_64/multiarch/init-arch.h
11717         (bit_Prefer_PMINUB_for_stringop): New.
11718         (index_Prefer_PMINUB_for_stringop): Likewise.
11719         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
11720         bit_Prefer_PMINUB_for_stringop.
11721
11722 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11723
11724         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
11725         buffer64.
11726         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
11727         of casting of buffer.
11728         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
11729         buffer32 and buffer64.
11730         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
11731         writes instead of casting of buffer.
11732         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
11733         buffer32.
11734         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
11735         casting of buffer.
11736
11737 2011-07-19  Andreas Schwab  <schwab@redhat.com>
11738
11739         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
11740
11741 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11742
11743         * nscd/nscd.c (termination_handler): Don't do anything for a database
11744         if it has not yet been initialized.
11745
11746 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11747
11748         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11749
11750 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11751
11752         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11753
11754 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11755
11756         * po/nl.po: Update from translation team.
11757         * po/sv.po: Likewise.
11758
11759 2011-07-16  Roland McGrath  <roland@hack.frob.com>
11760
11761         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
11762         now disallowed by GCC.
11763
11764         * configure.in (use-default-link): Default to yes if a test -shared
11765         link meets our qualifications.
11766         * configure: Regenerated.
11767
11768         * config.make.in (output-format): New variable.
11769         * configure.in: Check for ld --print-output-format support.
11770         * configure: Regenerated.
11771         * Makerules ($(common-objpfx)format.lds)
11772         [$(output-format) != unknown]: Just use $(output-format),
11773         instead of the linker-script munging.
11774
11775 2011-07-14  Roland McGrath  <roland@hack.frob.com>
11776
11777         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
11778         of $(common-objpfx)shlib.lds.
11779         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
11780
11781         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
11782         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
11783
11784         * configure.in (-z relro check): Adjust test code to add a large
11785         writable data section after it.
11786         * configure: Regenerated.
11787
11788 2011-07-11  Roland McGrath  <roland@hack.frob.com>
11789
11790         * configure.in (-z relro check): Fix test code to make the variable
11791         truly const.
11792         * configure: Regenerated.
11793
11794 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
11795
11796         * nscd/nscd.h (struct traced_file): Define.
11797         (struct database_dyn): Remove inotify_descr, reset_res, and filename
11798         elements.  Add traced_files.
11799         (inotify_fd): Declare.
11800         (register_traced_file): Declare.
11801         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
11802         (inotify_fd): Export.
11803         (resolv_conf_descr): Remove.
11804         (nscd_init): Move inotify descriptor creation to main.
11805         Don't register files for notification here.
11806         (register_traced_file): New function.
11807         (invalidate_cache): Don't use reset_res to determine whether to call
11808         res_init, go through the list of registered files.
11809         (main_loop_poll): The inotify descriptors are now stored in the
11810         structures for the traced files.
11811         (main_loop_epoll): Likewise
11812         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
11813         to __nss_disable_nscd.
11814         * nscd/cache.c (prune_cache): There is no single inotify descriptor
11815         for a database anymore.  Check the records for all the registered
11816         files instead.
11817         * nss/Makefile (libnss_files-routines): Add files-init.
11818         (libnss_db-routines): Add db-init.
11819         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
11820         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
11821         * nss/nss_db/db-init.c: New file.
11822         * nss/nss_files/files-init.c: New file.
11823         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
11824         __nss_lookup_function.
11825         (__nss_lookup_function): Call nss_load_library.
11826         (nss_load_all_libraries): New function.
11827         (__nss_disable_nscd): Take parameter with callback function for files
11828         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
11829         used for the cached services.
11830         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
11831         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
11832         options for features to all the files in nscd.
11833
11834         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
11835
11836 2011-07-10  Roland McGrath  <roland@hack.frob.com>
11837
11838         * csu/elf-init.c (__libc_csu_init): Comment typo.
11839
11840 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
11841
11842         * po/pl.po: Update from translation team.
11843         * po/ja.po: Likewise.
11844         * po/ru.po: Likewise.
11845         * po/ko.po: Likewise.
11846         * po/fr.po: Likewise.
11847
11848 2011-07-09  Roland McGrath  <roland@hack.frob.com>
11849
11850         * configure.in (.ctors/.dtors header and trailer check):
11851         Use an empirical test on a built program.
11852         * configure: Regenerated.
11853
11854         * configure.in (-z relro check): Use an empirical test on a built DSO.
11855         Detect, but do not require, on ia64.
11856         * configure: Regenerated.
11857
11858         * configure.in (READELF): Find it with AC_CHECK_TOOL.
11859         Update tests that use readelf to use $READELF instead.
11860         * configure: Regenerated.
11861
11862 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
11863
11864         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
11865         if the result is not used.
11866
11867 2011-07-05  Andreas Jaeger  <aj@suse.de>
11868
11869         [BZ#9696]
11870         * stdlib/tst-strtod.c: Add testcase.
11871
11872 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11873
11874         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
11875         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
11876         The latter has a higher limit.  Take additional parameter to pass to
11877         the new function.
11878         (__pathconf): Pass file to __statfs_link_max.
11879         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
11880         __statfs_link_max.
11881         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
11882         __statfs_link_max.
11883
11884         [BZ #12868]
11885         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
11886         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11887         Handle Lustre.
11888         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
11889         (__statfs_filesize_max): Likewise.
11890         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
11891
11892 2011-07-05  Andreas Jaeger  <aj@suse.de>
11893
11894         * resolv/res_comp.c (dn_skipname): Remove unused variable.
11895
11896 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
11897
11898         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
11899         `status' variable.
11900         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
11901         Likewise.
11902
11903 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11904
11905         * Makefile (strop-tests): Add strncat.
11906         * string/test-strncat.c: New file.
11907
11908 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
11909
11910         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
11911
11912 2011-06-21  Andreas Jaeger  <aj@suse.de>
11913
11914         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
11915         Copy rule from iconvdata/Makefile.
11916
11917 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11918
11919         [BZ #12922]
11920         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
11921         but no long options are defined, just return 'W'.
11922
11923 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
11924
11925         [BZ #9696]
11926         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
11927
11928 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11929
11930         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
11931         netgroups to read.
11932         (innetgr): Likewise.
11933
11934 2011-07-05  Roland McGrath  <roland@hack.frob.com>
11935
11936         * config.make.in (install_root): Default to $(DESTDIR).
11937
11938 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
11939
11940         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
11941
11942 2011-07-02  Roland McGrath  <roland@hack.frob.com>
11943
11944         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
11945
11946         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
11947         containing directory rather than embedding absolute directory names.
11948
11949         * scripts/check-local-headers.sh: Rewritten using awk.
11950         Match by word, not by line.  Print error messages for matches.
11951         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
11952
11953         * Makerules [shlib-lds-flags empty]:
11954         ($(common-objpfx)libc_pic.opts): New target.
11955         ($(common-objpfx)libc_pic.os.clean): New target.
11956         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
11957
11958         * config.make.in (OBJCOPY): New variable.
11959         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
11960         * configure: Regenerated.
11961
11962         * config.make.in (use-default-link): New variable.
11963         * configure.in (use_default_link): Grok --with-default-link to set it.
11964         * configure: Regenerated.
11965         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
11966         (shlib-lds, shlib-lds-flags): Define to empty.
11967
11968         * Makerules (shlib-lds): New variable.
11969         (shlib-lds-flags): New variable.
11970         (build-shlib, build-moduile, build-module-asneeded): Use it.
11971         ($(common-objpfx)libc.so): Use $(shlib-lds).
11972         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
11973         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
11974
11975         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
11976         DT_FLAGS/DT_FLAGS_1 with zero flags.
11977
11978         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
11979         linker script munging.
11980
11981 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
11982
11983         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
11984         as 128-bit value.
11985         * crypt/sha512.c (sha512_process_block): Perform total addition using
11986         128-bit if possible.
11987         (__sha512_finish_ctx): Likewise.
11988         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
11989         as 64-bit value.
11990         * crypt/sha256.c (SWAP64): Define.
11991         (sha256_process_block): Perform total addition using 64-bit if
11992         possible.
11993         (__sha256_finish_ctx): Likewise.
11994
11995 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
11996
11997         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
11998         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11999         * nscd/hstcache.c (cache_addhst): Likewise.
12000         * nscd/grpcache.c (cache_addgr): Likewise.
12001         * nscd/aicache.c (addhstaiX): Likewise
12002         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
12003
12004 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
12005
12006         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
12007         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12008         * nscd/hstcache.c (cache_addhst): Likewise.
12009         * nscd/grpcache.c (cache_addgr): Likewise.
12010         * nscd/aicache.c (addhstaiX): Likewise
12011
12012 2011-07-01  Andreas Schwab  <schwab@redhat.com>
12013
12014         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
12015         domain only when needed.
12016
12017 2011-06-30  Andreas Schwab  <schwab@redhat.com>
12018
12019         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
12020         is always restored.
12021
12022 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
12023
12024         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
12025         are re-adding the entry.
12026         * nscd/servicescache.c (cache_addserv): Likewise.
12027
12028 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
12029
12030         * sysdeps/generic/dl-irel.h: fix protection against multiple
12031         inclusions.
12032         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
12033
12034 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
12035
12036         [BZ #12935]
12037         * malloc/memusage.sh: Fix quoting in message.
12038         * debug/xtrace.sh: Likewise.
12039
12040         * configure.in: Remove support for --experimental-malloc option, make
12041         it the default.
12042         * config.make.in: Likewise.
12043         * malloc/Makefile: Likewise.
12044
12045 2011-06-27  Andreas Schwab  <schwab@redhat.com>
12046
12047         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
12048         two-byte characters.
12049
12050 2011-06-27  Roland McGrath  <roland@hack.frob.com>
12051
12052         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
12053         AC_CACHE_CHECK invocation.
12054         * configure: Regenerated.
12055
12056         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
12057
12058 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
12059
12060         [BZ #12350]
12061         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
12062         bit from old_res_options.
12063
12064         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
12065
12066         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
12067         value type for setfct.
12068
12069 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
12070
12071         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
12072         __gettimeofday instead of gettimeofday.
12073
12074 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
12075
12076         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
12077
12078 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12079
12080         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
12081
12082         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
12083         info.
12084
12085 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12086
12087         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12088         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
12089         strcpy-sse2-unaligned strncpy-sse2-unaligned
12090         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
12091         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
12092         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
12093         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
12094         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
12095         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
12096         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
12097         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
12098         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
12099         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
12100         (STRCPY): Support SSE2 and SSSE3 versions.
12101
12102 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
12103
12104         [BZ #12874]
12105         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
12106         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
12107         kernels which artificially limit size of requests.
12108
12109 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12110
12111         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12112         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
12113         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
12114         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
12115         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
12116         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
12117         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
12118         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
12119         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
12120         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
12121         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
12122         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
12123         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
12124         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
12125         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
12126         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12127         Enable unaligned load optimization for Intel Core i3, i5 and i7
12128         processors.
12129         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
12130         Define.
12131         (index_Fast_Unaligned_Load): Define.
12132         (HAS_FAST_UNALIGNED_LOAD): Define.
12133
12134 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
12135
12136         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
12137
12138 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
12139
12140         [BZ #12907]
12141         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
12142         until it is clear that the information is realy needed.
12143         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
12144
12145 2011-06-22  Andreas Schwab  <schwab@redhat.com>
12146
12147         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
12148
12149 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
12150
12151         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
12152         /sys/devices/system/cpu/online if it is usable.
12153
12154         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
12155         reading the information from the /proc filesystem to once a second.
12156
12157 2011-06-21  Andreas Jaeger  <aj@suse.de>
12158
12159         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
12160         NULL after inclusion of kernel headers.
12161
12162 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
12163
12164         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
12165         calls to internal_setent.
12166
12167         [BZ #12885]
12168         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
12169         addresses using gethostbyname4_r ignore IPv4 addresses.
12170
12171         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
12172         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
12173
12174         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
12175
12176 2011-06-20  David S. Miller  <davem@davemloft.net>
12177
12178         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
12179         inclusions.
12180         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
12181
12182         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
12183         (elf_irel): Use it.
12184         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
12185         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
12186         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
12187         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
12188         * sysdeps/x86_64/dl-irel.h: Likewise.
12189
12190         * elf/dl-runtime.c: Use elf_ifunc_invoke.
12191         * elf/dl-sym.c: Likewise.
12192
12193 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12194
12195         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
12196         need to dereference resplen2.
12197
12198 2011-06-14  Andreas Schwab  <schwab@redhat.com>
12199
12200         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
12201
12202 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12203
12204         * Makeconfig: Define vardbdir and inst_vardbdir.
12205         * nss/Makefile: Add rules to install db-Makefile.
12206
12207         * nss/nss_db/db-XXX.c: Cleanup.
12208
12209         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
12210         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
12211         GLIBC_PRIVATE.
12212         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
12213         * nss/makedb.c: Implement -g option to specify that value strings
12214         are generated and should not be added to table iterated over for
12215         get*ent calls.
12216         * nss/nss_db/db-initgroups.c: New file.
12217
12218         * nss/getent.c: Add support for initgroups lookups through getgrouplist
12219         interface.
12220
12221         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
12222         (internal_getgrouplist): Adjust to name change.
12223         Update use_initgroups_entry if this is not the first call.
12224         * nss/databases.def: Add initgroups entry.
12225
12226         * nss/makedb.c (compute_tables): Check result of multiple hash table
12227         sizes to minimize maximum chain length.
12228
12229 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
12230
12231         * Versions.def: Add entry for libnss_db.
12232         * shlib-versions: Likewise.
12233         * nss/Makefile: Add rules to build libnss_db.
12234         * nss/Versions: Add libnss_db information.  Organize libnss_files
12235         entries better.
12236         * nss/db-Makefile: Add gshadow support.  Change rules for the new
12237         makedb progra.  Some minor improvements to generate smaller files.
12238         * nss/nss_db/nss_db.h: Move NSS database header data structures to
12239         here from...
12240         * nss/makedb.c: ...here.
12241         Improve database format to be smaller and require less memory at
12242         runtime.
12243         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
12244         db anymore.
12245         * nss/nss_db/db-netgrp.c: Likewise.
12246         * nss/nss_db/db-open.c: Likewise.
12247         * nss/nss_files/flies-XXX.x: Adjust comments.
12248         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
12249         * nss/nss_files/files-grp.c: Likewise.
12250         * nss/nss_files/files-hosts.c: Likewise.
12251         * nss/nss_files/files-network.c: Likewise.
12252         * nss/nss_files/files-proto.c: Likewise.
12253         * nss/nss_files/files-pwd.c: Likewise.
12254         * nss/nss_files/files-rpc.c: Likewise.
12255         * nss/nss_files/files-service.c: Likewise.
12256         * nss/nss_files/files-sgrp.c: Likewise.
12257         * nss/nss_files/files-spwd.c: Likewise.
12258         * nss/nss_db/db-alias.c: Removed.
12259         * nss/nss_db/dummy-db.h: Removed.
12260
12261 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
12262
12263         * nss/makedb.c: Rewritten to not use database library.
12264         * nss/Makefile: Update to build new makedb program.
12265
12266 2011-06-14  Andreas Jaeger  <aj@suse.de>
12267
12268         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
12269         memset declaration.
12270
12271 2011-06-10  Andreas Schwab  <schwab@redhat.com>
12272
12273         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
12274         tmpbuf.
12275
12276 2011-06-10  Roland McGrath  <roland@hack.frob.com>
12277
12278         * Makerules (shlib.lds): Fail if the linker script comes out empty.
12279         * elf/Makefile ($(objpfx)ld.so): Likewise.
12280
12281         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
12282         Don't list ld.so twice in dependencies.
12283
12284         * posix/bug-regex31.c: Include <stdlib.h>.
12285
12286         * nscd/hstcache.c (cache_addhst): Remove unused variable.
12287
12288         * nis/nss_compat/compat-spwd.c
12289         (getspent_next_nss_netgr): Remove unused variable.
12290         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
12291
12292         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
12293         nonmembers" output to use the right array.
12294
12295         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
12296
12297         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
12298
12299         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
12300         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
12301         * catgets/gencat.c (read_input_file): Likewise.
12302         * locale/programs/locarchive.c (enlarge_archive): Likewise.
12303
12304         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
12305         variable definition inside #if's controlling its use.
12306
12307         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
12308
12309         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
12310
12311         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
12312
12313         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
12314         unreachable code.
12315
12316         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
12317
12318         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
12319         * configure: Regenerated.
12320
12321         * Makerules: Revert last change.
12322         * elf/Makefile: Likewise.
12323
12324 2011-06-09  Roland McGrath  <roland@hack.frob.com>
12325
12326         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
12327         * elf/Makefile ($(objpfx)librtld.os): Likewise.
12328         (reloc-link): Likewise.
12329
12330 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
12331
12332         * elf/Makefile: Add rules to build pldd.
12333         * elf/pldd.c: New file.
12334         * elf/pldd-xx.c: New file.
12335
12336 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
12337
12338         * version.h: Update for 2.15 development version.
12339
12340 2011-06-07  David S. Miller  <davem@davemloft.net>
12341
12342         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
12343         ifuncs.
12344         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
12345         elf_machine_lazy_rel): Likewise.
12346         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
12347         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
12348         elf_machine_lazy_rel): Likewise.
12349         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
12350         dl_hwcap via passed in argument.
12351         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
12352         Likewise.
12353
12354 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12355
12356         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
12357
12358 2011-06-06  Roland McGrath  <roland@hack.frob.com>
12359
12360         [BZ #12849]
12361         * manual/fdl-1.1.texi: New file, verbatim from:
12362         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
12363         * manual/lgpl-2.1.texi: New file, verbatim from:
12364         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
12365         * manual/Makefile (licenses): New variable, list those new file names.
12366         (texis): Use it.
12367         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
12368
12369         * manual/fdl.texi: File removed.
12370         * manual/lesser.texi: File removed.
12371         * manual/libc.texinfo (Copying, Documentation License):
12372         Use new @include file names, put @appendix directive before @include.
12373
12374 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
12375
12376         [BZ #12841]
12377         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
12378         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
12379         (mq_open): Add __NTH.
12380
12381 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12382
12383         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12384         Assume Intel Core i3/i5/i7 processor if AVX is available.
12385
12386 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12387
12388         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12389         typo.
12390
12391 2011-05-31  Andreas Schwab  <schwab@redhat.com>
12392
12393         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
12394         memory.  Use alloca_account.  Fix memory leak when retrying.
12395
12396 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12397
12398         * version.h (RELEASE): Bump for 2.14 release.
12399         * include/features.h (__GLIBC_MINOR__): Bump to 14.
12400
12401         * config.make.in (RANLIB): Remove entry.
12402
12403 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
12404
12405         * po/Makefile (po-sed-cmd): Add ksh to extensions.
12406         (libc.pot): Work around missing support for .ksh extension in xgettext.
12407
12408         [BZ #12684]
12409         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
12410         if both request failed.
12411         (send_dg): In case of server errors clear resplen or *resplen2.
12412
12413         [BZ #12454]
12414         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
12415         when there are multiple maps.
12416         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
12417         (_dl_fini): Remove test here.
12418
12419         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
12420
12421 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
12422
12423         [BZ #12350]
12424         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
12425         bit from old_res_options.
12426         (gaih_inet): Likewise.
12427
12428         [BZ #11099]
12429         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
12430         as signed.
12431
12432         * resolv/res_init.c (res_setoptions): Make the code more compact.
12433
12434         [BZ #11558]
12435         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
12436         set RES_USEVC.
12437
12438         [BZ #11634]
12439         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
12440
12441         * malloc/malloc.h: Mark malloc hook variables as deprecated.
12442
12443         [BZ #11781]
12444         * malloc/malloc.h: Declare malloc hook variables as volatile.
12445
12446         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
12447         in last patch.
12448
12449         [BZ #11799]
12450         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
12451         raise in the comment.
12452         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12453         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12454         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
12455
12456 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
12457
12458         [BZ #12811]
12459         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
12460         grow the buffers more if it already has to be sufficient.
12461         (build_wcs_upper_buffer): Likewise.
12462         * posix/regexec.c (check_matching): Likewise.
12463         (clean_state_log_if_needed): Likewise.
12464         (extend_buffers): Don't enlarge buffers beyond size of the input
12465         buffer.
12466         Patches mostly by Emil Wojak <emil@wojak.eu>.
12467         * posix/bug-regex32.c: New file.
12468         * posix/Makefile (tests): Add bug-regex32.
12469
12470         * locale/findlocale.c (_nl_find_locale): Return right away if
12471         _nl_explode_name failed.
12472         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12473
12474         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
12475
12476         * debug/xtrace.sh: Unify messages.
12477         * malloc/memusage.sh: Likewise.
12478
12479         [BZ #12813]
12480         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
12481         time symbol from vDSO.  Substitute with vsyscall if not available.
12482         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
12483         __vdso_time.
12484
12485         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
12486         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
12487         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
12488         Add sendmmsg and internal_sendmmsg.
12489         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
12490         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
12491         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
12492
12493         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
12494         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
12495         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
12496
12497 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
12498
12499         [BZ #12813]
12500         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
12501         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
12502         available.
12503         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
12504         __vdso_getcpu.
12505
12506         [BZ #12814]
12507         * iconvdata/Makefile (tests): Add bug-iconv9.
12508         * iconvdata/bug-iconv9.c: New file.
12509
12510 2011-05-27  Andreas Schwab  <schwab@redhat.com>
12511
12512         [BZ #12814]
12513         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
12514
12515 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12516
12517         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12518         (struct user_regs_struct): Change intcs field back to cs.
12519
12520 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
12521
12522         * po/ja.po: Update from translation team.
12523
12524 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
12525
12526         [BZ #12795]
12527         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
12528         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
12529
12530 2011-05-20  Andreas Schwab  <schwab@redhat.com>
12531
12532         * stdlib/longlong.h: Update from GCC.
12533
12534 2011-05-23  Andreas Schwab  <schwab@redhat.com>
12535
12536         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
12537         parameter name.
12538         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
12539         Add parameter name.
12540         (__sysconf): Pass it down.
12541
12542 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
12543
12544         [BZ #12671]
12545         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
12546         some situations.
12547         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12548         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
12549         add in in __libc_use_alloca calls.  Adjust callers.
12550         (glob): Use malloc in some situations.
12551
12552         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
12553         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
12554         pltexit.
12555
12556 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
12557
12558         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
12559         and CLOCK_BOOTTIME_ALARM.
12560
12561         [BZ #12782]
12562         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
12563         is returned.
12564
12565         * string/_strerror.c (__strerror_r): Print negative errors as signed
12566         numbers.
12567
12568         [BZ #12777]
12569         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
12570         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
12571         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
12572
12573         * configure.in: Fix typo in redirection and correct removal of test
12574         files in two cases.
12575
12576         [BZ #12788]
12577         * locale/setlocale.c (new_composite_name): Fix test to check for
12578         identical name of all categories.
12579
12580         [BZ #12792]
12581         * libio/filedoalloc.c (local_isatty): New function.
12582         (_IO_file_doallocate): Use local_isatty.
12583         * stdio-common/perror.c (perror): In case a new stream is used
12584         forward the stream error.
12585         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
12586         error flag.
12587
12588 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
12589
12590         [BZ #11869]
12591         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
12592         alloca.
12593         * include/alloca.h (extend_alloca_account): Define.
12594
12595         [BZ #11857]
12596         * posix/regex.h: Fix comments with documentation of user-accessible
12597         fields after compilation and describe correct free'ing of pattern
12598         after re_compile_pattern.
12599         Patch by Reuben Thomas <rrt@sc3d.org>.
12600
12601 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
12602
12603         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
12604         and -mno-altivec to prevent the compiler from using Altivec and/or
12605         VSX instructions when the corresponding registers are not available.
12606
12607 2011-05-19  Andreas Schwab  <schwab@redhat.com>
12608
12609         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
12610
12611 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
12612
12613         * libio/freopen.c (freopen): Use __dup2, not dup2.
12614         * libio/freopen64.c (freopen64): Likewise.
12615
12616 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12617
12618         [BZ #12775]
12619         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
12620         * math/Makefile (tests): Add test-powl.
12621         (CFLAGS-test-powl.c): Define.
12622         * math/test-powl.c: New file.
12623
12624 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12625
12626         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
12627
12628 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
12629
12630         [BZ #11837]
12631         * iconvdata/gb18030.c: Update to GB18020-2005.
12632
12633 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
12634
12635         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
12636         RE_SYNTAX_POSIX_AWK): Update to match recent development.
12637         Patch by Aharon Robbins <arnold@skeeve.com>.
12638
12639         [BZ #11892]
12640         * stdlib/putenv.c (putenv): Don't always create copy of the variable
12641         on the stack.
12642
12643         [BZ #11895]
12644         * misc/pselect.c (__pselect): Handle timeout value errors hidden
12645         through underflows.
12646
12647         [BZ #12766]
12648         * misc/error.c (error_at_line): Ensure file_name and old_file_name
12649         point to strings before performing equality test for error_one_per_line
12650         mode.
12651
12652         [BZ #11697]
12653         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
12654
12655         [BZ #11820]
12656         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12657         (struct user_fpregs_struct): Avoid __uint*_t types.
12658
12659         [BZ #6420]
12660         * malloc/mtrace.c (tr_where): Add additional parameter to point to
12661         symbol info.  Use it instead of calling _dl_addr locally.
12662         (lock_and_info): New function.
12663         (tr_freehook): Call lock_and_info and pass symbol info as additional
12664         parameter to tr_where.
12665         (tr_mallochook): Likewise.
12666         (tr_reallochook): Likewise.
12667         (tr_memalignhook): Likewise.
12668
12669         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
12670         used and couldn't be at all thread-safe.
12671
12672 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
12673
12674         * libio/freopen.c (freopen): Don't close old file descriptor
12675         before the new one is opened.  Instead dup the new file descriptor
12676         to the old one after the new stream is created.
12677         * libio/freopen64.c (freopen64): Likewise.
12678         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
12679         * libio/fileops.c (_IO_new_file_close_it): Handle new
12680         _IO_FLAGS2_NOCLOSE flag.
12681         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
12682         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
12683         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
12684         _IO_FLAGS2_NOCLOSE flag.
12685         * include/unistd.h: Add hidden_proto for dup3.
12686         Define __have_dup3.
12687         * io/dup3.c: Define hidden symbol.
12688         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
12689
12690         [BZ #7101]
12691         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
12692         when an incomplete long option is used.
12693         * posix/tst-getopt_long1.c: New file.
12694         * posix/Makefile (tests): Add tst-getopt_long1.
12695
12696         [BZ #10138]
12697         * scripts/config.guess: Update from autoconf-2.68.
12698         * scripts/config.sub: Likewise.
12699
12700         [BZ #10157]
12701         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
12702         tests into ...
12703         (has_cpuclock): ...this.  New function.
12704         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
12705         macro here based on has_cpuclock code.
12706
12707         [BZ #10149]
12708         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12709         First byte (not low byte) is now always NUL.
12710         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
12711
12712         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12713         Use non-cancelable interfaces.
12714
12715         [BZ #9809]
12716         * locale/iso-639.def: Add entry for Sorani.
12717
12718         [BZ #11901]
12719         * include/stdlib.h: Move include protection to the right place.
12720         Define abort_msg_s.  Declare __abort_msg with it.
12721         * stdlib/abort.c (__abort_msg): Adjust type.
12722         * assert/assert.c (__assert_fail_base): New function.  Majority
12723         of code from __assert_fail.  Allocate memory for __abort_msg with
12724         mmap.
12725         (__assert_fail): Now call __assert_fail_base.
12726         * assert/assert-perr.c: Remove bulk of implementation.  Use
12727         __assert_fail_base.
12728         * include/assert.hL Declare __assert_fail_base.
12729         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
12730         mmap.
12731         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
12732
12733 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
12734
12735         [BZ #11952]
12736         [BZ #12453]
12737         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
12738         until all modules are registered in the DTV.
12739         * elf/Makefile: Add rules to build and run tst-tls19.
12740         * elf/tst-tls19.c: New file.
12741         * elf/tst-tls19mod1.c: New file.
12742         * elf/tst-tls19mod2.c: New file.
12743         * elf/tst-tls19mod3.c: New file.
12744         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
12745
12746         [BZ #12083]
12747         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
12748         correctly.
12749
12750         [BZ #12601]
12751         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
12752         two-byte sequence errors.
12753         * iconvdata/Makefile (tests): Add bug-iconv8.
12754         * iconvdata/bug-iconv8.c: New file.
12755
12756         [BZ #12626]
12757         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
12758         buf2 definition.
12759
12760         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
12761
12762         [BZ #12432]
12763         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
12764         (dummy_getcfa): New function.
12765         (init): Get _Unwind_GetCFA address, use dummy if not found.
12766         (backtrace_helper): In recursion check, also check whether CFA changes.
12767         (__backtrace): Completely initialize arg.
12768
12769         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
12770         storing incomplete byte sequence in state object.  Avoid testing for
12771         guaranteed too small input if we know there is enough data available.
12772
12773 2011-05-11  Andreas Schwab  <schwab@redhat.com>
12774
12775         * Makeconfig (+link-pie): Indent.
12776         * Rules (binaries-pie): Define if $(have-fpie) and
12777         $(build-shared).
12778         (binaries-shared): Also filter out $(binaries-pie).
12779         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
12780         * nscd/Makefile (others-pie): Add nscd.
12781         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
12782         ($(objpfx)nscd): Remove command override.
12783         * login/Makefile (others-pie): Add pt_chown.
12784         ($(objpfx)pt_chown): Remove command override.
12785         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
12786         remove command overrides.
12787
12788 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
12789
12790         * libio/tst_putwc.c: Fix error messages.
12791
12792         [BZ #12724]
12793         * libio/fileops.c (_IO_new_file_close_it): Always flush when
12794         currently writing and seek to current position when not.
12795         * libio/Makefile (tests): Add bug-fclose1.
12796         * libio/bug-fclose1.c: New file.
12797
12798 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
12799
12800         [BZ #12511]
12801         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
12802         don't set DF_1_NODELETE here.
12803         (do_lookup_x): When entering new entry test for copy relocation
12804         and if necessary set DF_1_NODELETE flag.
12805         * elf/tst-unique4.cc: New file.
12806         * elf/tst-unique4.h: New file.
12807         * elf/tst-unique4lib.cc: New file.
12808         * elf/Makefile: Add rules to build and run tst-unique4.
12809         Patch by Piotr Bury <pbury@goahead.com>.
12810
12811 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12812
12813         [BZ #12052]
12814         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
12815
12816         [BZ #12625]
12817         * misc/mntent_r.c (addmntent): Flush the stream after the output
12818
12819         [BZ #12393]
12820         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
12821         (is_trusted_path_normalize): Skip initial colon.  Append slash
12822         to empty buffer.  Duplicate is_trusted_path code but allow
12823         constructed patch to be prefix.
12824         (is_dst): Allow $ORIGIN followed by /.
12825         (_dl_dst_substitute): Correct clearing of check_for_trusted.
12826         Correct testing of result of is_trusted_path_normalize
12827         (decompose_rpath): Fix warning.
12828
12829 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
12830
12831         [BZ #11257]
12832         * grp/initgroups.c (internal_getgrouplist): When we found the service
12833         list through the initgroups entry in nsswitch.conf do not always
12834         continue on a successful lookup.  Don't always use the
12835         __nss_group_database value if it is set.
12836         * nss/nsswitch.conf (initgroups): Change action for successful db
12837         lookup to continue for compatibility.
12838
12839 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
12840
12841         [BZ #11532]
12842         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
12843         and CP774 modules.
12844         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
12845         and CP774 modules.
12846         * iconvdata/tst-tables.sh: Likewise.
12847         * iconvdata/cp770.c: New file.
12848         * iconvdata/cp771.c: New file.
12849         * iconvdata/cp772.c: New file.
12850         * iconvdata/cp773.c: New file.
12851         * iconvdata/cp774.c: New file.
12852         * iconvdata/testdata/CP770: New file.
12853         * iconvdata/testdata/CP770..UTF8: New file.
12854         * iconvdata/testdata/CP771: New file.
12855         * iconvdata/testdata/CP771..UTF8: New file.
12856         * iconvdata/testdata/CP772: New file.
12857         * iconvdata/testdata/CP772..UTF8: New file.
12858         * iconvdata/testdata/CP773: New file.
12859         * iconvdata/testdata/CP773..UTF8: New file.
12860         * iconvdata/testdata/CP774: New file.
12861         * iconvdata/testdata/CP774..UTF8: New file.
12862
12863         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
12864         END CHARMAP line.
12865         * iconvdata/gen-8bit-gap.sh: Likewise.
12866         * iconvdata/gen-8bit.sh: Likewise.
12867
12868         * locale/iso-639.def: Add ary entry.
12869
12870         [BZ #11258]
12871         * locale/C-translit.h.in: Add U20A1 transliteration.
12872
12873         [BZ #12178]
12874         * locale/iso-639.def: Add wae entry.
12875         Patch by Kevin Bortis <bortis@translate-wae.ch>.
12876
12877         [BZ #12545]
12878         * locale/programs/localedef.c (construct_output_path): Use ssize_t
12879         for n.
12880
12881         [BZ #12711]
12882         * locale/C-translit.h.in: Add entry for U20B9.
12883         Patch by pravin.d.s@gmail.com.
12884
12885 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
12886
12887         [BZ #12713]
12888         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
12889         ENAMETOOLONG use generic getcwd.
12890         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
12891         in rtld.  Use *stat64.
12892         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
12893         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
12894         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
12895         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
12896         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
12897         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
12898         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
12899         __fstatat64 macros.
12900         * include/dirent.h: Add libc_hidden_proto for rewinddir.
12901         * dirent/rewinddir.c: Add libc_hidden_def.
12902         * sysdeps/mach/hurd/rewinddir.c: Likewise.
12903         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
12904
12905         * include/dirent.h (__alloc_dir): Add flags parameter.
12906         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
12907         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
12908         __alloc_dir.
12909         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
12910         from fdopendir if O_CLOEXEC is already set.
12911
12912 2011-03-15  Alan Modra  <amodra@gmail.com>
12913
12914         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
12915         l_tls_firstbyte_offset non-zero.  Save padding offset in
12916         l_tls_firstbyte_offset for later use.
12917         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
12918         freeing static tls block.
12919
12920 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
12921
12922         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
12923         where #ifdef was intended.  The intent is to prevent ARG_MAX from
12924         being defined by the kernel headers.
12925
12926 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
12927
12928         [BZ #12734]
12929         * resolv/resolv.h: Define RES_NOTLDQUERY.
12930         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
12931         no-tld-query and set RES_NOTLDQUERY.
12932         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
12933         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
12934         modern BIND to search name as TLD unless forbidden.
12935
12936 2011-05-07  Petr Baudis  <pasky@suse.cz>
12937             Ulrich Drepper  <drepper@gmail.com>
12938
12939         [BZ #12393]
12940         * elf/dl-load.c (fillin_rpath): Move trusted path check...
12941         (is_trusted_path): ...to here.
12942         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
12943         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
12944         using is_trusted_path_normalize() in setuid scripts.
12945
12946 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12947
12948         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
12949         __BEGIN/__END_DECLS.
12950
12951 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
12952
12953         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
12954         NSS_STATUS_NOTFOUND if no record was found.
12955
12956 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12957
12958         * sunrpc/Makefile (headers): Add rpc/netdb.h.
12959         (headers-not-in-tirpc): Remove rpc/netdb.h
12960         * resolv/netdb.h: Revert last change.
12961
12962 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12963
12964         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
12965         circular dependency between libgcc.a and libc.a.
12966
12967 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12968
12969         * resolv/netdb.h: Don't include <rpc/netdb.h>.
12970         * nis/Makefile: Don't install rpcsvc/*.
12971         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
12972         instead of <rpc/types.h>.
12973         (MAXHOSTNAMELEN): Define.
12974
12975 2011-05-03  Andreas Schwab  <schwab@redhat.com>
12976
12977         * elf/ldconfig.c (add_dir): Don't crash on empty path.
12978
12979 2011-04-28  Maciej Babinski  <mbabinski@google.com>
12980
12981         [BZ #12714]
12982         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
12983         gethostbyname4_r when IPv6 results are possible.
12984
12985 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
12986
12987         [BZ #12723]
12988         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
12989         _PC_PIPE_BUF handling.
12990
12991 2011-04-30  Bruno Haible  <bruno@clisp.org>
12992
12993         [BZ #12717]
12994         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
12995         * resolv/netdb.h (getnameinfo): Change type of flags parameter
12996         to 'int'.
12997         * inet/getnameinfo.c (getnameinfo): Likewise.
12998
12999 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
13000
13001         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
13002         to groups setting in database lookup.
13003         * nss/nsswitch.conf: Add initgroups entry.
13004
13005 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
13006
13007         [BZ #12685]
13008         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
13009         mode string.
13010         Patch by Eric Blake <eblake@redhat.com>.
13011
13012 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
13013
13014         * sunrpc/Makefile (need-export-routines): Add svc_run.
13015         (routines): Remove svc_run.
13016         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
13017         * sunrpc/clnt_perr.c (clnt_perrno): Export.
13018         * sunrpc/svc_run.c (svc_run): Likewise.
13019         * sunrpc/svc_udp.c (svcudp_create): Likewise.
13020
13021 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
13022
13023         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
13024         problem in reallocation in last patch.
13025
13026 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
13027
13028         * sunrpc/Makefile: Move inclusion of Rules.
13029
13030 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
13031
13032         * nss/nss_files/files-initgroups.c: New file.
13033         * nss/Makefile (libnss_files-routines): Add files-initgroups.
13034         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
13035         _nss_files_initgroups_dyn.
13036
13037 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
13038
13039         * elf/elf.h (R_ARM_IRELATIVE): Define.
13040
13041 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
13042
13043         * po/ru.po: Update from translation team.
13044
13045 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
13046
13047         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
13048         dependencies.
13049
13050 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
13051
13052         [BZ #12653]
13053         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
13054         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
13055         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13056         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13057         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13058
13059 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
13060
13061         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
13062         differing bytes.
13063         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13064         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13065         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13066
13067 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
13068
13069         [BZ #12420]
13070         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
13071         storing it.
13072         * stdlib/bug-getcontext.c: New file.
13073         * stdlib/Makefile: Add rules to build and run bug-getcontext.
13074
13075 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13076
13077         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
13078         instructions into .machine "z9-109".
13079         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
13080         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
13081
13082 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13083
13084         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
13085         between environment variables and auxiliary vector.
13086
13087 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
13088
13089         * Makefile: Add rules to build linkobj/libc.so.
13090         * include/libc-symbols.h: Define libc_hidden_nolink.
13091         * include/rpc/auth.h: Mark functions which are to be hidden.
13092         * include/rpc/auth_des.h: Likewise.
13093         * include/rpc/auth_unix.h: Likewise.
13094         * include/rpc/clnt.h: Likewise.
13095         * include/rpc/des_crypt.h: Likewise.
13096         * include/rpc/key_prot.h: Likewise.
13097         * include/rpc/pmap_clnt.h: Likewise.
13098         * include/rpc/pmap_prot.h: Likewise.
13099         * include/rpc/pmap_rmt.h: Likewise.
13100         * include/rpc/rpc_msg.h: Likewise.
13101         * include/rpc/svc.h: Likewise.
13102         * include/rpc/svc_auth.h: Likewise.
13103         * include/rpc/xdr.h: Likewise.
13104         * nis/Makefile: Link all DSOs against linkobj/libc.so.
13105         * nss/Makefile: Likewise.
13106         * sunrpc/Makefile: Don't install headers.  Build library with normal
13107         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
13108         * sunrpc/auth_des.c: Hide exported symbols by default, export some
13109         for the compat linking library.  Remove use of INTDEF/INTUSE.
13110         * sunrpc/auth_none.c: Likewise.
13111         * sunrpc/auth_unix.c: Likewise.
13112         * sunrpc/authdes_prot.c: Likewise.
13113         * sunrpc/authuxprot.c: Likewise.
13114         * sunrpc/clnt_gen.c: Likewise.
13115         * sunrpc/clnt_perr.c: Likewise.
13116         * sunrpc/clnt_raw.c: Likewise.
13117         * sunrpc/clnt_simp.c: Likewise.
13118         * sunrpc/clnt_tcp.c: Likewise.
13119         * sunrpc/clnt_udp.c: Likewise.
13120         * sunrpc/clnt_unix.c: Likewise.
13121         * sunrpc/des_crypt.c: Likewise.
13122         * sunrpc/des_soft.c: Likewise.
13123         * sunrpc/get_myaddr.c: Likewise.
13124         * sunrpc/key_call.c: Likewise.
13125         * sunrpc/key_prot.c: Likewise.
13126         * sunrpc/netname.c: Likewise.
13127         * sunrpc/pm_getmaps.c: Likewise.
13128         * sunrpc/pm_getport.c: Likewise.
13129         * sunrpc/pmap_clnt.c: Likewise.
13130         * sunrpc/pmap_prot.c: Likewise.
13131         * sunrpc/pmap_prot2.c: Likewise.
13132         * sunrpc/pmap_rmt.c: Likewise.
13133         * sunrpc/publickey.c: Likewise.
13134         * sunrpc/rpc_cmsg.c: Likewise.
13135         * sunrpc/rpc_common.c: Likewise.
13136         * sunrpc/rpc_dtable.c: Likewise.
13137         * sunrpc/rpc_prot.c: Likewise.
13138         * sunrpc/rpc_thread.c: Likewise.
13139         * sunrpc/rtime.c: Likewise.
13140         * sunrpc/svc.c: Likewise.
13141         * sunrpc/svc_auth.c: Likewise.
13142         * sunrpc/svc_authux.c: Likewise.
13143         * sunrpc/svc_raw.c: Likewise.
13144         * sunrpc/svc_run.c: Likewise.
13145         * sunrpc/svc_simple.c: Likewise.
13146         * sunrpc/svc_tcp.c: Likewise.
13147         * sunrpc/svc_udp.c: Likewise.
13148         * sunrpc/svc_unix.c: Likewise.
13149         * sunrpc/svcauth_des.c: Likewise.
13150         * sunrpc/xcrypt.c: Likewise.
13151         * sunrpc/xdr.c: Likewise.
13152         * sunrpc/xdr_array.c: Likewise.
13153         * sunrpc/xdr_float.c: Likewise.
13154         * sunrpc/xdr_intXX_t.c: Likewise.
13155         * sunrpc/xdr_mem.c: Likewise.
13156         * sunrpc/xdr_rec.c: Likewise.
13157         * sunrpc/xdr_ref.c: Likewise.
13158         * sunrpc/xdr_sizeof.c: Likewise.
13159         * sunrpc/xdr_stdio.c: Likewise.
13160
13161 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
13162
13163         [BZ #12650]
13164         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
13165         * sysdeps/ia64/dl-tls.h: Likewise.
13166         * sysdeps/powerpc/dl-tls.h: Likewise.
13167         * sysdeps/s390/dl-tls.h: Likewise.
13168         * sysdeps/sh/dl-tls.h: Likewise.
13169         * sysdeps/sparc/dl-tls.h: Likewise.
13170         * sysdeps/x86_64/dl-tls.h: Likewise.
13171         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
13172
13173 2011-03-14  Andreas Schwab  <schwab@redhat.com>
13174
13175         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
13176         rpath element also skip the following colon.
13177         (expand_dynamic_string_token): Add is_path parameter and pass
13178         down to DL_DST_REQUIRED and _dl_dst_substitute.
13179         (decompose_rpath): Call expand_dynamic_string_token with
13180         non-zero is_path.  Ignore empty rpaths.
13181         (_dl_map_object_from_fd): Call expand_dynamic_string_token
13182         with zero is_path.
13183
13184 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
13185
13186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13187         Make cancelable.
13188
13189 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
13190
13191         [BZ #12655]
13192         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
13193         Patch by Filipe David Manana <fdmanana@apache.org>.
13194
13195 2011-04-07  Andreas Schwab  <schwab@redhat.com>
13196
13197         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
13198         Maintain aligned stack.
13199         (CHECK_RSP): Remove unused macro.
13200
13201 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
13202
13203         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
13204         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
13205
13206 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
13207
13208         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
13209
13210         * include/features.h: Mention __USE_XOPEN2K8 in comment.
13211
13212 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
13213
13214         [BZ #12518]
13215         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
13216         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
13217         * sysdeps/x86_64/memmove.c: New file.
13218         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
13219         (memcpy): Renamed to ...
13220         (__new_memcpy): This.
13221         (memcpy): Provide GLIBC_2_14 memcpy.
13222         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
13223         (memcpy): Provide GLIBC_2_2_5 memcpy.
13224
13225 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13226
13227         [BZ #12631]
13228         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
13229
13230 2011-03-30  Andreas Schwab  <schwab@redhat.com>
13231
13232         * misc/syncfs.c: New file.
13233         * misc/Makefile (routines): Add syncfs.
13234         * posix/unistd.h: Declare syncfs.
13235         * sysdeps/unix/syscalls.list: Add syncfs.
13236
13237 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13238
13239         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
13240         open_by_handle_at.
13241         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13242         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13243         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13244         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13245         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13246         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
13247         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13248
13249 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13250
13251         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
13252         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13253         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13254         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13255         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13256         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13257         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13258
13259         * io/Makefile: Compile fallocate.c, fallocate64.c, and
13260         sync_file_range.c with -fexceptions.
13261         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
13262         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
13263         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
13264         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
13265         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13266         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13267         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
13268         sync_file_range as cancellation point
13269         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
13270         now a wrapper around __call_sync_file_range with cancellation handling.
13271         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
13272         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
13273         function name to __call_sync_file_range.
13274         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
13275         Add call_sync_file_range.
13276
13277 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13278
13279         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13280         bits/timex.h.
13281
13282 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13283
13284         * iconv/iconv.h: Fix typo in comment.
13285         * io/fcntl.h: Likewise.
13286         * libio/stdio.h: Likewise.
13287         * posix/spawn.h: Likewise.
13288         * posix/unistd.h: Likewise.
13289         * stdlib/stdlib.h: Likewise.
13290         * time/time.h: Likewise.
13291         * wcsmbs/wchar.h: Likewise.
13292
13293         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
13294         open_by_handle): Add.
13295         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
13296         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
13297         Augment a few comments.
13298         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13299         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13300         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13301         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13302         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13303         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
13304         open_by_handle.
13305
13306         * io/fcntl.h (AT_EMPTY_PATH): Define.
13307
13308 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
13309
13310         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
13311         * sysdeps/unix/sysv/linux/bits/time.h: New file.
13312         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
13313         to...
13314         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
13315         * Versions.def: Add GLIBC_2.14.
13316         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
13317         Export.
13318
13319 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
13320
13321         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
13322         round counter.
13323         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13324
13325 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13326
13327         [BZ #12597]
13328         * string/test-strncmp.c (do_page_test): New function.
13329         (check2): Likewise.
13330         (test_main): Call check2.
13331         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
13332
13333 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
13334
13335         [BZ #12587]
13336         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13337         Handle cache information in CPU leaf 4.
13338         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13339
13340 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
13341
13342         [BZ #12583]
13343         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
13344         character representation.
13345         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
13346
13347 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
13348
13349         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
13350         END(__isnan) to END(__isnanf) to match function entry point/label
13351         EALIGN(__isnanf,...).
13352
13353 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
13354
13355         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
13356
13357 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
13358
13359         [BZ #12510]
13360         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
13361         copy from the symbol referenced in the relocation to initialize the
13362         used variable.
13363         Patch by Piotr Bury <pbury@goahead.com>.
13364         * elf/Makefile: Add rules to build and tst-unique3.
13365         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
13366         * elf/tst-unique3.cc: New file.
13367         * elf/tst-unique3.h: New file.
13368         * elf/tst-unique3lib.cc: New file.
13369         * elf/tst-unique3lib2.cc: New file.
13370
13371         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
13372
13373 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
13374
13375         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
13376         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
13377         to _start.
13378
13379 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
13380
13381         * elf/dl-load.c (_dl_map_object): If we are looking for the first
13382         to-be-loaded object along a path to loader is ld.so.
13383
13384 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13385             Ulrich Drepper  <drepper@gmail.com>
13386
13387         * sysdeps/x86_64/memset.S: After aligning destination, code
13388         branches to different locations depending on the value of
13389         misalignment, when multiarch is enabled. Fix this.
13390
13391 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13392
13393         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
13394         Set _x86_64_preferred_memory_instruction for AMD processsors.
13395         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13396         Set bit_Prefer_SSE_for_memop for AMD processors.
13397
13398 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
13399
13400         * libio/fmemopen.c (fmemopen): Optimize a bit.
13401
13402 2011-03-03  Andreas Schwab  <schwab@redhat.com>
13403
13404         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
13405
13406 2011-03-03  Roland McGrath  <roland@redhat.com>
13407
13408         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
13409
13410 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
13411
13412         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
13413         __bzero_ultra1 instead of __memset_ultra1.
13414
13415 2011-02-23  Andreas Schwab  <schwab@redhat.com>
13416             Ulrich Drepper  <drepper@gmail.com>
13417
13418         [BZ #12509]
13419         * include/link.h (struct link_map): Add l_orig_initfini.
13420         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
13421         returning unsuccessfully.
13422         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
13423         close of a file loaded at startup, restore the original l_initfini
13424         list.
13425         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
13426         list, store the pointer.
13427         * elf/Makefile ($(objpfx)noload-mem): New rule.
13428         (noload-ENV): Define.
13429         (tests): Add $(objpfx)noload-mem.
13430         * elf/noload.c: Include <memcheck.h>.
13431         (main): Call mtrace.  Close all opened handles.
13432
13433 2011-02-17  Andreas Schwab  <schwab@redhat.com>
13434
13435         [BZ #12454]
13436         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
13437         dependencies are missing.
13438
13439 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13440
13441         Fix __if_freereq crash: Unlike the generic version which uses free,
13442         Hurd needs munmap.
13443         * sysdeps/mach/hurd/ifreq.h: New file.
13444
13445 2011-01-27  Petr Baudis  <pasky@suse.cz>
13446             Ulrich Drepper  <drepper@gmail.com>
13447
13448         [BZ 12445]#
13449         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
13450         to extend_alloca().
13451         * stdio-common/bug23.c: New file.
13452         * stdio-common/Makefile (tests): Add bug23.
13453
13454 2010-09-28  Andreas Schwab  <schwab@redhat.com>
13455             Ulrich Drepper  <drepper@gmail.com>
13456
13457         [BZ #12489]
13458         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
13459         before performing relro protection.  At old place add assertion
13460         to make sure nothing changed.
13461
13462 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
13463             Glauber de Oliveira Costa  <glommer@gmail.com>
13464
13465         * elf/elf.h: Add new ARM TLS relocs.
13466
13467 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
13468
13469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13470         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
13471         cast from r3.
13472         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
13473         'tests' variable.
13474         * sysdeps/wordsize-64/tst-writev.c: New file.
13475
13476 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
13477
13478         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
13479         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
13480         insns in _dl_start to prevent a TOC reference before relocs are
13481         resolved.
13482
13483 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
13484
13485         [BZ #12469]
13486         * Makeconfig: Remove RANLIB definition.
13487         * Makerules: Don't use RANLIB.
13488         * aclocal.m4: Remove ranlib test.
13489         * configure.in: No need to check for ranlib.
13490         * elf/rtld-Rules: Don't use RANLIB.
13491
13492 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13493
13494         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
13495         protection macro.
13496         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
13497         inclusion protection macro.
13498
13499         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
13500         SIGRTMIN and SIGRTMAX and print information in that case only when
13501         SIGRTMIN is defined.
13502
13503 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13504
13505         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
13506         arginfo fn returning -1.
13507
13508         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
13509         and thousands string is zero terminated.
13510
13511 2011-02-03  Andreas Schwab  <schwab@redhat.com>
13512
13513         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
13514         sysdeps/unix/sysv/linux/bits/socket.h.
13515
13516 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13517
13518         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
13519         (__CPU_COUNT): Remove old macros.
13520         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
13521         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
13522         (__CPU_ALLOC, __CPU_FREE): Add macros.
13523         (__sched_cpualloc, __sched_cpufree): Add declarations.
13524
13525 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
13526
13527         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
13528         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
13529         * nscd/aicache.c (addhstaiX): Return timeout of added value.
13530         (readdhstai): Return value of addhstaiX call.
13531         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
13532         (addgrbyX): Return value returned by cache_addgr.
13533         (readdgrbyname): Return value returned by addgrbyX.
13534         (readdgrbygid): Likewise.
13535         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
13536         (addpwbyX): Return value returned by cache_addpw.
13537         (readdpwbyname): Return value returned by addhstbyX.
13538         (readdpwbyuid): Likewise.
13539         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
13540         (addservbyX): Return value returned by cache_addserv.
13541         (readdservbyname): Return value returned by addservbyX:
13542         (readdservbyport): Likewise.
13543         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
13544         (addhstbyX): Return value returned by cache_addhst.
13545         (readdhstbyname): Return value returned by addhstbyX.
13546         (readdhstbyaddr): Likewise.
13547         (readdhstbynamev6): Likewise.
13548         (readdhstbyaddrv6): Likewise.
13549         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
13550         (readdinitgroups): Return value returned by addinitgroupsX.
13551         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
13552         (prune_cache): Keep track of timeout value of re-added entries.
13553         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
13554         * nscd/nscd.h: Adjust prototypes of readd* functions.
13555
13556 2011-02-04  Roland McGrath  <roland@redhat.com>
13557
13558         * nis/nis_server.c (nis_servstate): Use the right name for 0.
13559         (nis_stats): Likewise.
13560         * nis/nis_modify.c (nis_modify): Likewise.
13561         * nis/nis_remove.c (nis_remove): Likewise.
13562         * nis/nis_add.c (nis_add): Likewise.
13563
13564         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
13565
13566         * posix/fnmatch_loop.c: Add some consts.
13567
13568         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
13569
13570 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
13571
13572         [BZ #12460]
13573         * config.make.in (config-cflags-novzeroupper): Define.
13574         * configure.in: Substitute libc_cv_cc_novzeroupper.
13575         * elf/Makefile (AVX-CFLAGS): Define.
13576         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
13577         (CFLAGS-tst-auditmod4a.c): Likewise.
13578         (CFLAGS-tst-auditmod4b.c): Likewise.
13579         (CFLAGS-tst-auditmod6b.c): Likewise.
13580         (CFLAGS-tst-auditmod6c.c): Likewise.
13581         (CFLAGS-tst-auditmod7b.c): Likewise.
13582         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
13583
13584 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
13585
13586         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
13587         function to the callback.
13588         Patch partly by Jiri Olsa <jolsa@redhat.com>.
13589
13590 2011-02-02  Andreas Schwab  <schwab@redhat.com>
13591
13592         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
13593         of errno.
13594
13595 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
13596
13597         [BZ #11724]
13598         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
13599         of constructors.
13600         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
13601         of destructors.
13602         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
13603
13604         [BZ #11724]
13605         * elf/Makefile: Add rules to build and run new test.
13606         * elf/tst-initorder.c: New file.
13607         * elf/tst-initorder.exp: New file.
13608         * elf/tst-initordera1.c: New file.
13609         * elf/tst-initordera2.c: New file.
13610         * elf/tst-initordera3.c: New file.
13611         * elf/tst-initordera4.c: New file.
13612         * elf/tst-initorderb1.c: New file.
13613         * elf/tst-initorderb2.c: New file.
13614         * elf/tst-order-a1.c: New file.
13615         * elf/tst-order-a2.c: New file.
13616         * elf/tst-order-a3.c: New file.
13617         * elf/tst-order-a4.c: New file.
13618         * elf/tst-order-b1.c: New file.
13619         * elf/tst-order-b2.c: New file.
13620         * elf/tst-order-main.c: New file.
13621         New test case by George Gensure <werkt0@gmail.com>.
13622
13623 2010-10-01  Andreas Schwab  <schwab@redhat.com>
13624
13625         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13626         decoding ACE if AI_CANONIDN.
13627
13628 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
13629
13630         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
13631
13632 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
13633
13634         * version.h (RELEASE): Bump for 2.13 release.
13635         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
13636
13637         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
13638
13639         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
13640         MADV_NOHUGEPAGE.
13641         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
13642         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
13643         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13644         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13645         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13646         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13647
13648         * posix/getconf.c: Update copyright year.
13649         * catgets/gencat.c: Likewise.
13650         * csu/version.c: Likewise.
13651         * debug/catchsegv.sh: Likewise.
13652         * debug/xtrace.sh: Likewise.
13653         * elf/ldconfig.c: Likewise.
13654         * elf/ldd.bash.in: Likewise.
13655         * elf/sprof.c (print_version): Likewise.
13656         * iconv/iconv_prog.c: Likewise.
13657         * iconv/iconvconfig.c: Likewise.
13658         * locale/programs/locale.c: Likewise.
13659         * locale/programs/localedef.c: Likewise.
13660         * malloc/memusage.sh: Likewise.
13661         * malloc/mtrace.pl: Likewise.
13662         * nscd/nscd.c (print_version): Likewise.
13663         * nss/getent.c: Likewise.
13664
13665         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
13666         PF_CAIF, and PF_ALG.
13667         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13668
13669 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
13670
13671         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
13672         (modules-names): Use them.
13673         (ifunc-test-modules, ifunc-pie-tests): Define.
13674         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
13675         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
13676         (test-extras): Likewise.
13677         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
13678         $(compile-command.c).
13679         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
13680         (all-built-dso): Define.
13681         (check-textrel.out, check-execstack.out): Depend on it.
13682
13683         * configure.in: Don't override --enable-multi-arch.
13684
13685 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
13686
13687         [BZ #6812]
13688         * nscd/hstcache.c (tryagain): Define.
13689         (cache_addhst): Return tryagain not notfound for temporary errors.
13690         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
13691         failed.
13692
13693 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
13694
13695         [BZ #10563]
13696         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
13697         to make the syscall.
13698         * sysdeps/unix/sysv/linux/setgroups.c: New file.
13699
13700         [BZ #12378]
13701         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
13702         and fall back to matching as normal character if the string ends before
13703         the matching ']' is found.  This is what POSIX requires.
13704         * posix/testfnm.c: Adjust test result.
13705         * posix/globtest.sh: Adjust test result.  Add new test.
13706         * posix/tst-fnmatch.input: Likewise.
13707         * posix/tst-fnmatch2.c: Add new test.
13708
13709 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
13710
13711         * elf/Makefile (check-execstack): Revert last change.  Depend on
13712         check-execstack.h.
13713         (check-execstack.h): New target.
13714         (generated): Add check-execstack.h.
13715         * elf/check-execstack.c: Include "check-execstack.h".
13716         (main): Revert last change.
13717         (handle_file): Return zero if GNU_STACK is absent and
13718         DEFAULT_STACK_PERMS doesn't include PF_X.
13719
13720 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
13721
13722         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
13723         in child fails because the descriptor is already closed.
13724         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
13725         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
13726         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
13727
13728         [BZ #12397]
13729         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
13730         syscall.
13731
13732         [BZ #10484]
13733         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
13734         temporary buffer used to handle multi lookups locally.
13735         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
13736
13737 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13738
13739         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
13740         loader is ld.so.
13741
13742 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
13743
13744         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
13745         alignment for SSE2.
13746
13747 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13748
13749         [BZ #12394]
13750         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
13751         characters.  When rounding increased number of integer digits recompute
13752         number of groups.
13753         * stdio-common/tst-grouping.c: New file.
13754         * stdio-common/Makefile: Add rules to build and run tst-grouping.
13755
13756 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
13757
13758         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
13759         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
13760
13761         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
13762         void.
13763         * bits/select.h: Likewise.
13764
13765 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
13766
13767         * po/ja.po: Update from translation team.
13768
13769 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
13770
13771         [BZ #11155]
13772         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
13773         implementation just like for lxstat, fxstatat, et al.
13774
13775 2010-12-27  Jim Meyering  <meyering@redhat.com>
13776
13777         [BZ #12348]
13778         * posix/regexec.c (build_trtable): Return failure indication upon
13779         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13780
13781 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
13782
13783         [BZ #12201]
13784         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
13785         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
13786         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
13787         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
13788
13789         [BZ #12207]
13790         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
13791
13792         [BZ #12204]
13793         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
13794         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
13795
13796 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13797
13798         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
13799         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
13800         script has SORT_BY_INIT_PRIORITY.
13801         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
13802         NO_CTORS_DTORS_SECTIONS is defined.
13803         * elf/soinit.c: Likewise.
13804         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
13805         NO_CTORS_DTORS_SECTIONS is defined.
13806         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
13807         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
13808         * sysdeps/sh/init-first.c: Likewise.
13809         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
13810
13811 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
13812
13813         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
13814         always use the slow path.
13815
13816 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
13817
13818         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
13819         similar rule which adds the sysdep directories to the header search in
13820         order to pick up the correct platform stackinfo.h.
13821         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
13822         perform test if it is, otherwise return successfully without testing.
13823         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
13824         DEFAULT_STACK_PERMS define in stackinfo.h.
13825         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
13826         defined in stackinfo.h.
13827         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
13828         DEFAULT_STACK_PERMS defined in stackinfo.h.
13829         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
13830         * sysdeps/ia64/stackinfo.h: Likewise.
13831         * sysdeps/s390/stackinfo.h: Likewise.
13832         * sysdeps/sh/stackinfo.h: Likewise.
13833         * sysdeps/sparc/stackinfo.h: Likewise.
13834         * sysdeps/x86_64/stackinfo.h: Likewise.
13835         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
13836         PF_X for powerpc64.  Retain PF_X for powerpc32.
13837
13838 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
13839
13840         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
13841         accurately.
13842         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
13843         GETDENTS_64BIT_ALIGNED.
13844
13845 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
13846
13847         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
13848
13849 2010-12-10  Andreas Schwab  <schwab@redhat.com>
13850
13851         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
13852         _GNU_SOURCE.
13853
13854         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
13855         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
13856         Remove __restrict.
13857         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
13858         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
13859
13860 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
13861
13862         [BZ #11655]
13863         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
13864         are initialized.
13865
13866 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
13867
13868         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
13869
13870 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
13871
13872         * po/it.po: Update from translation team.
13873
13874 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13875
13876         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
13877         unused codes.
13878
13879 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
13880
13881         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
13882
13883 2010-11-24  Andreas Schwab  <schwab@redhat.com>
13884
13885         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
13886         specially.
13887         (gaih_getanswer_slice): Likewise.
13888
13889 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
13890
13891         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
13892
13893 2010-05-31  Petr Baudis  <pasky@suse.cz>
13894
13895         [BZ #11149]
13896         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
13897         silently even in the chroot mode.
13898
13899 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
13900
13901         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
13902         last patch a bit.  Pretty printing
13903
13904 2010-05-31  Petr Baudis <pasky@suse.cz>
13905
13906         [BZ #10085]
13907         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
13908         initialization of skip_initgroups_dyn.
13909
13910 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
13911
13912         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
13913         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13914
13915 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
13916
13917         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
13918
13919 2010-11-11  Andreas Schwab  <schwab@redhat.com>
13920
13921         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
13922         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
13923         (tst-fnmatch-ENV): Set MALLOC_TRACE.
13924         ($(objpfx)tst-fnmatch-mem): New rule.
13925         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
13926         * posix/tst-fnmatch.c (main): Call mtrace.
13927
13928 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
13929
13930         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13931         Support Intel processor model 6 and model 0x2c.
13932
13933 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
13934
13935         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
13936           signed comparison.
13937
13938 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
13939
13940         [BZ #12205]
13941         * string/test-strncasecmp.c (check_result): New function.
13942         (do_one_test): Use it.
13943         (check1): New function.
13944         (test_main): Use it.
13945         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
13946         Support strcasecmp and strncasecmp.
13947
13948 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
13949
13950         [BZ #12194]
13951         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
13952         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13953
13954 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13955
13956         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
13957         IFUNC support.
13958         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13959         memset-x86-64.
13960         * sysdeps/x86_64/multiarch/bzero.S: New file.
13961         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
13962         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
13963         * sysdeps/x86_64/multiarch/memset.S: New file.
13964         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
13965         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13966         Set bit_Prefer_SSE_for_memop for Intel processors.
13967         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
13968         Define.
13969         (index_Prefer_SSE_for_memop): Define.
13970         (HAS_PREFER_SSE_FOR_MEMOP): Define.
13971
13972 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
13973
13974         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
13975         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
13976
13977 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
13978
13979         [BZ #12191]
13980         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13981         (__x86_64_raw_data_cache_size_half): Likewise.
13982         (__x86_64_raw_shared_cache_size): Likewise.
13983         (__x86_64_raw_shared_cache_size_half): Likewise.
13984
13985         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13986         (__x86_64_raw_data_cache_size_half): Likewise.
13987         (__x86_64_raw_shared_cache_size): Likewise.
13988         (__x86_64_raw_shared_cache_size_half): Likewise.
13989         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
13990         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
13991         and __x86_64_raw_shared_cache_size_half.  Round
13992         __x86_64_data_cache_size_half, __x86_64_data_cache_size
13993         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
13994         to multiple of 256 bytes.
13995
13996 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
13997
13998         [BZ #12167]
13999         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
14000         of inacessible symlinks.  Verify result of symlink before returning it.
14001         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
14002         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
14003
14004 2010-10-28  Erich Ritz  <erichritz@gmail.com>
14005
14006         * math/math.h (isinf): Fix typo in comment.
14007
14008 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
14009
14010         * po/da.po: Update from translation team.
14011
14012 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
14013
14014         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
14015         is added to the list.
14016
14017 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14018             Ulrich Drepper  <drepper@gmail.com>
14019
14020         * elf/dl-object.c (_dl_new_object): Don't append the new object to
14021         the global list here.  Move code to...
14022         (_dl_add_to_namespace_list): ...here.  New function.
14023         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
14024         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
14025         * elf/dl-load.c (lose): Don't remove the element from the list.
14026         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
14027         (_dl_map_object): Likewise.
14028
14029 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
14030
14031         [BZ #12159]
14032         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
14033         into all bytes of SSE register.
14034         Patch by Richard Li <richardpku@gmail.com>.
14035
14036 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
14037
14038         [BZ #12140]
14039         * malloc/malloc.c (_int_free): Fill correct number of bytes when
14040         perturbing.
14041
14042 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
14043
14044         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
14045         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
14046         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
14047         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
14049         submachine.
14050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14051
14052 2010-10-22  Andreas Schwab  <schwab@redhat.com>
14053
14054         * include/dlfcn.h (__RTLD_SECURE): Define.
14055         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
14056         mode & __RTLD_SECURE instead.
14057         (open_path): Rename preloaded parameter to secure.
14058         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
14059         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
14060         * elf/dl-deps.c (openaux): Likewise.
14061         * elf/rtld.c (struct map_args): Remove is_preloaded.
14062         (map_doit): Don't use it.
14063         (dl_main): Likewise.
14064         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
14065         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
14066
14067 2010-09-09  Andreas Schwab  <schwab@redhat.com>
14068
14069         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
14070         (sysd-rules-targets): Remove duplicates.
14071         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
14072         rtld-%.$o dependency.
14073
14074 2010-10-18  Andreas Schwab  <schwab@redhat.com>
14075
14076         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
14077         _dl_map_object do it.
14078
14079 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
14080
14081         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
14082         fast fma builtins, define the macros in the C99 standard.
14083         (FP_FAST_FMAF): Likewise.
14084         (FP_FAST_FMAL): Likewise.
14085         * sysdeps/x86_64/bits/mathdef.h: Likewise.
14086
14087         * bits/mathdef.h: Update copyright year.
14088         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14089
14090 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
14091
14092         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
14093         builtins, define the macros in the C99 standard.
14094         (FP_FAST_FMAF): Likewise.
14095         (FP_FAST_FMAL): Likewise.
14096         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
14097         multiply/add.
14098         (FP_FAST_FMAF): Likewise.
14099
14100 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
14101
14102         [BZ #3268]
14103         * math/libm-test.inc (fma_test): Some new testcases.
14104         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
14105         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
14106         y and infinite z.  Do multiplication by C already in long double.
14107         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
14108         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
14109         y and infinite z.  Do bitwise or of inexact bit into u.d.
14110         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
14111         * sysdeps/i386/fpu/s_fmaf.S: Removed.
14112         * sysdeps/i386/fpu/s_fma.S: Removed.
14113         * sysdeps/i386/fpu/s_fmal.S: Removed.
14114
14115 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
14116
14117         [BZ #3268]
14118         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
14119         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
14120         computation is not scheduled after fetestexcept.  Fix value
14121         of minimum denormal long double.
14122
14123 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
14124
14125         [BZ #3268]
14126         * math/libm-test.inc (fma_test): Add some more tests.
14127         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
14128         correctly.
14129
14130 2010-10-15  Andreas Schwab  <schwab@redhat.com>
14131
14132         * scripts/data/localplt-s390-linux-gnu.data: New file.
14133         * scripts/data/localplt-s390x-linux-gnu.data: New file.
14134
14135 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
14136
14137         [BZ #3268]
14138         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
14139         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
14140         instead of dbl-64.
14141         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
14142         inlines.
14143         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
14144         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
14145         if one of x and y is very large and the other is subnormal.
14146         * sysdeps/s390/fpu/s_fmaf.c: New file.
14147         * sysdeps/s390/fpu/s_fma.c: New file.
14148         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
14149         * sysdeps/powerpc/fpu/s_fma.S: New file.
14150         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
14151         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
14152         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
14153
14154 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
14155
14156         [BZ #3268]
14157         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
14158         fma tests.
14159         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
14160         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
14161         * sysdeps/i386/i686/multiarch/s_fma.c: Include
14162         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
14163         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
14164         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
14165         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
14166
14167 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
14168
14169         [BZ #12078]
14170         * posix/regcomp.c (parse_branch): One more memory leak plugged.
14171         * posix/bug-regex31.input: Add test case.
14172
14173 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14174
14175         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
14176         * posix/bug-regex31.input: New file.
14177
14178         [BZ #12078]
14179         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
14180         (parse_sub_exp): Fix last change, use postorder.
14181
14182         * posix/bug-regex31.c: New file.
14183         * posix/Makefile: Add rules to build and run bug-regex31.
14184
14185         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
14186
14187         [BZ #12078]
14188         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
14189
14190         [BZ #12108]
14191         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
14192         to have entries in sys_siglist.
14193
14194         [BZ #12093]
14195         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
14196         be NULL.
14197
14198 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
14199
14200         [BZ #3268]
14201         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
14202         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
14203         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14204         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
14205         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14206         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
14207         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
14208         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
14209         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
14210         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
14211         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
14212         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
14213         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
14214         * math/ftestexcept.c (fetestexcept): Likewise.
14215         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
14216         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
14217         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
14218         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
14219         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
14220         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
14221         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14222
14223 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14224
14225         [BZ #12107]
14226         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
14227         newline.
14228
14229 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
14230
14231         * string/bug-strstr1.c: New file.
14232         * string/Makefile: Add rules to build and run bug-strstr1.
14233
14234 2010-10-05  Eric Blake  <eblake@redhat.com>
14235
14236         [BZ #12092]
14237         * string/str-two-way.h (two_way_long_needle): Always clear memory
14238         when skipping input due to the shift table.
14239
14240 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
14241
14242         [BZ #12005]
14243         * malloc/mcheck.c: Handle large requests.
14244
14245         [BZ #12077]
14246         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
14247         for strncmp and strncasecmp.
14248         * string/stratcliff.c: Add tests for strcmp and strncmp.
14249         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
14250
14251 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14252
14253         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
14254         __set_fpscr.
14255
14256 2010-09-30  Andreas Jaeger  <aj@suse.de>
14257
14258         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
14259         (CGROUP_SUPER_MAGIC): Define.
14260         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14261         Handle btrfs and cgroup file systems.
14262         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
14263         Likewise.
14264
14265 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
14266
14267         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
14268         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
14269
14270 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14271
14272         [BZ #12067]
14273         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
14274         trying to locate the ELF header.
14275
14276 2010-09-27  Andreas Schwab  <schwab@redhat.com>
14277
14278         [BZ #11611]
14279         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
14280         Mask out sign-bit copies when constructing f_fsid.
14281
14282 2010-09-24  Petr Baudis <pasky@suse.cz>
14283
14284         * debug/stack_chk_fail_local.c: Add missing licence exception.
14285         * debug/warning-nop.c: Likewise.
14286
14287 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
14288
14289         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
14290         implementing getdents64 using getdents syscall, set d_type if
14291         __ASSUME_GETDENTS32_D_TYPE.
14292
14293 2010-09-16  Andreas Schwab  <schwab@redhat.com>
14294
14295         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
14296         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
14297
14298 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
14299
14300         [BZ #12037]
14301         * posix/unistd.h: Undo change of feature selection for ftruncate from
14302         2010-01-11.
14303
14304 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
14305
14306         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
14307         detection.
14308
14309 2010-09-20  Andreas Schwab  <schwab@redhat.com>
14310
14311         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
14312         fanotify_mark.
14313         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14314
14315 2010-09-14  Andreas Schwab  <schwab@redhat.com>
14316
14317         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
14318         variables after CHECK_SP call.
14319         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
14320
14321 2010-09-13  Andreas Schwab  <schwab@redhat.com>
14322             Ulrich Drepper  <drepper@redhat.com>
14323
14324         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
14325         re-relocationg ld.so.
14326         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
14327         _dl_init_paths call.
14328         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
14329         here anymore.
14330
14331 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
14332
14333         * resolv/res_init.c (__res_vinit): Count the default server we added.
14334
14335 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
14336             Ulrich Drepper  <drepper@redhat.com>
14337
14338         [BZ #11968]
14339         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14340         (____longjmp_chk): Use %ebx for saving value across system call.
14341         Add unwind info.
14342
14343 2010-09-06  Andreas Schwab  <schwab@redhat.com>
14344
14345         * manual/Makefile: Don't mix pattern rules with normal rules.
14346
14347 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14348
14349         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
14350         operation.
14351         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
14352         * libio/iofopncook.c (_IO_cookie_init): Likewise.
14353         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
14354         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
14355         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14356         Likewise.
14357
14358 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
14359
14360         [BZ #11979]
14361         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
14362         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
14363
14364 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
14365
14366         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
14367         * sysdeps/x86_64/addmul_1.S: Likewise.
14368         * sysdeps/x86_64/lshift.S: Likewise.
14369         * sysdeps/x86_64/mul_1.S: Likewise.
14370         * sysdeps/x86_64/rshift.S: Likewise.
14371         * sysdeps/x86_64/sub_n.S: Likewise.
14372         * sysdeps/x86_64/submul_1.S: Likewise.
14373
14374 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14375
14376         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
14377         Define __sched_param instead of SCHED_* and sched_param when
14378         <bits/sched.h> is included with __need_schedparam defined.
14379         * bits/sched.h [__need_schedparam]
14380         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
14381         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
14382         (__defined_schedparam): Define to 1.
14383         (__sched_param): New structure, identical to sched_param.
14384         (__need_schedparam): Undefine.
14385
14386 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
14387
14388         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
14389         (epoll_create1): Declare.
14390
14391         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
14392
14393 2010-08-31  Andreas Schwab  <schwab@redhat.com>
14394
14395         [BZ #7066]
14396         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
14397         shifting retval into place.
14398
14399 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
14400
14401         * nis/rpcsvc/nis.h: Update copyright notice.
14402         * nis/rpcsvc/nis.x: Likewise.
14403         * nis/rpcsvc/nis_callback.h: Likewise.
14404         * nis/rpcsvc/nis_callback.x: Likewise.
14405         * nis/rpcsvc/nis_object.x: Likewise.
14406         * nis/rpcsvc/nis_tags.h: Likewise.
14407         * nis/rpcsvc/yp.h: Likewise.
14408         * nis/rpcsvc/yp.x: Likewise.
14409         * nis/rpcsvc/ypupd.h: Likewise.
14410         * nis/yp_xdr.c: Likewise.
14411         * nis/ypupdate_xdr.c: Likewise.
14412
14413         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
14414         mainly the body of pmap_getport.  Add parameters to specify timeouts.
14415         (pmap_getport): Use __libc_rpc_getport.
14416         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
14417         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
14418         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
14419
14420 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
14421
14422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
14423         fanotify_mark.
14424
14425 2010-08-27  Roland McGrath  <roland@redhat.com>
14426
14427         * sysdeps/i386/i686/multiarch/Makefile
14428         (CFLAGS-varshift.c): New variable.
14429
14430 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
14431
14432         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
14433         * sysdeps/i386/i686/multiarch/varshift.c: New file.
14434
14435         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
14436
14437         * sysdeps/x86_64/strlen.S: Minimal code improvement.
14438
14439 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
14440
14441         * sysdeps/x86_64/strlen.S: Unroll the loop.
14442         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14443         strlen-sse2 strlen-sse2-bsf.
14444         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
14445         __strlen_no_bsf if bit_Slow_BSF is set.
14446         (__strlen_sse42): Removed.
14447         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
14448         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
14449
14450 2010-08-25  Roland McGrath  <roland@redhat.com>
14451
14452         * sysdeps/x86_64/multiarch/varshift.S: File removed.
14453         * sysdeps/x86_64/multiarch/varshift.c: New file.
14454         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
14455         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
14456         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
14457         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14458
14459 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
14460
14461         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14462         strlen-sse2 strlen-sse2-bsf.
14463         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
14464         __strlen_sse2_bsf if bit_Slow_BSF is unset.
14465         (__strlen_sse2): Removed.
14466         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
14467         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
14468         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14469         bit_Slow_BSF for Atom.
14470         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
14471         (index_Slow_BSF): Define.
14472         (HAS_SLOW_BSF): Define.
14473
14474 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
14475
14476         [BZ #10851]
14477         * resolv/res_init.c (__res_vinit): When no server address at all
14478         is given default to loopback.
14479
14480 2010-08-24  Roland McGrath  <roland@redhat.com>
14481
14482         * configure.in: Remove config-name.h generation.
14483         * configure: Regenerated.
14484         * config-name.in: File removed.
14485         * scripts/config-uname.sh: New file.
14486         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
14487         ($(objdir)config-name.h): New target.
14488
14489         * sunrpc/rpc_parse.h: Avoid nested comment.
14490
14491 2010-08-24  Richard Henderson  <rth@redhat.com>
14492             Ulrich Drepper  <drepper@redhat.com>
14493             H.J. Lu  <hongjiu.lu@intel.com>
14494
14495         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
14496         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
14497         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
14498         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
14499         _mm_alignr_epi8 with _mm_loadu_si128.
14500         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
14501         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
14502         (__m128i_shift_right): Removed.
14503         * sysdeps/i386/i686/multiarch/varshift.h: New file.
14504         * sysdeps/i386/i686/multiarch/varshift.S: New file.
14505         * sysdeps/x86_64/multiarch/varshift.h: New file.
14506         * sysdeps/x86_64/multiarch/varshift.S: New file.
14507
14508 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
14509
14510         * configure.in: Move assembler checks to before sysdep dir checking.
14511
14512 2010-08-20  Petr Baudis  <pasky@suse.cz>
14513
14514         * LICENSES: Sync the sunrpc license.
14515
14516 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
14517
14518         * sunrpc/auth_des.c: Update copyright notice once again.
14519         * sunrpc/auth_none.c: Likewise.
14520         * sunrpc/auth_unix.c: Likewise.
14521         * sunrpc/authdes_prot.c: Likewise.
14522         * sunrpc/authuxprot.c: Likewise.
14523         * sunrpc/bindrsvprt.c: Likewise.
14524         * sunrpc/clnt_gen.c: Likewise.
14525         * sunrpc/clnt_perr.c: Likewise.
14526         * sunrpc/clnt_raw.c: Likewise.
14527         * sunrpc/clnt_simp.c: Likewise.
14528         * sunrpc/clnt_tcp.c: Likewise.
14529         * sunrpc/clnt_udp.c: Likewise.
14530         * sunrpc/clnt_unix.c: Likewise.
14531         * sunrpc/des_crypt.c: Likewise.
14532         * sunrpc/des_soft.c: Likewise.
14533         * sunrpc/get_myaddr.c: Likewise.
14534         * sunrpc/getrpcport.c: Likewise.
14535         * sunrpc/key_call.c: Likewise.
14536         * sunrpc/key_prot.c: Likewise.
14537         * sunrpc/openchild.c: Likewise.
14538         * sunrpc/pm_getmaps.c: Likewise.
14539         * sunrpc/pm_getport.c: Likewise.
14540         * sunrpc/pmap_clnt.c: Likewise.
14541         * sunrpc/pmap_prot.c: Likewise.
14542         * sunrpc/pmap_prot2.c: Likewise.
14543         * sunrpc/pmap_rmt.c: Likewise.
14544         * sunrpc/rpc/auth.h: Likewise.
14545         * sunrpc/rpc/auth_unix.h: Likewise.
14546         * sunrpc/rpc/clnt.h: Likewise.
14547         * sunrpc/rpc/des_crypt.h: Likewise.
14548         * sunrpc/rpc/key_prot.h: Likewise.
14549         * sunrpc/rpc/netdb.h: Likewise.
14550         * sunrpc/rpc/pmap_clnt.h: Likewise.
14551         * sunrpc/rpc/pmap_prot.h: Likewise.
14552         * sunrpc/rpc/pmap_rmt.h: Likewise.
14553         * sunrpc/rpc/rpc.h: Likewise.
14554         * sunrpc/rpc/rpc_des.h: Likewise.
14555         * sunrpc/rpc/rpc_msg.h: Likewise.
14556         * sunrpc/rpc/svc.h: Likewise.
14557         * sunrpc/rpc/svc_auth.h: Likewise.
14558         * sunrpc/rpc/types.h: Likewise.
14559         * sunrpc/rpc/xdr.h: Likewise.
14560         * sunrpc/rpc_clntout.c: Likewise.
14561         * sunrpc/rpc_cmsg.c: Likewise.
14562         * sunrpc/rpc_common.c: Likewise.
14563         * sunrpc/rpc_cout.c: Likewise.
14564         * sunrpc/rpc_dtable.c: Likewise.
14565         * sunrpc/rpc_hout.c: Likewise.
14566         * sunrpc/rpc_main.c: Likewise.
14567         * sunrpc/rpc_parse.c: Likewise.
14568         * sunrpc/rpc_parse.h: Likewise.
14569         * sunrpc/rpc_prot.c: Likewise.
14570         * sunrpc/rpc_sample.c: Likewise.
14571         * sunrpc/rpc_scan.c: Likewise.
14572         * sunrpc/rpc_scan.h: Likewise.
14573         * sunrpc/rpc_svcout.c: Likewise.
14574         * sunrpc/rpc_tblout.c: Likewise.
14575         * sunrpc/rpc_util.c: Likewise.
14576         * sunrpc/rpc_util.h: Likewise.
14577         * sunrpc/rpcinfo.c: Likewise.
14578         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
14579         * sunrpc/rpcsvc/key_prot.x: Likewise.
14580         * sunrpc/rpcsvc/klm_prot.x: Likewise.
14581         * sunrpc/rpcsvc/mount.x: Likewise.
14582         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
14583         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
14584         * sunrpc/rpcsvc/rex.x: Likewise.
14585         * sunrpc/rpcsvc/rstat.x: Likewise.
14586         * sunrpc/rpcsvc/rusers.x: Likewise.
14587         * sunrpc/rpcsvc/sm_inter.x: Likewise.
14588         * sunrpc/rpcsvc/spray.x: Likewise.
14589         * sunrpc/rpcsvc/yppasswd.x: Likewise.
14590         * sunrpc/rtime.c: Likewise.
14591         * sunrpc/svc.c: Likewise.
14592         * sunrpc/svc_auth.c: Likewise.
14593         * sunrpc/svc_authux.c: Likewise.
14594         * sunrpc/svc_raw.c: Likewise.
14595         * sunrpc/svc_run.c: Likewise.
14596         * sunrpc/svc_simple.c: Likewise.
14597         * sunrpc/svc_tcp.c: Likewise.
14598         * sunrpc/svc_udp.c: Likewise.
14599         * sunrpc/svc_unix.c: Likewise.
14600         * sunrpc/svcauth_des.c: Likewise.
14601         * sunrpc/xcrypt.c: Likewise.
14602         * sunrpc/xdr.c: Likewise.
14603         * sunrpc/xdr_array.c: Likewise.
14604         * sunrpc/xdr_float.c: Likewise.
14605         * sunrpc/xdr_mem.c: Likewise.
14606         * sunrpc/xdr_rec.c: Likewise.
14607         * sunrpc/xdr_ref.c: Likewise.
14608         * sunrpc/xdr_sizeof.c: Likewise.
14609         * sunrpc/xdr_stdio.c: Likewise.
14610
14611         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
14612         handling.
14613
14614 2010-08-19  Andreas Schwab  <schwab@redhat.com>
14615
14616         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
14617
14618 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
14619
14620         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
14621         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
14622         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
14623         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
14624         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
14625         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
14626         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
14627         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
14628         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
14629         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
14630         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
14631         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
14632         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
14633         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
14634
14635 2010-07-26  Anton Blanchard  <anton@samba.org>
14636
14637         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
14638         * malloc/arena.c (heap_trim): Likewise.
14639
14640 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
14641
14642         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
14643         here.  Not...
14644         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
14645         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
14646
14647 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14648
14649         * sysdeps/i386/elf/Makefile: New file.
14650
14651 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14652
14653         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
14654         from fanotify_init.
14655         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
14656         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14657
14658 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
14659
14660         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
14661         of strncasecmp_l.
14662         * sysdeps/multiarch/strcmp.S: Likewise.
14663
14664 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
14665
14666         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14667         strncase_l-nonascii.
14668         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14669         Add strncase_l-ssse3.
14670         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
14671         * sysdeps/x86_64/strcmp.S: Likewise.
14672         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
14673         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
14674         * sysdeps/x86_64/strncase.S: New file.
14675         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
14676         * sysdeps/x86_64/strncase_l.S: New file.
14677         * string/Makefile (strop-tests): Add strncasecmp.
14678         * string/test-strncasecmp.c: New file.
14679
14680         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
14681         warning.
14682
14683         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
14684         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
14685
14686 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14687
14688         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
14689
14690 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
14691
14692         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
14693         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
14694         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
14695
14696 2010-05-01  Alan Modra  <amodra@gmail.com>
14697
14698         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
14699         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
14700         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
14701         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
14702         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
14703         tidying.  Don't tail-call __sigjmp_save for static lib.
14704         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
14705         save location.
14706         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
14707         (CALL_MCOUNT): Add eh info, and nop after bl.
14708         (TAIL_CALL_SYSCALL_ERROR): New macro.
14709         (PSEUDO_RET): Use it.
14710         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
14711         Correct save location of integer regs and cr.
14712         (_dl_profile_resolve): Correct cr save location.  Delete nops
14713         after bl when SHARED.  Reduce cfi size a little by better
14714         placement of cfi directives.
14715         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
14716         make a stack frame.  Instead use parm save area as a temp.
14717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
14718         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
14719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
14720         Don't make a stack frame for parent, use parm save area.
14721         Increase child stack frame to 112 bytes.  Don't save unused reg,
14722         and adjust reg usage.  Set up cfi on error recovery and
14723         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
14724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14725         (__makecontext): Add dummy nop after jump to exit.
14726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
14727         Use correct parm save area and cr save, reduce stack frame.
14728         Correct cfi for possible PSEUDO_RET frame setup.
14729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
14730         Branch to local label emitted by PSEUDO_RET rather than
14731         __syscall_error.
14732
14733 2010-08-12  Andreas Schwab  <schwab@redhat.com>
14734
14735         [BZ #11904]
14736         * locale/programs/locale.c (print_assignment): New function.
14737         (show_locale_vars): Use it.
14738
14739 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
14740
14741         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
14742         field.
14743         (struct statfs64): Likewise.
14744         (_STATFS_F_FLAGS): Define.
14745         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
14746         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14747         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
14748         (ST_VALID): Define locally.
14749         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
14750         __statvfs_getflags, use the provided value.
14751         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14752         __ASSUME_STATFS_F_FLAGS.
14753
14754         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
14755
14756         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
14757         Add sys/fanotify.h.
14758         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
14759         fanotify_mask for GLIBC_2.13.
14760         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
14761         fanotify_init and fanotify_mark.
14762         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14763         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
14764
14765         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
14766         Add prlimit.
14767         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
14768         prlimit64 for GLIBC_2.13.
14769         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
14770         prlimit64.
14771         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
14772         syscall.
14773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14774         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14775         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
14776         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
14777         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
14778         add prlimit alias.
14779         * sysdeps/unix/sysv/linux/prlimit.c: New file.
14780
14781         [BZ #11903]
14782         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
14783         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
14784
14785         * nss/Makefile: Add rules to build and run tst-nss-test1.
14786         * shlib-versions: Add entry for libnss_test1.
14787         * nss/nss_test1.c: New file.
14788         * nss/tst-nss-test1.c: New file.
14789
14790         * nss/nsswitch.c (__nss_database_custom): Define new variable.
14791         (__nss_configure_lookup): Set appropriate entry in
14792         __nss_configure_lookup to true.
14793         * nss/nsswitch.h: Define enum with indeces of databases in
14794         databases and __nss_database_custom arrays.  Declare
14795         __nss_database_custom.
14796         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
14797         to avoid using nscd when custom rules are installed.
14798         * nss/getXXbyYY_r.c: Likewise.
14799         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14800
14801         * nss/nss_files/files-parse.c: Whitespace fixes.
14802
14803 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
14804
14805         [BZ #11883]
14806         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
14807         * posix/fnmatch_loop.c: Likewise.
14808
14809 2010-07-17  Andi Kleen  <ak@linux.intel.com>
14810
14811         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
14812         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
14813         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
14814         * Versions.def [GLIBC_2.13]: Add.
14815
14816 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
14817
14818         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14819         Also fail if tpwd after pwuid call is NULL.
14820
14821 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14822
14823         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
14824         when converting to ms.
14825
14826 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14827
14828         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
14829         EOPNOTSUPP errors with ENOTTY.
14830         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
14831         EOPNOTSUPP errors with ENOTTY.
14832
14833 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
14834
14835         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14836         Add strcasecmp_l-ssse3.
14837         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
14838         strcasecmp.
14839         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
14840         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
14841         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
14842
14843 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
14844
14845         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
14846
14847         * string/Makefile (strop-tests): Add strcasecmp.
14848         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14849         strcasecmp_l-nonascii.
14850         (gen-as-const-headers): Add locale-defines.sym.
14851         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
14852         * sysdeps/x86_64/strcasecmp.S: New file.
14853         * sysdeps/x86_64/strcasecmp_l.S: New file.
14854         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
14855         * sysdeps/x86_64/locale-defines.sym: New file.
14856         * string/test-strcasecmp.c: New file.
14857
14858         * string/test-strcasestr.c: Test both ends of the range of characters.
14859         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
14860
14861 2010-07-29  Roland McGrath  <roland@redhat.com>
14862
14863         [BZ #11856]
14864         * manual/locale.texi (Yes-or-No Questions): Fix example code.
14865
14866 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
14867
14868         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
14869         for ld.so.
14870
14871 2010-07-27  Andreas Schwab  <schwab@redhat.com>
14872
14873         * manual/memory.texi (Malloc Tunable Parameters): Document
14874         M_PERTURB.
14875
14876 2010-07-26  Roland McGrath  <roland@redhat.com>
14877
14878         [BZ #11840]
14879         * configure.in (-fgnu89-inline check): Set and substitute
14880         gnu89_inline, not libc_cv_gnu89_inline.
14881         * configure: Regenerated.
14882         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
14883
14884 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
14885
14886         * string/test-strnlen.c: New file.
14887         * string/Makefile (strop-tests): Add strnlen.
14888         * string/tester.c (test_strnlen): Add a few more test cases.
14889         * string/tst-strlen.c: Better error reporting.
14890
14891         * sysdeps/x86_64/strnlen.S: New file.
14892
14893 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
14894
14895         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
14896         lower-latency instructions.
14897
14898 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
14899
14900         * string/test-strcasestr.c: New file.
14901         * string/test-strstr.c: New file.
14902         * string/Makefile (strop-tests): Add strstr and strcasestr.
14903         * string/str-two-way.h: Don't undefine MAX.
14904         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14905
14906 2010-07-21  Andreas Schwab  <schwab@redhat.com>
14907
14908         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14909         strcasestr-nonascii.
14910         (CFLAGS-strcasestr-nonascii.c): Define.
14911         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
14912         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
14913         Remove unused attribute.
14914
14915 2010-07-20  Roland McGrath  <roland@redhat.com>
14916
14917         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
14918         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
14919         ld.so.cache was broken.  With it, there is no way to disable dsocaps
14920         like LD_HWCAP_MASK can disable hwcaps.
14921
14922 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14923
14924         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
14925
14926 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
14927
14928         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
14929         call in strcasestr.
14930         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
14931         __strcasestr_sse42_nonascii.
14932         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
14933         strcasestr-nonascii.c.
14934         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
14935
14936 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
14937
14938         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
14939         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
14940         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
14941         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
14942
14943 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
14944
14945         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
14946         fcntl.
14947
14948 2010-07-06  Andreas Schwab  <schwab@redhat.com>
14949
14950         [BZ #11577]
14951         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
14952         dl_signal_cerror.
14953
14954 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
14955
14956         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
14957         _PC_PIPE_BUF using F_GETPIPE_SZ.
14958
14959 2010-07-05  Roland McGrath  <roland@redhat.com>
14960
14961         * manual/arith.texi (Rounding Functions): Fix rint description
14962         implicit in round description.
14963
14964 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
14965
14966         * elf/Makefile: Fix linking for a few tests to make recent linker
14967         happy.
14968
14969 2010-06-30  Andreas Schwab  <schwab@redhat.com>
14970
14971         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14972         $(common-objpfx)libc_nonshared.a.
14973
14974 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
14975
14976         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
14977         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
14978         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14979         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14980         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
14981         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
14982         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14983         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
14985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
14986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
14987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
14989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
14991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
14992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
14993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
14994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
14996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
14998         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
14999         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
15000         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
15001         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
15002         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
15003         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
15004         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
15005         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
15006         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
15007         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
15008         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
15009         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
15010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
15011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
15012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
15013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
15014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
15015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
15016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
15017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
15018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
15019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
15020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
15021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
15022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
15023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
15024
15025 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15026
15027         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
15028         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
15029         * string/memmove.c (memmove): Renamed to ...
15030         (MEMMOVE): ...this.  Default to memmove.
15031         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
15032         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
15033         (END_CHK): Define.
15034         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15035         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
15036         mempcpy-ssse3-back memmove-ssse3-back.
15037         * sysdeps/x86_64/multiarch/bcopy.S: New file .
15038         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
15039         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
15040         * sysdeps/x86_64/multiarch/memcpy.S: New file.
15041         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
15042         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
15043         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
15044         * sysdeps/x86_64/multiarch/memmove.c: New file.
15045         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
15046         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
15047         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
15048         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
15049         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
15050         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
15051         Define.
15052         (index_Fast_Copy_Backward): Define.
15053         (HAS_ARCH_FEATURE): Define.
15054         (HAS_FAST_REP_STRING): Define.
15055         (HAS_FAST_COPY_BACKWARD): Define.
15056
15057 2010-06-21  Andreas Schwab  <schwab@redhat.com>
15058
15059         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15060         Restore proper fallback handling.
15061
15062 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
15063
15064         [BZ #11701]
15065         * posix/group_member.c (__group_member): Correct checking loop.
15066
15067         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
15068         OOM in getpwuid_r correctly.  Return error number when the caller
15069         should return, otherwise -1.
15070         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
15071         call returning > 0 value.
15072         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
15073
15074 2010-06-07  Andreas Schwab  <schwab@redhat.com>
15075
15076         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
15077         libc_nonshared.a from targets in modules-names.
15078
15079 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
15080
15081         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
15082         requires it.
15083
15084 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
15085
15086         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
15087         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
15088         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
15089         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
15090
15091 2010-06-02  Andreas Schwab  <schwab@redhat.com>
15092
15093         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
15094
15095 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
15096
15097         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
15098         and F_GETPIPE_SZ.
15099         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15100         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15101         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15102         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15103         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15104         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
15105
15106 2010-06-14  Roland McGrath  <roland@redhat.com>
15107
15108         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
15109
15110 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
15111
15112         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
15113         __REDIRECT followed by __THROW.
15114         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
15115         * posix/getopt.h (getopt): Likewise.
15116
15117 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
15118
15119         * hurd/lookup-at.c (__file_name_lookup_at): Accept
15120         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
15121         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
15122         in AT_FLAGS.
15123         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
15124         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
15125
15126 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
15127
15128         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
15129
15130 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
15131
15132         [BZ #11640]
15133         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15134         Properly check family and model.
15135
15136 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
15137
15138         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
15139
15140 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
15141
15142         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
15143
15144 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
15145
15146         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
15147         symbol reference.
15148
15149 2010-05-19  Andreas Schwab  <schwab@redhat.com>
15150
15151         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
15152         symbol reference.
15153
15154 2010-05-21  Andreas Schwab  <schwab@redhat.com>
15155
15156         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
15157         and internal_recvmmsg.
15158         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
15159         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
15160         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
15161         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
15162
15163         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
15164         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
15165         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
15166
15167 2010-05-20  Andreas Schwab  <schwab@redhat.com>
15168
15169         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
15170
15171 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
15172
15173         POWER7 optimizations.
15174         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
15175         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
15176
15177 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
15178
15179         * version.h: Update for 2.13 development version.
15180
15181 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
15182
15183         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
15184         exceptions.  Return 0.
15185
15186 2010-05-07  Roland McGrath  <roland@redhat.com>
15187
15188         * elf/ldconfig.c (main): Add a const.
15189
15190 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
15191
15192         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
15193         (args_options): Add no-idn option.
15194         (ahosts_keys_int): Add idn_flags to ai_flags.
15195         (parse_option): Handle 'i' option to clear idn_flags.
15196
15197         * malloc/malloc.c (_int_free): Possible race in the most recently
15198         added check.  Only act on the data if no current modification
15199         happened.
15200
15201 See ChangeLog.17 for earlier changes.