mktime: avoid signed integer overflow
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2
3         mktime: avoid signed integer overflow
4         * time/mktime.c (__mktime_internal): Do not mishandle the case
5         where diff == INT_MIN.
6
7         mktime: simplify computation of average
8         * time/mktime.c (ranged_convert): Use new time_t_avg function
9         instead of rolling our own (probably-slower) code.
10
11         mktime: do not assume signed right shift propagates sign bit
12         * time/mktime.c (isdst_differ): New static function.
13         (__mktime_internal): No need to normalize tm_isdst now.
14         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
15         tm_isdst values.
16
17         mktime: merge another wrapv change from gnulib
18         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
19         from some compilers.
20
21         mktime: remove incorrect attempt at unusual arithmetics
22         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23         The code didn't really work on such machines anyway.
24         (TYPE_MINIMUM): Assume two's complement.
25         (twos_complement_arithmetic): Verify that long_int and time_t
26         are two's complement (or unsigned, in the latter case).
27
28         mktime: check signed shifts on long_int and time_t, too
29         * time/mktime.c (SHR): Check that shifts work as desired
30         on the types long_int and time_t too, as SHR is used on
31         such types.
32
33         mktime: do not assume 'long' is wide enough
34         * time/mktime.c (verify): Move decl up.
35         (long_int): New type.
36         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
37         to remove assumption in the code that 'long' is wide enough to
38         store year values.  This assumption is not true on x32 and on
39         some non-glibc platforms.
40
41         mktime: merge wrapv change from gnulib
42         * time/mktime.c (WRAPV): New macro.
43         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
44         (guess_time_tm, __mktime_internal): Do not assume that signed
45         integer overflow wraps around; modern compilers generate code
46         where this assumption is no longer valid.
47
48 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
49
50         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
51         Replace "jmp L(pseudo_end)" with "ret".
52         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
53         Likewise.
54
55 2012-05-23  Andreas Jaeger  <aj@suse.de>
56
57         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
58         * sysdeps/unix/sysv/linux/poll.c: Remove file.
59
60 2012-05-23  Andreas Jaeger  <aj@suse.de>
61             Maximilian Attems  <max@stro.at>
62
63         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
64         New macros.
65
66 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
67
68         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
69         code so that pseudo_end is just ret and the stack pointer is
70         correct also for static library in error case.
71
72 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
73
74         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
75         move to syscalls.list.
76         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
77         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
78         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
79         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
80
81         * manual/install.texi (Running make install): Do not mention Linux
82         kernel version for which pt_chown is not needed.
83         (Linux): Do not mention problems with nscd with 2.0 kernels.
84         * INSTALL: Regenerated.
85
86 2012-05-23  Andreas Jaeger  <aj@suse.de>
87
88         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
89         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
90         macro.
91         * sysdeps/unix/sysv/linux/s390/bits/mman.h
92         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
93         * sysdeps/unix/sysv/linux/sh/bits/mman.h
94         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
95         * sysdeps/unix/sysv/linux/i386/bits/mman.h
96         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
97         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
98         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
99         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
100         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
101         * sysdeps/unix/sysv/linux/bits/in.h
102         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
103
104 2012-05-22  Roland McGrath  <roland@hack.frob.com>
105
106         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
107         (PREPARE_VERSION): Just use assert instead, it will be elided
108         under [NDEBUG] anyway.
109
110 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
111
112         * sysdeps/unix/sysv/linux/Makefile: Include
113         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
114         (sysdep_routines): Remove sysctl.
115         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
116         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
117         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
118         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
119         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
120
121 2012-05-22  Andreas Jaeger  <aj@suse.de>
122
123         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
124         that pseudo_end is just ret and the stack pointer is correct also
125         for static library in error case.
126
127 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
128
129         [BZ #14122]
130         * nss/nsswitch.c (defconfig_entries): New variable.
131         (__nss_database_lookup): Don't leak defconfig entries.
132         (nss_parse_service_list): Don't leak on error paths.
133         (free_database_entries): New function.
134         (free_defconfig): New function.
135         (free_mem): Move common code to free_database_entries.
136
137 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
138
139         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
140         Add arch_prctl.
141         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
142
143         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
144         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
145         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
146         New macro.
147         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
148         (INTERNAL_SYSCALL_TYPES): Likewise.
149         (LOAD_ARGS_TYPES_[1-6]): Likewise.
150         (LOAD_REGS_TYPES_[1-6]): Likewise.
151         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
152         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
153
154 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
155
156         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
157         copysignl for GLIBC_2_0.
158         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
159         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
160         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
161         logbl for GLIBC_2_0.
162         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
163         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
164
165 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
166
167         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
168         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
169
170         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
171         Use "neg %eax".
172
173         * time/mktime.c: Update copyright years.
174
175 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
176
177         mktime: merge comment-quoting-style change from gnulib
178         * time/mktime.c: Quote 'like this' in comments.
179         The GNU coding standards suggest that we no longer quote `like this',
180         as "`" and "'" are typically rendered asymmetrically nowadays.
181         The typical gnulib style is to quote 'like this' when quoting
182         code, and "like this" when quoting English.
183
184         * time/mktime.c (compile-command): Add "-I.".
185
186         mktime: merge mktime-internal.h change from gnulib
187         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
188
189         mktime: merge time_r change from gnulib
190         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
191
192         mktime: merge DEBUG change from gnulib
193         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
194         case system <time.h> has a #define.
195
196         mktime: merge <sys/types.h> change from gnulib
197         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
198         since <time.t> is now guaranteed to define time_t.
199
200         mktime: merge HAVE_CONFIG_H change from gnulib
201         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
202
203 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
204
205         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
206         Use "neg %eax".
207
208         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
209         __rlim_t cast.
210         (struct rusage): Use anonymous union to pad each field to
211         __syscall_slong_t.
212
213 2012-05-21  David S. Miller  <davem@davemloft.net>
214
215         * Makefules (o-iterator): Remove .s cases.
216         (compile-command.s): Delete.
217         (COMPILE.s): Delete.
218         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
219
220 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
221
222         * configure.in (libc_cv_predef_stack_protector): Only consider
223         "foobar" and "__stack_chk_fail" lines in libc_undefs.
224         * configure: Regenerated.
225
226 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
227
228         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
229         New macro.  Use R*LP on int and pointer.
230         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
231         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
232         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
233         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
234
235         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
236         [__WORDSIZE_TIME64_COMPAT32] instead of
237         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
238         (struct utmp): Likewise.
239         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
240         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
241         Renamed to ...
242         (__WORDSIZE_TIME64_COMPAT32): This.
243         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
244         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
245         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
246         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
247         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
248         (__WORDSIZE_TIME64_COMPAT32): New macro.
249
250 2012-05-21  Andreas Jaeger  <aj@suse.de>
251
252         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
253         only if [SHARED]. Add prototype for __wcschr_ia32.
254
255 2012-05-21  Roland McGrath  <roland@hack.frob.com>
256
257         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
258         of %rbp unmolested in the jmp_buf while mangling the low bits.
259         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
260         unmolested high bits of %rbp while demangling the low bits.
261         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
262
263 2012-05-21  Andreas Jaeger  <aj@suse.de>
264
265         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
266         * sunrpc/svc_simple.c: Use it for registerrpc.
267         * sunrpc/xcrypt.c: Use it for passwd2des.
268
269         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
270
271 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
272
273         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
274         Don't define if [__SYSCALL_WORDSIZE != 32].
275         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
276         New macro.
277
278 2012-05-21  Bruno Haible  <bruno@clisp.org>
279             Andreas Jaeger  <aj@suse.de>
280
281         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
282         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
283         inptr and inend for must_buffer_ch.
284         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
285         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
286         * stdio-common/Makefile (tests): Remove bug15.
287         (bug15-ENV): Remove macro.
288         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
289         anymore.
290
291 2012-05-19  Andreas Jaeger  <aj@suse.de>
292             Roland McGrath  <roland@hack.frob.com>
293
294         * manual/contrib.texi: Completely rewritten. It contains now an
295         alphabetical list of contributors and their contributions.
296
297 2012-05-21  Richard Henderson  <rth@twiddle.net>
298
299         * misc/getauxval.c (__getauxval): Use unsigned long int.
300         * misc/sys/auxv.h: Include <sys/cdefs.h>.
301         (getauxval): Use unsigned long int.
302
303 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
304
305         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
306
307 2012-05-21  Roland McGrath  <roland@hack.frob.com>
308
309         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
310         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
311         __alignof__ (long double).
312
313 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
314
315         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
316
317 2012-05-20  Richard Henderson  <rth@twiddle.net>
318
319         * misc/getauxval.c: New file.
320         * misc/sys/auxv.h: New file.
321         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
322         (routines): Add getauxval.
323         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
324         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
325         * elf/dl-sysdep.c (_dl_auxv): Remove.
326         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
327         * elf/dl-support.c (_dl_auxv): New variable.
328         (_dl_aux_init): Initialize it.
329         * manual/startup.texi (Auxiliary Vector): New node.
330         * sysdeps/generic/bits/hwcap.h: New file.
331         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
332         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
333         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
334         * sysdeps/sparc/sysdep.h: ... here.  Include it.
335         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
336         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
338         Update.
339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
340         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
341         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
342         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
344         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
345         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
346         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
347
348 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
349
350         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
351
352 2012-05-19  David S. Miller  <davem@davemloft.net>
353
354         * sysdeps/sparc/fpu/libm-test-ulps: Update.
355
356 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
357
358         [BZ #14123]
359         * math/s_ccosh.c: Include <float.h>
360         (__ccosh): Avoid internal overflow calculating sinh and cosh
361         values before multiplying by sin and cos values.
362         * math/s_ccoshf.c: Likewise.
363         * math/s_ccoshl.c: Likewise.
364         * math/s_csin.c: Likewise.
365         * math/s_csinf.c: Likewise.
366         * math/s_csinl.c: Likewise.
367         * math/s_csinh.c: Likewise.
368         * math/s_csinhf.c: Likewise.
369         * math/s_csinhl.c: Likewise.
370         * math/libm-test.inc (ccos_test): Add more tests.
371         (ccosh_test): Likewise.
372         (csin_test): Likewise.
373         (csinh_test): Likewise.
374         * sysdeps/i386/fpu/libm-test-ulps: Update.
375         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
376
377 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
378
379         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
380         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
381
382         * sysdeps/x86_64/x32/_itoa.h: Add comment.
383
384 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
385
386         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
387         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
388         * sysdeps/powerpc/soft-fp/Versions: Likewise.
389         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
390         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
391         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
392         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
393         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
394         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
395         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
396         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
397         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
398         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
399         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
400         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
401         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
402         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
403         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
404         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
405         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
406         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
407         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
408         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
409         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
410         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
411         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
412         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
413         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
414         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
415         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
416         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
417
418 2012-05-18  Andreas Jaeger  <aj@suse.de>
419
420         * csu/.gitignore: Delete.
421
422 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
423
424         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
425         (timex): Use __syscall_slong_t.
426
427 2012-05-18  Andreas Jaeger  <aj@suse.de>
428             Carlos O'Donell  <carlos_odonell@mentor.com>
429
430         * manual/install.texi (Configuring and compiling): Update
431         description about files modified in the source directory.
432         * INSTALL: Regenerated.
433
434 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
435
436         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
437         value.  Use "or" to set return value to -1.
438         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
439         negate return value.
440
441 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
442
443         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
444         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
445         failure if the compiler has Graphite support disabled.
446         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
447         Likewise.
448         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
449         CFLAGS-memmove.c): Likewise.
450         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
451         Likewise.
452
453 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
454
455         * sysdeps/x86_64/x32/_itoa.h: New file.
456
457         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
458         getdents system call only if kernel and user dirents have the
459         same d_ino and d_off.
460
461         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
462         LLONG_MAX != LONG_MAX.
463         (_itoa_word): Use _ITOA_WORD_TYPE on value.
464         (_fitoa_word): Likewise.
465
466         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
467         years.
468         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
469         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
470         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
471
472         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
473         include <bits/wordsize.h>.  Check __x86_64__ instead of
474         __WORDSIZE.
475         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
476         if __x86_64__ is defined.  Use anonymous union on fpstate.
477
478         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
479         anonymous union.
480
481 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
482
483         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
484         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
485         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
486         Refer to _rtld_local_ro instead of _rtld_global_ro.
487         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
488         Likewise.
489         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
490         Likewise.
491         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
492         Likewise.
493         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
494         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
495         of _rtld_global, and rtld_progname instead of _dl_argv[0].
496
497         * sysdeps/powerpc/powerpc32/dl-machine.c
498         (__elf_machine_runtime_setup) [PROF]: Don't reference
499         _dl_prof_resolve.
500
501 2012-05-18  Andreas Jaeger  <aj@suse.de>
502
503         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
504         function only available for GCCs before 3.4 since GCC 3.4
505         introduced a builtin.
506         (lrint): Likewise.
507         (llrintf): Likewise.
508         (llrint): Likewise.
509         (fmaxf): Likewise.
510         (fmax): Likewise.
511         (fminf): Likewise.
512         (fmin): Likewise.
513         (rint): Likewise.
514         (rintf): Likewise.
515         (nearbyint): Likewise.
516         (nearbyintf): Likewise.
517         (ceil): Likewise.
518         (ceilf): Likewise.
519         (floor): Likewise.
520         (floorf): Likewise.
521
522 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
523
524         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
525         on both fields and cast pointer to __syscall_ulong_t.
526
527         * bits/types.h (__fsword_t): New type.
528         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
529         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
530         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
531         (__FSWORD_T_TYPE): Likewise.
532         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
533         (__FSWORD_T_TYPE): Likewise.
534         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
535         (__FSWORD_T_TYPE): Likewise.
536         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
537         (__FSWORD_T_TYPE): Likewise.
538         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
539         __SWORD_TYPE with __fsword_t.
540         (statfs64): Likewise.
541
542 2012-05-17  David S. Miller  <davem@davemloft.net>
543
544         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
545
546 2012-05-17  Andreas Jaeger  <aj@suse.de>
547
548         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
549         warning.
550
551 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
552
553         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
554
555 2012-05-17  Andreas Jaeger  <aj@suse.de>
556
557         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
558         when it is used.
559
560 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
561
562         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
563
564 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
565
566         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
567         * sysdeps/x86_64/tst-mallocalign1.c: New file.
568
569 2012-05-17  Andreas Jaeger  <aj@suse.de>
570             Carlos O'Donell  <carlos_odonell@mentor.com>
571
572         [BZ #14059]
573         * sysdeps/x86_64/multiarch/init-arch.h
574         (bit_YMM_Usable): Rename to...
575         (bit_AVX_Usable): ... this.
576         (bit_FMA4_Usable): New macro.
577         (bit_XMM_state): New macro.
578         (bit_YMM_state): New macro.
579         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
580         [__ASSEMBLER__] (index_AVX_Usable): ... this.
581         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
582         (CPUID_OSXSAVE): New macro.
583         (CPUID_AVX): New macro.
584         (CPUID_FMA4): New macro.
585         (index_YMM_Usable): Rename to...
586         (index_AVX_Usable): ... this.
587         (HAS_AVX): Use HAS_ARCH_FEATURE.
588         (HAS_FMA4): Likewise.
589         (HAS_YMM_USABLE): Remove.
590         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
591         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
592         are present.
593         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
594         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
595         * sysdeps/x86_64/multiarch/Makefile: Likewise.
596         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
597         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
598
599 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
600
601         * math/libm-test.c: Support platforms without multiple rounding modes.
602         * math/bug-nextafter.c: Support platforms without FP exceptions.
603         * math/bug-nexttoward.c: Likewise.
604         * math/test-fenv.c: Likewise.
605         * math/test-misc.c: Likewise.
606         * stdlib/bug-getcontext.c: Likewise.
607
608 2012-05-17  Andreas Jaeger  <aj@suse.de>
609
610         * manual/examples/search.c (critter_cmp): Change signature to
611         avoid warnings.
612         * manual/string.texi (Collation Functions): Likewise.
613
614 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
615
616         * bits/types.h: Fold copyright years.
617         * bits/typesizes.h: Likewise.
618         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
619         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
620         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
621         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
622         * time/time.h: Likewise.
623
624 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
625
626         [BZ #208]
627         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
628         in instead of returning them.  Return void.
629         (__libc_mallinfo): Accumulate over all arenas.
630         (__malloc_stats): Adjust for change in int_mallinfo interface.
631
632 2012-05-16  Roland McGrath  <roland@hack.frob.com>
633
634         [BZ #10375]
635         * configure.in (NM): Add AC_CHECK_TOOL for it.
636         (libc_extra_cflags): New substituted variable.
637         Check for -fstack-protector being used implicitly.
638         * configure: Regenerated.
639         * config.make.in (config-extra-cflags): New variable,
640         gets @libc_extra_cflags@.
641         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
642
643         [BZ #10375]
644         * configure.in: Check for _FORTIFY_SOURCE being predefined.
645         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
646         * configure: Regenerated.
647         * config.make.in (CPPUNDEFS): New substituted variable.
648         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
649         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
650         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
651
652 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
653
654         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
655         (mq_attr): Use __syscall_slong_t.
656
657 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
658
659         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
660         Check __x86_64__ instead of __WORDSIZE.
661         (_STAT_VER_LINUX): Likewise.
662         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
663         __syscall_ulong_t and __syscall_slong_t.
664         (stat64): Likewise.
665
666 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
667
668         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
669
670 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
671
672         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
673
674 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
675
676         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
677         __syscall_ulong_t.
678
679         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
680         include <bits/wordsize.h>.  Check __x86_64__ instead of
681         __WORDSIZE.
682         (greg_t): Use "__extension__ long long int" if __x86_64__ is
683         defined.
684         (mcontext_t): Replace "unsigned long" with "unsigned long long".
685
686         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
687         include <bits/wordsize.h>.  Check __x86_64__ instead of
688         __WORDSIZE.
689         (user_regs_struct): Use "__extension__ unsigned long long"
690         instead of "unsigned long" if __x86_64__ is defined.
691         (user): Likewise.  Pad after pointer field if __ILP32__ is
692         defined.
693
694 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
695
696         * configure.in (makeinfo): Require version 4.5 or later.  Allow
697         versions 5 to 9.
698         * configure: Regenerated.
699         * manual/install.texi (texinfo): Increase version requirement to
700         4.5 or later.
701         * INSTALL: Regenerated.
702
703         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
704
705 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
706
707         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
708
709         * sysdeps/x86_64/x32/ffs.c: New file.
710
711         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
712         __syscall_ulong_t.
713         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
714         defined.  Use __syscall_ulong_t.
715         (shminfo): Use __syscall_ulong_t.
716         (shm_info): Likewise.
717
718         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
719         __syscall_ulong_t.
720
721         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
722         <bits/wordsize.h>.
723         (msgqnum_t): Use __syscall_ulong_t.
724         (msglen_t): Likewise.
725         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
726         __syscall_ulong_t.
727
728         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
729         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
730
731         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
732
733         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
734         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
735
736         * sysvipc/sys/msg.h (msgbuf): Replace long int with
737         __syscall_slong_t.
738
739         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
740         include <bits/wordsize.h>.  Check __x86_64__ instead of
741         __WORDSIZE.
742
743         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
744         "unsigned long long int" if __x86_64__ is defined.
745         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
746
747         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
748         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
749         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
750
751         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
752         <stdint.h>.
753         (GET_PC): Cast to uintptr_t first.
754         (GET_FRAME): Likewise.
755         (GET_STACK): Likewise.
756
757         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
758         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
759         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
760         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
761         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
762         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
763         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
764         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
765         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
766         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
767         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
768         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
769         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
770         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
771         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
772         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
773         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
774         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
775         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
776         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
777         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
778         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
779         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
780         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
781         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
782         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
783         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
784         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
785         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
786
787 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
788
789         * Makerules (+depfiles): Also collect depfiles from .oS in
790         $(extra-objs).
791         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
792         .oS, $(libnldbl-routines)).
793
794         * Makerules (native-compile-mkdep-flags): Define.
795         * sunrpc/Makefile (extra-objs): Add $(addprefix
796         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
797         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
798         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
799         calling $(make-target-directory).
800
801 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
802
803         * bits/types.h (__snseconds_t): Removed.
804         * time/time.h (struct timespec): Replace __snseconds_t with
805         __syscall_slong_t.
806         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
807         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
808         Likewise.
809         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
810         (__SNSECONDS_T_TYPE): Likewise.
811         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
812         (__SNSECONDS_T_TYPE): Likewise.
813         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
814         (__SNSECONDS_T_TYPE): Likewise.
815
816 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
817
818         * sysdeps/mach/hurd/bits/typesizes.h
819         (__SYSCALL_SLONG_TYPE): New macro.
820         (__SYSCALL_ULONG_TYPE): Likewise.
821
822 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
823
824         * bits/types.h (__syscall_slong_t): New type.
825         (__syscall_ulong_t): Likewise.
826
827         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
828         (__SYSCALL_ULONG_TYPE): Likewise.
829         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
830         (__SYSCALL_SLONG_TYPE): Likewise.
831         (__SYSCALL_ULONG_TYPE): Likewise.
832         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
833         (__SYSCALL_SLONG_TYPE): Likewise.
834         (__SYSCALL_ULONG_TYPE): Likewise.
835         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
836         (__SYSCALL_SLONG_TYPE): Likewise.
837         (__SYSCALL_ULONG_TYPE): Likewise.
838
839 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
840
841         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
842         Add sigaltstack-offsets.sym.
843         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
844         <sigaltstack-offsets.h>.
845         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
846         longjmp_msg pointer.
847         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
848         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
849         signal stack.
850         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
851
852 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
853
854         * elf/stackguard-macros.h: Remove file.
855         * sysdeps/generic/stackguard-macros.h: New file.
856         * sysdeps/i386/stackguard-macros.h: Likewise.
857         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
858         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
859         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
860         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
861         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
862         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
863         * sysdeps/x86_64/stackguard-macros.h: Likewise.
864         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
865         <elf/stackguard-macros.h>.
866
867         [BZ #14109]
868         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
869         __aligned__ in attribute.
870         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
871         (gregset_t): Likewise.
872
873 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
874
875         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
876         * sysdeps/x86_64/64/Implies-after: Here.  New file.
877         * sysdeps/x86_64/x32/Implies-after: New file.
878
879 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
880
881         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
882         and access return value for _dl_profile_fixup.  Use R10_LP to
883         load frame size.
884
885 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
886
887         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
888
889 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
890
891         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
892         * sysdeps/x86_64/x32/sysdep.h: New file.
893
894 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
895
896         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
897         * sysdeps/x86_64/setjmp.S: Likewise.
898
899 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
900
901         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
902         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
903         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
904         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
905         remove unused global constant.
906
907 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
908
909         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
910         include of <not-cancel.h>.
911
912 2012-05-15  Roland McGrath  <roland@hack.frob.com>
913
914         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
915
916 2012-05-15  Jeff Law  <law@redhat.com>
917             Andreas Jaeger  <aj@suse.de>
918
919         [BZ #13594]
920         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
921         out from...
922         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
923         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
924         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
925         code changing __hst_map_handle.map.
926
927 2012-05-15  Roland McGrath  <roland@hack.frob.com>
928
929         * configure.in (sysnames): Look for Implies-before and Implies-after
930         files.
931         * configure: Regenerated.
932
933 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
934
935         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
936         8-byte data alignment with LP_SIZE alignment.
937
938 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
939
940         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
941         into R10_LP.
942
943 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
944
945         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
946
947 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
948
949         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
950         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
951         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
952         Likewise.
953         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
954
955 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
956
957         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
958         (stackinfo_sub_sp): Likewise.
959
960 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
961
962         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
963         RAX_LP.
964
965 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
966
967         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
968         into R*_LP.
969
970 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
971
972         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
973         sizes into R*_LP.
974
975 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
976
977         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
978
979 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
980
981         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
982         into R11_LP and load __x86_64_shared_cache_size_half into
983         R8_LP.
984
985 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
986
987         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
988         R8_LP.
989
990 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
991
992         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
993         logb for POWER7.
994         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
995         logbf for POWER7.
996         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
997         logbl for POWER7.
998         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
999         powerpc32/power7/fpu/s_logb.c via #include.
1000         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
1001         powerpc32/power7/fpu/s_logbf.c via #include.
1002         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
1003         powerpc32/power7/fpu/s_logbl.c via #include.
1004
1005 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
1006
1007         * README.libm: Remove file.
1008
1009 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1010
1011         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
1012         count for x32.  Use R*_LP and omit operand-size suffix.
1013
1014 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1015
1016         * shlib-versions: Move x86_64-.*-linux.* entries to ...
1017         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
1018         * sysdeps/x86_64/x32/shlib-versions: New file.
1019
1020 2012-05-14  Roland McGrath  <roland@hack.frob.com>
1021
1022         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
1023         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
1024         Use _dl_fatal_printf instead.
1025
1026 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
1027
1028         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
1029         set if not set by the user.  Do not allow for being unset.
1030         * sysdeps/unix/sysv/linux/configure: Regenerated.
1031
1032 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1033
1034         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
1035         the `q' suffix from lea and replace .quad with ASM_ADDR.
1036
1037 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1038
1039         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
1040         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
1041         instead of $17.
1042         (PTR_DEMANGLE): Likewise.
1043
1044 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1045
1046         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
1047         (LP_OP): Likewise.
1048         (ASM_ADDR): Likewise.
1049         (RAX_LP): Likewise.
1050         (RBP_LP): Likewise.
1051         (RBX_LP): Likewise.
1052         (RCX_LP): Likewise.
1053         (RDI_LP): Likewise.
1054         (RSI_LP): Likewise.
1055         (RSP_LP): Likewise.
1056         (R8_LP): Likewise.
1057         (R9_LP): Likewise.
1058         (R10_LP): Likewise.
1059         (R10_LP): Likewise.
1060         (R11_LP): Likewise.
1061         (R12_LP): Likewise.
1062         (R13_LP): Likewise.
1063         (R14_LP): Likewise.
1064         (R15_LP): Likewise.
1065
1066 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1067
1068         * sysdeps/x86_64/x32/dl-machine.h: New file.
1069
1070 2012-05-14  Andreas Jaeger  <aj@suse.de>
1071
1072         * manual/Makefile (subdir): Remove export of subdir.
1073         (all): Remove target.
1074         (.PHONY): Remove all from list.
1075         (mkinstalldirs): Remove.
1076         (.PHONY): Remove installdirs from list.
1077         ($(inst_infodir)/libc.info): Use make-target-directory.
1078         (installdirs): Remove.
1079         (subdir_%): Remove.
1080         (glibc-targets): Remove.
1081         (lib): Remove.
1082         (stubs): Remove.
1083         ($(objpfx)stubs ../po/manual.pot): Remove.
1084         ($(objpfx)stamp%): Remove.
1085         (make-target-directory): Remove.
1086         (subdir_install): Remove.
1087         (routines): Remove.
1088         (aux): Remove.
1089         (sources): Remove.
1090         (objects): Remove.
1091         (headers): Remove.
1092
1093         [BZ #13750]
1094         * manual/.gitignore: Remove, it's not needed anymore.
1095         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
1096         all files in it.
1097         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
1098         directory.
1099         (texis): Renamed to $(objpfx)texis.
1100         (texis-path): New, contains path to generated files.
1101         (chapters.%): Use texis-path for complete path, add extra argument
1102         libc-texinfo.sh.
1103         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
1104         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
1105         (summary,texi, stamp-summary): Use complete path of
1106         files. Generate files in build dir.
1107         (dir-add.texi): Build in build dir.
1108         (libm-err.texi,stamp-libm-err): Likewise.
1109         (version.texi, stamp-version): Likewise.
1110         (.%c.texi): Likewise.
1111         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
1112         (mostlyclean): Remove target.
1113         (realclean): Remove target.
1114         (generated): Add new variable with contents from mostlyclean and
1115         realclean, remove entries duplicated in common-mostlyclean, add
1116         stamp-libm-err and stamp-version.
1117         (generated-dirs): Add libc directory.
1118         ($(inst_infodir)/libc.info): Install files from build dir.
1119
1120         * manual/install.texi (Configuring and compiling): Adjust since
1121         the info files are not part of the tar ball anymore.
1122
1123 2012-05-14  Andreas Jaeger  <aj@suse.de>
1124
1125         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
1126         variable.
1127
1128 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
1129
1130         [BZ #13717]
1131         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
1132         to 2.2.0 where earlier.
1133         * sysdeps/unix/sysv/linux/configure: Regenerated.
1134         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
1135         Remove conditional code.
1136         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
1137         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
1138         Remove conditional code.
1139         [!__NR_lchown]: Likewise.
1140         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1141         [__NR_lchown]: Likewise.
1142         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
1143         comment referencing __ASSUME_LCHOWN_SYSCALL.
1144         * sysdeps/unix/sysv/linux/i386/sigaction.c
1145         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1146         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1147         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
1148         Remove conditional code.
1149         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
1150         (__protocol_available): Remove #if 0 code.
1151         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
1152         conditional code.
1153         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
1154         * sysdeps/unix/sysv/linux/kernel-features.h
1155         (__ASSUME_GETCWD_SYSCALL): Don't define.
1156         (__ASSUME_REALTIME_SIGNALS): Likewise.
1157         (__ASSUME_PREAD_SYSCALL): Likewise.
1158         (__ASSUME_PWRITE_SYSCALL): Likewise.
1159         (__ASSUME_POLL_SYSCALL): Likewise.
1160         (__ASSUME_LCHOWN_SYSCALL): Likewise.
1161         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
1162         non-SPARC.
1163         (__ASSUME_SIOCGIFNAME): Don't define.
1164         (__ASSUME_MSG_NOSIGNAL): Likewise.
1165         (__ASSUME_SENDFILE): Define unconditionally.
1166         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
1167         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
1168         conditional code.
1169         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
1170         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
1171         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1172         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1173         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
1174         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1175         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
1177         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1178         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
1180         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1181         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
1183         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1184         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
1186         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1187         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
1189         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1190         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
1192         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1193         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
1195         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1196         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
1198         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1199         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1200         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
1201         Remove conditional code.
1202         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1203         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1204         Remove conditional code.
1205         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1206         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
1207         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
1208         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1209         Remove conditional code.
1210         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1211         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
1212         Remove conditional code.
1213         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1214         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
1215         Remove conditional code.
1216         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1217         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1218         Remove conditional code.
1219         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1220         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1221         Remove conditional code.
1222         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1223         * sysdeps/unix/sysv/linux/sh/pwrite64.c
1224         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1225         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1226         * sysdeps/unix/sysv/linux/sigaction.c
1227         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1228         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1229         * sysdeps/unix/sysv/linux/sigpending.c
1230         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1231         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1232         * sysdeps/unix/sysv/linux/sigprocmask.c
1233         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1234         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1235         * sysdeps/unix/sysv/linux/sigsuspend.c
1236         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1237         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1238         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1239         (__libc_missing_rt_sigs): Remove.
1240         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
1241         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
1242         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
1243         Remove conditional code.
1244         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
1245         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
1246         return 1.
1247         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
1248         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
1249         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
1250         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
1251
1252 2012-05-14  Andreas Jaeger  <aj@suse.de>
1253
1254         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
1255         it's not used in glibc.
1256         (__coshm1): Likewise.
1257         (__acosh1p): Likewise.
1258         (__sgn): Likewise.
1259
1260         * manual/string.texi (Copying and Concatenation): Add missing
1261         variable in concat example.
1262         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
1263
1264 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1265
1266         [BZ #14103]
1267         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
1268         __builtin_clzl with __builtin_clzll.
1269
1270 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1271
1272         [BZ #14104]
1273         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
1274         libc_freeres_ptr.
1275
1276 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1277
1278         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
1279         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
1280         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
1281         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
1282
1283 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
1284
1285         * NEWS: Update ia64 info.
1286
1287 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
1288
1289         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
1290         used as bcopy.
1291
1292 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1293
1294         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
1295         * sysdeps/unix/syscalls.list (dup3): Likewise.
1296         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
1297         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
1298
1299 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1300
1301         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
1302         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
1303
1304 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1305
1306         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
1307         thread pointer.
1308         (TLS_IE): Use mov/add instead of movq/addq to load thread
1309         pointer.
1310         (TLS_GD_PREFIX): New.
1311         (TLS_GD): Use it.
1312
1313 2012-05-11  David S. Miller  <davem@davemloft.net>
1314
1315         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
1316         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
1317         (_FPU_SETCW): Likewise.
1318
1319 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1320
1321         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
1322         is 32-byte aligned.
1323
1324 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
1325
1326         [BZ #11837]
1327         * iconvdata/gb18030.c: Update tables.
1328         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
1329         characters specially.
1330         (BODY for TO_LOOP): Add encoding of missing ranges.
1331
1332 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
1333
1334         [BZ #13673]
1335         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
1336         * sysdeps/mach/hurd/dup3.c: Likewise.
1337         * sysdeps/mach/hurd/readlinkat.c: Likewise.
1338         * sysdeps/powerpc/memmove.c:: Likewise.
1339
1340 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1341
1342         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
1343         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
1344
1345 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1346
1347         * elf/elf.h (R_X86_64_RELATIVE64): New.
1348         (R_X86_64_NUM): Updated.
1349         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1350         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
1351         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
1352         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
1353         tst-quad1pie tst-quad2pie
1354         (modules-names): Add tst-quadmod1 tst-quadmod2.
1355         ($(objpfx)tst-quad1): New dependency.
1356         ($(objpfx)tst-quad2): Likewise.
1357         ($(objpfx)tst-quad1pie): Likewise.
1358         ($(objpfx)tst-quad2pie): Likewise.
1359         * sysdeps/x86_64/tst-quad1.c: New file.
1360         * sysdeps/x86_64/tst-quad1pie.c: New file.
1361         * sysdeps/x86_64/tst-quad2.c: Likewise.
1362         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
1363         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
1364         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
1365         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
1366         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
1367
1368 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1369
1370         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
1371         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
1372         * streams/stropts.h (t_scalar_t): Define type.
1373
1374         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
1375         (_PATH_PRESERVE): Set to "/var/lib".
1376         (_PATH_RWHODIR): Set to "/var/spool/rwho".
1377
1378         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
1379         instead of int.
1380
1381         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
1382         if __dir_mkfile succeeded.
1383
1384         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
1385         checking for _hurd_dtablesize.  Unlock it right after having
1386         finished _hurd_dtable allocation.
1387
1388 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1389
1390         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
1391         * sysdeps/mach/hurd/configure: Regenerated.
1392         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
1393         special-casing to...
1394         * sysdeps/gnu/configure.in: ... this new file.
1395         * sysdeps/unix/sysv/linux/configure: Regenerated.
1396         * sysdeps/gnu/configure: New generated file.
1397
1398         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
1399         for Linux: use nsec instead of usec, as well as:
1400         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
1401         members of type struct timespec.
1402         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
1403         New macros.
1404         (struct stat64): Likewise.
1405         (_STATBUF_ST_NSEC): New macro.
1406         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
1407
1408         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1409         __strtoul_internal rather than strtoul.
1410
1411 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1412
1413         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
1414         and reject them.
1415
1416 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1417
1418         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
1419         which preserves existing values.
1420         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
1421
1422 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1423
1424         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
1425         TIMEOUT values.  Return EINVAL for NFDS values either negative or
1426         greater than FD_SETSIZE.
1427
1428 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1429
1430         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
1431         allocated, call __vm_protect to finish enabling the existing space, and
1432         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
1433         allocate the remainder.
1434
1435 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1436
1437         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
1438         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
1439
1440 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1441
1442         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
1443         sysdeps/mach/hurd/readlink.c.
1444
1445         * posix/tst-sysconf.c (posix_options): Only use
1446         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
1447         _POSIX_SYNCHRONIZED_IO when they are defined
1448         * sysdeps/mach/hurd/bits/posix_opt.h:
1449         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
1450         (_XOPEN_REALTIME): Undefine macro.
1451         (_XOPEN_REALTIME_THREADS): Undefine macro.
1452         (_XOPEN_SHM): Undefine macro.
1453         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
1454         macro to -1.
1455         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
1456         macro to -1.
1457         (_POSIX_ASYNC_IO): Undefine macro.
1458         (_POSIX_PRIORITIZED_IO): Undefine macro.
1459         (_POSIX_SPIN_LOCKS): Define macro to -1.
1460
1461         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
1462         SA_NODEFER, SA_RESETHAND.
1463         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
1464         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
1465         F_DUPFD_CLOEXEC.
1466
1467 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1468
1469         * elf/Makefile (pldd-modules): Define unconditionally.
1470
1471 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1472
1473         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
1474
1475 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1476
1477         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1478         Return ENOENT when name is empty.
1479         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
1480
1481 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1482
1483         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
1484
1485         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
1486
1487 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1488
1489         Fix mlock in all cases except non-readable pages.
1490         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
1491         instead of VM_PROT_ALL as parameter to __vm_wire function.
1492
1493         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
1494         (__mkdir): When path is `/', just fail with EEXIST.
1495         * sysdeps/mach/hurd/mkdirat.c: Likewise.
1496
1497 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1498
1499         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
1500         <sys/uio.h> (for writev).
1501         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
1502         and <sys/param.h> (for MIN).
1503
1504 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1505
1506         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
1507         REQUESTED_TIME.  Properly set the remaining time and return EINTR
1508         if interrupted.
1509
1510 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1511
1512         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
1513         Depend on against $(link-rpcuserlibs).
1514
1515 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1516
1517         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
1518         (__libc_stack_end): Do not use attribute_relro.
1519         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
1520         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
1521         to libthread-provided value.
1522         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
1523         attribute_relro.
1524
1525 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1526
1527         [BZ #3748]
1528         * bits/libc-lock.h (__libc_once_get): New macro.
1529         * sysdeps/mach/bits/libc-lock.h: Likewise.
1530         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1531         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
1532         instead of using implementation details.
1533
1534         * libio/fileops.c: Unconditionally include <kernel-features.h>.
1535         * libio/freopen.c: Likewise.
1536         * libio/freopen64.c: Likewise.
1537         * misc/syslog.c: Likewise.
1538         * nscd/connections.c: Likewise.
1539         * nscd/netgroupcache.c: Likewise.
1540         * sysdeps/posix/getcwd.c: Likewise.
1541
1542 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1543
1544         * math/w_ilogbf.c: Add #include <limits.h>.
1545
1546 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1547
1548         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
1549         path instead of returning without unlocking.
1550
1551         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
1552         immediate-write ioctls.
1553         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
1554
1555 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1556
1557         * sysdeps/mach/hurd/i386/init-first.c (init): Use
1558         __builtin_frame_address instead of making assumptions about the
1559         location of the return address relative to DATA.  Force early load of
1560         the return address.
1561         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
1562         __builtin_frame_address.
1563
1564         dup3 for GNU Hurd.
1565         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
1566         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
1567         implement dup3 and do some further code clean-ups.
1568         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
1569         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
1570
1571 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1572
1573         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
1574
1575         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
1576         HURD_CRITICAL_END around holding _hurd_dtable_lock.
1577         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
1578         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
1579         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
1580         d->port.lock.
1581
1582         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
1583         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
1584         when handler == SIG_ERR, not when handler != SIG_ERR.
1585
1586 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1587
1588         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
1589         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
1590         definitions.
1591
1592         accept4 for GNU Hurd.
1593         * include/sys/socket.h (__libc_accept4): New prototype.
1594         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
1595         to implement __libc_accept4.
1596         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
1597         __libc_accept4.
1598         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
1599
1600         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
1601         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
1602         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
1603         signal-defines.sym.
1604
1605 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1606
1607         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
1608
1609 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1610
1611         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
1612         assertion on O_CLOEXEC flag.
1613         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
1614         * hurd/intern-fd.c: Likewise.
1615         * hurd/port2fd.c: Likewise.
1616
1617 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1618
1619         [BZ #3906]
1620         * bits/in.h (IPV6_PKTINFO): Define new macro.
1621         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
1622
1623 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1624
1625         [BZ #13954]
1626         [BZ #13955]
1627         [BZ #13956]
1628         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
1629         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1630         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
1631         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1632         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1633         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1634         * math/libm-test.inc (logb_test) : Additional logb tests.
1635
1636 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
1637             Andreas Jaeger  <aj@suse.de>
1638
1639         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
1640         * configure: Regenerated.
1641         * config.h.in (LINK_OBSOLETE_RPC): New macro.
1642         * config.make.in (link-obsolete-rpc): New substituted variable.
1643         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
1644         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
1645         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1646         (shared-only-routines): Don't set it under [link-obsolete-rpc],
1647         so that libc.a contains the symbols.
1648         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1649         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
1650         * sunrpc/auth_none.c: Likewise.
1651         * sunrpc/auth_unix.c: Likewise.
1652         * sunrpc/authdes_prot.c: Likewise.
1653         * sunrpc/authuxprot.c: Likewise.
1654         * sunrpc/clnt_gen.c: Likewise.
1655         * sunrpc/clnt_perr.c: Likewise.
1656         * sunrpc/clnt_raw.c: Likewise.
1657         * sunrpc/clnt_simp.c: Likewise.
1658         * sunrpc/clnt_tcp.c: Likewise.
1659         * sunrpc/clnt_udp.c: Likewise.
1660         * sunrpc/clnt_unix.c: Likewise.
1661         * sunrpc/des_crypt.c: Likewise.
1662         * sunrpc/des_soft.c: Likewise.
1663         * sunrpc/get_myaddr.c: Likewise.
1664         * sunrpc/key_call.c: Likewise.
1665         * sunrpc/key_prot.c: Likewise.
1666         * sunrpc/netname.c: Likewise.
1667         * sunrpc/pm_getmaps.c: Likewise.
1668         * sunrpc/pm_getport.c: Likewise.
1669         * sunrpc/pmap_clnt.c: Likewise.
1670         * sunrpc/pmap_prot.c: Likewise.
1671         * sunrpc/pmap_prot2.c: Likewise.
1672         * sunrpc/pmap_rmt.c: Likewise.
1673         * sunrpc/publickey.c: Likewise.
1674         * sunrpc/rpc_cmsg.c: Likewise.
1675         * sunrpc/rpc_common.c: Likewise.
1676         * sunrpc/rpc_dtable.c: Likewise.
1677         * sunrpc/rpc_prot.c: Likewise.
1678         * sunrpc/rpc_thread.c: Likewise.
1679         * sunrpc/rtime.c: Likewise.
1680         * sunrpc/svc.c: Likewise.
1681         * sunrpc/svc_auth.c: Likewise.
1682         * sunrpc/svc_raw.c: Likewise.
1683         * sunrpc/svc_run.c: Likewise.
1684         * sunrpc/svc_tcp.c: Likewise.
1685         * sunrpc/svc_udp.c: Likewise.
1686         * sunrpc/svc_unix.c: Likewise.
1687         * sunrpc/svcauth_des.c: Likewise.
1688         * sunrpc/xcrypt.c: Likewise.
1689         * sunrpc/xdr.c: Likewise.
1690         * sunrpc/xdr_array.c: Likewise.
1691         * sunrpc/xdr_float.c: Likewise.
1692         * sunrpc/xdr_intXX_t.c: Likewise.
1693         * sunrpc/xdr_mem.c: Likewise.
1694         * sunrpc/xdr_rec.c: Likewise.
1695         * sunrpc/xdr_ref.c: Likewise.
1696         * sunrpc/xdr_sizeof.c: Likewise.
1697         * sunrpc/xdr_stdio.c: Likewise.
1698
1699 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1700
1701         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
1702         change.  Update copyright years.
1703
1704 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1705
1706         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
1707
1708 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
1709             Joseph Myers  <joseph@codesourcery.com>
1710             Paul Pluzhnikov  <ppluzhnikov@google.com>
1711
1712         [BZ #14012]
1713         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
1714         requiring rpcgen.
1715         [cross-compiling] (extra-libs): Likewise.
1716         [cross-compiling] (extra-libs-others): Likewise.
1717         [cross-compiling] (librpcsvc-routines): Likewise.
1718         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
1719         [cross-compiling] (omit-deps): Likewise.
1720         (sunrpc-CPPFLAGS): New variable.
1721         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
1722         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
1723         (cross-rpcgen-objs): New variable.
1724         (extra-objs): Append $(cross-rpcgen-objs).
1725         ($(cross-rpcgen-objs)): New rule.
1726         ($(objpfx)cross-rpcgen): Likewise.
1727         (rpcgen-cmd): Define to use $(built-program-file).  Expand
1728         comment.
1729         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
1730         ($(objpfx)x%.stmp): Likewise.
1731         * sunrpc/proto.h [IS_IN_build] (_): Define.
1732         [IS_IN_build] (_libc_intl_domainname): Likewise.
1733
1734 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1735
1736         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
1737         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
1738         and R_X86_64_TPOFF64.
1739
1740 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1741
1742         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
1743         sysdeps/unix/sysv/syscalls.list.
1744         (stime): Likewise.
1745         (utime): Likewise.
1746         * sysdeps/unix/sysv/syscalls.list: Remove file.
1747
1748 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1749
1750         [BZ #3440]
1751         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
1752         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
1753         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
1754         (__LC_IDENTIFICATION): Make these macros useful in #if
1755         expressions, as required by C99.
1756
1757 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
1758
1759         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
1760         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
1761         after this.
1762
1763 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1764
1765         * stdlib/longlong.h: Updated from GCC.
1766
1767 2012-05-09  Andreas Jaeger  <aj@suse.de>
1768
1769         * nscd/nscd.c (run_modes): Make named enum, reorder so that
1770         default is first entry.
1771         (run_mode): Set type.
1772         (main): Remove informal message about syslog.
1773         (options): Fix typo.
1774
1775         [BZ #14053]
1776         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
1777         to asm.
1778         (lrint): Likewise.
1779         (llrintf): Likewise.
1780         (llrint): Likewise.
1781         (rint): Likewise.
1782         (rintf): Likewise.
1783         (nearbyint): Likewise.
1784         (nearbyintf): Likewise.
1785
1786 2012-05-09  Andreas Jaeger  <aj@suse.de>
1787             Pedro Alves  <palves@redhat.com>
1788
1789         * nscd/nscd.c (run_mode): Use enum.
1790         (main): Cleanup coding style issue.
1791
1792 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
1793             Andreas Jaeger  <aj@suse.de>
1794
1795         * nscd/nscd.c (go_background): Replaced with...
1796         (run_mode): ... this.
1797         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
1798         (options): Add -F --foreground.
1799         (main): Implement it.
1800         (parse_opt): Parse it.
1801
1802 2012-05-09  Andreas Jaeger  <aj@suse.de>
1803
1804         [BZ #14083]
1805         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
1806         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
1807         -Wconversion warning.
1808         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
1809         Likewise.
1810
1811 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
1812
1813         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
1814         == 0.
1815         (LC_ALL): Use macro-int-constant.
1816         (LC_COLLATE): Likewise.
1817         (LC_CTYPE): Likewise.
1818         (LC_MESSAGES): Likewise.
1819         (LC_MONETARY): Likewise.
1820         (LC_NUMERIC): Likewise.
1821         (LC_TIME): Likewise.
1822         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
1823         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1824         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1825         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
1826         Specify type.
1827         [C99-based standards] (float_t): Expect type.
1828         [C99-based standards] (double_t): Expect type.
1829         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
1830         type.
1831         [C99-based standards] (HUGE_VALL): Likewise.
1832         [C99-based standards] (INFINITY): Likewise.
1833         [C99-based standards] (NAN): Likewise.
1834         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
1835         [C99-based standards] (FP_NAN): Likewise.
1836         [C99-based standards] (FP_NORMAL): Likewise.
1837         [C99-based standards] (FP_SUBNORMAL): Likewise.
1838         [C99-based standards] (FP_ZERO): Likewise.
1839         [C99-based standards] (FP_FAST_FMA): Use
1840         optional-macro-int-constant.  Specify type.  Require == 1.
1841         [C99-based standards] (FP_FAST_FMAF): Likewise.
1842         [C99-based standards] (FP_FAST_FMAL): Likewise.
1843         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
1844         [C99-based standards] (FP_ILOGBNAN): Likewise.
1845         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
1846         Specify type.
1847         [C99-based standards] (MATH_ERREXCEPT): Likewise.
1848         [C99-based standards] (math_errhandling): Specify type.
1849         [ISO99 || ISO11] (signgam): Do not allow.
1850         [non-C99-based standards] (copysignf): Do not allow.
1851         [non-C99-based standards] (exp2f): Likewise.
1852         [non-C99-based standards] (log2f): Likewise.
1853         [non-C99-based standards] (modff): Allow.
1854         [non-C99-based standards] (erff): Do not allow.
1855         [non-C99-based standards] (erfcf): Likewise.
1856         [non-C99-based standards] (gammaf): Likewise.
1857         [non-C99-based standards] (hypotf): Likewise.
1858         [non-C99-based standards] (j0f): Likewise.
1859         [non-C99-based standards] (j1f): Likewise.
1860         [non-C99-based standards] (jnf): Likewise.
1861         [non-C99-based standards] (lgammaf): Likewise.
1862         [non-C99-based standards] (tgammaf): Likewise.
1863         [non-C99-based standards] (y0f): Likewise.
1864         [non-C99-based standards] (y1f): Likewise.
1865         [non-C99-based standards] (ynf): Likewise.
1866         [non-C99-based standards] (isnanf): Likewise.
1867         [non-C99-based standards] (acoshf): Likewise.
1868         [non-C99-based standards] (asinhf): Likewise.
1869         [non-C99-based standards] (atanhf): Likewise.
1870         [non-C99-based standards] (cbrtf): Likewise.
1871         [non-C99-based standards] (expm1f): Likewise.
1872         [non-C99-based standards] (ilogbf): Likewise.
1873         [non-C99-based standards] (log1pf): Likewise.
1874         [non-C99-based standards] (logbf): Likewise.
1875         [non-C99-based standards] (nextafterf): Likewise.
1876         [non-C99-based standards] (remainderf): Likewise.
1877         [non-C99-based standards] (rintf): Likewise.
1878         [non-C99-based standards] (scalbf): Likewise.
1879         [non-C99-based standards] (copysignl): Likewise.
1880         [non-C99-based standards] (exp2l): Likewise.
1881         [non-C99-based standards] (log2l): Likewise.
1882         [non-C99-based standards] (modfl): Allow.
1883         [non-C99-based standards] (erfl): Do not allow.
1884         [non-C99-based standards] (erfcl): Likewise.
1885         [non-C99-based standards] (gammal): Likewise.
1886         [non-C99-based standards] (hypotl): Likewise.
1887         [non-C99-based standards] (j0l): Likewise.
1888         [non-C99-based standards] (j1l): Likewise.
1889         [non-C99-based standards] (jnl): Likewise.
1890         [non-C99-based standards] (lgammal): Likewise.
1891         [non-C99-based standards] (tgammal): Likewise.
1892         [non-C99-based standards] (y0l): Likewise.
1893         [non-C99-based standards] (y1l): Likewise.
1894         [non-C99-based standards] (ynl): Likewise.
1895         [non-C99-based standards] (isnanl): Likewise.
1896         [non-C99-based standards] (acoshl): Likewise.
1897         [non-C99-based standards] (asinhl): Likewise.
1898         [non-C99-based standards] (atanhl): Likewise.
1899         [non-C99-based standards] (cbrtl): Likewise.
1900         [non-C99-based standards] (expm1l): Likewise.
1901         [non-C99-based standards] (ilogbl): Likewise.
1902         [non-C99-based standards] (log1pl): Likewise.
1903         [non-C99-based standards] (logbl): Likewise.
1904         [non-C99-based standards] (nextafterl): Likewise.
1905         [non-C99-based standards] (remainderl): Likewise.
1906         [non-C99-based standards] (rintl): Likewise.
1907         [non-C99-based standards] (scalbl): Likewise.
1908         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1909         [non-C99-based standards] (FP_*): Do not allow.
1910         [C99-based standards] (FP_*): Change to
1911         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1912         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1913         allow.
1914         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
1915         (SIG_ERR): Likewise.
1916         [X/Open-based standards] (SIG_HOLD): Likewise.
1917         (SIG_IGN): Likewise.
1918         (SIGABRT): Use macro-int-constant.  Specify type.  Require
1919         positive value.
1920         (SIGFPE): Likewise.
1921         (SIGILL): Likewise.
1922         (SIGINT): Likewise.
1923         (SIGSEGV): Likewise.
1924         (SIGTER): Likewise.
1925         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
1926         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
1927         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
1928         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
1929         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
1930         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
1931         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
1932         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
1933         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
1934         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
1935         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
1936         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
1937         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
1938         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
1939         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
1940         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
1941         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
1942         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
1943         [X/Open-based standards] (SIGTRAP): Likewise.
1944         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
1945         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
1946         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
1947         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
1948         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1949         allow.
1950
1951 2012-05-08  Ian Wienand  <ianw@vmware.com>
1952
1953         [BZ #14080]
1954         * time/tzset.c (__tzset_parse_tz): Update default rules for
1955         daylight time changes in the Energy Policy Act of 2005.
1956
1957 2012-05-09  Andreas Jaeger  <aj@suse.de>
1958
1959         [BZ #13983]
1960         * elf/ldconfig.c (parse_conf): Change string to make clear that
1961         ldconfig only issued a warning if ld.so.conf does not exist.
1962
1963 2012-05-08  David S. Miller  <davem@davemloft.net>
1964
1965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
1966         movxtod instead of popping the value on the stack.
1967
1968         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1969
1970 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
1971
1972         * config.h.in: Add HAVE_ARM_PCS_VFP.
1973
1974 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
1975
1976         [BZ #13979]
1977         * include/features.h: Warn if user requests __FORTIFY_SOURCE
1978         checking but the checks are disabled for any reason.
1979
1980 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1981
1982         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
1983         and ELF64_R_TYPE with ELFW(R_TYPE).
1984
1985 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
1986
1987         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
1988         (ulimit): Likewise.
1989
1990         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
1991         (settimeofday): Likewise.
1992
1993 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
1994
1995         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
1996         a struct th_u2 inside the union, and move tu_block/tu_code into
1997         a new th_u3 union of tu_block/tu_code inside of that.  Move
1998         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
1999         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
2000         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
2001         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
2002         (th_stuff): Change to th_u1.tu_stuff.
2003         (th_data): Define.
2004         (th_msg): Change to th_u1.th_u2.tu_data.
2005
2006 2012-05-07  David S. Miller  <davem@davemloft.net>
2007
2008         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2009
2010         [BZ #14074]
2011         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
2012         (SETUP_PIC_REG): Use it.
2013         (SETUP_PIC_REG_LEAF): Use it.
2014
2015 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
2016
2017         [BZ #13885]
2018         [BZ #13923]
2019         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2020         USE_AS_EXPM1L.
2021         (EXPL_FINITE): Likewise.
2022         (FLDLOG): Likewise.
2023         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
2024         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
2025         e_expl.S.
2026         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2027         USE_AS_EXPM1L.
2028         (EXPL_FINITE): Likewise.
2029         (FLDLOG): Likewise.
2030         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
2031         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
2032         e_expl.S.
2033         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
2034         test of -max_value argument for long double.
2035         * sysdeps/i386/fpu/libm-test-ulps: Update.
2036         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2037
2038 2012-05-06  David S. Miller  <davem@davemloft.net>
2039
2040         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
2041         quad soft-float symbols whose references which are compiler
2042         generated.
2043         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
2044
2045 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
2046
2047         [BZ #13884]
2048         [BZ #13914]
2049         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2050         USE_AS_EXP10L.
2051         (EXPL_FINITE): Likewise.
2052         (FLDLOG): Likewise.
2053         (c0): Likewise.
2054         (c1): Likewise.
2055         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
2056         Adjust comments for base varying.
2057         (__expl_finite): Change alias to EXPL_FINITE.
2058         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
2059         e_expl.S.
2060         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
2061         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
2062         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
2063         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
2064         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2065         USE_AS_EXP10L.
2066         (EXPL_FINITE): Likewise.
2067         (FLDLOG): Likewise.
2068         (c0): Likewise.
2069         (c1): Likewise.
2070         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
2071         Adjust comments for base varying.
2072         (__expl_finite): Change alias to EXPL_FINITE.
2073         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
2074         tests for bugs.
2075         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2076
2077         [BZ #14064]
2078         * math/libm-test.inc (check_float_internal): Correct ulp
2079         calculation for subnormal expected results.
2080
2081 2012-05-06  Andreas Jaeger  <aj@suse.de>
2082
2083         * Makeconfig (+math-flags): New, set to -frounding-math.
2084         (+cflags): Add +math-flags so that all of glibc gets compiled with
2085         it.
2086
2087         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
2088
2089 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
2090
2091         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
2092         Disable one test.
2093
2094         [BZ #13787]
2095         [BZ #13922]
2096         [BZ #14036]
2097         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
2098         (__ieee754_expl): Allow for and saturate large arguments.
2099         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
2100         (u_threshold): Likewise.
2101         (__exp): Call __ieee754_exp before checking for overflow and
2102         underflow.
2103         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
2104         (u_threshold): Likewise.
2105         (__expf): Call __ieee754_expf before checking for overflow and
2106         underflow.
2107         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
2108         (u_threshold): Likewise.
2109         (__expl): Call __ieee754_expl before checking for overflow and
2110         underflow.
2111         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
2112         (__ieee754_expl): Allow for and saturate large arguments.
2113         * math/libm-test.inc (exp_test): Add another test.  Do not allow
2114         missing overflow exception on overflow.
2115         (expm1_test): Do not allow missing overflow exception on overflow.
2116
2117         * sysdeps/i386/fpu/e_expl.c: Move to ...
2118         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
2119         rather than using inline asm.
2120         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
2121         * sysdeps/x86_64/fpu/e_expl.S: Copy from
2122         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
2123
2124         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
2125         (nice): Likewise.
2126         (poll): Likewise.
2127         (signal): Likewise.
2128         (time): Likewise.
2129         (times): Likewise.
2130
2131 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2132
2133         * sysdeps/unix/syscalls.list (adjtime): Add entry from
2134         sysdeps/unix/common/syscalls.list.
2135         (fchmod): Likewise.
2136         (fchown): Likewise.
2137         (ftruncate): Likewise.
2138         (getrusage): Likewise.
2139         (gettimeofday): Likewise.
2140         (setpgid): Likewise.
2141         (setregid): Likewise.
2142         (setreuid): Likewise.
2143         (sigaction): Likewise.
2144         (truncate): Likewise.
2145         (vhangup): Likewise.
2146         * sysdeps/unix/common/syscalls.list: Remove file.
2147         * sysdeps/unix/bsd/Implies: Don't include unix/common.
2148         * sysdeps/unix/sysv/linux/Implies: Likewise.
2149
2150 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2151
2152         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
2153         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
2154         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
2155         Moved to ...
2156         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2157         Here.
2158         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
2159         to ...
2160         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
2161         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
2162         to ...
2163         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
2164         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
2165         to ...
2166         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
2167         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
2168         to ...
2169         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
2170         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
2171         to ...
2172         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
2173         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
2174         to ...
2175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
2176         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
2177         to ...
2178         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
2179         Here.
2180         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
2181         to ...
2182         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
2183         Here.
2184         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
2185         to ...
2186         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
2187         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
2188         Moved to ...
2189         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
2190         Here.
2191         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
2192         to ...
2193         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
2194
2195 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2196
2197         * sysdeps/unix/common/bits/dirent.h: Remove file.
2198         * sysdeps/unix/common/bits/fcntl.h: Likewise.
2199
2200         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
2201         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
2202         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
2203         * sysdeps/unix/bsd/isatty.c: Likewise.
2204         * sysdeps/unix/bsd/tcdrain.c: Likewise.
2205         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
2206         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
2207
2208 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2209
2210         [BZ #13563]
2211         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
2212         long double comparison inaccuracies.
2213         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
2214         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2215
2216 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
2217
2218         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
2219         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
2220
2221 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2222
2223         [BZ #14049]
2224         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
2225         nonzero digits before rounding a hex value.
2226         * stdlib/tst-strtod.c (tests): Add another test.
2227
2228 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2229
2230         * sysdeps/s390/fpu/libm-test-ulps: Update.
2231
2232 2012-05-03  Andreas Jaeger  <aj@suse.de>
2233
2234         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
2235         does not get optimized out.
2236         (malloc_opt_barrier): New.
2237
2238 2012-05-03  Andreas Jaeger  <aj@suse.de>
2239             Roland McGrath  <roland@hack.frob.com>
2240
2241         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
2242         intermediate file deletion.
2243         (generated): Add .symlist files.
2244
2245 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
2246
2247         [BZ #13775]
2248         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
2249         Redirect under this condition.
2250         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2251         [__USE_GNU] (__dprintf_chk): Not under this condition.
2252         [__USE_GNU] (__vdprintf_chk): Likewise.
2253         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
2254         under this condition.
2255         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2256         [__USE_XOPEN2K8] (dprintf): Define under this condition.
2257         [__USE_XOPEN2K8] (vdprintf): Likewise.
2258         [__USE_GNU] (__dprintf_chk): Not under this condition.
2259         [__USE_GNU] (__vdprintf_chk): Likewise.
2260         [__USE_GNU] (dprintf): Likewise.
2261         [__USE_GNU] (vdprintf): Likewise.
2262
2263 2012-05-03  Roland McGrath  <roland@hack.frob.com>
2264
2265         * elf/Makefile (common-generated): Set this instead of generated for
2266         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
2267         $(all-built-dso)-derived lists.
2268
2269 2012-05-03  Andreas Jaeger  <aj@suse.de>
2270
2271         * sysdeps/i386/fpu/libm-test-ulps: Update.
2272
2273         * FAQ: Removed.
2274         * FAQ.in: Likewise.
2275         * scripts/gen-FAQ.pl: Likewise.
2276         * manual/install.texi (Installation): Point to online location of
2277         FAQ.
2278         * Makefile (files-for-dist): Remove FAQ.
2279         (FAQ): Remove.
2280
2281 2012-05-02  Allan McRae  <allan@archlinux.org>
2282
2283         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
2284         (LDFLAGS-reldepmod5.so): Likewise.
2285         (LDFLAGS-reldep6mod1.so): Likewise.
2286         (LDFLAGS-reldep6mod4.so): Likewise.
2287         (LDFLAGS-reldep8mod3.so): Likewise.
2288         (LDFLAGS-unload4mod1.so): Likewise.
2289         (LDFLAGS-unload4mod2.so): Likewise.
2290         (LDFLAGS-tst-initorder): Likewise.
2291         (LDFLAGS-tst-initordera2.so): Likewise.
2292         (LDFLAGS-tst-initordera3.so): Likewise.
2293         (LDFLAGS-tst-initordera4.so): Likewise.
2294         (LDFLAGS-tst-initorderb2.so): Likewise.
2295         (LDFLAGS-noload): Likewise.
2296         (LDFLAGS-next): Likewise.
2297         (LDFLAGS-order2mod1.so): Likewise.
2298         (LDFLAGS-order2mod2.so): Likewise.
2299         (LDFLAGS-tst-initorder2): Likewise.
2300         (LDFLAGS-tst-initorder2a.so): Likewise.
2301         (LDFLAGS-tst-initorder2b.so): Likewise.
2302         (LDFLAGS-tst-initorder2c.so): Likewise.
2303         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
2304
2305 2012-05-02  David S. Miller  <davem@davemloft.net>
2306
2307         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2308
2309 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
2310
2311         [BZ #14055]
2312         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
2313
2314 2012-05-02  Andreas Jaeger  <aj@suse.de>
2315
2316         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
2317         since we manipulate rounding mode.
2318         (CPPFLAGS-test-idouble.c): Likewise.
2319         (CPPFLAGS-test-ifloat.c): Likewise.
2320         (CFLAGS-test-ldouble.c): Likewise.
2321         (CFLAGS-test-double.c): Likewise.
2322         (CFLAGS-test-float.c): Likewise.
2323         (CFLAGS-test-misc.c): Likewise.
2324         (CFLAGS-test-test-fenv.c): Likewise.
2325
2326 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2327
2328         [BZ #2550]
2329         [BZ #2570]
2330         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
2331         comparisons to determine direction to adjust input.
2332
2333 2012-05-01  Roland McGrath  <roland@hack.frob.com>
2334
2335         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
2336         output to the target.
2337
2338         * scripts/localplt.awk: New file.
2339         * elf/Makefile ($(objpfx)check-localplt): Target removed.
2340         (check-localplt-CFLAGS): Variable removed.
2341         ($(all-built-dso:=.jmprel)): New static pattern rule.
2342         (generated): Add those targets.
2343         (localplt-built-dso): New variable.
2344         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
2345
2346         * elf/check-localplt.c: File removed.
2347
2348         * scripts/check-execstack.awk: New file.
2349         * elf/Makefile ($(objpfx)check-execstack): Target removed.
2350         (check-execstack-CFLAGS): Variable removed.
2351         ($(objpfx)check-execstack.h): Target removed.
2352         ($(objpfx)execstack-default): New target.
2353         (generated): Add that instead of check-execstack.h.
2354         ($(all-built-dso:=.phdr)): New static pattern rule.
2355         (generated): Add those targets.
2356         * elf/check-execstack.c: File removed.
2357
2358         * scripts/check-textrel.awk: New file.
2359         * elf/Makefile ($(objpfx)check-textrel): Target removed.
2360         (check-textrel-CFLAGS): Variable removed.
2361         (all-built-dso): Use := to define.o
2362         ($(all-built-dso:=.dyn)): New static pattern rule.
2363         (generated): Add those targets.
2364         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
2365         * config.make.in (READELF): New substituted variable.
2366         * elf/check-textrel.c: File removed.
2367
2368 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2369
2370         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2371         allow.
2372         * conform/data/ctype.h-data [C99-based standards] (isblank):
2373         Expect function.
2374         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
2375         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
2376         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2377         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
2378         Specify type.  Require positive value.
2379         (EILSEQ): Likewise.
2380         (ERANGE): Likewise.
2381         [ISO || POSIX] (EILSEQ): Do not expect.
2382         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
2383         Specify type.  Require positive value.
2384         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
2385         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
2386         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
2387         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
2388         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
2389         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
2390         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
2391         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
2392         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
2393         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
2394         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
2395         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
2396         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
2397         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
2398         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
2399         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
2400         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
2401         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
2402         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
2403         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
2404         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
2405         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
2406         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
2407         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
2408         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
2409         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
2410         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
2411         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
2412         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
2413         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
2414         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
2415         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
2416         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
2417         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
2418         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
2419         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
2420         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
2421         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
2422         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
2423         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
2424         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
2425         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
2426         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
2427         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
2428         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
2429         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
2430         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
2431         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
2432         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
2433         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
2434         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
2435         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
2436         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
2437         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
2438         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
2439         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
2440         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
2441         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
2442         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
2443         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
2444         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
2445         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
2446         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
2447         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
2448         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
2449         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
2450         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
2451         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
2452         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
2453         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
2454         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
2455         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
2456         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
2457         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
2458         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
2459         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
2460         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
2461         Require >= 2.
2462         (FLT_ROUNDS): Expect as macro, not constant.
2463         (FLT_MANT_DIG): Use macro-int-constant.
2464         (DBL_MANT_DIG): Likewise.
2465         (LDBL_MANT_DIG): Likewise.
2466         (FLT_DIG): Likewise.
2467         (DBL_DIG): Likewise.
2468         (LDBL_DIG): Likewise.
2469         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
2470         (DBL_MIN_EXP): Likewise.
2471         (LDBL_MIN_EXP): Likewise.
2472         (FLT_MAX_EXP): Use macro-int-constant.
2473         (DBL_MAX_EXP): Likewise.
2474         (LDBL_MAX_EXP): Likewise.
2475         (FLT_MAX_10_EXP): Likewise.
2476         (DBL_MAX_10_EXP): Likewise.
2477         (LDBL_MAX_10_EXP): Likewise.
2478         (FLT_MAX): Use macro-constant.
2479         (DBL_MAX): Likewise.
2480         (LDBL_MAX): Likewise.
2481         (FLT_EPSILON): Use macro-constant.  Give upper bound.
2482         (DBL_EPSILON): Likewise.
2483         (LDBL_EPSILON): Likewise.
2484         (FLT_MIN): Likewise.
2485         (DBL_MIN): Likewise.
2486         (LDBL_MIN): Likewise.
2487         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
2488         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
2489         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
2490         [ISO11] (FLT_HAS_SUBNORM): Likewise.
2491         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
2492         [ISO11] (DBL_DECIMAL_DIG): Likewise.
2493         [ISO11] (FLT_DECIMAL_DIG): Likewise.
2494         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
2495         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
2496         [ISO11] (FLT_TRUE_MIN): Likewise.
2497         [ISO11] (LDBL_TRUE_MIN): Likewise.
2498         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2499         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
2500         (SCHAR_MIN): Use macro-int-constant.  Specify type.
2501         (SCHAR_MAX): Likewise.
2502         (UCHAR_MAX): Likewise.
2503         (CHAR_MIN): Likewise.
2504         (CHAR_MAX): Likewise.
2505         (MB_LEN_MAX): Use macro-int-constant.
2506         (SHRT_MIN): Use macro-int-constant.  Specify type.
2507         (SHRT_MAX): Likewise.
2508         (USHRT_MAX): Likewise.
2509         (INT_MAX): Likewise.
2510         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
2511         bound negative.
2512         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2513         bound with "U".
2514         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2515         bound with "L".
2516         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
2517         bound negative.  Suffix upper bound with "L".
2518         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2519         bound with "UL".
2520         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
2521         Specify type.
2522         [C99-based standards] (LLONG_MAX): Likewise.
2523         [C99-based standards] (ULLONG_MAX): Likewise.
2524         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
2525         == 0.
2526         [ISO11] (max_align_t): Require type.
2527         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2528
2529         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
2530         from $CFLAGS, without defining away __attribute__ calls.
2531         (checknamespace): Use $CFLAGS_namespace.
2532
2533         * conform/conformtest.pl (@keywords): Only include C99 keywords
2534         for standards based on C99 or C11.
2535
2536         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
2537         Disable tests.
2538         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
2539         UNIX98]: Likewise.
2540
2541         * conform/conformtest.pl: Handle "macro-int-constant" and test for
2542         usability of symbols in #if.
2543
2544         * conform/conformtest.pl: If macro or constant types start
2545         "promoted:", expect the symbol to be of the following type
2546         promoted by the integer promotions.
2547
2548         * conform/conformtest.pl: Parse all "constant" and "macro" lines
2549         in one place.  Also handle "macro-constant".
2550
2551         * conform/conformtest.pl: Only accept expected macro values with
2552         "==".  Parse all "macro" lines in one place.
2553         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
2554
2555         * conform/conformtest.pl: Handle braced types on "constant" lines
2556         instead of handling "typed-constant".
2557         * conform/data/signal.h-data: Use "constant" instead of
2558         "typed-constant".
2559
2560         * conform/conformtest.pl: Handle "optional-" at start of lines in
2561         one place rather than duplicating several cases.  Handle each
2562         format of "macro" line with initial "optional-".
2563
2564         * conform/conformtest.pl: Only accept expected constant or
2565         optional-constant values with "==".  Parse all "constant" lines in
2566         one place.  Parse all "optional-constant" lines in one place.
2567         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
2568         * conform/data/fmtmsg.h-data: Likewise.
2569         * conform/data/netinet/in.h-data: Likewise.
2570         * conform/data/tar.h-data: Likewise.
2571         * conform/data/limits.h-data: Use "==" form on "constant" and
2572         "optional-constant" lines.
2573
2574         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
2575         Use -std=c99 for XOPEN2K.
2576         (@knownproblems): Remove.
2577         (newtoken): Don't check %isknown.
2578
2579         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
2580         Do not expect macro.
2581         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
2582         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
2583         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
2584         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
2585         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
2586         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
2587         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
2588         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
2589         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
2590         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
2591         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
2592         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
2593         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
2594         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
2595         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
2596         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
2597         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
2598         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
2599         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
2600         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
2601         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
2602         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
2603         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
2604         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
2605         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
2606         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
2607         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
2608         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
2609         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
2610         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
2611         [XPG3] (acosh): Likewise.
2612         [XPG3] (asinh): Likewise.
2613         [XPG3] (atanh): Likewise.
2614         [XPG3] (cbrt): Likewise.
2615         [XPG3] (expm1): Likewise.
2616         [XPG3] (ilogb): Likewise.
2617         [XPG3] (log1p): Likewise.
2618         [XPG3] (logb): Likewise.
2619         [XPG3] (nextafter): Likewise.
2620         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
2621         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
2622         [XPG3] (remainder): Likewise.
2623         [XPG3] (rint): Likewise.
2624         [XPG3 || XPG4 || UNIX98] (round): Likewise.
2625         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
2626         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
2627         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
2628         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
2629         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
2630         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
2631         [UNIX98 || XOPEN2K] (scalb): Expect.
2632         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
2633         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
2634         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
2635         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
2636         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
2637         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
2638         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
2639         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
2640         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
2641         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
2642         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
2643         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
2644         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
2645         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
2646         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
2647         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
2648         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
2649         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
2650         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
2651         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
2652         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
2653         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
2654         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
2655         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
2656         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
2657         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
2658         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
2659         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
2660         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
2661         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
2662         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
2663         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
2664         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
2665         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
2666         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
2667         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
2668         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
2669         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
2670         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
2671         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
2672         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
2673         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
2674         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
2675         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
2676         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
2677         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
2678         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
2679         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
2680         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
2681         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
2682         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
2683         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
2684         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
2685         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
2686         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
2687         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
2688         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
2689         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
2690         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
2691         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
2692         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
2693         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
2694         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
2695         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
2696         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
2697         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
2698         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
2699         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
2700         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
2701         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
2702         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
2703         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
2704         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
2705         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
2706         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
2707         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
2708         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
2709         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
2710         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
2711         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
2712         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
2713         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
2714         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
2715         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
2716         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
2717         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
2718         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
2719         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
2720         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
2721         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
2722         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
2723         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
2724         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
2725         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
2726         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
2727         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
2728         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
2729         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
2730         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
2731         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
2732         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
2733         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
2734         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
2735         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
2736         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
2737         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
2738         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
2739         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
2740         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
2741         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
2742         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
2743         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
2744         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
2745         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
2746         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
2747         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
2748         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
2749         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
2750         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
2751         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
2752         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
2753         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
2754         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
2755         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
2756         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
2757         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
2758         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
2759         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
2760         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
2761         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
2762         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
2763         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
2764         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
2765         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
2766         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
2767         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
2768         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
2769
2770         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
2771         _XOPEN_SOURCE_EXTENDED for XPG4.
2772
2773         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
2774
2775         * Makeconfig (localtime): Remove variable.
2776         (inst_localtime-file): Likewise.
2777
2778 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2779
2780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
2781         Update.
2782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2783         Update.
2784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
2785         Update.
2786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2787         Update.
2788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
2789         Update.
2790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
2791         Update.
2792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2793         Update.
2794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
2795         Update.
2796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2797         Update.
2798
2799 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2800
2801         [BZ #2550]
2802         [BZ #2570]
2803         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
2804         comparisons to determine direction to adjust input.
2805         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2806         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
2807         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
2808         Likewise.
2809         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
2810         Likewise.
2811         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2812         Likewise.
2813         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2814         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
2815         Likewise.
2816         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
2817         Likewise.
2818         * math/libm-test.inc (nexttoward_test): Add more tests.
2819
2820 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2821
2822         [BZ #14040]
2823         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
2824         in version GLIBC_2.1, not GLIBC_2.0.
2825         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
2826         Likewise.
2827
2828 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
2829
2830         [BZ #13942]
2831         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
2832         (1 - x) * (1 + x).
2833         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2834         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
2835         * math/libm-test.inc (acos_test): Add more tests.
2836         (asin_test): Likewise.
2837         * sysdeps/i386/fpu/libm-test-ulps: Update.
2838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2839
2840         [BZ #14034]
2841         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
2842         of square root.
2843         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
2844         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2845         * math/libm-test.inc (acos_test_tonearest): New function.
2846         (acos_test_towardzero): Likewise.
2847         (acos_test_downward): Likewise.
2848         (acos_test_upward): Likewise.
2849         (asin_test_tonearest): Likewise.
2850         (asin_test_towardzero): Likewise.
2851         (asin_test_downward): Likewise.
2852         (asin_test_upward): Likewise.
2853         (main): Call the new functions.
2854         * sysdeps/i386/fpu/libm-test-ulps: Update.
2855         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2856
2857         [BZ #13884]
2858         [BZ #13924]
2859         * math/e_exp10.c: Include <float.h>.
2860         (__ieee754_exp10): Handle underflow here rather than multiplying
2861         large negative argument by M_LN10.
2862         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
2863         of __ieee754_expf.
2864         * math/e_exp10l.c: Include <float.h>.
2865         (__ieee754_exp10l): Handle underflow here rather than multiplying
2866         large negative argument by M_LN10l.
2867         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
2868         spurious overflow exception on underflow.
2869
2870 2012-04-29  Marek Polacek  <polacek@redhat.com>
2871
2872         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
2873         (__fortify_function): New macro.
2874         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
2875         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
2876         __extern_always_inline.
2877         * libio/bits/stdio2.h: Likewise.
2878         * libio/bits/stdio.h: Likewise.
2879         * string/string.h: Likewise.
2880         * string/bits/string3.h: Likewise.
2881         * include/stdio.h: Likewise.
2882         * stdlib/bits/stdlib.h: Likewise.
2883         * stdlib/stdlib.h: Likewise.
2884         * rt/bits/mqueue2.h: Likewise.
2885         * rt/mqueue.h: Likewise.
2886         * posix/bits/unistd.h: Likewise.
2887         * posix/unistd.h: Likewise.
2888         * io/bits/poll2.h: Likewise.
2889         * io/bits/fcntl2.h: Likewise.
2890         * io/fcntl.h: Likewise.
2891         * io/sys/poll.h: Likewise.
2892         * misc/bits/syslog.h: Likewise.
2893         * misc/bits/syslog-ldbl.h: Likewise.
2894         * misc/sys/syslog.h: Likewise.
2895         * socket/bits/socket2.h: Likewise.
2896         * socket/sys/socket.h: Likewise.
2897         * debug/tst-chk1.c: Likewise.
2898         * wcsmbs/bits/wchar2.h: Likewise.
2899         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2900         * wcsmbs/wchar.h: Likewise.
2901
2902 2012-04-29  Andreas Jaeger  <aj@suse.de>
2903
2904         * Makerules (tests): Remove enable-check-abi protection.
2905         (check-abi-warn): Remove.
2906         (check-abi-%): Remove check-abi-warn usage.
2907
2908         * configure.in: Remove check-abi configure option.
2909         * configure: Regenerated.
2910         * config.make.in (enable-check-abi): Remove.
2911
2912 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2913
2914         [BZ #14033]
2915         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
2916         double functions to double *_finite functions.
2917
2918         [BZ #13941]
2919         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
2920         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
2921         LDBL_MIN_EXP.
2922         * stdio-common/Makefile (tests): Add tst-sprintf3.
2923         * stdio-common/tst-sprintf3.c: New file.
2924
2925         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
2926         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
2927
2928 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2929
2930         * conform/conformtest.pl: Remove duplicate typed-constant
2931         handling.
2932
2933 2012-04-28  David S. Miller  <davem@davemloft.net>
2934
2935         * Makerules (%.abilist): Add vpath on sysdep_dirs.
2936         (check-abi-%): Remove AWK script prerequisite and explicit
2937         abilist directory.
2938         (check-abi): Rewrite to just diff the symlist with the abilist.
2939         (config-tls, config-abi-config): Delete, no longer used.
2940         (update-abi-%): Remove AWK script and explicit abilist directory.
2941         (update-abi): Rewrite to simply compare and conditionally copy the
2942         symlist and the sysdep abilist file.  Remove update-abi-config
2943         checks.
2944         * abilist/ld.abilist: Remove.
2945         * abilist/libBrokenLocale.abilist: Remove.
2946         * abilist/libanl.abilist: Remove.
2947         * abilist/libcrypt.abilist: Remove.
2948         * abilist/libdl.abilist: Remove.
2949         * abilist/librt.abilist: Remove.
2950         * abilist/libthread_db.abilist: Remove.
2951         * abilist/libutil.abilist: Remove.
2952         * scripts/extract-abilist.awk: Remove.
2953         * scripts/merge-abilist.awk: Remove.
2954         * sysdeps/generic/libcidn.abilist: New file.
2955         * sysdeps/generic/libnss_compat.abilist: New file.
2956         * sysdeps/generic/libnss_db.abilist: New file.
2957         * sysdeps/generic/libnss_dns.abilist: New file.
2958         * sysdeps/generic/libnss_files.abilist: New file.
2959         * sysdeps/generic/libnss_hesiod.abilist: New file.
2960         * sysdeps/generic/libnss_nis.abilist: New file.
2961         * sysdeps/generic/libnss_nisplus.abilist: New file.
2962         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
2963         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
2964         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
2965         file.
2966         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
2967         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
2968         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
2969         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
2970         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
2971         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
2972         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
2973         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
2974         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
2975         file.
2976         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
2977         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
2978         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
2979         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
2980         file.
2981         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
2982         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
2983         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
2984         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
2985         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
2986         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
2987         file.
2988         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
2989         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
2990         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
2991         file.
2992         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
2993         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
2994         New file.
2995         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
2996         New file.
2997         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
2998         New file.
2999         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
3000         New file.
3001         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
3002         New file.
3003         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
3004         New file.
3005         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
3006         New file.
3007         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
3008         New file.
3009         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
3010         New file.
3011         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
3012         New file.
3013         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
3014         New file.
3015         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
3016         New file.
3017         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
3018         New file.
3019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
3020         file.
3021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
3022         New file.
3023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
3024         New file.
3025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
3026         file.
3027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
3028         New file.
3029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
3030         New file.
3031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
3032         file.
3033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
3034         New file.
3035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3036         New file.
3037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
3038         New file.
3039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
3040         New file.
3041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
3042         New file.
3043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
3044         New file.
3045         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
3046         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
3047         file.
3048         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
3049         New file.
3050         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
3051         file.
3052         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
3053         file.
3054         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
3055         file.
3056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
3057         file.
3058         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
3059         file.
3060         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3061         New file.
3062         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
3063         file.
3064         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
3065         file.
3066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
3067         New file.
3068         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
3069         file.
3070         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
3071         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
3072         file.
3073         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
3074         New file.
3075         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
3076         file.
3077         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
3078         file.
3079         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
3080         file.
3081         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
3082         file.
3083         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
3084         file.
3085         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3086         New file.
3087         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
3088         file.
3089         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
3090         file.
3091         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
3092         New file.
3093         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
3094         file.
3095         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3096         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
3097         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
3098         file.
3099         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
3100         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
3101         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
3102         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
3103         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
3104         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
3105         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
3106         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
3107         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
3108         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
3109         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
3110         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
3111         file.
3112         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
3113         New file.
3114         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
3115         file.
3116         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
3117         file.
3118         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
3119         file.
3120         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
3121         file.
3122         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
3123         file.
3124         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
3125         New file.
3126         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
3127         New file.
3128         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
3129         file.
3130         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
3131         New file.
3132         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
3133         file.
3134         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
3135         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
3136         file.
3137         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
3138         New file.
3139         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
3140         file.
3141         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
3142         file.
3143         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
3144         file.
3145         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
3146         file.
3147         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
3148         file.
3149         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
3150         New file.
3151         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
3152         New file.
3153         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
3154         file.
3155         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
3156         New file.
3157         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
3158         file.
3159
3160 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
3161
3162         * conform/conformtest.pl: Fix typo in handling typed-constant from
3163         allow-header.
3164
3165 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3166
3167         * README: Cut down references to pre-2.6 Linux kernels and
3168         Linuxthreads.  Update lists of configurations in libc and ports
3169         and sort alphabetically.  Say "or newer" with Linux kernel version
3170         requirements.
3171
3172         * config.h.in [IS_IN_build]: Allow compiling without optimization.
3173
3174 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3175
3176         [BZ #887]
3177         * math/libm-test.inc (logb_test_downward): New test to expose
3178         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
3179         rounding mode.
3180
3181 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3182
3183         [BZ #14027]
3184         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
3185         to be done.
3186         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
3187         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
3188
3189 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
3190
3191         * sysdeps/unix/i386/brk.S: Remove file.
3192         * sysdeps/unix/i386/dl-brk.S: Likewise.
3193         * sysdeps/unix/i386/pipe.S: Likewise.
3194         * sysdeps/unix/i386/sigreturn.S: Likewise.
3195         * sysdeps/unix/i386/syscall.S: Likewise.
3196         * sysdeps/unix/i386/vfork.S: Likewise.
3197         * sysdeps/unix/i386/wait.S: Likewise.
3198
3199         * sysdeps/unix/common/tcsendbrk.c: Move to ...
3200         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
3201
3202         * configure.in (arm*-none*): Do not allow without
3203         --enable-hacker-mode.
3204         (netbsd*): Remove case setting base_os.
3205         (386bsd*): Likewise.
3206         (freebsd*): Likewise.
3207         (bsdi*): Likewise.
3208         (osf*): Likewise.
3209         (sunos*): Likewise.
3210         (ultrix*): Likewise.
3211         (newsos*): Likewise.
3212         (dynix*): Likewise.
3213         (*bsd*): Likewise.
3214         (sysv*): Likewise.
3215         (isc*): Likewise.
3216         (esix*): Likewise.
3217         (sco*): Likewise.
3218         (minix*): Likewise.
3219         (irix4*): Likewise.
3220         (irix6*): Likewise.
3221         (solaris[2-9]*): Likewise.
3222         (none): Likewise.
3223         * configure: Regenerated.
3224
3225 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3226
3227         [BZ #11521]
3228         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
3229         overflow or cancellation in calculating denominator.
3230         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
3231         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
3232         down expression to avoid unexpected rounding in newer GCCs.
3233         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
3234
3235 2012-04-26  David S. Miller  <davem@davemloft.net>
3236
3237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
3238         long-double compat symbols.
3239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
3243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
3245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
3246         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
3247         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
3248         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
3249         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
3250         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
3251         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3252
3253 2012-04-25  David S. Miller  <davem@davemloft.net>
3254
3255         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
3256         HWCAP_* values only after the memory barriers have been defined.
3257         (atomic_full_barrier): Define.
3258         (atomic_read_barrier): Define.
3259         (atomic_write_barrier): Define.
3260
3261 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3262
3263         * shlib-versions: Add libgcc_s version information.
3264         * sysdeps/generic/libgcc_s.h: Remove.
3265         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
3266         libgcc_s.h.
3267         * sysdeps/gnu/unwind-resume.c: Likewise.
3268         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
3269
3270 2012-04-25  David S. Miller  <davem@davemloft.net>
3271
3272         * sysdeps/unix/sparc/brk.S: Delete.
3273         * sysdeps/unix/sparc/dl-brk.S: Delete.
3274         * sysdeps/unix/sparc/pipe.S: Delete.
3275         * sysdeps/unix/sparc/sysdep.S: Delete.
3276         * sysdeps/unix/sparc/sysdep.h: Delete.
3277         * sysdeps/unix/sparc/vfork.S: Delete.
3278         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
3279         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
3280         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
3281         ret_ERRVAL, r0, r1, MOVE): Define.
3282         (JUMPTARGET): Remove.
3283         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
3284         sysdeps/unix/sparc/sysdep.h
3285         (ENTRY, END): Remove.
3286         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3287
3288 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
3289
3290         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
3291         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
3292         -DIS_IN_build.
3293
3294         * timezone/README: Update upstream location and email address for
3295         tzcode and tzdata.
3296         * timezone/zdump.c: Update from tzcode 2012b.
3297         * timezone/zic.c: Likewise.
3298
3299         * configure.in (libc_cv_as_needed): Remove test.
3300         * configure: Regenerated.
3301         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
3302         conditional definition.
3303         [$(have-as-needed) != yes] (no-as-needed): Likewise.
3304         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
3305         * config.make.in (have-as-needed): Remove variable.
3306
3307 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3308             Paul Pluzhnikov  <ppluzhnikov@google.com>
3309
3310         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
3311         strings correctly.
3312
3313 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3314
3315         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
3316         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
3317         * sysdeps/sh/strlen.S: Likewise.
3318
3319 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3320
3321         * sysdeps/unix/fork.S: Remove file.
3322         * sysdeps/unix/i386/fork.S: Likewise.
3323         * sysdeps/unix/sparc/fork.S: Likewise.
3324
3325         * sysdeps/unix/system.c: Remove file.
3326         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
3327
3328         * sysdeps/unix/getegid.S: Remove file.
3329         * sysdeps/unix/geteuid.S: Likewise.
3330
3331 2012-04-24  Roland McGrath  <roland@hack.frob.com>
3332
3333         * scripts/check-localplt.awk: New file.
3334         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
3335         of diff.
3336         * scripts/data/localplt-generic.data: Add a comment.
3337
3338         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
3339         NODE when __dir_mkfile failed.
3340         * sysdeps/mach/hurd/symlinkat.c: Likewise.
3341         Reported by Ludovic Courtès <ludo@gnu.org>.
3342
3343 2012-04-24  Andreas Jaeger  <aj@suse.de>
3344
3345         * Makerules (common-clean): Also remove gen-as-const-headers
3346         files.
3347
3348 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3349
3350         * Makerules (native-compile): Do not change working directory for
3351         build.  Use $(OUTPUT_OPTION) in command.
3352         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
3353
3354 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3355
3356         [BZ #13886]
3357         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
3358         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
3359         * math/libm-test.inc (floor_test): Add more tests.
3360         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
3361
3362 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3363
3364         * sysdeps/unix/getdents.c: Remove file.
3365         * sysdeps/unix/sysv/getdents.c: Likewise.
3366         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
3367
3368         * sysdeps/unix/syscalls.list (madvise): Add syscall from
3369         sysdeps/unix/mman/syscalls.list.
3370         (mmap): Likewise.
3371         (mprotect): Likewise.
3372         (msync): Likewise.
3373         (munmap): Likewise.
3374         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
3375         * sysdeps/unix/mman/syscalls.list: Remove.
3376         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
3377
3378         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
3379         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
3380         * configure: Regenerated.
3381         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
3382         $(libgcc_s_suffix).
3383         * config.make.in (libgcc_s_suffix): Remove variable.
3384
3385 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
3386
3387         * sysdeps/unix/sysv/gethostname.c: Move to ...
3388         * sysdeps/posix/gethostname.c: ... here.
3389
3390         * sysdeps/unix/execve.S: Remove file.
3391
3392         * sysdeps/unix/_exit.S: Remove file.
3393
3394 2012-04-23  Andreas Jaeger  <aj@suse.de>
3395
3396         [BZ #13739]
3397         * manual/Makefile: Remove make dist support, there's no
3398         need for a stand-alone documentation tar ball.
3399         (TEXI2DVI): Define always, it's not in Makeconfig.
3400         (dist): Removed.
3401         (tar-it): Removed.
3402         (edition): Removed.
3403         (glibc-doc-$(edition).tar): Removed
3404         (%.Z): Removed.
3405         (%.gz): Removed.
3406         (%.uu): Removed.
3407         (ETAGS): Remove, it's in Makeconfig.
3408         (move-if-change): Remove, it's in Makeconfig.
3409
3410 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3411
3412         [BZ #13970]
3413         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
3414         (strtod, strtof, strtold, strtol, strtoul, strtoq)
3415         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
3416         (strtod_l, strtof_l, strtold_l): Remove __wur.
3417         It is not necessarily an error to ignore strtol's return value.
3418         One can reliably look at the stored endptr to decide whether
3419         the number had valid syntax.
3420
3421 2012-04-21  Andreas Jaeger  <aj@suse.de>
3422
3423         [BZ #13739]
3424         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
3425
3426 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
3427
3428         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
3429         * sysdeps/unix/sysv/Versions: Remove file.
3430
3431 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
3432
3433         [BZ #13927]
3434         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3435
3436 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
3437
3438         [BZ #7064]
3439         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
3440         version from __vm86.
3441
3442 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
3443
3444         * sysdeps/unix/common/lxstat.c: Remove file.
3445         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
3446
3447         * sysdeps/unix/sysv/Makefile: Remove file.
3448
3449         * sysdeps/unix/sysv/direct.h: Remove file.
3450
3451         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
3452         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
3453         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
3454         * sysdeps/unix/sysv/bits/signum.h: Likewise.
3455         * sysdeps/unix/sysv/bits/stat.h: Likewise.
3456         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
3457         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
3458
3459         * sysdeps/unix/sysv/setrlimit.c: Remove file.
3460
3461         * sysdeps/unix/xmknod.c: Remove file.
3462         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
3463
3464         * sysdeps/unix/sysv/settimeofday.c: Remove file.
3465
3466         * sysdeps/unix/sysv/i386/time.S: Remove file.
3467
3468         * sysdeps/unix/fxstat.c: Remove file.
3469         * sysdeps/unix/xstat.c: Likewise.
3470         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
3471
3472         * sysdeps/unix/sysv/sigaction.c: Remove file.
3473
3474         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
3475         (sysdep_headers): Remove variable.
3476         [termio.h not in sysdep_headers] (generated): Likewise.
3477         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
3478         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
3479         * sysdeps/unix/sysv/tcdrain.c: Likewise.
3480         * sysdeps/unix/sysv/tcflow.c: Likewise.
3481         * sysdeps/unix/sysv/tcflush.c: Likewise.
3482         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
3483         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
3484         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
3485         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
3486         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
3487
3488         * sysdeps/unix/siglist.c: Remove file.
3489
3490         * sysdeps/unix/getppid.S: Remove file.
3491
3492         * sysdeps/unix/mkdir.c: Remove file.
3493         * sysdeps/unix/rmdir.c: Likewise.
3494
3495 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
3496
3497         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
3498         ERR_MAX value.
3499         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
3500         errlist-compat value.
3501
3502 2012-04-18  David S. Miller  <davem@davemloft.net>
3503
3504         * sysdeps/generic/memcopy.h (reg_char): Delete.
3505         * debug/strcat_chk.c: Use char, not reg_char.
3506         * debug/strcpy_chk.c: Likewise.
3507         * debug/strncat_chk.c: Likewise.
3508         * debug/strncpy_chk.c: Likewise.
3509         * string/memchr.c: Likewise.
3510         * string/memrchr.c: Likewise.
3511         * string/rawmemchr.c: Likewise.
3512         * string/strcat.c: Likewise.
3513         * string/strchr.c: Likewise.
3514         * string/strchrnul.c: Likewise.
3515         * string/strcmp.c: Likewise.
3516         * string/strcpy.c: Likewise.
3517         * string/strncat.c: Likewise.
3518         * string/strncmp.c: Likewise.
3519         * string/strncpy.c: Likewise.
3520
3521 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3522
3523         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
3524         __builtin_memcopy is called when src and dest ranges are known to not
3525         overlap.
3526
3527 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3528
3529         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
3530         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
3531         fwd_align_merge macro call.
3532         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
3533         bwd_align_merge macro call.
3534         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3535
3536 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3537
3538         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
3539         bwd_align_merge macros.
3540         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
3541         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
3542         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3543
3544 2012-04-18  David S. Miller  <davem@davemloft.net>
3545
3546         * sysdeps/sparc/sparc64/memcopy.h: Delete.
3547
3548 2012-04-18  Andreas Jaeger  <aj@suse.de>
3549
3550         [BZ# 6794]
3551         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
3552         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
3553         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3554
3555         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
3556         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
3557         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3558
3559         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
3560         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
3561         Adjust for changed ldbl-128 files.
3562
3563         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
3564         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
3565         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3566
3567 2012-04-17  David S. Miller  <davem@davemloft.net>
3568
3569         * sysdeps/sparc/sparc32/memcopy.h: Delete.
3570
3571 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
3572
3573         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
3574         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
3575         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
3576         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
3577         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3578         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
3579
3580 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3581
3582         [BZ #6794]
3583         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
3584         * math/libm-test.inc: Add ilogb errno and exception tests.
3585         * math/w_ilogb.c: New file: ilogb wrapper.
3586         * math/w_ilogbf.c: New file: ilogbf wrapper.
3587         * math/w_ilogbl.c: New file: ilogbl wrapper.
3588         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
3589         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
3590         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
3591         exception being thrown with 0.0 as argument.
3592         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
3593         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
3594         exception being thrown with 0.0 as argument.
3595         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
3596         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3597         exception being thrown with 0.0 as argument.
3598         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
3599         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3600         exception being thrown with 0.0 as argument.
3601         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
3602         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
3603         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
3604         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
3605         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
3606         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
3607         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
3608         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
3609         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
3610
3611 2012-04-17  Petr Baudis  <pasky@ucw.cz>
3612
3613         * include/sys/uio.h: Change __vector to __iovec to avoid clash
3614         with altivec.
3615
3616 2012-04-16  Marek Polacek  <polacek@redhat.com>
3617
3618         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
3619
3620 2012-04-16  Marek Polacek  <polacek@redhat.com>
3621
3622         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
3623         operands of fdivp instruction.
3624
3625 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3626
3627         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
3628         * elf/tst-auditmod3b.c: Likewise.
3629         * elf/tst-auditmod4b.c: Likewise.
3630         * elf/tst-auditmod5b.c: Likewise.
3631         * elf/tst-auditmod6b.c: Likewise.
3632         * elf/tst-auditmod6c.c: Likewise.
3633         * elf/tst-auditmod7b.c: Likewise.
3634         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
3635         * sysdeps/x86_64/preconfigure.in: Likewise.
3636         * sysdeps/x86_64/preconfigure: Regenerated.
3637
3638 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3639
3640         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
3641         __ILP32__.
3642
3643 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
3644
3645         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3646         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
3647
3648 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
3649
3650         [BZ #13973]
3651         * locale/iso-639.def: Fix gl language name. Spotted by
3652         Yaron Shahrabani.
3653
3654 2012-04-12  Roland McGrath  <roland@hack.frob.com>
3655
3656         [BZ #2074]
3657         * libio/libio.h (__io_write_fn): Update comment.
3658
3659 2012-04-12  Petr Baudis  <pasky@ucw.cz>
3660
3661         [BZ #2074]
3662         * stdio.texi (Hook Functions): The user provided writer function
3663         is not allowed to return -1.
3664
3665 2012-04-11  David S. Miller  <davem@davemloft.net>
3666
3667         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3668
3669 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
3670
3671         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
3672         Add a leading slash to rtkaio.
3673
3674 2012-04-11  Jim Meyering  <meyering@redhat.com>
3675
3676         [BZ #11959]
3677         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
3678         It is not necessarily an error to ignore fwrite's return
3679         value.  One can reliably use ferror to test for errors after
3680         the fact.
3681
3682 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3683
3684         * bits/types.h (__snseconds_t): New type.
3685         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
3686
3687         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
3688         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3689         (__SNSECONDS_T_TYPE): Likewise.
3690         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3691         (__SNSECONDS_T_TYPE): Likewise.
3692         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3693         (__SNSECONDS_T_TYPE): Likewise.
3694
3695 2012-04-10  Andreas Jaeger  <aj@suse.de>
3696
3697         [BZ #2636]
3698         * manual/time.texi (Processor Time): Return type of times is
3699         elapsed real time since an arbitrary point in the past.
3700         (CPU Time): Move CLK_TCK from here...
3701         (Processor Time): ...to here.  Correct description.
3702         * manual/conf.texi (Constants for Sysconf): Correct description of
3703         _SC_CLK_TCK.
3704
3705 2012-04-10  David S. Miller  <davem@davemloft.net>
3706
3707         [BZ #13967]
3708         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
3709         where the is a gap between DT_REL(A) and DT_JMPREL.
3710
3711 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3712
3713         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
3714         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3715         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3716
3717 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3718
3719         * elf/dl-support.c (_dl_inhibit_cache): New variable.
3720         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
3721         (dl_main): Handle --inhibit-cache.
3722         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
3723         _dl_inhibit_cache.
3724         * elf/dl-load.c (_dl_map_object): Use it.
3725         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
3726
3727 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3728
3729         [BZ #13872]
3730         * sysdeps/i386/fpu/e_powl.S (p78): New object.
3731         (__ieee754_powl): Saturate large exponents rather than testing for
3732         overflow of y*log2(x).
3733         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3734         * math/libm-test.inc (pow_test): Do not permit spurious overflow
3735         exceptions.
3736
3737         [BZ #11521]
3738         * math/s_ctan.c: Include <float.h>.
3739         (__ctan): Avoid internal overflow or cancellation in calculating
3740         denominator.
3741         * math/s_ctanf.c: Likewise.
3742         * math/s_ctanl.c: Likewise.
3743         * math/s_ctanh.c: Likewise.
3744         * math/s_ctanhf.c: Likewise.
3745         * math/s_ctanhl.c: Likewise.
3746         * math/libm-test.inc (ctan_test): Add more tests.
3747         (ctanh_test): Likewise.
3748         * sysdeps/i386/fpu/libm-test-ulps: Update.
3749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3750
3751 2012-04-09  Andreas Jaeger  <aj@suse.de>
3752
3753         [BZ #6894]
3754         * manual/filesys.texi (Directory Entries): Mention that d_namlen
3755         is an optional BSD extension.
3756
3757         [BZ #10254]
3758         * manual/stdio.texi (Opening Streams): Document additional fopen
3759         parameters.
3760
3761 2012-04-09  Roland McGrath  <roland@hack.frob.com>
3762
3763         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
3764         %eax without telling the compiler.
3765
3766 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
3767
3768         [BZ # 13963]
3769         * manual/install.texi: Use sourceware.org.
3770
3771 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3772
3773         [BZ #13873]
3774         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
3775         (__ieee754_pow): Generate overflow and underflow using huge*huge
3776         and tiny*tiny rather than just returning constant infinity or zero
3777         for large exponents.
3778         * math/libm-test.inc (pow_test): Require overflow exceptions for
3779         applicable cases of large exponents.
3780
3781         [BZ #706]
3782         * sysdeps/i386/fpu/e_pow.S (p10): New object.
3783         (__ieee754_pow): Use iterative multiplication algorithm only for
3784         integer exponents with absolute value below 1024.  Check for odd
3785         integer exponents when using algorithm for real exponents.
3786         * math/libm-test.inc (pow_test): Add more tests.
3787         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3788
3789 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
3790
3791         [BZ #13705]
3792         * math/libm-test.inc (exp_test): Do not allow overflow exception
3793         on underflow test.
3794
3795 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
3796
3797         [BZ #13705]
3798         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
3799         instead of __kernel_standard_f.
3800
3801 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
3802
3803         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
3804         * sysdeps/x86_64/memset_chk.S: Likewise.
3805
3806 2012-04-08  Andreas Jaeger  <aj@suse.de>
3807
3808         [BZ #10153]
3809         * manual/startup.texi (Environment Access): Describe return value
3810         for putenv and setenv.
3811
3812         [BZ #6895]
3813         * manual/filesys.texi (Directory Entries): Add description for
3814         DT_LNK.
3815
3816         [BZ #6890]
3817         * manual/filesys.texi (Directory Entries): Clarify that it's file
3818         system not operating system in the description of DT_UNKNOWN.
3819
3820         [BZ #6578]
3821         * manual/syslog.texi (closelog): Fix reference, it's openlog.
3822
3823 2012-04-08  Stephen Compall  <s11@member.fsf.org>
3824
3825         [BZ #6649]
3826         * manual/llio.texi (Opening and Closing Files): Add cross
3827         reference to explain mode argument.
3828
3829 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
3830
3831         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
3832         * sysdeps/x86_64/memset_chk.S: Likewise.
3833
3834 2012-04-07  David S. Miller  <davem@davemloft.net>
3835
3836         * elf/elf.h (R_SPARC_WDISP10): Define.
3837         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
3838         R_SPARC_SIZE32.
3839         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3840         R_SPARC_SIZE64 and R_SPARC_H34.
3841
3842 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
3843
3844         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
3845         conditions and remove no longer applicable assertion.
3846
3847 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3848
3849         * bits/byteswap.h: Include <features.h>.
3850         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3851         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3852
3853 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3854
3855         * bits/byteswap.h (__bswap_16): Removed.
3856         Include <bits/byteswap-16.h> to get __bswap_16.
3857         * sysdeps/i386/bits/byteswap.h: Likewise.
3858         * sysdeps/s390/bits/byteswap.h: Likewise.
3859         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3860         * bits/byteswap-16.h: New file.
3861         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3862         * sysdeps/s390/bits/byteswap-16.h: Likewise.
3863         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
3864         * string/Makefile (headers): Add bits/byteswap-16.h.
3865
3866 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3867
3868         [BZ #13895]
3869         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
3870         extra indirection.
3871         * nss/Makefile (tests-static, tests): Add tst-nss-static.
3872         * nss/tst-nss-static.c: New.
3873
3874 2012-04-06  Robert Millan  <rmh@gnu.org>
3875
3876         [BZ #6486]
3877         * manual/llio.texi (File Position Primitive): lseek
3878         refers to WHENCE when it really means OFFSET.
3879
3880 2012-04-06  Andreas Jaeger  <aj@suse.de>
3881
3882         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
3883         strncmp declarations.
3884
3885         * abilist/libc.abilist: Add __poll and __ppoll.
3886
3887 2012-04-05  David S. Miller  <davem@davemloft.net>
3888
3889         * scripts/check-local-headers.sh: Accept a host triplet in the
3890         path matched by the exclude regexp.
3891
3892         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
3893         definition.
3894         * sysdeps/powerpc/powerpc32/dl-machine.h
3895         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
3896         * sysdeps/s390/s390-32/dl-machine.h
3897         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3898         * sysdeps/sparc/sparc32/dl-machine.h
3899         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3900         * sysdeps/sparc/sparc64/dl-machine.h
3901         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3902
3903         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
3904         lazy binding.
3905         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
3906         undefined symbol errors.
3907
3908         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
3909         DT_NEEDED entries.
3910
3911 2012-04-05  Michael Matz  <matz@suse.de>
3912
3913         [BZ #13592]
3914         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
3915
3916 2012-04-05  Andreas Jaeger  <aj@suse.de>
3917
3918         [BZ #13908]
3919         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
3920         comment.
3921
3922 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3923
3924         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
3925         which ROUND is no valid rounding mode.
3926
3927 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3928
3929         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
3930         read again.
3931         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
3932
3933 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3934
3935         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
3936         an exception using FPU order intentionally.
3937
3938 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3939
3940         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
3941         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
3942         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
3943         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
3944
3945 2012-04-05  Simon Josefsson  <simon@josefsson.org>
3946
3947         [BZ #12340]
3948         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
3949         EINVAL when BUFLEN is too smal.
3950
3951 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
3952
3953         [BZ #13553]
3954         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
3955         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3956
3957 2012-04-03  Andreas Jaeger  <aj@suse.de>
3958
3959         [BZ #13938]
3960         * manual/setjmp.texi (System V contexts): Fix sentence.
3961
3962         [BZ #13926]
3963         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
3964         New macro for this case.
3965         [!__GNUC__] (__bswap_64): New inline function for this case.
3966         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3967         * bits/byteswap.h: Likewise.
3968         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
3969         ull, guard with __GLIBC_HAVE_LONG_LONG.
3970
3971         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
3972         __GLIBC_HAVE_LONG_LONG.
3973
3974         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
3975         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
3976
3977 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3978
3979         [BZ #13691]
3980         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
3981         inptr and inend, rather than using last_ch.
3982
3983 2012-04-02  David S. Miller  <davem@davemloft.net>
3984
3985         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
3986         * stdio-common/printf-parse.h (read_int): Change return type to
3987         'int', return -1 on INT_MAX overflow.
3988         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
3989         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
3990         overflows INT_MAX.  Check for overflow of in-format-string precision
3991         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
3992         SIZE_MAX not INT_MAX for integer overflow test.
3993         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
3994         skip the construct in the format string but do not record anything.
3995         * stdio-common/bug22.c: Adjust to test both width/prevision
3996         INT_MAX overflow as well as total length INT_MAX overflow.  Check
3997         explicitly for proper errno values.
3998
3999 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
4000
4001         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
4002         CHAR_MAX.
4003         * string/test-strcmp.c [! WIDE]: Likewise.
4004         * time/tst-mktime2.c: Likewise for INT_MAX.
4005         * string/test-string.h: #include <sys/param.h> for MIN.
4006
4007         * csu/init-first.c (__libc_init_first): Call __ctype_init.
4008         * sysdeps/i386/init-first.c (init): Likewise.
4009         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
4010         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
4011         * sysdeps/sh/init-first.c (init): Likewise.
4012
4013 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
4014
4015         * po/ru.po: Update from translation team.
4016         * po/vi.po: Likewise.
4017
4018 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
4019
4020         * resolv/nss_dns/dns-host.c: Merge copyright years.
4021
4022 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4023
4024         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
4025         Optimize memcpy with prefetch if
4026         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
4027         src, dst pointers have unequal 16 byte alignments.
4028
4029 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4030
4031         [BZ #13928]
4032         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
4033         from a CNAME entry and return the minimum ttl for the query.
4034         (gaih_getanswer_slice): Likewise.
4035
4036 2012-03-30  Jeff Law  <law@redhat.com>
4037
4038         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
4039         due to long keys.
4040         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
4041         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
4042
4043         * resolv/nss_dns/dns-host.c: Update copyright year.
4044
4045 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
4046
4047         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
4048         requests to save a system call.  Fix check that all bytes are sent.
4049
4050         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
4051         comments for sendmmsg.
4052
4053 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4054
4055         [BZ #13691]
4056         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
4057         with only 1 character between 0x0041 and 0x01b0.
4058         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
4059         * wcsmbs/tst-mbsnrtowcs.c: New file.
4060
4061 2012-03-29  David S. Miller  <davem@davemloft.net>
4062
4063         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
4064         small copies by hand.
4065
4066 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4067
4068         [BZ #13761]
4069         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
4070         _nss_compat_initgroups_dyn): Fall back to malloc/free
4071         for large group memberships.
4072
4073 2012-03-28  David S. Miller  <davem@davemloft.net>
4074
4075         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
4076         that branches into memcpy.
4077         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4078         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
4079         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4080         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
4081         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
4082         bits.
4083         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
4084         implementation too.
4085         * sysdeps/sparc/mempcpy.S: New file.
4086
4087         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
4088         the IFUNC routine in the libc case.
4089         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
4090
4091         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
4092         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
4093         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
4094         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
4095         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
4096         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
4097         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
4098         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
4099
4100         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
4101         loop to 256 bytes instead of 64 bytes and fix test signedness.
4102
4103         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
4104         * sysdeps/sparc/sparc32/Makefile: rather than here...
4105         * sysdeps/sparc/sparc64/Makefile: and here.
4106
4107 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
4108
4109         * malloc/mallocbug.c: Avoid warnings about unused variables.
4110
4111 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4112
4113         [BZ #13760]
4114         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
4115         in the right place. Discard and retry query if response is
4116         larger than input buffer size.
4117
4118 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
4119
4120         [BZ #369]
4121         [BZ #2678]
4122         [BZ #3866]
4123         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
4124         x for large integer exponent.
4125         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
4126         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
4127         sign of result as needed afterwards.
4128         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
4129         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
4130         result for underflowing pow the same as for overflow.
4131         (__kernel_standard_l): Handle powl overflow and underflow here
4132         rather than calling __kernel_standard.
4133         * math/libm-test.inc (pow_test): Add more tests.
4134
4135         [BZ #3868]
4136         [BZ #13879]
4137         [BZ #13910]
4138         [BZ #13911]
4139         [BZ #13912]
4140         [BZ #13913]
4141         [BZ #13915]
4142         [BZ #13916]
4143         [BZ #13917]
4144         [BZ #13918]
4145         [BZ #13919]
4146         [BZ #13920]
4147         [BZ #13921]
4148         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
4149         * sysdeps/ieee754/k_standard.c: Include <float.h>.
4150         (__kernel_standard_l): New function.
4151         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
4152         __kernel_standard.
4153         * math/w_acosl.c (__acosl): Likewise.
4154         * math/w_asinl.c (__asinl): Likewise.
4155         * math/w_atan2l.c (__atan2l): Likewise.
4156         * math/w_atanhl.c (__atanhl): Likewise.
4157         * math/w_coshl.c (__coshl): Likewise.
4158         * math/w_exp10l.c (__exp10l): Likewise.
4159         * math/w_exp2l.c (__exp2l): Likewise.
4160         * math/w_fmodl.c (__fmodl): Likewise.
4161         * math/w_hypotl.c (__hypotl): Likewise.
4162         * math/w_j0l.c (__j0l, __y0l): Likewise.
4163         * math/w_j1l.c (__j1l, __y1l): Likewise.
4164         * math/w_jnl.c (__jnl, __ynl): Likewise.
4165         * math/w_lgammal.c (__lgammal): Likewise.
4166         * math/w_log10l.c (__log10l): Likewise.
4167         * math/w_log2l.c (__log2l): Likewise.
4168         * math/w_logl.c (__logl): Likewise.
4169         * math/w_powl.c (__powl): Likewise.
4170         * math/w_remainderl.c (__remainderl): Likewise.
4171         * math/w_scalbl.c (sysv_scalbl): Likewise.
4172         * math/w_sinhl.c (__sinhl): Likewise.
4173         * math/w_sqrtl.c (__sqrtl): Likewise.
4174         * math/w_tgammal.c (__tgammal): Likewise.
4175         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
4176         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
4177         * math/libm-test.inc (acos_test): Add more tests.
4178         (acosh_test): Likewise.
4179         (asin_test): Likewise.
4180         (atanh_test): Likewise.
4181         (exp_test): Likewise.
4182         (exp10_test): Likewise.
4183         (exp2_test): Likewise.
4184         (expm1_test): Likewise.
4185         (lgamma_test): Likewise.
4186         (log_test): Likewise.
4187         (log10_test): Likewise.
4188         (log1p_test): Likewise.
4189         (log2_test): Likewise.
4190         (pow_test): Do not allow some spurious overflow exceptions.
4191         (sqrt_test): Add more tests.
4192         (tgamma_test): Likewise.
4193         (y0_test): Likewise.
4194         (y1_test): Likewise.
4195         (yn_test): Likewise.
4196
4197 2012-03-27  Anton Blanchard  <anton@samba.org>
4198
4199         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
4200         MAP_HUGETLB.
4201         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4202         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4203         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4204
4205 2012-03-27  David S. Miller  <davem@davemloft.net>
4206
4207         * conform/Makefile: Run run-conformtest.sh using $(BASH).
4208
4209         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
4210         have-as-vis3 check.
4211
4212 2012-03-27  Andreas Jaeger  <aj@suse.de>
4213
4214         * sysdeps/x86_64/elf/configure.in: Moved to ...
4215         * sysdeps/x86_64/configure.in: ... here.
4216         * sysdeps/x86_64/elf/start.S: Moved to ...
4217         * sysdeps/x86_64/start.S: ... here.
4218         * sysdeps/x86_64/elf/configure: Delete.
4219
4220         * sysdeps/x86_64/configure.in: Merge contents from
4221         sysdeps/i386/configure.in (without i686 check).
4222
4223         * sysdeps/i386/elf/Versions: Merge into ...
4224         * sysdeps/i386/Versions: ... this.
4225         * sysdeps/i386/elf/Versions: Delete file.
4226         * sysdeps/i386/elf/start.S: Moved to ...
4227         * sysdeps/i386/start.S: ...here.
4228         * sysdeps/i386/elf/configure.in: Merge into...
4229         * sysdeps/i386/configure.in: ...here.
4230         * sysdeps/i386/elf/configure.in: Delete file.
4231         * sysdeps/i386/elf/configure: Delete file.
4232
4233         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
4234         * debug/backtracesyms.c: ... here.
4235         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
4236         * debug/backtracesymsfd.c: ... here.
4237         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
4238         * sysdeps/generic/ifunc-sel.h: ... here.
4239
4240         * sysdeps/unix/i386/start.c: Delete file.
4241         * sysdeps/unix/sparc/start.c: Delete file.
4242         * sysdeps/unix/start.c: Delete file.
4243
4244         * sysdeps/sh/elf/configure.in: Moved to ...
4245         * sysdeps/sh/configure.in: ... here.
4246         * sysdeps/sh/elf/start.S: Moved to ...
4247         * sysdeps/sh/start.S: ... here.
4248         * sysdeps/sh/elf/configure: Delete file.
4249
4250         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
4251         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
4252         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
4253         * sysdeps/powerpc/powerpc64/entry.h: ... here.
4254         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
4255         * sysdeps/powerpc/powerpc64/start.S: here.
4256         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
4257         * sysdeps/powerpc/powerpc64/Makefile: ... this.
4258         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
4259         * sysdeps/powerpc/powerpc64/configure.in: ... this.
4260         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
4261
4262         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
4263         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
4264         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
4265         * sysdeps/powerpc/powerpc32/start.S: ... here.
4266         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
4267         * sysdeps/powerpc/powerpc32/configure.in: ... this.
4268         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
4269
4270         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
4271         * sysdeps/powerpc/ifunc-sel.h: ... here.
4272         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
4273         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
4274
4275         * sysdeps/sparc/elf/configure.in: Moved to ...
4276         * sysdeps/sparc/configure.in: ... here.
4277         * sysdeps/sparc/elf/configure: Delete file.
4278         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
4279         * sysdeps/sparc/sparc32/start.S: ... here.
4280         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
4281         * sysdeps/sparc/sparc64/start.S: ... here.
4282         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
4283         * sysdeps/sparc/sparc32/Makefile: ... this.
4284         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
4285         * sysdeps/sparc/sparc64/Makefile: ... this.
4286
4287         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
4288         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
4289         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
4290         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
4291         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
4292         * sysdeps/s390/s390-32/setjmp.S: ... here.
4293         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
4294         * sysdeps/s390/s390-32/configure.in: ... here.
4295         * sysdeps/s390/s390-32/elf/configure: Delete file.
4296         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
4297         * sysdeps/s390/s390-32/start.S: ... here.
4298
4299         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
4300         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
4301         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
4302         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
4303         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
4304         * sysdeps/s390/s390-64/setjmp.S: ... here.
4305         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
4306         * sysdeps/s390/s390-64/configure.in: ... here
4307         * sysdeps/s390/s390-64/elf/configure: Delete file.
4308         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
4309         * sysdeps/s390/s390-64/start.S: ... here.
4310         * sysdeps/s390/s390-64/elf/configure: Delete.
4311
4312         * configure.in: Remove support for elf directories in sysdeps.
4313
4314         * configure: Regenerated.
4315         * sysdeps/i386/configure: Regenerated.
4316         * sysdeps/powerpc/powerpc32/configure: Regenerated.
4317         * sysdeps/powerpc/powerpc64/configure: Regenerated.
4318         * sysdeps/s390/s390-32/configure: Regenerated.
4319         * sysdeps/s390/s390-64/configure: Regenerated.
4320         * sysdeps/sh/configure: Regenerated.
4321         * sysdeps/sparc/configure: Regenerated.
4322         * sysdeps/x86_64/configure: Regenerated.
4323
4324 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
4325
4326         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4327
4328         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
4329         denormal result into account.
4330
4331 2012-03-25  Roland McGrath  <roland@hack.frob.com>
4332
4333         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
4334         Reported by Allan McRae <allan@archlinux.org>.
4335
4336 2012-03-23  Jeff Law  <law@redhat.com>
4337
4338         * nss/getnssent.c (__nss_getent): Fix typo.
4339
4340 2012-03-23  David S. Miller  <davem@davemloft.net>
4341
4342         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4343
4344 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
4345
4346         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
4347         to pad to uint64_t for each field.
4348         (dl_tls_index): Replace unsigned long with uint64_t.
4349
4350 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
4351         Paul Pluzhnikov  <ppluzhnikov@google.com>
4352
4353         [BZ #6528]
4354         * grp/Makefile (otherlibs): Don't set it.
4355         * inet/Makefile (otherlibs): Likewise.
4356         * login/Makefile (otherlibs): Likewise.
4357         * nscd/Makefile (otherlibs): Likewise.
4358         * posix/Makefile (otherlibs): Likewise.
4359         * pwd/Makefile (otherlibs): Likewise.
4360         * rt/Makefile (otherlibs): Likewise.
4361         * sunrpc/Makefile (otherlibs): Likewise.
4362         * nss/Makefile (otherlibs): Likewise.
4363         Add libnss_files to routines and static-only-routines.
4364         ($(objpfx)getent): Remove rule.
4365         * resolv/Makefile: Add libnss_dns and libresolv to routines and
4366         static-only-routines.
4367
4368 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4369
4370         [BZ #13892]
4371         * math/s_cexp.c: Include <float.h>.
4372         (__cexp): Handle exp result overflowing not necessarily
4373         overflowing both real and imaginary parts of result.
4374         * math/s_cexpf.c: Likewise.
4375         * math/s_cexpl.c: Likewise.
4376         * math/libm-test.inc (cexp_test): Add more tests.
4377         * sysdeps/i386/fpu/libm-test-ulps: Update.
4378         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4379
4380 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4381
4382         * include/link.h (ELFW): New macro.
4383         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
4384         Replace ELF64_R_TYPE with ELFW(R_TYPE).
4385
4386 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4387
4388         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
4389         with uint64_t.
4390
4391 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4392
4393         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
4394         declaration.
4395         (struct La_x32_retval): Likewise.
4396
4397 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4398
4399         * sysdeps/x86_64/preconfigure.in: New file.
4400         * sysdeps/x86_64/preconfigure: New generated file.
4401
4402 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4403
4404         [BZ #13824]
4405         * math/e_exp2l.c: Include <float.h>.
4406         (__ieee754_exp2l): Handle overflow and underflow cases
4407         separately.  Only pass fractional part of argument to
4408         __ieee754_expl.
4409         * math/libm-test.inc (exp2_test): Add more tests.
4410
4411         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
4412         negating x to take absolute value.
4413         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
4414         Likewise.
4415         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4416         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
4417         Likewise.
4418         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
4419         computing low part if x was negated.
4420         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4421
4422 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4423
4424         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
4425         la_x32_gnu_pltexit.
4426         (pltexit): Cast int_retval to ptrdiff_t.
4427         * elf/tst-auditmod3b.c: Likewise.
4428         * elf/tst-auditmod4b.c: Likewise.
4429         * elf/tst-auditmod5b.c: Likewise.
4430         * elf/tst-auditmod6b.c: Likewise.
4431         * elf/tst-auditmod6c.c: Likewise.
4432         * elf/tst-auditmod7b.c: Likewise.
4433
4434         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
4435         and x32_gnu_pltexit.
4436
4437         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
4438         __ELF_NATIVE_CLASS.
4439         (La_x32_regs): New macro.
4440         (La_x32_retval): Likewise.
4441         (la_x32_gnu_pltenter): New function prototype.
4442         (la_x32_gnu_pltexit): Likewise.
4443
4444 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
4445
4446         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
4447         exponent.
4448
4449         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4450
4451         * configure.in (libc_cv_cc_nofma): Check for option to disable
4452         generation of FMA instructions.
4453         * configure: Regenerate.
4454         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
4455         * sysdeps/ieee754/dbl-64/Makefile: New file.
4456         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4457         Remove brandred-fma4.
4458         (CFLAGS-brandred-fma4.c): Remove.
4459         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
4460         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
4461         define.
4462         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
4463         define.
4464
4465 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4466
4467         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4468         LLONG_MAX != LONG_MAX.
4469         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4470         (_fitoa_word): Likewise.
4471         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
4472         LLONG_MAX != LONG_MAX.
4473         * stdio-common/_itowa.h: Include <_itoa.h>.
4474         (_itowa_word): Use _ITOA_WORD_TYPE on value.
4475         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
4476         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
4477         only if not defined.
4478         (_ITOA_WORD_TYPE): Likewise.
4479         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4480         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
4481
4482 2012-03-21  David S. Miller  <davem@davemloft.net>
4483
4484         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4485
4486 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4487
4488         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
4489         of x86_64 when setting libc_cv_slibdir, libdir and
4490         libc_cv_localedir.
4491         * sysdeps/unix/sysv/linux/configure: Regenerated.
4492
4493 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4494
4495         * manual/lang.texi (Old Varargs): Remove section.
4496         (How Variadic): Update menu.
4497         (va_start): Do not mention varargs.h.
4498
4499 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4500             Joseph Myers  <joseph@codesourcery.com>
4501
4502         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
4503         link test.
4504         * configure: Regenerated.
4505
4506 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4507
4508         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
4509         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
4510         conformtest.pl
4511
4512 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4513
4514         * NOTES: Remove.
4515         * Makefile (files-for-dist): Remove NOTES.
4516         (NOTES): Remove rule.
4517         * README: Don't refer to NOTES.
4518         * manual/creature.texi: Don't include macros.texi.
4519         * manual/intro.texi (creature.texi): Remove comment referring to
4520         NOTES.
4521
4522         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
4523         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
4524         * configure: Regenerated.
4525         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
4526         LIBC_TRY_CC_OPTION.
4527         (libc_cv_as_i686): Likewise.
4528         (libc_cv_cc_avx): Likewise.
4529         (libc_cv_cc_sse2avx): Likewise.
4530         (libc_cv_cc_fma4): Likewise.
4531         (libc_cv_cc_novzeroupper): Likewise.
4532         * sysdeps/i386/configure: Regenerated.
4533
4534         [BZ #13883]
4535         * sysdeps/i386/fpu/s_cexp.S: Remove.
4536         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4537         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4538         * math/libm-test.inc (cexp_test): Add more tests.
4539         * sysdeps/i386/fpu/libm-test-ulps: Update.
4540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4541
4542 2012-03-21  Allan McRae  <allan@archlinux.org>
4543
4544         * timezone/Makefile: Do not install iso3166.tab and zone.tab
4545
4546 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4547
4548         [BZ #13871]
4549         * math/w_exp2.c: Do not include <float.h>.
4550         (o_threshold, u_threshold): Remove.
4551         (__exp2): Calculate result before checking finiteness and calling
4552         __kernel_standard.
4553         * math/w_exp2f.c: Likewise.
4554         * math/w_exp2l.c: Likewise.
4555         * math/libm-test.inc (exp2_test): Require overflow exception for
4556         1e6 input.
4557
4558         [BZ #3866]
4559         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
4560         range of signed 64-bit integers before using fistpll.  Remove
4561         checks for whether integers fit in mantissa bits.
4562         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
4563         the range of signed 32-bit integers before using fistpl.  Remove
4564         checks for whether integers fit in mantissa bits.
4565         * sysdeps/i386/fpu/e_powl.S (p64): New object.
4566         (__ieee754_powl): Test for y outside the range of signed 64-bit
4567         integers before using fistpll.  Reduce 64-bit values to 63-bit
4568         ones as needed.
4569         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
4570         divide-by-zero is raised for zero to large negative powers.
4571         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
4572         (__ieee754_powl): Test for y outside the range of signed 64-bit
4573         integers before using fistpll.  Reduce 64-bit values to 63-bit
4574         ones as needed.
4575         * math/libm-test.inc (pow_test): Add more tests.
4576
4577 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4578
4579         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
4580         <stdio-common/_itoa.h>.
4581         * debug/segfault.c: Likewise.
4582         * elf/dl-cache.c: Likewise.
4583         * elf/dl-minimal.c: Likewise.
4584         * elf/dl-misc.c: Likewise.
4585         * elf/dl-sysdep.c: Likewise.
4586         * elf/dl-version.c: Likewise.
4587         * elf/rtld.c: Likewise.
4588         * hurd/hurdsock.c: Likewise.
4589         * hurd/lookup-retry.c: Likewise.
4590         * malloc/malloc.c: Likewise.
4591         * malloc/mtrace.c: Likewise.
4592         * nscd/nscd_getgr_r.c: Likewise.
4593         * nscd/nscd_getpw_r.c: Likewise.
4594         * nscd/nscd_getserv_r.c: Likewise.
4595         * posix/getopt_init.c: Likewise.
4596         * posix/wordexp.c: Likewise.
4597         * stdio-common/_itoa.c: Likewise.
4598         * stdio-common/printf_fphex.c: Likewise.
4599         * stdio-common/vfprintf.c: Likewise.
4600         * string/_strerror.c: Likewise.
4601         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4602         * sysdeps/i386/i686/hp-timing.h: Likewise.
4603         * sysdeps/mach/_strerror.c: Likewise.
4604         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
4605         * sysdeps/mach/hurd/sethostid.c: Likewise.
4606         * sysdeps/mach/hurd/xmknodat.c: Likewise.
4607         * sysdeps/mach/xpg-strerror.c: Likewise.
4608         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4609         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4610         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
4611         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
4612         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4613         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
4614         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4615         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4616         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
4617         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
4618         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
4619         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4620         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
4621         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4622         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4623         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4624         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
4625         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
4626         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4627         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4628         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
4629
4630         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
4631
4632         * stdio-common/_itoa.h: Moved to ...
4633         * sysdeps/generic/_itoa.h: Here.
4634
4635         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
4636
4637         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
4638         instead of "_itoa.h" and "_itowa.h".
4639         * stdio-common/vfprintf.: Likewise.
4640
4641 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4642
4643         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
4644         <bits/wordsize.h>.
4645         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
4646         (__signbit): Likwise.
4647         (llrintf): Likwise.
4648         (llrint): Likwise.
4649
4650 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4651
4652         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
4653         __WORDSIZE != 64.
4654
4655 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
4656
4657         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
4658         OVERFLOW_EXCEPTION_OK.
4659         * math/libm-test.inc ("Philosophy"): Update comment about
4660         exception testing.
4661         (OVERFLOW_EXCEPTION): Define.
4662         (OVERFLOW_EXCEPTION_OK): Likewise.
4663         (INVALID_EXCEPTION_OK): Renumber.
4664         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4665         (IGNORE_ZERO_INF_SIGN): Likewise.
4666         (test_exceptions): Handle FE_OVERFLOW.
4667         (exp10_test): Expect overflow exceptions.
4668         (exp2_test): Likewise.
4669         (expm1_test): Likewise.
4670         (nextafter_test): Likewise.
4671         (pow_test): Likewise.
4672         (scalbn_test): Likewise.
4673         (scalbln_test): Likewise.
4674
4675 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4676
4677         * sysdeps/x86_64/bits/atomic.h
4678         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
4679         64bit integer.
4680         (atomic_exchange_acq): Likewise.
4681         (__arch_exchange_and_add_body): Likewise.
4682         (__arch_add_body): Likewise.
4683         (atomic_add_negative): Likewise.
4684         (atomic_add_zero): Likewise.
4685
4686 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4687
4688         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
4689         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
4690
4691 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4692
4693         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
4694         Check __x86_64__ instead of __WORDSIZE.
4695
4696 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4697
4698         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
4699
4700 2012-03-19  David S. Miller  <davem@davemloft.net>
4701
4702         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4703
4704         * sysdeps/sparc/fpu/fenv_private.h: New file.
4705         * sysdeps/sparc/fpu/math_private.h: Use it.
4706         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
4707         Remove.
4708         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
4709         (libc_feholdexcept_setroundl): Remove.
4710         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
4711         Remove.
4712         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
4713         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
4714
4715 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4716
4717         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
4718         int64_t instead of long int.
4719         (INSERT_WORDS64): Likwise.
4720
4721 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4722
4723         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
4724         _Unwind_GetCFA return to _Unwind_Ptr first.
4725
4726 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
4727
4728         [BZ #13629]
4729         * math/s_clog.c: Include <float.h>.
4730         (__clog): Scale large or subnormal inputs.
4731         * math/s_clogf.c: Likewise.
4732         * math/s_clogl.c: Likewise.
4733         * math/s_clog10.c: Include <float.h>.
4734         (M_LOG10_2): Define.
4735         (__clog10): Scale large or subnormal inputs.
4736         * math/s_clog10f.c: Likewise.
4737         * math/s_clog10l.c: Likewise.
4738         * math/libm-test.inc (clog_test): Add more tests.
4739         (clog10_test): Likewise.
4740         * sysdeps/i386/fpu/libm-test-ulps: Update.
4741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4742
4743         [BZ #11451]
4744         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
4745         x and y.
4746         * math/libm-test.inc (atan2_test): Add another test.
4747
4748         * Makerules (common-objdir-compile): Remove.
4749         * sysdeps/unix/Makefile (config-generated): Do not add
4750         $(unix-generated) to variable.
4751         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
4752         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
4753         Remove rule.
4754         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
4755         Likewise.
4756         [generic bits/local_lim.h] (before-compile): Do not append to
4757         variable.
4758         [generic bits/local_lim.h] (common-generated): Likewise.
4759         [generic sys/param.h] (before-compile): Do not append to variable.
4760         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
4761         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
4762         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
4763         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
4764         include.
4765         [generic sys/param.h] (sys/param.h-includes): Remove variable.
4766         [generic sys/param.h] (sys/param.h-includes): Remove rule.
4767         [generic sys/param.h] ($(addprefix
4768         $(common-objpfx),$(sys/param.h-includes))): Likewise.
4769         [generic sys/param.h] (common-generated): Do not append to
4770         variable.
4771         [generic sys/param.h] (sysdep_headers): Likewise.
4772         [generic bits/errno.h] (before-compile): Do not append to
4773         variable.
4774         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
4775         rule.
4776         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
4777         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
4778         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
4779         [generic bits/errno.h] (common-generated): Do not append to
4780         variable.
4781         [generic bits/ioctls.h] (before-compile): Do not append to
4782         variable.
4783         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
4784         rule.
4785         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
4786         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
4787         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
4788         rule.
4789         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
4790         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
4791         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
4792         [generic bits/ioctls.h] (common-generated): Do not append to
4793         variable.
4794         [generic sys/syscall.h] (syscall.h): Remove variable.
4795         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
4796         rule.
4797         [generic sys/syscall.h] (before-compile): Do not append to
4798         variable.
4799         [generic sys/syscall.h] (common-generated): Likewise.
4800         * sysdeps/unix/errnos-tmpl.c: Remove file.
4801         * sysdeps/unix/errnos.awk: Likewise.
4802         * sysdeps/unix/ioctls-tmpl.c: Likewise.
4803         * sysdeps/unix/ioctls.awk: Likewise.
4804         * sysdeps/unix/mk-local_lim.c: Likewise.
4805         * sysdeps/unix/snarf-ioctls: Likewise.
4806
4807 2012-03-19  Richard Henderson  <rth@twiddle.net>
4808
4809         * sysdeps/i386/fpu/fenv_private.h: New file.
4810         * sysdeps/i386/fpu/math_private.h: Use it.
4811         (math_opt_barrier, math_force_eval): Remove.
4812         (libc_feholdexcept_setround_53bit): Remove.
4813         (libc_feupdateenv_53bit): Remove.
4814         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4815         (math_opt_barrier, math_force_eval): Remove.
4816         (libc_feholdexcept): Remove.
4817         (libc_feholdexcept_setround): Remove.
4818         (libc_fetestexcept, libc_fesetenv): Remove.
4819         (libc_feupdateenv_test): Remove.
4820         (libc_feupdateenv, libc_feholdsetround): Remove.
4821         (libc_feresetround): Remove.
4822
4823         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
4824         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
4825
4826         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
4827         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
4828         (libc_feupdateenv_testl): New.
4829         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
4830         (libc_feupdateenv_testf): New.
4831         (libc_feupdateenv): Use libc_feupdateenv_test.
4832         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
4833         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
4834
4835         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
4836         (libc_feholdsetroundf, libc_feholdsetroundl): New.
4837         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
4838         (libc_feresetround_noex): New.
4839         (libc_feresetround_noexf): New.
4840         (libc_feresetround_noexl): New.
4841         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
4842         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
4843         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
4844         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
4845         SET_RESTORE_ROUND.
4846         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4847         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
4848         (__cos): Likewise.
4849         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
4850         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
4851         SET_RESTORE_ROUND_NOEX.
4852         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
4853         SET_RESTORE_ROUND_NOEXF.
4854         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
4855         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
4856         (libc_feholdsetroundf): New.
4857         (libc_feresetround, libc_feresetroundf): New.
4858
4859         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
4860         (libc_feholdexcept_setround_53bit): Convert from macro to function.
4861         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
4862
4863         * sysdeps/generic/math_private.h: Include <fenv.h>.
4864         (default_libc_feholdexcept): New.
4865         (default_libc_feholdexcept_setround): New.
4866         (default_libc_fesetenv, default_libc_feupdateenv): New.
4867         (libc_feholdexcept): Only define if undefined.
4868         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
4869         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
4870         (libc_feholdexcept_setroundl): Likewise.
4871         (libc_feholdexcept_setround_53bit): Likewise.
4872         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
4873         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
4874         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
4875         (libc_feupdateenv_53bit): Likewise.
4876         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
4877         (libc_feholdexcept): Convert from macro to inline function.
4878         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
4879         (libc_fesetenv, libc_feupdateenv): Likewise.
4880
4881         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
4882         not previously defined.
4883         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
4884         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
4885         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
4886         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
4887         * sysdeps/ieee754/flt-32/math_private.h: New file.
4888         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
4889         math_private.h below SET_FLOAT_WORD.
4890         (__isnan, __isinf_ns, __finite): Remove.
4891         (__isnanf, __isinf_nsf, __finitef): Remove.
4892
4893 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
4894
4895         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4896
4897 2012-03-17  David S. Miller  <davem@davemloft.net>
4898
4899         [BZ #6471]
4900         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
4901         for 2.16.
4902
4903 2012-03-16  David S. Miller  <davem@davemloft.net>
4904
4905         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
4906         warnings.
4907
4908         [BZ #6471]
4909         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
4910         properly.
4911         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
4912         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
4913         sysdep_routines when subdir is sysvipc.
4914         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
4915         __getshmlba helper.
4916
4917         * sysdeps/sparc/fpu/libm-test/ulps: Update.
4918
4919 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4920
4921         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
4922         [__LP64__].
4923
4924 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4925
4926         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
4927         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
4928         (__lround): Renamed to ...
4929         (__llround): This.  Replace long int with long long int.
4930         Define lround functions as aliases of llround functions.
4931         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
4932
4933 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4934
4935         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4936         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
4937         adresses to uintptr_t.  Replace "long int" and "unsigned long
4938         int" with "greg_t" on va_arg.
4939
4940 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4941
4942         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
4943         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
4944
4945         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
4946         Move e_machine check before EI_CLASS check.  Handle x32
4947         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
4948         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
4949         SKIP_EM_IA_64 and include
4950         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
4951
4952         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
4953         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
4954         (add_system_dir): New macro.
4955
4956         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
4957         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
4958
4959 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4960
4961         [BZ #2551]
4962         [BZ #2552]
4963         [BZ #2553]
4964         [BZ #2554]
4965         [BZ #2562]
4966         [BZ #2563]
4967         [BZ #2565]
4968         [BZ #2566]
4969         [BZ #2576]
4970         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
4971         (y0): Likewise.
4972         * math/w_j0f.c (j0f): Likewise.
4973         (y0f): Likewise.
4974         * math/w_j0l.c (__j0l): Likewise.
4975         (__y0l): Likewise.
4976         * math/w_j1.c (j1): Likewise.
4977         (y1): Likewise.
4978         * math/w_j1f.c (j1f): Likewise.
4979         (y1f): Likewise.
4980         * math/w_j1l.c (__j1l): Likewise.
4981         (__y1l): Likewise.
4982         * math/w_jn.c (jn): Likewise.
4983         (yn): Likewise.
4984         * math/w_jnf.c (jnf): Likewise.
4985         (ynf): Likewise.
4986         * math/w_jnl.c (__jnl): Likewise.
4987         (__ynl): Likewise.
4988         * math/libm-test.inc (j0_test): Add more tests.
4989         (j1_test): Likewise.
4990         (jn_test): Likewise.  Add trailing semicolon to existing test.
4991         (y0_test): Likewise.
4992         (y1_test): Likewise.
4993         * sysdeps/i386/fpu/libm-test-ulps: Update.
4994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4995
4996         [BZ #13851]
4997         [BZ #13854]
4998         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
4999         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
5000         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
5001         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
5002         (__tanl): Set errno for infinite argument.
5003         * sysdeps/i386/fpu/mptan.c: Remove.
5004         * sysdeps/i386/fpu/s_tan.S: Likewise.
5005         * sysdeps/i386/fpu/s_tanl.S: Likewise.
5006         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
5007         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
5008         * math/libm-test.inc (tan_test): Add more tests and enable more
5009         tests for double and long double.
5010         * sysdeps/i386/fpu/libm-test-ulps: Update.
5011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5012
5013 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5014
5015         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
5016         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
5017
5018 2012-03-16  Roland McGrath  <roland@hack.frob.com>
5019
5020         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
5021         * configure.in: Use it for both main tree and add-ons.
5022         * configure: Regenerated.
5023
5024 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5025
5026         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
5027
5028 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
5029
5030         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
5031         in comment.
5032
5033         [BZ #13851]
5034         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
5035         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
5036         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
5037         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
5038         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
5039         infinite argument.
5040         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
5041         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
5042         != 0 for prec == 2.
5043         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
5044         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
5045         * sysdeps/i386/fpu/s_cosl.S: Likewise.
5046         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
5047         * sysdeps/i386/fpu/s_sinl.S: Likewise.
5048         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
5049         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
5050         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
5051         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
5052         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
5053         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
5054         * math/libm-test.inc (cos_test): Add more tests and enable more
5055         tests for long double.
5056         (sin_test): Likewise.
5057         (sincos_test): Likewise.
5058         * sysdeps/i386/fpu/libm-test-ulps: Update.
5059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5060
5061 2012-03-16  David S. Miller  <davem@davemloft.net>
5062
5063         * sysdeps/sparc/fpu/math_private.h: New file.
5064
5065 2012-03-15  David S. Miller  <davem@davemloft.net>
5066
5067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
5068         file.
5069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
5070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
5071         file.
5072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
5073         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
5074         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
5075         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
5076         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
5077         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
5078         sysdep routines.
5079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5080
5081         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
5082         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
5083
5084         * sysdeps/sparc/sparc-ifunc.h: New file.
5085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
5086         sparc-ifunc.h
5087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
5089         Likewise.
5090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
5091         Likewise.
5092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
5093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
5094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
5096         Likewise.
5097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
5098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
5099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
5100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
5101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
5102         Likewise.
5103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
5104         Likewise.
5105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
5106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
5107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
5108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
5109         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5110         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5111         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
5112         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
5113         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5114         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5115         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
5116         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
5117         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
5118         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
5119         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
5120         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
5121         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
5122         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
5123         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
5124         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
5125         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
5126         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
5127         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
5128         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
5129
5130 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5131
5132         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
5133         scaling.
5134         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5135
5136 2012-03-15  Andreas Jaeger  <aj@suse.de>
5137
5138         [BZ #13852]
5139         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
5140         ieee754/flt-32 implementation for sin, cos and sincos.
5141         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
5142         * sysdeps/i386/fpu/s_cosf.S: Likewise.
5143         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
5144         * sysdeps/i386/fpu/s_sinf.S: Likewise.
5145         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
5146         ieee754/flt-32 implementation for tan.
5147
5148         * math/libm-test.inc (cos_test): Enable some large input tests for
5149         float as well
5150         (sin_test): Likewise.
5151         (sincos_test): Likewise.
5152         (tan_test): Add tests for large input.
5153
5154         * sysdeps/i386/fpu/libm-test-ulps: Update.
5155
5156 2012-03-15  Andreas Jaeger  <aj@suse.de>
5157
5158         [BZ #13658]
5159         * math/libm-test.inc (cos_test): Add more test cases.
5160         (sin_test): Likewise.
5161         (sincos_test): Likewise.
5162
5163 2012-03-15  Andreas Jaeger  <aj@suse.de>
5164
5165         [BZ #13837]
5166         * math/libm-test.inc (cos_test): Add a test case for large input
5167         value.
5168         (sin_test): Likewise.
5169         (sincos_test): Likewise.
5170
5171 2012-03-15  Andreas Jaeger  <aj@suse.de>,
5172         Joseph Myers  <joseph@codesourcery.com>
5173
5174         [BZ #13658]
5175         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
5176         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
5177         * sysdeps/i386/fpu/branred.c: Likewise.
5178         * sysdeps/i386/fpu/dosincos.c: Likewise.
5179         * sysdeps/i386/fpu/mpa.c: Likewise.
5180         * sysdeps/i386/fpu/s_cos.S: Likewise.
5181         * sysdeps/i386/fpu/s_sin.S: Likewise.
5182         * sysdeps/i386/fpu/s_sincos.S: Likewise.
5183         * sysdeps/i386/fpu/sincos32.c: Likewise.
5184
5185         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
5186         Define.
5187         (libc_feupdateenv_53bit): Define.
5188         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
5189         Define.
5190         (libc_feupdateenv_53bit): Define.
5191
5192         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
5193         53 bit (without extend i386 double precision).
5194
5195         * math/libm-test.inc (sincos_test): Add tests for large input.
5196         (sin): Likewise.
5197         (cos): Likewise.
5198
5199         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
5200
5201 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5202
5203         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5204
5205 2012-03-15  David S. Miller  <davem@davemloft.net>
5206
5207         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
5208         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
5209         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
5210         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
5211         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
5212         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
5213         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
5214         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
5215         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
5216         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
5217         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
5218         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
5219         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
5220         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
5221         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
5222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
5223         file.
5224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
5225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
5226         file.
5227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
5228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
5229         file.
5230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
5231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
5232         file.
5233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
5234         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
5235         fmin/fmax sysdep routines.
5236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5237
5238 2012-03-14  David S. Miller  <davem@davemloft.net>
5239
5240         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
5241         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
5242         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
5243         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
5244         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
5245         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
5246         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
5247         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
5248         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
5249         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
5250         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
5251         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
5252         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
5253         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
5254         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
5255         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
5256         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
5257         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
5258         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
5259         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
5260         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
5261         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
5262         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
5263         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
5264         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
5265         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
5266         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
5267         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
5268         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
5269         routines.
5270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
5271         file.
5272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
5273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
5274         file.
5275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
5276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
5277         file.
5278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
5279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
5280         file.
5281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
5282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
5283         file.
5284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
5285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
5286         file.
5287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
5288         file.
5289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
5290         file.
5291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
5292         file.
5293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
5294         New file.
5295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
5296         file.
5297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
5298         file.
5299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
5300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
5301         file.
5302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
5303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
5304         file.
5305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
5306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
5307         file.
5308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
5309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
5310         VIS3 routines.
5311
5312         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5313         New file.
5314
5315         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5316
5317         * sysdeps/sparc/configure.in: New file.
5318         * sysdeps/sparc/configure: Generate.
5319         * configure.in (libc_cv_sparc_as_vis3): Substitute.
5320         * configure: Regenerate.
5321         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
5322         * config.make.in (have-as-vis3): New.
5323         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
5324         available use -Av9d instead of -Av9a.
5325         * sysdeps/sparc/sparc64/Makefile: Likewise.
5326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
5327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
5328         New file.
5329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
5330         file.
5331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
5332         New file.
5333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
5334         file.
5335         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
5336         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
5337         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
5338         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
5339         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
5340
5341         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
5342         fzeros/fnegs to load 0x80000000 into a float register instead of
5343         using the stack.
5344         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
5345
5346 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5347
5348         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5349         bits/syscall.h.
5350         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
5351         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
5352         ($(inst_includedir)/bits/syscall.h): Remove rule.
5353         ($(objpfx)bits/syscall.d): Include instead of
5354         $(objpfx)syscall-list.d.
5355         (generated): Change syscall-list.h and syscall-list.d to
5356         bits/syscall.h and bits/syscall.d.
5357
5358 2012-03-14  Roland McGrath  <roland@hack.frob.com>
5359
5360         [BZ #13846]
5361         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
5362
5363 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5364
5365         [BZ #13841]
5366         * math/s_csqrt.c: Include <float.h>.
5367         (__csqrt): Scale large or subnormal inputs.
5368         * math/s_csqrtf.c: Likewise.
5369         * math/s_csqrtl.c: Likewise.
5370         * math/libm-test.inc (csqrt_test): Add more tests.
5371         * sysdeps/i386/fpu/libm-test-ulps: Update.
5372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5373
5374         [BZ #13840]
5375         * math/libm-test.inc (hypot_test): Add more tests.
5376
5377 2012-03-13  David S. Miller  <davem@davemloft.net>
5378
5379         [BZ #13840]
5380         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
5381         double-precision for the calculation instead of scaling.
5382
5383 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
5384
5385         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
5386         manipulate bits before adding and subtracting TWO52[sx].
5387         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
5388         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5389         Likewise.
5390         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
5391
5392 2012-03-13  David S. Miller  <davem@davemloft.net>
5393
5394         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
5395         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
5396         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
5397         rtld-global-offsets.h
5398         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5399
5400         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
5401         large parameters.
5402
5403         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
5404
5405         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
5406         'err' in the ifdef scope in which it is actually used.
5407
5408         * nss/nss_db/db-init.c: Include string.h
5409
5410 2012-03-12  David S. Miller  <davem@davemloft.net>
5411
5412         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
5413         masking out of the most significant byte of random value used.
5414         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5415         Fix coding style in previous change.
5416
5417         * sysdeps/unix/sysv/linux/kernel-features.h
5418         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
5419         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
5420         expression.
5421         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
5422         later.
5423
5424 2012-03-11  David S. Miller  <davem@davemloft.net>
5425
5426         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
5427         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
5428         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
5429         for 'resultvar' otherwise things get truncated on 64-bit.
5430
5431         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5432         Fix masking out of the most significant byte of random value used.
5433
5434         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5435
5436 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
5437
5438         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5439
5440 2012-03-09  David S. Miller  <davem@davemloft.net>
5441
5442         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
5443         variables with appropriate CPP guards.
5444         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
5445         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
5446         on resulting framesize and the management of the outregs buffer for pltexit.
5447         Preserve floating point return values across _dl_call_pltexit call.
5448         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
5449         framesize and the management of the outregs buffer for pltexit.
5450         Preserve floating point return values across _dl_call_pltexit
5451         call.
5452         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
5453         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
5454         (print_exit): Fix format string for return register value.
5455
5456 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
5457
5458         * sunrpc/Makefile (others): Add rpcgen.
5459         ($(objpfx)rpcgen): Remove special build rule and dependency on
5460         libc.
5461         * sunrpc/rpcgen.c: New file.
5462
5463 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
5464
5465         [BZ #13673]
5466         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
5467         * stdio-common/bug-vfprintf-nargs.c: Likewise.
5468         * sysdeps/i386/crti.S: Likewise.
5469         * sysdeps/i386/crtn.S: Likewise.
5470         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
5471         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
5472         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
5473         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
5474         * sysdeps/sh/crti.S: Likewise.
5475         * sysdeps/sh/crtn.S: Likewise.
5476         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5477
5478         [BZ #13673]
5479         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
5480         with URL.
5481         * locale/programs/locfile-kw.gperf: Likewise.
5482         * locale/programs/charmap-kw.h: Regenerated.
5483         * locale/programs/locfile-kw.h: Likewise.
5484
5485         [BZ #13673]
5486         * intl/plural.y: Replace FSF snail mail address with URL.
5487         * intl/plural.c: Regenerated.
5488
5489 2012-03-09  Richard Henderson  <rth@twiddle.net>
5490
5491         * include/math_private.h: Remove file.
5492         * math/math_private.h: Move file ...
5493         * sysdeps/generic/math_private.h: ... here.
5494
5495         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
5496         * sysdeps/powerpc/fpu/math_private.h: Likewise.
5497         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5498
5499         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
5500         and <math_private.h>.
5501         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5502         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5503         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5504         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5505         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5506         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
5507         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5508         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5509         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
5510         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5511         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5512         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5513         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
5514         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5515         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
5516         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
5517         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5518         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5519         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
5520         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
5521         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5522         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
5523         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
5524         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5525         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
5526         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5527         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
5528         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5529         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5530         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5531         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
5532         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5533         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5534         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5535         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5536         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5537         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5538         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5539         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5540         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5541         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
5542         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5543         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5544         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5545         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
5546         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5547         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
5548         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
5549         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5550         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5551         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
5552         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
5553         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
5554         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5555         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
5556         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5557         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5558         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
5559         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
5560         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
5561         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5562         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
5563         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5564         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5565         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5566         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5567         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5568         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5569         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
5570         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
5571         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5572         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5573         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5574         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5575         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
5576         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5577         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
5578         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5579         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
5580         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
5581         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5582         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
5583         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5584         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5585         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5586         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
5587         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
5588         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5589         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
5590         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5591         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5592         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
5593         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5594         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
5595         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
5596         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
5597         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5598         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
5599         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
5600         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5601         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
5602         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
5603         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
5604         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
5605         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5606         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
5607         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
5608         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
5609         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5610         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5611         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5612         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5613         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
5614         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5615         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5616         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5617         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5618         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5619         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5620         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5621         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5622         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5623         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5624         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
5625         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5626         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5627         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
5628         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5629         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5630         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
5631         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
5632         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5633         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5634         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
5635         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
5636         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5637         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
5638         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5639         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
5640         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5641         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5642         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5643         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5644         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
5645         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
5646         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5647         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5648         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5649         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5650         * sysdeps/ieee754/k_standard.c: Likewise.
5651         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
5652         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5653         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5654         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5655         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5656         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5657         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5658         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5659         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5660         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5661         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5662         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5663         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5664         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5665         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5666         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5667         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5668         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5669         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5670         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5671         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5672         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5673         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5674         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5675         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5676         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5677         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5678         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5679         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5680         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5681         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5682         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5683         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5684         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5685         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5686         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5687         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5688         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
5689         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5690         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5691         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5692         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5693         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5694         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5695         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5696         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5697         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5698         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5699         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5700         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5701         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5702         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5703         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5704         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5705         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5706         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5707         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
5708         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5709         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5710         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5711         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5712         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5713         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5714         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
5715         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5716         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5717         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
5718         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
5719         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
5720         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
5721         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
5722         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5723         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
5724         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
5725         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
5726         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
5727         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
5728         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
5729         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5730         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5731         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5732         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
5733         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5734         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5735         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
5736         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5737         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5738         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
5739         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5740         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5741         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
5742         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5743         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
5744         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5745         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5746         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5747         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
5748         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
5749         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
5750         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
5751         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5752         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5753         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5754         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5755         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
5756         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5757         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5758         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
5759         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
5760         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5761         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5762         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5763         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
5764         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5765         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
5766         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5767         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
5768         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5769         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5770         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
5771         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
5772         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5773         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
5774         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
5775         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5776         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5777         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5778         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5779         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5780         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5781         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5782         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5783         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5784         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
5785         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5786         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5787         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
5788         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5789         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5790         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
5791         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
5792         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5793         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
5794         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
5795         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5796         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5797         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5798         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5799         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5800         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
5801         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5802         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5803         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5804         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5805         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
5806         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
5807         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5808         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5809         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5810         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
5811         * sysdeps/ieee754/s_lib_version.c: Likewise.
5812         * sysdeps/ieee754/s_matherr.c: Likewise.
5813         * sysdeps/ieee754/s_signgam.c: Likewise.
5814         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5815         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5816         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
5817         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
5818         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
5819         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5820         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
5821         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
5822         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5823         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
5824         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
5825         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
5826         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5827         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5828         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
5829         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5830         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5831         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5832         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5833         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5834         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5835
5836 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5837
5838         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
5839         * sunrpc/rpc_main.c: Likewise.
5840         * sunrpc/rpc_svcout.c: Likewise.
5841
5842 2012-03-09  David S. Miller  <davem@davemloft.net>
5843
5844         * include/math_private.h: New file.
5845
5846 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5847
5848         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
5849         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
5850         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
5851         from <bits/socket_type.h>.
5852         (enum __socket_type): Don't define here.
5853         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
5854         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5855         bits/socket_type.h.
5856
5857         [BZ #13566]
5858         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
5859         checking __USE_GNU.
5860
5861         * Makerules ($(inst_includedir)/%.h): New rule.
5862         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
5863         (install-others): Remove variable setting.
5864         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
5865
5866 2012-03-08  Richard Henderson  <rth@twiddle.net>
5867
5868         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
5869         from macro to inline function; merge with the
5870         !__LIBC_INTERNAL_MATH_INLINES version.
5871         (__ieee754_sqrtf): Likewise.
5872
5873         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
5874         to inline function.
5875         (__rintf, __floor, __floorf): Likewise.
5876
5877         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
5878         macro to inline function.
5879         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
5880
5881         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
5882         not <math/math_private.h>.
5883
5884 2012-03-08  David S. Miller  <davem@davemloft.net>
5885
5886         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
5887         copyright year.
5888         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5889
5890 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
5891
5892         * resolv/gai_misc.c (handle_requests): Fix struct timespec
5893         normalization.
5894         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
5895         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
5896
5897 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
5898
5899         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
5900         be defined individually, they must be defined as a block.  Define
5901         S for printing a string instead of hidint the different by using a
5902         macro for adding the 'l'.
5903         * stdio-common/tst-fphex-wide.c: Adjust.
5904
5905 2012-03-07  Marek Polacek  <polacek@redhat.com>
5906
5907         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
5908
5909 2012-03-08  Marek Polacek  <polacek@redhat.com>
5910
5911         [BZ #13806]
5912         * stdio-common/Makefile (tests): Add tst-fphex-wide.
5913         * stdio-common/tst-fphex.c: Define a few macros to make the
5914         test reusable.  Use them.
5915         * stdio-common/tst-fphex-wide.c: New file.
5916
5917 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
5918
5919         [BZ #6911]
5920         * manual/macros.texi (gnusystems): New macro.
5921         (nongnusystems): Likewise.
5922         (gnulinuxhurdsystems): Likewise.
5923         (gnuhurdsystems): Likewise..
5924         (gnulinuxsystems): Likewise.
5925         * manual/charset.texi: Use new macros or @theglibc{} to refer to
5926         variants of the GNU system, not "GNU system".
5927         * manual/conf.texi: Likewise.
5928         * manual/errno.texi: Likewise.  Update example of errno macro
5929         expansion.
5930         * manual/filesys.texi: Likewise.
5931         (getumask): Document as specific to GNU/Hurd.
5932         * manual/install.texi: Likewise.  Reword some references to
5933         GNU/Linux.
5934         * manual/intro.texi: Likewise.
5935         * manual/io.texi: Likewise.
5936         (File Name Portability): Detail which constraints are inapplicable
5937         to all GNU systems and which are only inapplicable to GNU/Hurd.
5938         * manual/job.texi: Likewise.
5939         * manual/llio.texi: Likewise.
5940         (O_NOCTTY): Document as present on GNU/Linux.
5941         * manual/maint.texi: Likewise.
5942         * manual/memory.texi: Likewise.
5943         * manual/pattern.texi: Likewise.
5944         * manual/pipe.texi: Likewise.
5945         * manual/process.texi: Likewise.
5946         * manual/resource.texi: Likewise.
5947         (RUSAGE_CHILDREN): Remove statement about specifying a particular
5948         child on GNU/Hurd.
5949         * manual/setjmp.texi: Likewise.
5950         * manual/signal.texi: Likewise.
5951         * manual/startup.texi: Likewise.
5952         * manual/stdio.texi: Likewise.
5953         * manual/terminal.texi: Likewise.
5954         (ONLCR): Document as POSIX.
5955         (OXTABS): Document availability on GNU/Linux as XTABS.
5956         (ONOEOT): Document availability separately from other bits.
5957         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
5958         * manual/time.texi: Likewise.
5959         * manual/users.texi: Likewise.
5960         * INSTALL: Regenerated.
5961         * sysdeps/gnu/errlist.c: Regenerated.
5962
5963         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
5964         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
5965         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
5966         puts.
5967         * configure: Regenerated.
5968
5969 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
5970
5971         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
5972         default includes instead of AC_HEADER_CHECK.
5973         * sysdeps/i386/configure: Regenerated.
5974
5975         [BZ #10716]
5976         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
5977         * math/s_cacoshf.c (__cacoshf): Likewise.
5978         * math/s_cacoshl.c (__cacoshl): Likewise.
5979         * math/s_casinh.c (__casinh): Set signs of result from argument.
5980         * math/s_casinhf.c (__casinhf): Likewise.
5981         * math/s_casinhl.c (__casinhl): Likewise.
5982         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
5983         (casinh_test): Add more tests.
5984         * sysdeps/i386/fpu/libm-test-ulps: Update.
5985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5986
5987 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
5988
5989         * po/zh_TW.po: Update from translation team.
5990
5991         * login/Makefile (distribute): Remove variable.
5992         * catgets/Makefile: Likewise.
5993         * mach/Makefile: Likewise.
5994         * malloc/Makefile: Likewise.
5995         * misc/Makefile: Likewise.
5996         * iconv/Makefile: Likewise.
5997         * nscd/Makefile: Likewise.
5998         * hurd/Makefile: Likewise.
5999         * manual/Makefile: Likewise.
6000         * locale/Makefile: Likewise.
6001         * intl/Makefile: Likewise.
6002         * conform/Makefile: Likewise.
6003         * nss/Makefile: Likewise.
6004         * time/Makefile: Likewise.
6005         * soft-fp/Makefile: Likewise.
6006         * dirent/Makefile: Likewise.
6007         * gmon/Makefile: Likewise.
6008         * po/Makefile: Likewise.
6009         * rt/Makefile: Likewise.
6010         * socket/Makefile: Likewise.
6011         * math/Makefile: Likewise.
6012         * signal/Makefile: Likewise.
6013         * debug/Makefile: Likewise.
6014         * elf/Makefile: Likewise.
6015         * timezone/Makefile: Likewise.
6016         * stdlib/Makefile: Likewise.
6017         * iconvdata/Makefile: Likewise.
6018         * sunrpc/Makefile: Likewise.
6019         * io/Makefile: Likewise.
6020         * argp/Makefile: Likewise.
6021         * inet/Makefile: Likewise.
6022         * hesiod/Makefile: Likewise.
6023         * grp/Makefile: Likewise.
6024         * csu/Makefile: Likewise.
6025         * wctype/Makefile: Likewise.
6026         * crypt/Makefile: Likewise.
6027         * libio/Makefile: Likewise.
6028         * string/Makefile: Likewise.
6029         * nis/Makefile: Likewise.
6030         * resolv/Makefile: Likewise.
6031         * stdio-common/Makefile: Likewise.
6032         * wcsmbs/Makefile: Likewise.
6033         * dlfcn/Makefile: Likewise.
6034         * posix/Makefile: Likewise.
6035
6036         [BZ #6959]
6037         * timezone/Makefile: Don't install timezone files, just the programs
6038         and scripts.
6039
6040 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
6041
6042         * nss/databases.def: Add missing gshadow entry.
6043
6044         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
6045
6046 2012-03-06  Marek Polacek  <polacek@redhat.com>
6047
6048         [BZ #13726]
6049         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
6050         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
6051         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
6052         * stdio-common/tst-long-dbl-fphex.c: New file.
6053
6054 2012-03-06  David S. Miller  <davem@davemloft.net>
6055
6056         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6057         (set_obp_int): New function.
6058         (get_obp_int): New function.
6059         (__get_clockfreq_via_dev_openprom): Likewise.
6060         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6061         Avoid unused variable warnings on 'val' and use builtin_expect.
6062         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
6063         __builtin_expect.
6064         (INLINE_CLONE_SYSCALL): Likewise.
6065
6066 2012-03-05  David S. Miller  <davem@davemloft.net>
6067
6068         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6069
6070 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
6071
6072         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6073
6074         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
6075         only for |x| >= 40.
6076         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6077
6078 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6079
6080         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
6081         Replace gettimeofday with __vdso_gettimeofday.
6082
6083         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6084         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
6085         __vdso_clock_gettime and __vdso_getcpu.
6086
6087         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
6088         time with __vdso_time.
6089
6090 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
6091
6092         * manual/lang.texi (size_t): Note types to which size_t may be
6093         equivalent with the GNU C Library, but do not describe when
6094         differences between them are significant.
6095
6096 2012-03-05  Andreas Jaeger  <aj@suse.de>
6097
6098         * sysdeps/i386/fpu/libm-test-ulps: Update.
6099
6100 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
6101
6102         [BZ #3976]
6103         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
6104         (__ieee754_pow): Save and restore rounding mode and use
6105         round-to-nearest for main computations.
6106         * math/libm-test.inc (pow_test_tonearest): New function.
6107         (pow_test_towardzero): Likewise.
6108         (pow_test_downward): Likewise.
6109         (pow_test_upward): Likewise.
6110         (main): Call the new functions.
6111         * sysdeps/i386/fpu/libm-test-ulps: Update.
6112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6113
6114         [BZ #3976]
6115         * math/libm-test.inc (cosh_test_tonearest): New function.
6116         (cosh_test_towardzero): Likewise.
6117         (cosh_test_downward): Likewise.
6118         (cosh_test_upward): Likewise.
6119         (sinh_test_tonearest): Likewise.
6120         (sinh_test_towardzero): Likewise.
6121         (sinh_test_downward): Likewise.
6122         (sinh_test_upward): Likewise.
6123         (main): Call the new functions.
6124         * sysdeps/i386/fpu/libm-test-ulps: Update.
6125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6126
6127 2012-03-05  Tom de Vries  <tom@codesourcery.com>
6128
6129         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
6130         default stack guard is set in last bytes.
6131         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
6132
6133 2012-03-05  Kees Cook  <keescook@chromium.org>
6134
6135         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
6136
6137         [BZ #13656]
6138         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
6139         possibly allocate from heap instead of stack.
6140         * stdio-common/bug-vfprintf-nargs.c: New file.
6141         * stdio-common/Makefile (tests): Add nargs overflow test.
6142
6143 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
6144
6145         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6146
6147 2012-03-03  Marek Polacek  <polacek@redhat.com>
6148
6149         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
6150         * math/math_private.h: Likewise.
6151         * stdlib/tst-strtod.c: Likewise.
6152         * sysdeps/i386/i486/bits/atomic.h: Likewise.
6153         * sysdeps/x86_64/bits/atomic.h: Likewise.
6154
6155 2012-03-02  David S. Miller  <davem@davemloft.net>
6156
6157         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
6158         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
6159         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
6160         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
6161         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
6162         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
6163         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
6164         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
6165
6166 2012-03-02  Roland McGrath  <roland@hack.frob.com>
6167
6168         [BZ #13792]
6169         * manual/examples/README: New file, says the example source files
6170         can be used under GPL>=2.
6171         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
6172         line containing just "*/".
6173         * manual/examples/add.c: Add copyright header (GPL>=2).
6174         * manual/examples/argp-ex1.c: Likewise.
6175         * manual/examples/argp-ex2.c: Likewise.
6176         * manual/examples/argp-ex3.c: Likewise.
6177         * manual/examples/argp-ex4.c: Likewise.
6178         * manual/examples/atexit.c: Likewise.
6179         * manual/examples/db.c: Likewise.
6180         * manual/examples/dir.c: Likewise.
6181         * manual/examples/dir2.c: Likewise.
6182         * manual/examples/execinfo.c: Likewise.
6183         * manual/examples/filecli.c: Likewise.
6184         * manual/examples/filesrv.c: Likewise.
6185         * manual/examples/fmtmsgexpl.c: Likewise.
6186         * manual/examples/genpass.c: Likewise.
6187         * manual/examples/inetcli.c: Likewise.
6188         * manual/examples/inetsrv.c: Likewise.
6189         * manual/examples/isockad.c: Likewise.
6190         * manual/examples/longopt.c: Likewise.
6191         * manual/examples/memopen.c: Likewise.
6192         * manual/examples/memstrm.c: Likewise.
6193         * manual/examples/mkfsock.c: Likewise.
6194         * manual/examples/mkisock.c: Likewise.
6195         * manual/examples/mygetpass.c: Likewise.
6196         * manual/examples/pipe.c: Likewise.
6197         * manual/examples/popen.c: Likewise.
6198         * manual/examples/rprintf.c: Likewise.
6199         * manual/examples/search.c: Likewise.
6200         * manual/examples/select.c: Likewise.
6201         * manual/examples/setjmp.c: Likewise.
6202         * manual/examples/sigh1.c: Likewise.
6203         * manual/examples/sigusr.c: Likewise.
6204         * manual/examples/stpcpy.c: Likewise.
6205         * manual/examples/strdupa.c: Likewise.
6206         * manual/examples/strftim.c: Likewise.
6207         * manual/examples/strncat.c: Likewise.
6208         * manual/examples/subopt.c: Likewise.
6209         * manual/examples/swapcontext.c: Likewise.
6210         * manual/examples/termios.c: Likewise.
6211         * manual/examples/testopt.c: Likewise.
6212         * manual/examples/testpass.c: Likewise.
6213         * manual/examples/timeval_subtract.c: Likewise.
6214
6215         [BZ #13792]
6216         * manual/time.texi (Elapsed Time): Move timeval_subtract example
6217         function to ...
6218         * manual/timeval_subtract.c.texi: ... here, new file.
6219
6220 2012-03-02  David S. Miller  <davem@davemloft.net>
6221
6222         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
6223
6224 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
6225
6226         [BZ #3976]
6227         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
6228         (__sin): Save and restore rounding mode and use round-to-nearest
6229         for all computations.
6230         (__cos): Save and restore rounding mode and use round-to-nearest
6231         for all computations.
6232         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
6233         <fenv.h>.
6234         (tan): Save and restore rounding mode and use round-to-nearest for
6235         all computations.
6236         * math/libm-test.inc (cos_test_tonearest): New function.
6237         (cos_test_towardzero): Likewise.
6238         (cos_test_downward): Likewise.
6239         (cos_test_upward): Likewise.
6240         (sin_test_tonearest): Likewise.
6241         (sin_test_towardzero): Likewise.
6242         (sin_test_downward): Likewise.
6243         (sin_test_upward): Likewise.
6244         (tan_test_tonearest): Likewise.
6245         (tan_test_towardzero): Likewise.
6246         (tan_test_downward): Likewise.
6247         (tan_test_upward): Likewise.
6248         (main): Call the new functions.
6249         * sysdeps/i386/fpu/libm-test-ulps: Update.
6250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6251
6252         [BZ #10135]
6253         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
6254         small n, then large n, before computing and testing k+n.
6255         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6256         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6257         Likewise.
6258         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6259         Likewise.
6260         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
6261         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6262         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6263         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6264         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6265         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6266         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6267         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
6268         * math/libm-test.inc (scalbn_test): Add more tests.
6269         (scalbln_test): Likewise.
6270
6271         * manual/filesys.texi (mode_t): Describe constraints on size and
6272         signedness, not exact equivalence to a particular type.
6273         (ino_t): Likewise.
6274         (ino64_t): Likewise.
6275         (dev_t): Likewise.
6276         (nlink_t): Likewise.
6277         (blkcnt_t): Likewise.
6278         (blkcnt64_t): Likewise.
6279         * manual/llio.texi (off_t): Likewise.
6280
6281         [BZ #3976]
6282         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
6283         (__ieee754_exp): Save and restore rounding mode and use
6284         round-to-nearest for all computations.
6285         * math/libm-test.inc (exp_test_tonearest): New function.
6286         (exp_test_towardzero): Likewise.
6287         (exp_test_downward): Likewise.
6288         (exp_test_upward): Likewise.
6289         (main): Call the new functions.
6290         * sysdeps/i386/fpu/libm-test-ulps: Update.
6291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6292
6293 2012-03-01  Chris Demetriou  <cgd@google.com>
6294
6295         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
6296         have predictable order.
6297
6298 2012-03-01  David S. Miller  <davem@davemloft.net>
6299
6300         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
6301
6302         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
6303         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
6304         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
6305         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
6306
6307         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
6308         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
6309         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
6310         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
6311         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
6312         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
6313         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
6314         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
6315         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
6316
6317         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6318
6319         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
6320         * sysdeps/sparc/fpu/libm-test-ulps: to here.
6321         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
6322
6323         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
6324         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6325         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6326         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
6327         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
6328         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
6329         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
6330         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6331         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6332         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
6333         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
6334         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6335         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6336         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6337         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6338         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6339         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
6340         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
6341         * sysdeps/sparc/elf/configure: Regenerated.
6342
6343 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
6344
6345         * configure.in (AS, LD): Require binutils 2.20 or later.
6346         * configure: Regenerated.
6347         * manual/install.texi (Tools for Compilation): Give binutils 2.20
6348         as required minimum version.
6349         * INSTALL: Regenerated.
6350
6351         [BZ #2541]
6352         [BZ #4108]
6353         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
6354         before squaring exponent.
6355         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
6356         bottom long double and 27 bits of top long double before squaring
6357         exponent.
6358         * math/libm-test.inc (erfc_test): Add more tests.
6359         * sysdeps/i386/fpu/libm-test-ulps: Update.
6360         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6362
6363 2012-03-01  Kai Tietz  <ktietz@redhat.com>
6364
6365         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
6366         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
6367         containing bit-fields.
6368         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6369         * soft-fp/single.h (_FP_UNION_S): Likewise.
6370         * soft-fp/double.h (_FP_UNION_D): Likewise.
6371
6372 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6373
6374         [BZ #13786]
6375         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
6376         not include ../strcmp.S.
6377         [USE_AS_STRNCASECMP_L]: Likewise.
6378         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
6379         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
6380         * sysdeps/i386/i686/multiarch/strncase_l-c.c
6381         (__strncasecmp_l_ia32): Define as alias to
6382         __strncasecmp_l_nonascii.
6383
6384         [BZ #5794]
6385         * math/libm-test.inc (expm1_test): Add test for bug 5794.
6386         * sysdeps/i386/fpu/libm-test-ulps: Update.
6387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6388
6389         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
6390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6391
6392 2012-02-29  Jeff Law  <law@redhat.com>
6393
6394         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
6395         out of bounds read.
6396
6397 2012-02-29  Marek Polacek  <polacek@redhat.com>
6398
6399         [BZ #13706]
6400         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
6401         * elf/Makefile: Add rules to run tst-unused-dep.out.
6402
6403 2012-02-28  David S. Miller  <davem@davemloft.net>
6404
6405         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
6406         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
6407         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
6408         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
6409         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
6410         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
6411
6412 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6413
6414         * math/libm-test.inc (llround_test): Move one test from
6415         lround_test.  Use TEST_f_L in moved test.
6416         (lround_test): Move misplaced test to llround_test.  Add testcase
6417         from bug 2561.
6418
6419 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
6420
6421         * sysdeps/x86_64/fpu/e_expf.S: New file.
6422         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
6423
6424 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
6425
6426         [BZ #13637]
6427         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
6428         of remain_len that may cause incomplete multi-byte character and
6429         false match.
6430         * posix/bug-regex33.c: New file.
6431         * posix/Makefile (tests): Add bug-regex33.
6432
6433 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
6434
6435         * manual/macros.texi: New file.
6436         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
6437         * manual/libc.texinfo: Include macros.texi.
6438         * manual/creatute.texi: Likewise.
6439         * manual/install.texi: Likewise.
6440         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
6441         @glibcadj{} in references to the GNU C Library.
6442         * manual/charset.texi: Likewise.
6443         * manual/conf.texi: Likewise.
6444         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
6445         when not using those macros.
6446         * manual/creature.texi: Likewise.
6447         * manual/crypt.texi: Likewise.
6448         * manual/errno.texi: Likewise.
6449         * manual/filesys.texi: Likewise.
6450         * manual/header.texi: Likewise.
6451         * manual/install.texi: Likewise.
6452         * manual/intro.texi: Likewise.
6453         * manual/io.texi: Likewise.
6454         * manual/job.texi: Likewise.
6455         * manual/lang.texi: Likewise.
6456         * manual/libc.texiinfo: Likewise.
6457         * manual/llio.texi: Likewise.
6458         * manual/locale.texi: Likewise.
6459         * manual/maint.texi: Likewise.
6460         * manual/math.texi: Likewise.
6461         * manual/memory.texi: Likewise.
6462         * manual/message.texi: Likewise.
6463         * manual/nss.texi: Likewise.
6464         * manual/pattern.texi: Likewise.
6465         * manual/process.texi: Likewise.
6466         * manual/resource.texi: Likewise.
6467         * manual/search.texi: Likewise.
6468         * manual/setjmp.texi: Likewise.
6469         * manual/signal.texi: Likewise.
6470         * manual/socket.texi: Likewise.
6471         * manual/startup.texi: Likewise.
6472         * manual/stdio.texi: Likewise.
6473         * manual/string.texi: Likewise.
6474         * manual/sysinfo.texi: Likewise.
6475         * manual/syslog.texi: Likewise.
6476         * manual/terminal.texi: Likewise.
6477         * manual/time.texi: Likewise.
6478         * manual/users.texi: Likewise.
6479         * INSTALL: Regenerated.
6480         * NOTES: Regenerated.
6481         * sysdeps/gnu/errlist.c: Regenerated.
6482
6483 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
6484
6485         * include/dirent.h: Include <dirstream.h> before
6486         <dirent/dirent.h>.
6487
6488 2012-02-28  David S. Miller  <davem@davemloft.net>
6489
6490         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
6491         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
6492         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
6493         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
6494
6495 2012-02-27  David S. Miller  <davem@davemloft.net>
6496
6497         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
6498         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
6499         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
6500         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
6501
6502         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
6503         frame pointer instead of stack pointer relative arg slot.
6504         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6505         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6506         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6507
6508 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
6509
6510         [BZ #3992]
6511         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
6512
6513 2012-02-27  David S. Miller  <davem@davemloft.net>
6514
6515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
6516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
6519         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6520         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6521         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
6522         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
6523
6524 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6525
6526         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
6527         later.  Allow versions 5-9.
6528         * configure: Regenerated.
6529         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
6530         required minimum version and 4.6 as recommended version.  Do not
6531         mention bugs in GCC 2.7 and 2.8.
6532         * INSTALL: Regenerated.
6533
6534 2012-02-27  David S. Miller  <davem@davemloft.net>
6535
6536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
6537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
6538         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
6539         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
6540         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
6541         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
6542         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
6543         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
6544
6545         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
6546         manipulate bits before adding and subtracting TWO112[sx].
6547         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6548
6549 2012-02-27  Roland McGrath  <roland@hack.frob.com>
6550
6551         [BZ #13775]
6552         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
6553         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
6554         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
6555         being in POSIX, because they are in 1003.1-2008.
6556
6557         * rt/tst-aio.c: Include <fcntl.h>.
6558         * rt/tst-aio7.c: Likewise.
6559         * rt/tst-aio64.c: Likewise.
6560
6561         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
6562
6563 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6564
6565         * manual/install.texi (--with-headers): Describe headers as
6566         interface headers, not private headers.
6567         (Specific advice for GNU/Linux systems): Describe use of headers
6568         from "make headers_install", not private headers from older
6569         kernels.
6570         * INSTALL: Regenerated.
6571         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
6572         Change to 2.6.19.
6573         * sysdeps/unix/sysv/linux/configure: Regenerated.
6574
6575         * manual/llio.texi (fclean): Remove documentation.
6576
6577         * manual/Makefile (libc-texi-generated): New variable.  Include
6578         version.texi.
6579         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
6580         $(libc-texi-generated), not duplicated list of files.
6581         (version.texi, stamp-version): New rules.
6582         (realclean): Remove $(libc-texi-generated), not individual files
6583         from that list.  Do not remove dir-add.texinfo.
6584         * manual/libc.texinfo: Comment out uses of edition numbers and
6585         references to printed manual.  Remove last-updated dates.
6586         (EDITION): Comment out.
6587         (ISBN): Likewise.
6588         (VERSION, UPDATED): Remove.
6589         (version.texi): Include.
6590
6591 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6592
6593         * sysdeps/posix/spawni.c: Include <signal.h>.
6594         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
6595         * sysdeps/pthread/aio_fsync.c: Likewise.
6596
6597 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
6598
6599         * conform/Makefile (tests): Run only when not cross-compiling and
6600         when fast-check is not defined.
6601
6602         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
6603         * conform/data/limits.h-data: Fixes for POSIX2008.
6604         * conform/run-conformtest.sh: Run all tests.
6605         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
6606         headers.
6607         * include/bits/dlfcn.h: Likewise.
6608         * include/langinfo.h: Likewise.
6609         * include/monetary.h: Likewise.
6610         * include/sys/poll.h: Likewise.
6611
6612         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
6613         for __USE_GNU.
6614         * posix/spawn.h: Define __need_sigset_t.
6615         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
6616         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
6617         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
6618         to get sigevent_t only.
6619         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
6620         only for __USE_GNU.
6621         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6622         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6623         process_vm_writev only for __USE_GNU.
6624         * termios/termios.h: Declare tcgetsid also for POSIX2008.
6625
6626         * conform/Makefile: For now ignore errors from run-conformtest.
6627         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
6628         POSIX to avoid namespace pollution.  Don't prepend headers.
6629         * conform/data/aio.h-data: Fixes for POSIX testing.
6630         * conform/data/fcntl.h-data: Likewise.
6631         * conform/data/glob.h-data: Likewise.
6632         * conform/data/grp.h-data: Likewise.
6633         * conform/data/pthread.h-data: Likewise.
6634         * conform/data/pwd.h-data: Likewise.
6635         * conform/data/signal.h-data: Likewise.
6636         * conform/data/spawn.h-data: Likewise.
6637         * conform/data/stdio.h-data: Likewise.
6638         * conform/data/stdlib.h-data: Likewise.
6639         * conform/data/stropts.h-data: Likewise.
6640         * conform/data/sys/mman.h-data: Likewise.
6641         * conform/data/sys/stat.h-data: Likewise.
6642         * conform/data/sys/types.h-data: Likewise.
6643         * conform/data/sys/wait.h-data: Likewise.
6644         * conform/data/time.h-data: Likewise.
6645         * conform/data/unistd.h-data: Likewise.
6646         * conform/data/utime.h-data: Likewise.
6647
6648         * io/sys/stat.h: fchmod was always in POSIX.
6649         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
6650         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
6651         * rt/aio.h: Define __need_timespec before including <time.h>.
6652         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
6653         struct.  Add forward declaration of pthread_attr_t and use it in
6654         sigevent.
6655         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6656         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6657         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
6658         always remove CLK_TCK definition.
6659
6660 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
6661
6662         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
6663
6664 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
6665
6666         * conform/run-conformtest.sh: New file.
6667         * conform/Makefile: Run run-conformtest for tests.
6668         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
6669         support.
6670
6671         * conform/data/uchar.h-data: New file.
6672         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
6673         * conform/data/arpa/inet.h-data: Likewise.
6674         * conform/data/assert.h-data: Likewise.
6675         * conform/data/complex.h-data: Likewise.
6676         * conform/data/cpio.h-data: Likewise.
6677         * conform/data/ctype.h-data: Likewise.
6678         * conform/data/dirent.h-data: Likewise.
6679         * conform/data/dlfcn.h-data: Likewise.
6680         * conform/data/errno.h-data: Likewise.
6681         * conform/data/fcntl.h-data: Likewise.
6682         * conform/data/float.h-data: Likewise.
6683         * conform/data/fmtmsg.h-data: Likewise.
6684         * conform/data/fnmatch.h-data: Likewise.
6685         * conform/data/ftw.h-data: Likewise.
6686         * conform/data/glob.h-data: Likewise.
6687         * conform/data/grp.h-data: Likewise.
6688         * conform/data/iconv.h-data: Likewise.
6689         * conform/data/inttypes.h-data: Likewise.
6690         * conform/data/langinfo.h-data: Likewise.
6691         * conform/data/libgen.h-data: Likewise.
6692         * conform/data/limits.h-data: Likewise.
6693         * conform/data/locale.h-data: Likewise.
6694         * conform/data/math.h-data: Likewise.
6695         * conform/data/monetary.h-data: Likewise.
6696         * conform/data/mqueue.h-data: Likewise.
6697         * conform/data/ndbm.h-data: Likewise.
6698         * conform/data/net/if.h-data: Likewise.
6699         * conform/data/netdb.h-data: Likewise.
6700         * conform/data/netinet/in.h-data: Likewise.
6701         * conform/data/nl_types.h-data: Likewise.
6702         * conform/data/poll.h-data: Likewise.
6703         * conform/data/pthread.h-data: Likewise.
6704         * conform/data/pwd.h-data: Likewise.
6705         * conform/data/regex.h-data: Likewise.
6706         * conform/data/sched.h-data: Likewise.
6707         * conform/data/search.h-data: Likewise.
6708         * conform/data/semaphore.h-data: Likewise.
6709         * conform/data/setjmp.h-data: Likewise.
6710         * conform/data/signal.h-data: Likewise.
6711         * conform/data/spawn.h-data: Likewise.
6712         * conform/data/stdarg.h-data: Likewise.
6713         * conform/data/stdio.h-data: Likewise.
6714         * conform/data/stdlib.h-data: Likewise.
6715         * conform/data/string.h-data: Likewise.
6716         * conform/data/strings.h-data: Likewise.
6717         * conform/data/stropts.h-data: Likewise.
6718         * conform/data/sys/ipc.h-data: Likewise.
6719         * conform/data/sys/mman.h-data: Likewise.
6720         * conform/data/sys/msg.h-data: Likewise.
6721         * conform/data/sys/resource.h-data: Likewise.
6722         * conform/data/sys/select.h-data: Likewise.
6723         * conform/data/sys/sem.h-data: Likewise.
6724         * conform/data/sys/shm.h-data: Likewise.
6725         * conform/data/sys/socket.h-data: Likewise.
6726         * conform/data/sys/stat.h-data: Likewise.
6727         * conform/data/sys/statvfs.h-data: Likewise.
6728         * conform/data/sys/time.h-data: Likewise.
6729         * conform/data/sys/timeb.h-data: Likewise.
6730         * conform/data/sys/times.h-data: Likewise.
6731         * conform/data/sys/types.h-data: Likewise.
6732         * conform/data/sys/uio.h-data: Likewise.
6733         * conform/data/sys/un.h-data: Likewise.
6734         * conform/data/sys/utsname.h-data: Likewise.
6735         * conform/data/sys/wait.h-data: Likewise.
6736         * conform/data/syslog.h-data: Likewise.
6737         * conform/data/tar.h-data: Likewise.
6738         * conform/data/termios.h-data: Likewise.
6739         * conform/data/utime.h-data: Likewise.
6740         * conform/data/utmpx.h-data: Likewise.
6741         * conform/data/varargs.h-data: Likewise.
6742         * conform/data/wchar.h-data: Likewise.
6743         * conform/data/wctype.h-data: Likewise.
6744         * conform/data/wordexp.h-data: Likewise.
6745
6746         * include/stropts.h: New file.
6747         * include/uchar.h: New file.
6748         * include/aio.h: Changes to allow conformtest.pl to use the headers.
6749         * include/assert.h: Likewise.
6750         * include/ctype.h: Likewise.
6751         * include/dirent.h: Likewise.
6752         * include/dlfcn.h: Likewise.
6753         * include/fcntl.h: Likewise.
6754         * include/fnmatch.h: Likewise.
6755         * include/glob.h: Likewise.
6756         * include/grp.h: Likewise.
6757         * include/libio.h: Likewise.
6758         * include/locale.h: Likewise.
6759         * include/math.h: Likewise.
6760         * include/net/if.h: Likewise.
6761         * include/netdb.h: Likewise.
6762         * include/netinet/in.h: Likewise.
6763         * include/pthread.h: Likewise.
6764         * include/pwd.h: Likewise.
6765         * include/regex.h: Likewise.
6766         * include/sched.h: Likewise.
6767         * include/search.h: Likewise.
6768         * include/setjmp.h: Likewise.
6769         * include/signal.h: Likewise.
6770         * include/stdio.h: Likewise.
6771         * include/stdlib.h: Likewise.
6772         * include/string.h: Likewise.
6773         * include/sys/cdefs.h: Likewise.
6774         * include/sys/mman.h: Likewise.
6775         * include/sys/msg.h: Likewise.
6776         * include/sys/resource.h: Likewise.
6777         * include/sys/select.h: Likewise.
6778         * include/sys/socket.h: Likewise.
6779         * include/sys/stat.h: Likewise.
6780         * include/sys/statvfs.h: Likewise.
6781         * include/sys/time.h: Likewise.
6782         * include/sys/times.h: Likewise.
6783         * include/sys/uio.h: Likewise.
6784         * include/sys/utsname.h: Likewise.
6785         * include/sys/wait.h: Likewise.
6786         * include/termios.h: Likewise.
6787         * include/time.h: Likewise.
6788         * include/ulimit.h: Likewise.
6789         * include/unistd.h: Likewise.
6790         * include/utime.h: Likewise.
6791         * include/wchar.h: Likewise.
6792         * include/wctype.h: Likewise.
6793         * include/wordexp.h: Likewise.
6794
6795         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
6796
6797         * time/time.h: TIME_UTC must be a macro.
6798         Make timespec_get available for ISO C11 only as well.
6799
6800 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
6801
6802         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
6803         Reported by Peng Haitao <penght@cn.fujitsu.com>.
6804
6805 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6806
6807         * configure.in: Use -o not -a in test for unsupported multi-arch.
6808
6809 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6810
6811         * manual/texinfo.tex: Update to version 2012-01-19.16.
6812
6813 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6814
6815         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
6816
6817 2012-02-24  Roland McGrath  <roland@hack.frob.com>
6818
6819         [BZ #13738]
6820         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
6821         * manual/fdl-1.3.texi: New file.
6822         * manual/fdl-1.1.texi: File removed.
6823
6824         [BZ #13738]
6825         * manual/libc.texinfo (FDL_VERSION): New @set.
6826         Use it for mention of FDL in cover text.
6827         (Documentation License): Use it in @include file name.
6828
6829 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6830             Roland McGrath  <roland@hack.frob.com>
6831
6832         [BZ #5461]
6833         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
6834         not LONG_LONG_MAX and LONG_LONG_MIN.
6835         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
6836         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
6837         name.
6838         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
6839
6840 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6841
6842         [BZ #2547]
6843         [BZ #11365]
6844         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
6845         manipulate bits before adding and subtracting TWO23[sx].
6846         * math/libm-test.inc (nearbyint_test): Add more tests.
6847
6848 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6849
6850         [BZ #2548]
6851         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
6852         bits before adding and subtracting TWO23[sx].
6853         * math/libm-test.inc (rint_test): Add more tests.
6854         (rint_test_tonearest): Likewise.
6855         (rint_test_towardzero): Likewise.
6856         (rint_test_downward): Likewise.
6857         (rint_test_upward: Likewise.
6858
6859 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6860
6861         [BZ #10110]
6862         * include/stdc-predef.h: New file.  Extracted from features.h.
6863         * include/features.h: Include stdc-predef.h.
6864         * Makefile (headers): Add stdc-predef.h.
6865         * CONFORMANCE (Compiler limitations): Update.
6866
6867 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6868
6869         * manual/libc.texinfo (VERSION, UPDATED): Revert.
6870
6871 2012-02-21  David S. Miller  <davem@davemloft.net>
6872
6873         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
6874         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6875
6876 2012-02-20  David S. Miller  <davem@davemloft.net>
6877
6878         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
6879         using a normal save/restore sequence, rather than allocating a
6880         dummy stack frame just to store a frame pointer and restore.
6881         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6882
6883 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6884
6885         * manual/install.texi: Fix stray word in line-wrapped comment.
6886
6887 2012-02-20  David S. Miller  <davem@davemloft.net>
6888
6889         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
6890         both binutils and gcc support GOTDATA.
6891
6892         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
6893         "rd %pc" in the PIC register setup sequences.
6894
6895         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
6896         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
6897         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6898         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6899         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6900         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6901         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6902         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6903         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6904         (SYSCALL_ERROR_HANDLER): Likewise.
6905         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6906         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6907         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6908         (SYSCALL_ERROR_HANDLER): Likewise.
6909
6910         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
6911         (HAVE_GCC_GOTDATA): New.
6912         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
6913         relocation support in both binutils and gcc.
6914         * sysdeps/sparc/elf/configure: Regenerate.
6915
6916         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
6917         * sysdeps/sparc/sparc32/elf/configure: Delete.
6918         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
6919         * sysdeps/sparc/sparc64/elf/configure: Delete.
6920         * sysdeps/sparc/elf/configure.in: New file.
6921         * sysdeps/sparc/elf/configure: Generate.
6922
6923         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
6924         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
6925         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6926         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
6927         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
6928
6929 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6930
6931         * manual/install.texi: Do not mention specific glibc version
6932         numbers.
6933         * manual/libc.texinfo (VERSION, UPDATED): Update.
6934         (@copying): Use @copyright{} and range of years.
6935
6936 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6937
6938         [BZ #13695]
6939         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
6940         [crti.S not in sysdirs] (generated): Do not append.
6941         [crti.S not in sysdirs] (omit-deps): Likewise.
6942         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
6943         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
6944         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
6945         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
6946         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
6947         Likewise.
6948         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
6949         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
6950         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
6951         * csu/defs.awk: Remove file.
6952         * sysdeps/generic/initfini.c: Likewise.
6953         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
6954         variable.
6955         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
6956         Likewise.
6957
6958 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6959
6960         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
6961         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
6962         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
6963         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
6964         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6965         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
6966         <bits/epoll.h>.
6967         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
6968         (__EPOLL_PACKED): Define to empty if not defined by
6969         <bits/epoll.h>.
6970         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
6971         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6972         bits/epoll.h.
6973
6974 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6975
6976         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
6977         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
6978         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
6979         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
6980         <bits/timerfd.h>.
6981         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
6982         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6983         bits/timerfd.h.
6984
6985 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6986
6987         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
6988         in C locale.
6989         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6990         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6991         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
6992         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6993
6994 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
6995
6996         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6997         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6998
6999 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
7000
7001         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
7002         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
7003         defined.
7004         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
7005         Likewise.
7006         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
7007         entry for 2.16.
7008
7009 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
7010
7011         * math/w_acos.c: Use non-signaling floating-point comparisons.
7012         * math/w_acosf.c: Likewise.
7013         * math/w_acosh.c: Likewise.
7014         * math/w_acoshf.c: Likewise.
7015         * math/w_acoshl.c: Likewise.
7016         * math/w_acosl.c: Likewise.
7017         * math/w_asin.c: Likewise.
7018         * math/w_asinf.c: Likewise.
7019         * math/w_asinl.c: Likewise.
7020         * math/w_atanh.c: Likewise.
7021         * math/w_atanhf.c: Likewise.
7022         * math/w_atanhl.c: Likewise.
7023         * math/w_exp2.c: Likewise.
7024         * math/w_exp2f.c: Likewise.
7025         * math/w_exp2l.c: Likewise.
7026         * math/w_j0.c: Likewise.
7027         * math/w_j0f.c: Likewise.
7028         * math/w_j0l.c: Likewise.
7029         * math/w_j1.c: Likewise.
7030         * math/w_j1f.c: Likewise.
7031         * math/w_j1l.c: Likewise.
7032         * math/w_jn.c: Likewise.
7033         * math/w_jnf.c: Likewise.
7034         * math/w_log.c: Likewise.
7035         * math/w_log10.c: Likewise.
7036         * math/w_log10f.c: Likewise.
7037         * math/w_log10l.c: Likewise.
7038         * math/w_log2.c: Likewise.
7039         * math/w_log2f.c: Likewise.
7040         * math/w_log2l.c: Likewise.
7041         * math/w_logf.c: Likewise.
7042         * math/w_logl.c: Likewise.
7043         * math/w_sqrt.c: Likewise.
7044         * math/w_sqrtf.c: Likewise.
7045         * math/w_sqrtl.c: Likewise.
7046         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7047         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
7048         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7049         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
7050         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
7051
7052 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
7053
7054         [BZ #9739]
7055         * manual/string.texi (strnlen): Use correct parameter name in
7056         equivalent expression.
7057
7058 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
7059
7060         [BZ #11174]
7061         * manual/users.texi (seteuid): Consistently use neweuid for
7062         argument name.
7063
7064 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
7065
7066         [BZ #13704]
7067         * manual/nss.texi (Services in the NSS configuration): Correct
7068         list of services in example configuration file.
7069
7070 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
7071
7072         [BZ #11322]
7073         * manual/arith.texi: Remove statements about negative zero
7074         behaving identically to zero.
7075
7076 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
7077
7078         [BZ #5993]
7079         * manual/install.texi: Do not document upgrading from libc5.
7080
7081 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
7082
7083         [BZ #4596]
7084         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
7085
7086 2012-02-18  David S. Miller  <davem@davemloft.net>
7087
7088         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
7089         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
7090         %o7 across the call.
7091         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
7092         instead.
7093         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
7094         SETUP_PIC_REG_LEAF.
7095         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7096         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
7097         * sysdeps/sparc/crtn.S: Likewise.
7098
7099 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
7100
7101         * aout/Makefile: Remove.
7102
7103 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
7104
7105         [BZ #13058]
7106         * manual/examples/argp-ex1.c (main): Format definition in GNU
7107         style.
7108         * manual/examples/argp-ex2.c (main): Likewise.
7109         * manual/examples/argp-ex3.c (main): Likewise.
7110         * manual/examples/argp-ex4.c (main): Likewise.
7111         * manual/examples/longopt.c (main): Use new-style prototype
7112         definition.
7113         * manual/examples/strncat.c (main): Specify return type and use
7114         (void) for arguments.
7115         * manual/examples/subopt.c (main): Use char **argv argument.
7116
7117 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7118
7119         [BZ #5077]
7120         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
7121         rounding modes.
7122
7123 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
7124
7125         [BZ #6907]
7126         * manual/string.texi (strchr): Change when strchrnul is
7127         recommended.
7128
7129 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
7130
7131         [BZ #174]
7132         * manual/locale.texi (setlocale): Document LOCPATH.
7133
7134 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7135
7136         [BZ #10210]
7137         * manual/process.texi (execle): Move @dots{} before last argument.
7138
7139 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
7140
7141         [BZ #12047]
7142         * manual/charset.texi (Generic Charset Conversion): Fix typo
7143         (LC_TYPE -> LC_CTYPE).
7144
7145 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
7146
7147         [BZ #5805]
7148         * manual/arith.texi (scalbn): Use @var{} on parameter names.
7149         (scalbnf): Likewise.
7150         (scalbnl): Likewise.
7151         (scalbln): Likewise.
7152         (scalblnf): Likewise.
7153         (scalblnl): Likewise.
7154         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
7155         (vwarnx): Likewise.
7156         (verr): Likewise.
7157         (verrx): Likewise.
7158         * manual/filesys.texi (telldir): Use braces around return type.
7159         * manual/llio.texi (mmap): Add space after comma.
7160         (mmap64): Likewise.
7161         * manual/math.texi (jn): Use @var{} on parameter names.
7162         (jnf): Likewise.
7163         (jnl): Likewise.
7164         (yn): Likewise.
7165         (ynf): Likewise.
7166         (ynl): Likewise.
7167         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
7168         line.
7169         * manual/resource.texi (ulimit): Use @dots{} instead of literal
7170         "...".
7171         (sched_get_priority_min): Remove semicolon on @deftypefun line.
7172         (sched_get_priority_max): Likewise.
7173         * manual/signal.texi (sigvec): Add space after comma.
7174         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
7175         names.
7176         (if_indextoname): Likewise.
7177         (if_freenameindex): Likewise.
7178         (sendto): Use ',' instead of '.' in prototype.
7179         * manual/startup.texi (syscall): Use @dots{} instead of literal
7180         "...".
7181         * manual/stdio.texi (__fpending): Separate initial words of
7182         paragraph from @deftypefun line.
7183         * manual/syslog.texi (syslog): Use @dots{} instead of literal
7184         "...".
7185         (vsyslog): Use @var{} on parameter names.
7186         * manual/terminal.texi (stty): Use @var{} on parameter names.
7187         * manual/users.texi (getutmp): Use @var{} on parameter names.
7188         (getutmpx): Likewise.
7189
7190 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7191
7192         [BZ #6884]
7193         * manual/stdio.texi (fopen): Fix typos in description of
7194         ",ccs=STRING".
7195
7196 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
7197
7198         [BZ #4026]
7199         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
7200         get clock_id definition.
7201
7202 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
7203
7204         [BZ #4822]
7205         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
7206         (madvise): Cast every argument to void on its own.
7207
7208 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7209
7210         [BZ #9902]
7211         * manual/startup.texi (Exit Status): Fix typo.
7212
7213 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7214
7215         [BZ #10140]
7216         * manual/examples/argp-ex1.c: Include <stdlib.h>.
7217         * manual/examples/argp-ex2.c: Likewise.
7218         * manual/examples/argp-ex3.c: Likewise.
7219
7220 2012-02-16  Richard Henderson  <rth@redhat.com>
7221
7222         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
7223         * sysdeps/s390/s390-32/initfini.c: Remove.
7224         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
7225         * sysdeps/s390/s390-64/initfini.c: Remove.
7226
7227 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7228
7229         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
7230         compiler output for sysdeps/generic/initfini.c.
7231         * sysdeps/sh/elf/initfini.c: Remove file.
7232
7233 2012-02-16  David S. Miller  <davem@davemloft.net>
7234
7235         [BZ #11494]
7236         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
7237
7238         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
7239         * sysdeps/sparc/crti.S: New file.
7240         * sysdeps/sparc/crtn.S: New file.
7241         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
7242         * sysdeps/sparc/sparc64/Makefile: Likewise.
7243
7244 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
7245
7246         [BZ #3335]
7247         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
7248
7249 2012-02-15  Roland McGrath  <roland@hack.frob.com>
7250
7251         [BZ #4822]
7252         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
7253
7254         * mach/devstream.c (cookie_io_functions_t): Macro removed.
7255         (write, read, close): Likewise.
7256         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7257
7258 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
7259
7260         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
7261         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
7262         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
7263         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
7264         <bits/signalfd.h>.
7265         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
7266         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7267         bits/signalfd.h.
7268
7269 2012-02-14  Marek Polacek  <polacek@redhat.com>
7270
7271         * sysdeps/x86_64/crti.S: New file.
7272         * sysdeps/x86_64/crtn.S: New file.
7273         * sysdeps/x86_64/elf/initfini.c: Remove file.
7274
7275 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7276
7277         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
7278         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
7279         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
7280         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
7281         <bits/inotify.h>.
7282         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
7283         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7284         bits/inotify.h.
7285
7286 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7287
7288         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
7289         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
7290         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
7291         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
7292         <bits/eventfd.h>.
7293         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
7294         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7295         bits/eventfd.h.
7296
7297 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
7298
7299         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
7300         __feraiseexcept instead of feraiseexcept.
7301
7302         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
7303         nanosleep invocations.
7304         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
7305         strings, and add error checking for a nanosleep invocations.
7306
7307 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7308
7309         Replace FSF snail mail address with URLs, as per GNU coding standards.
7310         Most of the snail mail addresses were wrong anyway, and omitting
7311         them makes the source code easier to maintain.  Almost all of the
7312         changes are to license notices and to locale LC_IDENTIFICATION
7313         addresses, except for this one:
7314         * manual/libc.texinfo: In "Published by", give the FSF's URL,
7315         not its snail mail address.
7316
7317 2012-02-09  Richard Henderson  <rth@twiddle.net>
7318
7319         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
7320         of kernel-features.h.
7321
7322         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
7323
7324 2012-02-08  Marek Polacek  <polacek@redhat.com>
7325
7326         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
7327         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
7328         * sysdeps/gnu/_G_config.h: Likewise.
7329         * sysdeps/generic/_G_config.h: Likewise.
7330
7331 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
7332
7333         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
7334         tests.
7335         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7336
7337         * sysdeps/powerpc/powerpc32/crti.S: New file.
7338         * sysdeps/powerpc/powerpc32/crtn.S: New file.
7339         * sysdeps/powerpc/powerpc64/crti.S: New file.
7340         * sysdeps/powerpc/powerpc64/crtn.S: New file.
7341
7342         * Makeconfig (have-initfini): Don't set.
7343         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
7344         * configure.in (nopic_initfini): Don't substitute.
7345         * config.h.in (HAVE_INITFINI): Don't #undef.
7346         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
7347         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
7348
7349 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
7350
7351         Support crti.S and crtn.S provided directly by architectures.
7352         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
7353         [crti.S in sysdirs] (omit-deps): Likewise.
7354         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
7355         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
7356         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
7357         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
7358         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
7359         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
7360         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
7361         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
7362         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
7363         compiler output for sysdeps/generic/initfini.c.
7364         * sysdeps/i386/elf/Makefile: Remove file.
7365         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
7366
7367 2012-02-07  Marek Polacek  <polacek@redhat.com>
7368
7369         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
7370         * sysdeps/gnu/_G_config.h: Likewise.
7371         * sysdeps/mach/hurd/_G_config.h: Likewise.
7372
7373 2012-02-07  Marek Polacek  <polacek@redhat.com>
7374
7375         * math/Makefile (tests): Add tst-CMPLX2.
7376         * math/tst-CMPLX2.c: New file.
7377
7378 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
7379
7380         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7381
7382         * math/libm-test.inc (jn_test): Add missing L suffix.
7383
7384 2012-02-06  Marek Polacek  <polacek@redhat.com>
7385
7386         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
7387         * sysdeps/i386/fpu/e_powf.S: Likewise.
7388         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7389         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7390         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7391         * sysdeps/i386/fpu/e_pow.S: Likewise.
7392         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
7393         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7394         * sysdeps/i386/fpu/s_expm1.S: Likewise.
7395         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
7396         * sysdeps/i386/fpu/e_log2.S: Likewise.
7397         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7398         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7399         * sysdeps/i386/fpu/e_powl.S: Likewise.
7400         * sysdeps/i386/fpu/s_log1p.S: Likewise.
7401         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7402         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
7403         * sysdeps/i386/fpu/e_logl.S: Likewise.
7404         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
7405         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
7406         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
7407         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
7408         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7409         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7410         * sysdeps/i386/fpu/e_log.S: Likewise.
7411         * sysdeps/i386/fpu/s_cexp.S: Likewise.
7412         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7413         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
7414         * sysdeps/i386/fpu/e_logf.S: Likewise.
7415         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7416         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7417         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
7418         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
7419         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7420         * sysdeps/i386/fpu/e_log10.S: Likewise.
7421         * sysdeps/i386/fpu/s_frexp.S: Likewise.
7422         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7423         * sysdeps/i386/fpu/s_asinh.S: Likewise.
7424         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
7425         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7426         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
7427         * sysdeps/i386/asm-syntax.h: Likewise.
7428         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7429         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7430         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7431         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
7432         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
7433         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7434         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
7435         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
7436         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7437         * sysdeps/powerpc/sysdep.h: Likewise.
7438         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7439         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7440
7441 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7442
7443         [BZ #411]
7444         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
7445
7446 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7447
7448         * sysdeps/i386/sysdep.h: Include <features.h>.
7449         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
7450         version.
7451
7452 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
7453
7454         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
7455         Define.
7456         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
7457         LOAD_PIC_REG_STR.
7458
7459 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7460
7461         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
7462         (SETUP_PIC_REG): Use GET_PC_THUNK.
7463         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
7464         macro.
7465
7466 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7467
7468         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
7469         for non-PIC compilation.
7470         (SETUP_PIC_REG): Add .p2align directive.
7471         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
7472         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
7473         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7474         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7475         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
7476         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7477         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
7478         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
7479         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7480         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7481         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7482         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7483         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7484         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7485         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7486         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7487         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7488         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7489         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7490         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7491         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7492         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7493         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7494         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7495         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
7496         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
7497         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7498         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7499         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7500         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7501         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7502         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7503         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7504         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7505         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7506         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7507         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7508         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7509         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7510         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7511         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7512
7513 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7514
7515         * math/tst-CMPLX.c: Include <stdio.h>.
7516
7517 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
7518
7519         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
7520         float.
7521         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7522         * sysdeps/sparc/bits/mathdef.h: Likewise.
7523
7524 2012-01-31  Marek Polacek  <polacek@redhat.com>
7525
7526         * libio/libio.h: Don't define _PARAMS.
7527         * locale/programs/config.h: Don't define PARAMS.
7528         * stdlib/strtol_l.c: Likewise.
7529         (__strtol_l): Remove PARAMS from the prototype.
7530
7531 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
7532
7533         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
7534         names.  Just use the correct names.  Remove unnecessary wrapper
7535         functions.
7536         * malloc/arena.c: Likewise.
7537         * malloc/hooks.c: Likewise.
7538
7539         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
7540         ARENA_TEST says not to.  Simplify test for creation of a new arena.
7541         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
7542
7543 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
7544
7545         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
7546         into tail calls.
7547         (update_get_addr): New function.
7548         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
7549         GET_ADDR_MODULE parameter.
7550
7551 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7552
7553         * crypt/cert.c: Remove __STDC__ conditionals.
7554         * crypt/crypt-entry.c: Likewise.
7555         * crypt/crypt_util.c: Likewise.
7556         * libio/filedoalloc.c: Likewise.
7557         * libio/fileops.c: Likewise.
7558         * libio/genops.c: Likewise.
7559         * libio/iofclose.c: Likewise.
7560         * libio/iofdopen.c: Likewise.
7561         * libio/iofopen.c: Likewise.
7562         * libio/iofopen64.c: Likewise.
7563         * libio/iogetdelim.c: Likewise.
7564         * libio/iopopen.c: Likewise.
7565         * libio/obprintf.c: Likewise.
7566         * libio/oldfileops.c: Likewise.
7567         * libio/oldiofclose.c: Likewise.
7568         * libio/oldiofdopen.c: Likewise.
7569         * libio/oldiofopen.c: Likewise.
7570         * libio/oldiopopen.c: Likewise.
7571         * libio/wfiledoalloc.c: Likewise.
7572         * libio/wgenops.c: Likewise.
7573         * locale/programs/xmalloc.c: Likewise.
7574         * misc/syslog.c: Likewise.
7575         * stdio-common/xbug.c: Likewise.
7576         * string/memchr.c: Likewise.
7577         * string/memcmp.c: Likewise.
7578         * string/memrchr.c: Likewise.
7579         * string/rawmemchr.c: Likewise.
7580         * sysdeps/posix/getcwd.c: Likewise.
7581         * time/strftime_l.c: Likewise.
7582
7583 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7584
7585         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
7586         * config.make.in (config-cflags-sse2avx): Define.
7587         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
7588         Fix typo.
7589
7590 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
7591
7592         * scripts/config.guess: Update from upstream config git repository.
7593         * scripts/config.sub: Likewise.
7594
7595 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
7596
7597         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
7598         (EM_NUM): Update.
7599         (R_TILEPRO_*, R_TILEGX_*): New macros.
7600
7601         * scripts/firstversions.awk: Fix bug in version range handling.
7602
7603         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
7604
7605         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
7606
7607         * include/sys/epoll.h: New file.
7608         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
7609         libc_hidden_def.
7610
7611 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
7612
7613         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
7614         Avoid unnecessary __WORDSIZE == 64 test.
7615         (fmaxf): Use VEX format if possible.
7616         (fmax): Likewise.
7617         (fminf): Likewise.
7618         (fmin): Likewise.
7619
7620         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
7621         * math/math_private.h: Remove libc_fegetround* and
7622         libc_fesetround*.
7623         * sysdeps/i386/configure.in: Check for -msse2avx.
7624         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
7625         also if SSE2AVX is defined.
7626         Remove libc_fegetround* and libc_fesetround*.
7627         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
7628         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
7629         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
7630         of HAS_YMM_USABLE.
7631         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7632         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7633         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7634         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7635         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7636
7637         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
7638
7639 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7640
7641         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
7642         size is not set.
7643         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7644
7645 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
7646
7647         [BZ #13618]
7648         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
7649         relocation.
7650         * Makeconfig (libm): Define.
7651         * elf/Makefile: Add rules to build and run tst-relsort1.
7652         * elf/tst-relsort1.c: New file.
7653         * elf/tst-relsort1mod1.c: New file.
7654         * elf/tst-relsort1mod2.c: New file.
7655
7656 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
7657
7658         * math/s_ldexp.c: Remove __STDC__ conditionals.
7659         * math/s_ldexpf.c: Likewise.
7660         * math/s_ldexpl.c: Likewise.
7661         * math/s_nextafter.c: Likewise.
7662         * math/s_nexttowardf.c: Likewise.
7663         * math/s_significand.c: Likewise.
7664         * math/s_significandf.c: Likewise.
7665         * math/s_significandl.c: Likewise.
7666         * math/w_jnl.c: Likewise.
7667         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7668         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7669         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7670         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7671         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7672         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7673         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
7674         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7675         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7676         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7677         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7678         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7679         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7680         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7681         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7682         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7683         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7684         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7685         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7686         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7687         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7688         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7689         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7690         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7691         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7692         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7693         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7694         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7695         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7696         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7697         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7698         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7699         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7700         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7701         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7702         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7703         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7704         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7705         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7706         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7707         * sysdeps/ieee754/k_standard.c: Likewise.
7708         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7709         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7710         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7711         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7712         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7713         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7714         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7715         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7716         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7717         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7718         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7719         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7720         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7721         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7722         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7723         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7724         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7725         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7726         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7727         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7728         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7729         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7730         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7731         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7732         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7733         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7734         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7735         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7736         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7737         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7738         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7739         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7740         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7741         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7742         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7743         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7744         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7745         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7746         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7747         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7748         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7749         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7750         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7751         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7752         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7753         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
7754         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7755         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7756         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7757         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7758         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7759         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7760         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7761         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7762         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7763         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7764         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7765         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7766         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7767         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7768         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7769         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7770         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7771         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7772         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7773         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7774         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7775         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7776         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7777         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7778         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7779         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7780         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7781         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7782         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7783         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7784         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7785         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7786         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7787         * sysdeps/ieee754/s_matherr.c: Likewise.
7788         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7789         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7790         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7791         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7792
7793 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7794
7795         * crypt/md5.h: Remove __STDC__ conditionals.
7796         * libio/libioP.h: Likewise.
7797         * locale/programs/config.h: Likewise.
7798         * sysdeps/generic/sysdep.h: Likewise.
7799         * sysdeps/i386/asm-syntax.h: Likewise.
7800         * sysdeps/s390/asm-syntax.h: Likewise.
7801         * sysdeps/unix/sysdep.h: Likewise.
7802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7804
7805 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7806
7807         * libio/libio.h: Remove __STDC__ conditionals.
7808         * malloc/obstack.h: Likewise.
7809         * math/complex.h: Likewise.
7810         * math/math.h: Likewise.
7811         * sysdeps/generic/_G_config.h: Likewise.
7812         * sysdeps/gnu/_G_config.h: Likewise.
7813         * sysdeps/mach/hurd/_G_config.h: Likewise.
7814         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7815         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7816         * sysdeps/sparc/bits/mathdef.h: Likewise.
7817
7818 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
7819
7820         [BZ #13583]
7821         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
7822         Clean up HAS_* macros.
7823         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
7824         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
7825         possible.
7826         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
7827         HAS_AVX.
7828         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7829         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7830         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7831         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7832         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7833
7834 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
7835
7836         * elf/tst-unique3.cc (gets): Remove declaration.
7837         * elf/tst-unique3lib.cc (gets): Likewise.
7838         * elf/tst-unique3lib2.cc (gets): Likewise.
7839         * elf/tst-unique4.cc (gets): Likewise.
7840
7841 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
7842
7843         * include/stdio.h: Add C++ protection.  Add gets declarations and
7844         definitions.
7845         * debug/tst-chk1.c: Don't declare gets here.
7846         * stdio-common/tst-gets.c: Likewise.
7847
7848 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7849
7850         * posix/glob: Remove directory.
7851
7852 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7853
7854         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
7855
7856 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
7857
7858         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
7859         of the non-standard EPFNOSUPPORT.
7860
7861 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7862
7863         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
7864         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
7865         ANYWHERE set to 1 only on KERN_NO_SPACE error.
7866
7867 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
7868
7869         * wcsmbs/uchar.h: Test __STDC_VERSION__.
7870
7871 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
7872
7873         * nscd/aicache.c (addhstaiX): Do not cache negative results of
7874         transient errors.
7875         * nscd/grpcache.c (cache_addgr): Likewise.
7876         * nscd/hstcache.c (cache_addhst): Likewise.
7877         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7878         * nscd/pwdcache.c (cache_addpw): Likewise.
7879         * nscd/servicescache.c (cache_addserv): Likewise.
7880
7881 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
7882
7883         * malloc/malloc.c: Various cleanups.
7884         * malloc/hooks.c: Likewise.
7885
7886         * stdlib/Makefile (tests): Add bug-fmtmsg1.
7887         * stdlib/bug-fmtmsg1.c: New file.
7888
7889         * stdlib/fmtmsg.c (init): Add missing unlock.
7890         Patch by Peng Haitao <penght@cn.fujitsu.com>.
7891
7892 2012-01-12  Marek Polacek  <polacek@redhat.com>
7893
7894         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
7895         and _GNU_SOURCE.
7896
7897 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7898
7899         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
7900         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
7901         macro to ensure uniqueness of label name.
7902         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7903         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7904
7905 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
7906
7907         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
7908
7909         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
7910         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7911         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7912         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
7913
7914 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
7915
7916         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
7917
7918         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
7919         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7920         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7921
7922         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
7923
7924         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
7925         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7926         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7927         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
7928
7929         * math/bits/math-finite.h: Add ldexp support.
7930
7931 2012-01-10  Marek Polacek  <polacek@redhat.com>
7932
7933         * locale/programs/localedef.h (show_archive_content): Add noreturn
7934         attribute.
7935
7936 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
7937
7938         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
7939
7940 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7941
7942         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
7943
7944         * io/Makefile (headers): Add bits/poll2.h.
7945
7946 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
7947
7948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
7949         typo #include statement.
7950
7951 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7952
7953         * include/sys/cdefs.h: Define __attribute_alloc_size.
7954         * catgets/gencat.c: Add alloc_size attribute and apply consistently
7955         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
7956         * elf/pldd.c: Likewise.
7957         * iconv/iconv_charmap.c: Likewise.
7958         * iconv/iconvconfig.c: Likewise.
7959         * iconv/strtab.c: Likewise.
7960         * locale/programs/locale.c: Likewise.
7961         * locale/programs/localedef.h: Likewise.
7962         * locale/programs/simple-hash.c: Likewise.
7963         * nscd/nscd.h: Likewise.
7964         * nss/makedb.c: Likewise.
7965         * sysdeps/generic/ldconfig.h: Likewise.
7966         * locale/programs/localedef.c: Remove xmalloc prototype.
7967         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
7968
7969 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7970
7971         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
7972         appropriate.
7973
7974 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7975
7976         * math/Makefile (tests): Add tst-CMPLX.
7977         * math/tst-CMPLX.c: New file.
7978
7979         * math/complex.h (CMPLXL): Fix typo.
7980
7981         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
7982         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
7983         GLIBC_2.16.
7984         * debug/tst-chk1.c: Add poll and ppoll tests.
7985         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
7986         * include/sys/poll.h: Add hidden proto for ppoll.
7987         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
7988         * sysdeps/mach/hurd/ppoll.c: Likewise.
7989         * io/ppoll.c: Likewise.
7990         * debug/poll_chk.c: New file.
7991         * debug/ppoll_chk.c: New file.
7992         * include/bits/poll2.h: New file.
7993         * io/bits/poll2.h: New file.
7994
7995         [BZ #1350]
7996         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
7997
7998         * configure.in: static is always set to yes.  Remove.
7999         * config.make.in: Don't set build-static.
8000         * Makeconfig: Remove use of build-static.
8001         * dlfcn/Makefile: Likewise.
8002         * elf/Makefile: Likewise.
8003         * math/Makefile: Likewise.
8004         * misc/Makefile: Likewise.
8005         * nptl/Makefile: Likewise.
8006         * sysdeps/mach/hurd/Makefile: Likewise.
8007
8008         * configure.in: PWD_P is not used anymore.
8009         * config.make.in: Remove PWD_P entry.
8010
8011         * configure.in: Remove last remnants of RANLIB.
8012         No need to check for signed size_t anymore.
8013         Don't set libc_commonpagesize and libc_relro_required here for Alpha
8014         and IA-64.
8015         Remove __builtin_expect test because we require at least gcc 3.4.
8016         * aclocal.m4: Likewise.
8017
8018         * wcsmbs/mbrtoc16.c: Implement using towc function.
8019         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
8020         * wcsmbs/wcsmbsload.c: Likewise.
8021         * iconv/gconv_simple.c: Likewise.
8022         * iconv/gconv_int.h: Likewise.
8023         * iconv/gconv_builtin.h: Likewise.
8024         * iconv/iconv_prog.c: Remove CHAR16 handling.
8025
8026         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
8027
8028         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
8029
8030         * configure.in: Remove --with-elf and --enable-bounded options.
8031         Dont set base_machine for ia64.  More non-ELF conditions removed.
8032         Remove testing and setting of leading underscore information.
8033         * config.make.in (build-bounded): Set to no.
8034         * config.h.in: Remove NO_UNDERSCORES entry.
8035         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
8036         them.
8037         * csu/start.c: Remove !NO_UNDERSCORE code.
8038         * locale/localeinfo.h: Likewise.
8039         * sysdeps/generic/machine-gmon.h: Likewise.
8040         * sysdeps/generic/sysdep.h: Likewise.
8041         * sysdeps/i386/sysdep.h: Likewise.
8042         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8043         * sysdeps/mach/sysdep.h: Likewise.
8044         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8045         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8046         * sysdeps/sh/sysdep.h: Likewise.
8047         * sysdeps/sparc/sparc32/alloca.S: Likewise.
8048         * sysdeps/unix/i386/sysdep.S: Likewise.
8049         * sysdeps/unix/sparc/start.c: Likewise.
8050         * sysdeps/unix/sparc/sysdep.S: Likewise.
8051         * sysdeps/unix/sparc/sysdep.h: Likewise.
8052         * sysdeps/unix/start.c: Likewise.
8053         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8054         * sysdeps/x86_64/sysdep.h: Likewise.
8055
8056 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
8057
8058         [BZ #13553]
8059         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
8060         for non-gcc.
8061         * argp/argp-fmtstream.h: Use const instead __const.
8062         * argp/argp.h: Likewise.
8063         * assert/assert.h: Likewise.
8064         * bits/fenv.h: Likewise.
8065         * bits/sched.h: Likewise.
8066         * bits/sigset.h: Likewise.
8067         * bits/sigthread.h: Likewise.
8068         * catgets/nl_types.h: Likewise.
8069         * conform/data/pthread.h-data: Likewise.
8070         * crypt/crypt-private.h: Likewise.
8071         * crypt/crypt.h: Likewise.
8072         * crypt/crypt_util.c: Likewise.
8073         * ctype/ctype.h: Likewise.
8074         * debug/execinfo.h: Likewise.
8075         * debug/mbsnrtowcs_chk.c: Likewise.
8076         * debug/mbsrtowcs_chk.c: Likewise.
8077         * debug/wcsnrtombs_chk.c: Likewise.
8078         * debug/wcsrtombs_chk.c: Likewise.
8079         * debug/wcstombs_chk.c: Likewise.
8080         * dirent/dirent.h: Likewise.
8081         * dlfcn/dlfcn.h: Likewise.
8082         * elf/neededtest4.c: Likewise.
8083         * grp/grp.h: Likewise.
8084         * gshadow/gshadow.h: Likewise.
8085         * iconv/gconv.h: Likewise.
8086         * iconv/gconv_int.h: Likewise.
8087         * iconv/gconv_simple.c: Likewise.
8088         * iconv/iconv.h: Likewise.
8089         * iconv/loop.c: Likewise.
8090         * iconv/skeleton.c: Likewise.
8091         * include/aio.h: Likewise.
8092         * include/aliases.h: Likewise.
8093         * include/argz.h: Likewise.
8094         * include/arpa/inet.h: Likewise.
8095         * include/assert.h: Likewise.
8096         * include/dirent.h: Likewise.
8097         * include/dlfcn.h: Likewise.
8098         * include/execinfo.h: Likewise.
8099         * include/fcntl.h: Likewise.
8100         * include/fenv.h: Likewise.
8101         * include/glob.h: Likewise.
8102         * include/grp.h: Likewise.
8103         * include/libintl.h: Likewise.
8104         * include/mntent.h: Likewise.
8105         * include/netdb.h: Likewise.
8106         * include/pwd.h: Likewise.
8107         * include/rpc/netdb.h: Likewise.
8108         * include/sched.h: Likewise.
8109         * include/search.h: Likewise.
8110         * include/shadow.h: Likewise.
8111         * include/signal.h: Likewise.
8112         * include/stdio.h: Likewise.
8113         * include/stdlib.h: Likewise.
8114         * include/string.h: Likewise.
8115         * include/sys/socket.h: Likewise.
8116         * include/sys/stat.h: Likewise.
8117         * include/sys/statfs.h: Likewise.
8118         * include/sys/statvfs.h: Likewise.
8119         * include/sys/syslog.h: Likewise.
8120         * include/sys/time.h: Likewise.
8121         * include/sys/uio.h: Likewise.
8122         * include/time.h: Likewise.
8123         * include/unistd.h: Likewise.
8124         * include/utmp.h: Likewise.
8125         * include/wchar.h: Likewise.
8126         * include/wctype.h: Likewise.
8127         * inet/aliases.h: Likewise.
8128         * inet/arpa/inet.h: Likewise.
8129         * inet/netinet/ether.h: Likewise.
8130         * inet/netinet/in.h: Likewise.
8131         * intl/libintl.h: Likewise.
8132         * io/bits/fcntl2.h: Likewise.
8133         * io/fcntl.h: Likewise.
8134         * io/ftw.h: Likewise.
8135         * io/sys/poll.h: Likewise.
8136         * io/sys/stat.h: Likewise.
8137         * io/sys/statfs.h: Likewise.
8138         * io/sys/statvfs.h: Likewise.
8139         * io/utime.h: Likewise.
8140         * libio/bits/stdio.h: Likewise.
8141         * libio/bits/stdio2.h: Likewise.
8142         * libio/libio.h: Likewise.
8143         * libio/libioP.h: Likewise.
8144         * libio/stdio.h: Likewise.
8145         * locale/lc-ctype.c: Likewise.
8146         * locale/locale.h: Likewise.
8147         * login/utmp.h: Likewise.
8148         * malloc/arena.c: Likewise.
8149         * malloc/malloc.c: Likewise.
8150         * malloc/malloc.h: Likewise.
8151         * malloc/mcheck.c: Likewise.
8152         * malloc/mtrace.c: Likewise.
8153         * math/bits/mathcalls.h: Likewise.
8154         * math/fenv.h: Likewise.
8155         * math/math_private.h: Likewise.
8156         * misc/bits/error.h: Likewise.
8157         * misc/bits/syslog.h: Likewise.
8158         * misc/err.h: Likewise.
8159         * misc/error.h: Likewise.
8160         * misc/fstab.h: Likewise.
8161         * misc/mntent.h: Likewise.
8162         * misc/regexp.h: Likewise.
8163         * misc/search.h: Likewise.
8164         * misc/sgtty.h: Likewise.
8165         * misc/sys/mman.h: Likewise.
8166         * misc/sys/syslog.h: Likewise.
8167         * misc/sys/uio.h: Likewise.
8168         * misc/sys/xattr.h: Likewise.
8169         * misc/ttyent.h: Likewise.
8170         * nis/rpcsvc/ypclnt.h: Likewise.
8171         * nss/nss.h: Likewise.
8172         * posix/bits/unistd.h: Likewise.
8173         * posix/fnmatch.h: Likewise.
8174         * posix/glob.h: Likewise.
8175         * posix/sched.h: Likewise.
8176         * posix/spawn.h: Likewise.
8177         * posix/sys/wait.h: Likewise.
8178         * posix/unistd.h: Likewise.
8179         * posix/wordexp.h: Likewise.
8180         * pwd/pwd.h: Likewise.
8181         * resolv/netdb.h: Likewise.
8182         * resource/sys/resource.h: Likewise.
8183         * rt/aio.h: Likewise.
8184         * rt/bits/mqueue2.h: Likewise.
8185         * rt/mqueue.h: Likewise.
8186         * shadow/shadow.h: Likewise.
8187         * signal/signal.h: Likewise.
8188         * socket/send.c: Likewise.
8189         * socket/sendto.c: Likewise.
8190         * socket/sys/socket.h: Likewise.
8191         * stdio-common/printf.h: Likewise.
8192         * stdlib/bits/stdlib.h: Likewise.
8193         * stdlib/fmtmsg.h: Likewise.
8194         * stdlib/monetary.h: Likewise.
8195         * stdlib/stdlib.h: Likewise.
8196         * stdlib/ucontext.h: Likewise.
8197         * streams/stropts.h: Likewise.
8198         * string/argz.h: Likewise.
8199         * string/bits/string2.h: Likewise.
8200         * string/string.h: Likewise.
8201         * string/strings.h: Likewise.
8202         * sunrpc/rpc/auth.h: Likewise.
8203         * sunrpc/rpc/auth_des.h: Likewise.
8204         * sunrpc/rpc/clnt.h: Likewise.
8205         * sunrpc/rpc/netdb.h: Likewise.
8206         * sunrpc/rpc/pmap_clnt.h: Likewise.
8207         * sunrpc/rpc/xdr.h: Likewise.
8208         * sysdeps/generic/inttypes.h: Likewise.
8209         * sysdeps/generic/net/if.h: Likewise.
8210         * sysdeps/generic/sys/swap.h: Likewise.
8211         * sysdeps/gnu/net/if.h: Likewise.
8212         * sysdeps/gnu/utmpx.h: Likewise.
8213         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
8214         * sysdeps/i386/i486/bits/string.h: Likewise.
8215         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
8216         * sysdeps/s390/bits/string.h: Likewise.
8217         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
8218         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
8219         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8220         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
8221         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8222         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8223         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8224         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
8225         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
8226         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
8227         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
8228         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8229         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
8230         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8231         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8232         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
8233         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
8234         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8235         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
8236         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
8237         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8238         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
8239         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
8240         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
8241         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
8242         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
8243         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
8244         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8245         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
8246         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
8247         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
8248         * sysvipc/sys/ipc.h: Likewise.
8249         * sysvipc/sys/msg.h: Likewise.
8250         * sysvipc/sys/sem.h: Likewise.
8251         * sysvipc/sys/shm.h: Likewise.
8252         * termios/termios.h: Likewise.
8253         * time/sys/time.h: Likewise.
8254         * time/time.h: Likewise.
8255         * wcsmbs/bits/wchar2.h: Likewise.
8256         * wcsmbs/uchar.h: Likewise.
8257         * wcsmbs/wchar.h: Likewise.
8258         * wctype/wctype.h: Likewise.
8259
8260         [BZ #13551]
8261         * Makeconfig: Remove all but ELF support including AIX support.
8262         * Makerules: Likewise.
8263         * config.h.in: Likewise.
8264         * config.make.in: Likewise.
8265         * configure: Likewise.
8266         * configure.in: Likewise.
8267         * csu/Makefile: Likewise.
8268         * csu/version.c: Likewise.
8269         * debug/Makefile: Likewise.
8270         * dlfcn/Makefile: Likewise.
8271         * elf/Makefile: Likewise.
8272         * extra-lib.mk: Likewise.
8273         * iconv/Makefile: Likewise.
8274         * include/libc-symbols.h: Likewise.
8275         * include/shlib-compat.h: Likewise.
8276         * resolv/Makefile: Likewise.
8277         * resolv/res_libc.c: Likewise.
8278         * rt/Makefile: Likewise.
8279         * sysdeps/i386/asm-syntax.h: Likewise.
8280         * sysdeps/i386/sysdep.h: Likewise.
8281         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8282         * sysdeps/mach/sysdep.h: Likewise.
8283         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
8284         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
8285         * sysdeps/s390/asm-syntax.h: Likewise.
8286         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8287         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8288         * sysdeps/sh/sysdep.h: Likewise.
8289         * sysdeps/unix/sparc/sysdep.h: Likewise.
8290         * sysdeps/wordsize-32/divdi3.c: Likewise.
8291         * sysdeps/x86_64/sysdep.h: Likewise.
8292
8293         * argp/Versions: Remove _argp_unlock_xxx.
8294
8295         [BZ #13559]
8296         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
8297         * abilist/libBrokenLocale.abilist: Likewise.
8298         * abilist/libanl.abilist: Likewise.
8299         * abilist/libc.abilist: Likewise.
8300         * abilist/libcrypt.abilist: Likewise.
8301         * abilist/libdl.abilist: Likewise.
8302         * abilist/libm.abilist: Likewise.
8303         * abilist/libnsl.abilist: Likewise.
8304         * abilist/libpthread.abilist: Likewise.
8305         * abilist/libresolv.abilist: Likewise.
8306         * abilist/librt.abilist: Likewise.
8307         * abilist/libthread_db.abilist: Likewise.
8308         * abilist/libutil.abilist: Likewise.
8309         * abilist/libnss_db.abilist: New file.
8310
8311         * scripts/abilist.awk: Add support for indirect functions.
8312
8313         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
8314
8315         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
8316
8317         * shlib-versions: Remove entries for ports architectures.
8318
8319         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
8320         files in ports.
8321         * elf/stackguard-macros.h: Remove support for IA-64.
8322         * elf/tst-auditmod1.c: Likewise.
8323         * sysdeps/generic/ldsodefs.h: Likewise.
8324
8325         * sysdeps/unix/sysv/linux/configure.in: Ports should define
8326         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
8327         configure files.
8328
8329         [BZ #13552]
8330         * configure.in: Remove --enable-omitfp support.
8331         * FAQ.in: Adjust.
8332         * config.make.in: Likewise.
8333         * Makeconfig: Likewise.
8334         * manual/install.texi: Likewise.
8335
8336         In case anyone cares, the IA-64 architecture could move to ports.
8337         * sysdeps/ia64/*: Removed.
8338         * sysdeps/unix/sysv/linux/ia64/*: Removed.
8339         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
8340
8341         [BZ #13555]
8342         * configure.in: Remove entries for unsupported architectures.
8343
8344         [BZ #13533]
8345         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
8346         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
8347         routines.
8348         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
8349         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
8350         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
8351         fall back to using wcrtomb.
8352         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
8353         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
8354         renaming.
8355         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
8356         * wcsmbs/tst-c16c32-1.c: New file.
8357
8358         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
8359         local variable.
8360
8361         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
8362
8363         * elf/tst-unique3.cc: Add explicit declaration of gets.
8364         * elf/tst-unique3lib.cc: Likewise.
8365         * elf/tst-unique3lib2.cc: Likewise.
8366         * elf/tst-unique4.cc: Likewise.
8367
8368         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
8369
8370 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
8371
8372         [BZ #13566]
8373         * assert/assert.h (static_assert): Don't define for C++.
8374         * libio/stdio.h (gets): Do declare for C++ <= C++11.
8375         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
8376
8377 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
8378
8379         * iconv/loop.c (single loop): Fix assertion in storing of
8380         remaining bytes.
8381
8382         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
8383
8384 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
8385
8386         * posix/getconf.c: Update copyright year.
8387         * nss/getent.c: Likewise.
8388         * nss/makedb.c: Likewise.
8389         * iconv/iconvconfig.c: Likewise.
8390         * iconv/iconv_prog.c: Likewise.
8391         * elf/ldconfig.c: Likewise.
8392         * elf/pldd.c: Likewise.
8393         * elf/sotruss.ksh: Likewise.
8394         * catgets/gencat.c: Likewise.
8395         * csu/version.c: Likewise.
8396         * elf/ldd.bash.in: Likewise.
8397         * elf/sprof.c (print_version): Likewise.
8398         * locale/programs/locale.c: Likewise.
8399         * locale/programs/localedef.c: Likewise.
8400         * login/programs/pt_chown.c: Likewise.
8401         * nscd/nscd.c (print_version): Likewise.
8402         * debug/xtrace.sh: Likewise.
8403         * malloc/memusage.sh: Likewise.
8404         * malloc/mtrace.pl: Likewise.
8405         * debug/catchsegv.sh: Likewise.
8406
8407 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
8408
8409         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
8410         pure attribute.
8411
8412 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
8413
8414         [BZ #13533]
8415         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
8416         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
8417         transformations.
8418         * iconv/gconv_int.h: Likewise.
8419         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
8420         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
8421         from libc for GLIBC_2.16.
8422         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
8423         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
8424         * wcsmbs/uchar.h: Really define mbstate_t.
8425         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
8426         * wcsmbs/c16rtomb.c: New file.
8427         * wcsmbs/mbrtoc16.c: New file.
8428         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
8429         for C/POSIX locale.
8430         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
8431         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
8432
8433         * wcsmbs/wchar.h: Add missing __restrict.
8434
8435 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8436
8437         [BZ #13532]
8438         * time/Makefile (routines): Add timespec_get.
8439         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
8440         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
8441         timespec for ISO C11.
8442         * time/timespec_get.c: New file.
8443         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
8444         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
8445
8446         [BZ #13531]
8447         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
8448         * stdlib/stdlib.h: Declare aligned_alloc.
8449         * Versions.def: Add GLIBC_2.16 for libc.
8450         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
8451
8452         [BZ 13527]
8453         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
8454         ISO C11.
8455
8456         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
8457         code.
8458
8459         [BZ #13528]
8460         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
8461
8462         [BZ #13529]
8463         * assert/assert.h (static_assert): Define.
8464
8465         * version.h: Update for 2.16 development version.
8466
8467         [BZ #13526]
8468         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
8469         _ISOC11_SOURCE.
8470
8471         * version.h (RELEASE): Bump for 2.15 release.
8472         * include/features.h (__GLIBC_MINOR__): Bump to 15.
8473
8474         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
8475         Patch by Marek Polacek <mpolacek@redhat.com>.
8476
8477         * bits/byteswap.h: Protect long long constants with __extension__.
8478         * sysdeps/i386/bits/byteswap.h: Likewise.
8479         * sysdeps/ia64/bits/byteswap.h: Likewise.
8480         * sysdeps/s390/bits/byteswap.h: Likewise.
8481         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8482
8483 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8484
8485         [BZ #13540]
8486         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
8487         destination buffer.
8488         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
8489
8490 2011-12-23  Marek Polacek  <polacek@redhat.com>
8491
8492         * elf/dl-addr.c (determine_info): Add inline keyword.
8493         * elf/tst-auditmod4b.c (check_avx): Likewise.
8494         * elf/tst-auditmod6b.c (check_avx): Likewise.
8495         * elf/tst-auditmod6c.c (check_avx): Likewise.
8496         * elf/tst-auditmod7b.c (check_avx): Likewise.
8497
8498 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8499
8500         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
8501         !__SSE_MATH__.
8502
8503 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8504
8505         [BZ #13540]
8506         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
8507         processing for last bytes.
8508
8509 2011-08-06  Bruno Haible  <bruno@clisp.org>
8510
8511         [BZ #13061]
8512         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
8513         U+0385, not to U+1FEE.
8514
8515         [BZ #13062]
8516         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
8517         entry for U+00A5 U+0301.
8518
8519 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8520
8521         [BZ #13166]
8522         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
8523         buffer for the output is too small.
8524
8525         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
8526         optimization.
8527
8528         [BZ #13185]
8529         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
8530         SSE flags if possible.
8531
8532 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8533
8534         [BZ #13540]
8535         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
8536         processing for last bytes.
8537
8538 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
8539
8540         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
8541         (syscall-list-default-options, syscall-list-default-condition)
8542         (syscall-list-includes): Define.
8543         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
8544         list of ABIs and options and #if conditions for each ABI.  Do not
8545         handle common syscalls between ABIs specially.
8546         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
8547         Remove.
8548         (syscall-list-variants, syscall-list-32bit-options)
8549         (syscall-list-32bit-condition, syscall-list-64bit-options)
8550         (syscall-list-64bit-condition): Define.
8551         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
8552         (syscall-list-variants, syscall-list-32bit-options)
8553         (syscall-list-32bit-condition, syscall-list-64bit-options)
8554         (syscall-list-64bit-condition): Define.
8555         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
8556         Remove.
8557         (syscall-list-variants, syscall-list-32bit-options)
8558         (syscall-list-32bit-condition, syscall-list-64bit-options)
8559         (syscall-list-64bit-condition): Define.
8560         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
8561         Remove.
8562         (syscall-list-variants, syscall-list-32bit-options)
8563         (syscall-list-32bit-condition, syscall-list-64bit-options)
8564         (syscall-list-64bit-condition): Define.
8565
8566 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8567
8568         * locale/iso-639.def: Add brx entry.
8569
8570         [BZ #13328]
8571         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
8572         Proposed by Mariusz_Cukr <marcukr@op.pl>.
8573
8574         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
8575         __feraiseexcept_renamed.
8576
8577 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8578
8579         [BZ #13538]
8580         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
8581         EPOLLET with unsigned values.
8582         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8583         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8584
8585         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
8586         to large cancellation.
8587         * math/s_cacoshf.c: Likewise.
8588         * math/s_cacoshl.c: Likewise.
8589
8590 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
8591
8592         [BZ #13305]
8593         [BZ #12786]
8594         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
8595         * math/s_cacoshf.c: Likewise.
8596         * math/s_cacoshl.c: Likewise.
8597
8598 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8599
8600         [BZ #13439]
8601         * iconv/gconv.h: Define __GCONV_SWAP.
8602         * iconvdata/unicode.c: The swap bit must be stored in __flags.
8603         * iconvdata/utf-16.c: Likewise.
8604         * iconvdata/utf-32.c: Likewise.
8605
8606 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
8607
8608         [BZ #13524]
8609         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
8610         numerator after shifting it by one limb.
8611
8612 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
8613
8614         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
8615         under [__USE_EXTERN_INLINES].
8616
8617 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8618
8619         [BZ #13446]
8620         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
8621
8622 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8623
8624         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
8625         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
8626         optimized code.
8627         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
8628         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
8629         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
8630         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
8631         for strncasecmp/strncasecmp_l compilation.
8632         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
8633         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
8634
8635 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
8636
8637         [BZ #13484]
8638         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
8639         of __asm__.
8640
8641 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8642
8643         [BZ #13506]
8644         * time/tzfile.c (__tzfile_read): Check values from file header.
8645
8646 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8647
8648         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
8649         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
8650         * powerpc/powerpc32/dl-start.S: Likewise.
8651         * powerpc/powerpc32/elf/start.S: Likewise.
8652         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8653         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
8654         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
8655         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
8656         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8657         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
8658         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
8659         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
8660         * powerpc/powerpc32/fpu/s_round.S: Likewise.
8661         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8662         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8663         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8664         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
8665         * powerpc/powerpc32/memset.S: Likewise.
8666         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8667         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8668         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8669         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8670         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8671         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
8672         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
8673         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
8674         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
8675         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
8676         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
8677         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8678         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8679
8680 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8681
8682         * math/libm-test.inc: Added more nearbyint tests.
8683         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
8684         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
8685         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
8686         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
8687
8688 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
8689
8690         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
8691         FD_CLOEXEC.
8692
8693 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8694
8695         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
8696         Add wcscpy-ssse3 wcscpy-c.
8697         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
8698         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
8699         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
8700         * sysdeps/x86_64/wcschr.S: New file.
8701         * sysdeps/x86_64/wcsrchr.S: New file.
8702         * string/test-strcmp.c: Remove checking of wcscmp function for
8703         wrong alignments.
8704         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
8705         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
8706         wcsrchr-sse2 wcsrchr-c.
8707         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
8708         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
8709         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
8710         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
8711         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
8712         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
8713         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
8714         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
8715         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
8716         * wcsmbc/wcschr.c (WCSCHR): New macro.
8717
8718 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8719
8720         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
8721         * wcsmbs/test-wcsrchr.c: New file.
8722         * string/test-strrchr.c: Add wcsrchr support.
8723         (WIDE): New macro.
8724         * wcsmbs/test-wcscpy.c: New file.
8725         * string/test-strcpy.c: Add wcscpy support.
8726         (WIDE): New macro.
8727
8728 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
8729
8730         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
8731         the inner loop.
8732
8733 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
8734
8735         [BZ #13472]
8736         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
8737
8738 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
8739
8740         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
8741         Minor optimizations.
8742
8743         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
8744         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
8745         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8746
8747 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
8748
8749         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
8750         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
8751         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
8752         for gcc to avoid warnings.
8753         * inet/Makefile (tests): Add tst-checks.
8754         * inet/tst-checks.c: New file.
8755
8756         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
8757         warning.
8758
8759         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
8760         __wmemcmp_sse2.
8761
8762         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
8763         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
8764
8765         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
8766
8767 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
8768
8769         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
8770         problem.
8771
8772         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
8773
8774 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
8775
8776         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
8777         conditional on GCC version.
8778         (__arch_compare_and_exchange_val_8_acq)
8779         (__arch_compare_and_exchange_val_16_acq)
8780         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
8781         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
8782         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
8783
8784 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
8785
8786         * sysdeps/sh/backtrace.c: New file.
8787
8788 2011-12-02  Andreas Schwab  <schwab@redhat.com>
8789
8790         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
8791         parenthesis.
8792
8793 2011-12-01  Andreas Schwab  <schwab@redhat.com>
8794
8795         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
8796         falling back to utime.
8797
8798 2011-11-30  Andreas Schwab  <schwab@redhat.com>
8799
8800         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
8801         expectations for float.
8802
8803 2011-11-29  Andreas Schwab  <schwab@redhat.com>
8804
8805         * locale/weight.h (findidx): Add parameter len.
8806         * locale/weightwc.h (findidx): Likewise.
8807         * posix/fnmatch_loop.c (FCT): Adjust caller.
8808         * posix/regcomp.c (build_equiv_class): Likewise.
8809         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
8810         * posix/regexec.c (check_node_accept_bytes): Likewise.
8811         * string/strcoll_l.c (STRCOLL): Likewise.
8812         * string/strxfrm_l.c (STRXFRM): Likewise.
8813
8814 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
8815
8816         * Makefile.in: Remove CVSOPT handling.
8817         * configure.in: Remove use of AC_REVISION.
8818         * iconvdata/Makefile (distribute): No need to filter out CVS.
8819         * scripts/list-sources.sh: Remove CVS, subversion and monotone
8820         handling.
8821
8822 2011-11-16  Andreas Schwab  <schwab@redhat.com>
8823
8824         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
8825         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
8826         [USE_AS_STRNCASECMP_L]: Likewise.
8827         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
8828         NO_TLS_DIRECT_SEG_REFS.
8829         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
8830         Fix argument offsets for non-PIC.
8831         [USE_AS_STRNCASECMP_L]: Likewise.
8832         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
8833         NO_TLS_DIRECT_SEG_REFS.
8834
8835 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8836
8837         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
8838         O_CLOEXEC.
8839         * locale/loadlocale.c (_nl_load_locale): Likewise.
8840
8841 2011-11-15  Andreas Schwab  <schwab@redhat.com>
8842
8843         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
8844         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
8845         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
8846         (SYSCALL_GETTIME): Set errno on error.
8847
8848         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
8849         count references to noai6ai_cached.
8850
8851 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8852
8853         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
8854
8855         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
8856         FD_CLOEXEC for /proc/self/maps.
8857
8858         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
8859         FD_CLOEXEC for /proc/meminfo.
8860
8861         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
8862         gai.conf.
8863
8864         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
8865         FD_CLOEXEC for given file.
8866
8867         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
8868
8869         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
8870         FD_CLOEXEC for /etc/hosts.
8871         (_gethtent): Likewise.
8872
8873         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
8874
8875         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
8876         cancellation and set FD_CLOEXEC for /etc/netgroup.
8877
8878         * nss/nss_files/files-key.c (search): Don't allow cancellation when
8879         reading /etc/publickey.
8880
8881         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
8882         allow cancellation when reading /etc/group.
8883
8884         * nss/nss_files/files-alias.c (internal_setent): Don't allow
8885         cancellation.
8886         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
8887
8888         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
8889         when using data file.
8890
8891         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
8892
8893         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
8894         (write_nis_obj): Use "c" and "e" in fopen.
8895
8896         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
8897
8898         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
8899
8900         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
8901
8902         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
8903
8904         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
8905         locale.alias.
8906
8907         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
8908
8909         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
8910
8911         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
8912
8913         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
8914         file parsing and set FD_CLOEXEC.
8915
8916 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8917
8918         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
8919
8920 2011-11-14  Andreas Schwab  <schwab@redhat.com>
8921
8922         * malloc/arena.c (arena_get2): Don't call reused_arena when
8923         _int_new_arena failed.
8924
8925 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8926
8927         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
8928         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
8929         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
8930         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8931         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8932         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
8933         to compile strcasecmp and strncasecmp.
8934         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
8935         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
8936
8937         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
8938
8939 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
8940
8941         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
8942         locale-defines.sym to gen-as-const-headers.
8943         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
8944         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
8945         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
8946         to compile strcasecmp and strncasecmp.
8947         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
8948         strcasecmp_l and strncasecmp_l.
8949         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
8950         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
8951         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
8952         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
8953         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
8954         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
8955         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
8956         * sysdeps/i386/i686/multiarch/strncase.S: New file.
8957         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
8958         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
8959         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
8960
8961 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
8962
8963         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
8964         result of SYSDEP_GETTIME_CPU to retval.
8965         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
8966         parameter list to macro.  Remove trailing semicolon.  Adjust users.
8967
8968         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
8969         variable.
8970
8971         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
8972         mantissa words.
8973         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8974
8975         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
8976         from unused variable.
8977
8978         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
8979         DWARF definitions.
8980         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
8981         for assembling.
8982
8983         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
8984         over namespaces.
8985
8986         * sunrpc/rpc_prot.c (rejected): Fix case value.
8987
8988         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
8989         unsigned long long int to avoid warnings in shift.
8990
8991         * posix/regex_internal.c (re_string_reconstruct): Actually use result
8992         of use of trans.
8993         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
8994         variable tmp.
8995
8996         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
8997         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
8998         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
8999
9000         * nis/nis_table.c (nis_list): Use variable of correct type for
9001         result of __follow_path call.
9002
9003 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9004
9005         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
9006         of math functions ceil, trunc, floor, round, and sqrt, when
9007         avaliable on the platform.
9008         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
9009         name clash.
9010         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9011         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
9012         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
9013
9014 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
9015
9016         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
9017         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
9018
9019 2011-11-11  Roland McGrath  <roland@hack.frob.com>
9020
9021         * include/unistd.h: Fix __readlink return type.
9022         Reported by Chris Metcalf <cmetcalf@tilera.com>.
9023
9024 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
9025
9026         * stdlib/ucontext.h: Undo last change for makecontext.
9027
9028 2011-11-11  Andreas Schwab  <schwab@redhat.com>
9029
9030         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
9031
9032         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
9033         * setjmp/setjmp.h: Mark functions as non-leaf.
9034         * setjmp/bits/setjmp2.h: Likewise.
9035         * stdlib/ucontext.h: Likewise.
9036
9037 2011-11-10  Andreas Schwab  <schwab@redhat.com>
9038
9039         * malloc/arena.c (_int_new_arena): Don't increment narenas.
9040         (reused_arena): Don't check arena limit.
9041         (arena_get2): Atomically check arena limit.
9042
9043 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
9044
9045         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
9046         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
9047
9048         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
9049         instructions.
9050
9051 2011-11-07  Andreas Schwab  <schwab@redhat.com>
9052
9053         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
9054         handler when locking.
9055
9056         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9057         Fix size of allocated buffer.
9058
9059 2011-11-04  Andreas Schwab  <schwab@redhat.com>
9060
9061         [BZ #10103]
9062         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
9063         declarations for long double functions.
9064         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
9065
9066         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
9067
9068 2011-11-03  Andreas Schwab  <schwab@redhat.com>
9069
9070         * nscd/nscd.c (main): Don't start AVC thread until credentials are
9071         installed.
9072
9073         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
9074         is disabled.
9075
9076 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9077
9078         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
9079
9080 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
9081
9082         * include/alloca.h (stackinfo_alloca_round): Define.
9083         (extend_alloca): Use it.
9084         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
9085         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
9086         here.
9087
9088         * scripts/check-local-headers.sh: Ignore libaudit.h.
9089
9090         * nscd/Makefile (extra-objs): Make recursively expanded.
9091
9092 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
9093
9094         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
9095         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
9096
9097         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
9098         * posix/tst-rfc3484-2.c: Likewise.
9099         * posix/tst-rfc3484-3.c: Likewise.
9100
9101         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
9102         process_vm_writev.
9103         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
9104         process_vm_writev.
9105         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
9106         process_vm_writev from libc using GLIBC_2.15 version.
9107
9108         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
9109
9110 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
9111
9112         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
9113         stack usage.
9114
9115 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
9116
9117         [BZ #13367]
9118         * nss/getent.c (initgroups_keys): Show error message in case no group
9119         names are given.
9120
9121         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
9122         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
9123         __bump_nl_timestamp.
9124         * nscd/connections (nscd_init): When host database is served open
9125         netlink socket and request notification about configuration changes.
9126         (main_loop_poll): Track netlink file descriptor and bump timestamp
9127         in case data becomes available.
9128         (main_loop_epoll): Likewise.
9129         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
9130         (database_pers_head): Add extra_data fileds.
9131         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
9132         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
9133         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
9134         Adjust caller.
9135         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
9136         in6ai data, call __free_in6ai.
9137         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
9138         Add -DHAVE_NETLINK.
9139         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
9140         interface information.  Reuse previous data if netlink timestamp
9141         is not changed.
9142         (__bump_nl_timestamp): New function.
9143         (__free_in6ai): New function.
9144
9145 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
9146
9147         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
9148         close_not_cancel_no_status here.
9149         (__check_pf): Reorganize code a bit to not call close twice if OOM.
9150
9151 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
9152
9153         [BZ #13276]
9154         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
9155         return value.
9156
9157         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
9158         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
9159         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
9160
9161 2011-07-03  Andreas Jaeger  <aj@suse.de>
9162
9163         [BZ #10709]
9164         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
9165         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
9166         * math/libm-test.inc (sin_test): Add test case.
9167
9168 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
9169
9170         [BZ #13337]
9171         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
9172         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9173
9174         * elf/chroot_canon.c (chroot_canon): Cleanups.
9175
9176         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
9177
9178         [BZ #13335]
9179         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
9180         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9181
9182         * string/test-strchr.c: Make usable for strchrnul testing.
9183         * string/test-strchrnul.c: New file.
9184         * string/Makefile (strop-tests): Add strchrnul.
9185
9186         * po/it.po: Update from translation team.
9187         * po/es.po: Likewise.
9188
9189 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
9190
9191         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
9192         the three constants needed as parameters.  Drop the others.
9193         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
9194         __m128i_strloadu_tolower.
9195         Create and initialize variable zero and use it in all the places
9196         where _mm_setzero_si128 was used.
9197
9198         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
9199         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
9200         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
9201         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
9202         anymore.
9203         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
9204         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
9205         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
9206         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
9207         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
9208         __mpranred, __mptan.
9209         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
9210         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
9211         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
9212         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
9213         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
9214         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
9215         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
9216         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
9217         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
9218
9219 2011-10-28  Andreas Schwab  <schwab@redhat.com>
9220
9221         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
9222         redefine if SHARED.
9223         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
9224
9225         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
9226         wide char related routines to wcsmbs subdir.
9227
9228 2011-10-27  Andreas Schwab  <schwab@redhat.com>
9229
9230         [BZ #13344]
9231         * misc/sys/cdefs.h (__THROWNL): Define.
9232         * posix/unistd.h: Use __THREADNL instead of __THREAD
9233         for memory synchronization functions.
9234
9235 2011-10-26  Roland McGrath  <roland@hack.frob.com>
9236
9237         [BZ #13349]
9238         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
9239         doesn't exist.
9240         * manual/stdio.texi (Obstack Streams): Node removed.
9241
9242 2011-10-26  Andreas Schwab  <schwab@redhat.com>
9243
9244         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
9245         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9246         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9247
9248         * math/math_private.h (math_force_eval): Allow non-addressable
9249         arguments.
9250         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
9251
9252 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9253
9254         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
9255         file is not needed.
9256
9257         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
9258         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9259         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9260         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9261         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9262         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9263         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9264         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
9265         Add AVX variants.
9266         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
9267         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
9268         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
9269         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
9270         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
9271         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
9272         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
9273         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
9274         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
9275         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
9276         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
9277         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
9278         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
9279         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
9280         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
9281         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
9282         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
9283         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
9284         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
9285
9286         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
9287         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
9288
9289         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
9290         place.  Use VEX encoding when compiling for AVX.
9291
9292 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9293
9294         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
9295         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9296
9297         * string/test-strchr.c (do_test): Don't generate NUL bytes.
9298
9299 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9300
9301         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
9302         useless if() expression.
9303         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9304         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9305         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9306         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9307         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9308         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9309         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9310         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9311         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9312         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9313         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9314         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9315         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9316         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9317         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9318         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9319         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9320         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9321         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9322
9323         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
9324
9325 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9326
9327         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
9328         condition.
9329         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9330
9331 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9332
9333         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
9334         .text section.  Avoid duplicate constants.
9335         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9336         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9337         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9338         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9339         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9340         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9341         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9342         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9343         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
9344         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
9345         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
9346         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9347         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
9348         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
9349         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
9350         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
9351         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
9352         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
9353         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9354         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9355         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9356         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9357         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9358         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
9359         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
9360         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
9361         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
9362         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
9363         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
9364         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
9365         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
9366         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
9367         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9368         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
9369         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
9370         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
9371         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
9372         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
9373         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
9374         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
9375         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
9376         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
9377         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
9378         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
9379         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
9380
9381 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
9382
9383         * sysdeps/x86_64/dla.h: Move to ...
9384         * sysdeps/x86_64/fpu/dla.h: ...here.
9385         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
9386         situations.  Use __builtin_fma only for gcc 4.6 and up.
9387
9388         * config.make.in: Add have-mfma4 entry.
9389         * configure.in: Substitute libc_cv_cc_fma4.
9390         * math/Makefile (dbl-only-routines): Add sincostab.
9391         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
9392         Use __sincostab not sincos.
9393         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
9394         name is a macro.
9395         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9396         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9397         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9398         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
9399         using __copysign.
9400         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
9401         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
9402         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
9403         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
9404         and __inv.
9405         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
9406         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
9407         __copysign.
9408         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
9409         define aliases when function name is a macro.
9410         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
9411         sysdeps/ieee754/dbl-64/sincos.tbl.
9412         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
9413         fma4-enabled routines.
9414         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
9415         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
9416         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
9417         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
9418         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
9419         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
9420         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
9421         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
9422         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
9423         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
9424         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
9425         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
9426         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
9427         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
9428         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
9429         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
9430         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
9431         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
9432         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
9433         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
9434         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
9435         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
9436         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
9437         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
9438         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
9439         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
9440         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
9441         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
9442         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
9443         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
9444
9445         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
9446         rename.
9447         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9448         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9449         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9450         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9451         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9452         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9453         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9454         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9455
9456 2011-10-24  Andreas Schwab  <schwab@redhat.com>
9457
9458         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
9459
9460 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9461
9462         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
9463
9464         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
9465         prediction.
9466         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
9467
9468         * string/strnlen.c: Don't define STRNLEN, reverse logic.
9469         Remove unused variable magic_bits.
9470         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
9471
9472         * string/strnlen.c: Define and use STRNLEN macro.
9473         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
9474         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
9475         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
9476         * wcsmbs/wcslen.c: Define and use WCSLEN.
9477         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
9478         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
9479         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
9480         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
9481         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
9482         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
9483         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9484
9485 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9486
9487         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9488         strnlen-sse2-no-bsf.
9489         Rename strlen-no-bsf to strlen-sse2-no-bsf.
9490         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
9491         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
9492         Add strnlen support.
9493         (USE_AS_STRNLEN): New macro.
9494         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
9495         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
9496         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
9497         * sysdeps/x86_64/wcslen.S: New file.
9498
9499 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9500
9501         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9502         XMM-moves are used for copying on small sizes.
9503
9504 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9505
9506         * wcsmbs/Makefile (strop-tests): Add wcschr.
9507         * wcsmbs/test-wcschr.c: New file.
9508         * string/test-strchr.c: Update.
9509         Add wcschr support.
9510         (WIDE): New macro.
9511
9512 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9513
9514         * wcsmbs/Makefile (strop-tests): Add wcslen.
9515         * wcsmbs/test-wcslen.c: New file.
9516         * string/test-strlen.c: Update.
9517         Add wcslen support.
9518         (WIDE): New macro.
9519
9520 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9521
9522         * po/it.po: Update from translation team.
9523
9524 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9525
9526         * sysdeps/x86_64/wcscmp.S: Update.
9527         Fix wrong comparison semantics.
9528         wcscmp shall use signed comparison not unsigned.
9529         Don't use substraction to avoid overflow bug.
9530         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
9531         * wcsmbc/wcscmp.c: Likewise.
9532         * string/test-strcmp.c: Likewise.
9533         Add new tests to check cases with negative values.
9534
9535 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9536
9537         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
9538         * sysdeps/x86_64/dla.h: ...here.  New file.
9539         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
9540         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9541         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9542         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9543         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9544         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9545         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9546         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9547         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9548
9549 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9550
9551         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
9552         __ynl_finite aliases.
9553
9554 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9555
9556         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9557
9558         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
9559         define DLA_FMA.
9560         [DLA_FMA] (EMULV): Use DLA_FMA.
9561         [DLA_FMA] (MUL12): Use EMULV.
9562         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
9563         that are not needed.
9564         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9565         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9566         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9567         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9568         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9569         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9570         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9571
9572 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
9573
9574         * math/s_nan.c: Undef __nan.
9575         * math/s_nanf.c: Undef __nanf.
9576         * math/s_nanl.c: Undef __nanl.
9577         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
9578         "math_private.h".
9579
9580 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9581
9582         * math/s_catan.c: Add branch predictions.
9583         * math/s_catanf.c: Likewise.
9584         * math/s_catanh.c: Likewise.
9585         * math/s_catanhf.c: Likewise.
9586         * math/s_catanhl.c: Likewise.
9587         * math/s_catanl.c: Likewise.
9588         * math/s_cexp.c: Likewise.
9589         * math/s_cexpf.c: Likewise.
9590         * math/s_cexpl.c: Likewise.
9591         * math/s_clog.c: Likewise.
9592         * math/s_clog10.c: Likewise.
9593         * math/s_clog10f.c: Likewise.
9594         * math/s_clog10l.c: Likewise.
9595         * math/s_clogf.c: Likewise.
9596         * math/s_clogl.c: Likewise.
9597         * math/s_csqrt.c: Likewise.
9598         * math/s_csqrtf.c: Likewise.
9599         * math/s_csqrtl.c: Likewise.
9600         * math/s_ctanf.c: Likewise.
9601         * math/s_ctanh.c: Likewise.
9602         * math/s_ctanhf.c: Likewise.
9603         * math/s_ctanhl.c: Likewise.
9604         * math/s_ctanl.c: Likewise.
9605
9606         * math/math_private.h: Define __nan, __nanf, __nanl.
9607         * math/s_cacosh.c: Include <math_private.h>.
9608         * math/s_cacoshl.c: Likewise.
9609         * math/s_casinh.c: Likewise.
9610         * math/s_casinhf.c: Likewise.
9611         * math/s_casinhl.c: Likewise.
9612         * math/s_ccos.c: Rely entire on ccosh.
9613         * math/s_ccosf.c: Rely entire on ccoshf.
9614         * math/s_ccosl.c: Rely entirely on ccoshl.
9615         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
9616         Remove tests for FE_INVALID.
9617         * math/s_ccoshf.c: Likewise.
9618         * math/s_ccoshl.c: Likewise.
9619         * math/s_csin.c: Likewise.
9620         * math/s_csinf.c: Likewise.
9621         * math/s_csinh.c Likewise.
9622         * math/s_csinhf.c: Likewise.
9623         * math/s_csinhl.c: Likewise.
9624         * math/s_csinl.c: Likewise.
9625         * math/s_ctan.c: Likewise.
9626         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
9627         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
9628         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
9629
9630 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
9631
9632         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
9633         compilation problems.
9634
9635         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
9636         __builtin_expect.
9637
9638 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
9639
9640         * sysdeps/i386/configure.in: Test for -mfma4 option.
9641         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
9642         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
9643         COMMON_CPUID_INDEX_80000001.
9644         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
9645         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
9646         use it if FMA3 is not supported.
9647         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
9648
9649         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
9650         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
9651
9652 2011-10-20  Andreas Schwab  <schwab@redhat.com>
9653
9654         [BZ #12892]
9655         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
9656         it would create a cycle with a link time dependency.
9657
9658 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
9659
9660         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
9661         instruction.
9662         * string/Makefile (strop-tests): Add rawmemchr.
9663         * string/test-rawmemchr.c: New file.
9664
9665         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
9666         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
9667         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
9668         when compiling str{,n}casecmp and when AVX is available.  Hook up
9669         new optimized code in initializers.
9670
9671 2011-10-19  Andreas Schwab  <schwab@redhat.com>
9672
9673         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
9674         __feraiseexcept instead of feraiseexcept.
9675
9676 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
9677
9678         * math/math_private.h: Define defaults for libc_fetestexcept and
9679         libc_feupdateenv.
9680         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
9681         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9682         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9683         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9684         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9685         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9686         libc_fetestexcept and libc_feupdateenv.
9687
9688         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
9689         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
9690         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
9691         * sysdeps/x86_64/fpu/math_private.h: Define special version of
9692         libc_feholdexcept_setround.
9693
9694         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
9695         Add s_nearbyint-c and s_nearbyintf-c.
9696         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
9697         nearbyintf inlines.
9698         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
9699         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
9700         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
9701         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
9702
9703         * math/math_private.h: Define defaults for libc_fegetround,
9704         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
9705         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
9706         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
9707         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
9708         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
9709         standard functions.
9710         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9711         Remove comments and hacks for old compiler versions.
9712         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9713         libc_fegetround, libc_fesetround, libc_feholdexcept, and
9714         libc_feholdexceptl.
9715
9716 2011-10-18  Andreas Schwab  <schwab@redhat.com>
9717
9718         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
9719         (__feraiseexcept_renamed): Add __NTH.
9720         (feraiseexcept): Add __NTH.  Rename local variables to fix
9721         namespace violations.
9722
9723 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
9724
9725         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
9726
9727         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
9728
9729         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
9730         recently added interfaces.
9731         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9732
9733         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
9734         about macro parameter expansion.
9735
9736         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
9737         __NO_MATH_INLINES is defined.  Cleanups.
9738
9739         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
9740         and __floorf is target has SSE4.1.
9741         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
9742         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
9743         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
9744         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
9745
9746         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
9747         name.
9748         (floorf): Likewise.
9749
9750         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
9751
9752 2011-10-17  Andreas Schwab  <schwab@redhat.com>
9753
9754         * misc/sys/cdefs.h: Fix last change.
9755
9756         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
9757         database lookup.
9758
9759 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
9760
9761         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
9762
9763         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
9764         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9765         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9766         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9767         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9768         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9769         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9770         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9771         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9772         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
9773         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
9774         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
9775         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
9776         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
9777         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
9778         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
9779         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
9780         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
9781         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
9782         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
9783         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
9784         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
9785
9786         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
9787         ceil, ceilf, floor, floorf.
9788
9789         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
9790         Perform IRELATIVE relocations last.
9791
9792         * elf/do-rel.h: Add another parameter nrelative, replacing the
9793         local variable with the same name.  Change name of the function
9794         to end in Rel or Rela (uppercase).
9795         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
9796         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
9797         elf_dynamic_do_##reloc function.
9798
9799 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9800
9801         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
9802         is sufficient, at least on modern CPUs.
9803
9804         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
9805
9806         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
9807         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
9808
9809         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
9810         __expl_finite.
9811         * math/bits/math-finite.h: Add entries for exp.
9812         * math/e_expl.c: Add __*_finite alias.
9813         * sysdeps/i386/fpu/e_exp.S: Likewise.
9814         * sysdeps/i386/fpu/e_expf.S: Likewise.
9815         * sysdeps/i386/fpu/e_expl.c: Likewise.
9816         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9817         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9818         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9819         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9820         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
9821         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9822         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9823
9824         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
9825         is sufficient, at least on modern CPUs.
9826
9827         * ctype/ctype-info.c (__ctype_init): Define.
9828         * include/ctype.h (__ctype_init): Declare.
9829         (__ctype_b_loc): The variable is always initialized.
9830         (__ctype_toupper_loc): Likewise.
9831         (__ctype_tolower_loc): Likewise.
9832         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
9833         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
9834
9835 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
9836
9837         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
9838
9839         * configure.in: Also look in $cxxmachine/include for C++ system
9840         headers.
9841
9842 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9843
9844         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
9845         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
9846         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
9847         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
9848         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
9849         (USE_AS_WMEMCMP): New macro.
9850         Fixing indents.
9851         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
9852         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
9853         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
9854         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
9855         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9856         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
9857         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
9858         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
9859         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
9860         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
9861         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
9862         (USE_AS_WMEMCMP): New macro.
9863         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
9864         * sysdeps/string/test-memcmp.c: Update.
9865         Fix simple_wmemcmp.
9866         Add new tests.
9867         * wcsmbs/wmemcmp.c: Update.
9868         (WMEMCMP): New macro.
9869         Fix overflow bug.
9870
9871 2011-10-12  Andreas Jaeger  <aj@suse.de>
9872
9873         [BZ #13268]
9874         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
9875
9876 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9877
9878         * libio/iofwide.c (do_length): Avoid warning.
9879
9880         * ctype/ctype.h (__isctype_f): Add missing __THROW.
9881
9882 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
9883
9884         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
9885
9886         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
9887         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
9888         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
9889         * sysdeps/i386/i686/fpu/e_log.S: New file.
9890         * sysdeps/i386/i686/fpu/e_logf.S: New file.
9891         * sysdeps/i386/i686/fpu/e_logl.S: New file.
9892
9893         * ctype/ctype.h: Add support for inlined isXXX functions when
9894         compiling C++ code.
9895
9896 2011-10-14  Andreas Schwab  <schwab@redhat.com>
9897
9898         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9899
9900         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
9901
9902 2011-10-13  Roland McGrath  <roland@hack.frob.com>
9903
9904         [BZ #13291]
9905         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
9906
9907 2011-10-13  Andreas Schwab  <schwab@redhat.com>
9908
9909         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
9910         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
9911         feraiseexcept.
9912
9913         * sysdeps/x86_64/memrchr.S: Check for zero size.
9914
9915         * string/stratcliff.c: Add memrchr tests.
9916
9917 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9918
9919         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9920         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
9921         rawmemchr-sse2 rawmemchr-sse2-bsf.
9922         * sysdeps/i386/i686/multiarch/memchr.S: New file.
9923         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
9924         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9925         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
9926         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
9927         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
9928         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
9929         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
9930         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
9931         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
9932         * string/memrchr.c (MEMRCHR): New macro.
9933
9934 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
9935
9936         Add integration with gcc's -ffinite-math-only and optimize wrapper
9937         functions in libm.
9938         * Versions.def: Define GLIBC_2.15 version for libm.
9939         * math/Makefile (headers): Add bits/math-finite.h.
9940         * math/bits/math-finite.h: New file.
9941         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
9942         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
9943         * math/e_acoshl.c: Add __*_finite alias.
9944         * math/e_acosl.c: Likewise.
9945         * math/e_asinl.c: Likewise.
9946         * math/e_atan2l.c: Likewise.
9947         * math/e_atanhl.c: Likewise.
9948         * math/e_coshl.c: Likewise.
9949         * math/e_exp10.c: Likewise.
9950         * math/e_exp10f.c: Likewise.
9951         * math/e_exp10l.c: Likewise.
9952         * math/e_exp2l.c: Likewise.
9953         * math/e_fmodl.c: Likewise.
9954         * math/e_gammal_r.c: Likewise.
9955         * math/e_hypotl.c: Likewise.
9956         * math/e_j0l.c: Likewise.
9957         * math/e_j1l.c: Likewise.
9958         * math/e_jnl.c: Likewise.
9959         * math/e_lgammal_r.c: Likewise.
9960         * math/e_log10l.c: Likewise.
9961         * math/e_log2l.c: Likewise.
9962         * math/e_logl.c: Likewise.
9963         * math/e_powl.c: Likewise.
9964         * math/e_sinhl.c: Likewise.
9965         * math/e_sqrtl.c: Likewise.
9966         * math/e_scalb.c: Completely rewritten and optimized.
9967         * math/e_scalbf.c: Likewise.
9968         * math/e_scalbl.c: Likewise.
9969         * math/w_acos.c: Likewise.
9970         * math/w_acosf.c: Likewise.
9971         * math/w_acosl.c: Likewise.
9972         * math/w_acosh.c: Likewise.
9973         * math/w_acoshf.c: Likewise.
9974         * math/w_acoshl.c: Likewise.
9975         * math/w_asin.c: Likewise.
9976         * math/w_asinf.c: Likewise.
9977         * math/w_asinl.c: Likewise.
9978         * math/w_atan2.c: Likewise.
9979         * math/w_atan2f.c: Likewise.
9980         * math/w_atan2l.c: Likewise.
9981         * math/w_atanh.c: Likewise.
9982         * math/w_atanhf.c: Likewise.
9983         * math/w_atanhl.c: Likewise.
9984         * math/w_exp10.c: Likewise.
9985         * math/w_exp10f.c: Likewise.
9986         * math/w_exp10l.c: Likewise.
9987         * math/w_fmod.c: Likewise.
9988         * math/w_fmodf.c: Likewise.
9989         * math/w_fmodl.c: Likewise.
9990         * math/w_j0.c: Likewise.
9991         * math/w_j0f.c: Likewise.
9992         * math/w_j0l.c: Likewise.
9993         * math/w_j1.c: Likewise.
9994         * math/w_j1f.c: Likewise.
9995         * math/w_j1l.c: Likewise.
9996         * math/w_jn.c: Likewise.
9997         * math/w_jnf.c: Likewise.
9998         * math/w_log.c: Likewise.
9999         * math/w_logf.c: Likewise.
10000         * math/w_logl.c: Likewise.
10001         * math/w_log10.c: Likewise.
10002         * math/w_log10f.c: Likewise.
10003         * math/w_log10l.c: Likewise.
10004         * math/w_log2.c: Likewise.
10005         * math/w_log2f.c: Likewise.
10006         * math/w_log2l.c: Likewise.
10007         * math/w_pow.c: Likewise.
10008         * math/w_powf.c: Likewise.
10009         * math/w_powl.c: Likewise.
10010         * math/w_remainder.c: Likewise.
10011         * math/w_remainderf.c: Likewise.
10012         * math/w_remainderl.c: Likewise.
10013         * math/w_scalb.c: Likewise.
10014         * math/w_scalbf.c: Likewise.
10015         * math/w_scalbl.c: Likewise.
10016         * math/w_sqrt.c: Likewise.
10017         * math/w_sqrtf.c: Likewise.
10018         * math/w_sqrtl.c: Likewise.
10019         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
10020         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
10021         used.
10022         * math/math_private.h: Declare __kernel_standard_f.
10023         * math/w_cosh.c: Remove cruft and optimize a bit.
10024         * math/w_coshf.c: Likewise.
10025         * math/w_coshl.c: Likewise.
10026         * math/w_exp2.c: Likewise.
10027         * math/w_exp2f.c: Likewise.
10028         * math/w_exp2l.c: Likewise.
10029         * math/w_hypot.c: Likewise.
10030         * math/w_hypotf.c: Likewise.
10031         * math/w_hypotl.c: Likewise.
10032         * math/w_lgamma.c: Likewise.
10033         * math/w_lgamma_r.c: Likewise.
10034         * math/w_lgammaf.c: Likewise.
10035         * math/w_lgammaf_r.c: Likewise.
10036         * math/w_lgammal.c: Likewise.
10037         * math/w_lgammal_r.c: Likewise.
10038         * math/w_sinh.c: Likewise.
10039         * math/w_sinhf.c: Likewise.
10040         * math/w_sinhl.c: Likewise.
10041         * math/w_tgamma.c: Likewise.
10042         * math/w_tgammaf.c: Likewise.
10043         * math/w_tgammal.c: Likewise.
10044         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10045         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10046         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
10047         Minor optimizations.  Pretty printing.  Remove cruft.
10048         * sysdeps/i386/fpu/e_acosf.S: Likewise.
10049         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10050         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10051         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10052         * sysdeps/i386/fpu/e_acosl.c: Likewise.
10053         * sysdeps/i386/fpu/e_asin.S: Likewise.
10054         * sysdeps/i386/fpu/e_asinf.S: Likewise.
10055         * sysdeps/i386/fpu/e_atan2.S: Likewise.
10056         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
10057         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
10058         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10059         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10060         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10061         * sysdeps/i386/fpu/e_exp10.S: Likewise.
10062         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
10063         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
10064         * sysdeps/i386/fpu/e_exp2.S: Likewise.
10065         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
10066         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
10067         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10068         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
10069         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10070         * sysdeps/i386/fpu/e_hypot.S: Likewise.
10071         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
10072         * sysdeps/i386/fpu/e_log.S: Likewise.
10073         * sysdeps/i386/fpu/e_log10.S: Likewise.
10074         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10075         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10076         * sysdeps/i386/fpu/e_log2.S: Likewise.
10077         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10078         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10079         * sysdeps/i386/fpu/e_logf.S: Likewise.
10080         * sysdeps/i386/fpu/e_logl.S: Likewise.
10081         * sysdeps/i386/fpu/e_pow.S: Likewise.
10082         * sysdeps/i386/fpu/e_powf.S: Likewise.
10083         * sysdeps/i386/fpu/e_powl.S: Likewise.
10084         * sysdeps/i386/fpu/e_remainder.S: Likewise.
10085         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
10086         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
10087         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10088         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10089         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10090         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
10091         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
10092         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
10093         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10094         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10095         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10096         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10097         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10098         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10099         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10100         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10101         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10102         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10103         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10104         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10105         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10106         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10107         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10108         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10109         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10110         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10111         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10112         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10113         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10114         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10115         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10116         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10117         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10118         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10119         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
10120         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10121         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10122         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10123         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10124         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10125         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10126         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10127         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10128         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10129         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10130         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10131         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10132         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10133         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10134         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10135         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10136         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10137         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10138         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10139         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10140         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10141         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10142         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10143         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10144         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10145         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10146         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10147         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10148         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10149         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10150         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10151         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10152         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10153         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10154         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10155         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10156         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10157         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10158         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10159         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10160         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10161         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10162         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10163         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10164         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10165         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10166         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10167         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10168         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10169         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
10170         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10171         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10172         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10173         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10174         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10175         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10176         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10177         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10178         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10179         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10180         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10181         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10182         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10183         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10184         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10185         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10186         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10187         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10188         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10189         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10190         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
10191         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
10192         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
10193         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
10194         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
10195         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
10196         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
10197         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10198         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10199         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10200         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10201         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
10202         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10203         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
10204         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
10205         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
10206         (__isnanf): Likewise.
10207         (__isinf_ns): Likewise.
10208         (__isinf_nsf): Likewise.
10209         (__finite): Likewise.
10210         (__finitef): Likewise.
10211         (__ieee754_sqrt): Define as macro.
10212         (__ieee754_sqrtf): Define as macro.
10213         (__ieee754_sqrtl): Define as macro.
10214         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
10215         inlined copy.
10216         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
10217         __FINITE_MATH_ONLY__ consistent.
10218         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
10219
10220 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
10221
10222         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
10223         of rawmemchr.
10224
10225         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
10226
10227 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
10228
10229         * po/ja.po: Update from translation team.
10230
10231 2011-10-08  Roland McGrath  <roland@hack.frob.com>
10232
10233         * locale/programs/locarchive.c (prepare_address_space): New function.
10234         (create_archive, enlarge_archive, open_archive): Use it.
10235
10236         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
10237         inside [SHARED], where it is used.
10238
10239         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
10240
10241         * nss/getent.c (netgroup_keys): Remove unused variable.
10242         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10243
10244 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
10245
10246         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
10247         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
10248         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
10249         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
10250         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
10251         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
10252         * math/Makefile (libm-calls): Add s_isinf_ns.
10253         * math/divtc3.c: Use __isinf_nsl instead of isinf.
10254         * math/multc3.c: Likewise.
10255         * math/s_casin.c: Likewise.
10256         * math/s_casinf.c: Likewise.
10257         * math/s_casinl.c: Likewise.
10258         * math/s_ccos.c: Likewise.
10259         * math/s_ccosf.c: Likewise.
10260         * math/s_ccosl.c: Likewise.
10261         * math/s_ctan.c: Likewise.
10262         * math/s_ctanf.c: Likewise.
10263         * math/s_ctanh.c: Likewise.
10264         * math/s_ctanhf.c: Likewise.
10265         * math/s_ctanhl.c: Likewise.
10266         * math/s_ctanl.c: Likewise.
10267         * math/w_fmod.c: Likewise.
10268         * math/w_fmodf.c: Likewise.
10269         * math/w_fmodl.c: Likewise.
10270         * math/w_remainder.c: Likewise.
10271         * math/w_remainderf.c: Likewise.
10272         * math/w_remainderl.c: Likewise.
10273         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
10274         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
10275         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
10276         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
10277         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
10278         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
10279         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
10280         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
10281
10282         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
10283         of the number.
10284         * stdio-common/printf_fphex.c: Likewise.
10285         * stdio-common/printf_size.c: Likewise.
10286
10287         * math/e_exp10.c: Include math_private.h using <...> not "...".
10288         * math/e_exp10f.c: Likewise.
10289         * math/e_exp10l.c: Likewise.
10290         * math/e_exp2l.c: Likewise.
10291         * math/e_j0l.c: Likewise.
10292         * math/e_j1l.c: Likewise.
10293         * math/e_jnl.c: Likewise.
10294         * math/e_lgammal_r.c: Likewise.
10295         * math/e_rem_pio2l.c: Likewise.
10296         * math/e_scalb.c: Likewise.
10297         * math/e_scalbf.c: Likewise.
10298         * math/e_scalbl.c: Likewise.
10299         * math/k_cosl.c: Likewise.
10300         * math/k_sinl.c: Likewise.
10301         * math/k_tanl.c: Likewise.
10302         * math/s_cacoshf.c: Likewise.
10303         * math/s_catan.c: Likewise.
10304         * math/s_catanf.c: Likewise.
10305         * math/s_catanh.c: Likewise.
10306         * math/s_catanhf.c: Likewise.
10307         * math/s_catanhl.c: Likewise.
10308         * math/s_catanl.c: Likewise.
10309         * math/s_ccosh.c: Likewise.
10310         * math/s_ccoshf.c: Likewise.
10311         * math/s_ccoshl.c: Likewise.
10312         * math/s_cexp.c: Likewise.
10313         * math/s_cexpf.c: Likewise.
10314         * math/s_cexpl.c: Likewise.
10315         * math/s_clog.c: Likewise.
10316         * math/s_clog10.c: Likewise.
10317         * math/s_clog10f.c: Likewise.
10318         * math/s_clog10l.c: Likewise.
10319         * math/s_clogf.c: Likewise.
10320         * math/s_clogl.c: Likewise.
10321         * math/s_csin.c: Likewise.
10322         * math/s_csinf.c: Likewise.
10323         * math/s_csinh.c: Likewise.
10324         * math/s_csinhf.c: Likewise.
10325         * math/s_csinhl.c: Likewise.
10326         * math/s_csinl.c: Likewise.
10327         * math/s_csqrt.c: Likewise.
10328         * math/s_csqrtf.c: Likewise.
10329         * math/s_csqrtl.c: Likewise.
10330         * math/s_ctan.c: Likewise.
10331         * math/s_ctanf.c: Likewise.
10332         * math/s_ctanh.c: Likewise.
10333         * math/s_ctanhf.c: Likewise.
10334         * math/s_ctanhl.c: Likewise.
10335         * math/s_ctanl.c: Likewise.
10336         * math/s_ldexp.c: Likewise.
10337         * math/s_ldexpf.c: Likewise.
10338         * math/s_ldexpl.c: Likewise.
10339         * math/s_significand.c: Likewise.
10340         * math/s_significandf.c: Likewise.
10341         * math/s_significandl.c: Likewise.
10342         * math/w_acos.c: Likewise.
10343         * math/w_acosf.c: Likewise.
10344         * math/w_acosh.c: Likewise.
10345         * math/w_acoshf.c: Likewise.
10346         * math/w_acoshl.c: Likewise.
10347         * math/w_acosl.c: Likewise.
10348         * math/w_asin.c: Likewise.
10349         * math/w_asinf.c: Likewise.
10350         * math/w_asinl.c: Likewise.
10351         * math/w_atan2.c: Likewise.
10352         * math/w_atan2f.c: Likewise.
10353         * math/w_atan2l.c: Likewise.
10354         * math/w_atanh.c: Likewise.
10355         * math/w_atanhf.c: Likewise.
10356         * math/w_atanhl.c: Likewise.
10357         * math/w_cosh.c: Likewise.
10358         * math/w_coshf.c: Likewise.
10359         * math/w_coshl.c: Likewise.
10360         * math/w_dremf.c: Likewise.
10361         * math/w_exp10.c: Likewise.
10362         * math/w_exp10f.c: Likewise.
10363         * math/w_exp10l.c: Likewise.
10364         * math/w_exp2.c: Likewise.
10365         * math/w_exp2f.c: Likewise.
10366         * math/w_fmod.c: Likewise.
10367         * math/w_fmodf.c: Likewise.
10368         * math/w_fmodl.c: Likewise.
10369         * math/w_hypot.c: Likewise.
10370         * math/w_hypotf.c: Likewise.
10371         * math/w_hypotl.c: Likewise.
10372         * math/w_j0.c: Likewise.
10373         * math/w_j0f.c: Likewise.
10374         * math/w_j0l.c: Likewise.
10375         * math/w_j1.c: Likewise.
10376         * math/w_j1f.c: Likewise.
10377         * math/w_j1l.c: Likewise.
10378         * math/w_jn.c: Likewise.
10379         * math/w_jnf.c: Likewise.
10380         * math/w_jnl.c: Likewise.
10381         * math/w_lgamma.c: Likewise.
10382         * math/w_lgamma_r.c: Likewise.
10383         * math/w_lgammaf.c: Likewise.
10384         * math/w_lgammaf_r.c: Likewise.
10385         * math/w_lgammal.c: Likewise.
10386         * math/w_lgammal_r.c: Likewise.
10387         * math/w_log.c: Likewise.
10388         * math/w_log10.c: Likewise.
10389         * math/w_log10f.c: Likewise.
10390         * math/w_log10l.c: Likewise.
10391         * math/w_log2.c: Likewise.
10392         * math/w_log2f.c: Likewise.
10393         * math/w_log2l.c: Likewise.
10394         * math/w_logf.c: Likewise.
10395         * math/w_logl.c: Likewise.
10396         * math/w_pow.c: Likewise.
10397         * math/w_powf.c: Likewise.
10398         * math/w_powl.c: Likewise.
10399         * math/w_remainder.c: Likewise.
10400         * math/w_remainderf.c: Likewise.
10401         * math/w_remainderl.c: Likewise.
10402         * math/w_scalb.c: Likewise.
10403         * math/w_scalbf.c: Likewise.
10404         * math/w_scalbl.c: Likewise.
10405         * math/w_sinh.c: Likewise.
10406         * math/w_sinhf.c: Likewise.
10407         * math/w_sinhl.c: Likewise.
10408         * math/w_sqrt.c: Likewise.
10409         * math/w_sqrtf.c: Likewise.
10410         * math/w_sqrtl.c: Likewise.
10411         * math/w_tgamma.c: Likewise.
10412         * math/w_tgammaf.c: Likewise.
10413         * math/w_tgammal.c: Likewise.
10414
10415         * po/ja.po: Update from translation team.
10416
10417 2011-09-29  Andreas Jaeger  <aj@suse.de>
10418
10419         [BZ #13179]
10420         * sunrpc/netname.c (netname2host): Fix logic.
10421
10422         [BZ #6779]
10423         [BZ #6783]
10424         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
10425         correctly.
10426         * math/w_remainder.c (__remainder): Likewise.
10427         * math/w_remainderf.c (__remainderf): Likewise.
10428         * math/libm-test.inc (remainder_test): Add test cases.
10429
10430 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10431
10432         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
10433         sdiv_qrnnd.
10434
10435 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10436
10437         * string/test-memcmp.c: Avoid unncessary #defines.
10438         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10439
10440 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10441
10442         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
10443         Use new sse2 version for core i3 - i7 as it's faster
10444         than sse42 version.
10445         (bit_Prefer_PMINUB_for_stringop): New.
10446         * sysdeps/x86_64/rawmemchr.S: Update.
10447         Replace with faster SSE2 version.
10448         * sysdeps/x86_64/memrchr.S: New file.
10449         * sysdeps/x86_64/memchr.S: Update.
10450         Replace with faster SSE2 version.
10451
10452 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
10453
10454         * elf/dl-load.c (lose): Add cast to avoid warning.
10455
10456 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10457
10458         * po/ca.po: Update from translation team.
10459
10460         * inet/getnetgrent_r.c: Hook up nscd.
10461         * nscd/Makefile (routines): Add nscd_netgroup.
10462         (nscd-modules): Add netgroupcache.
10463         (CFLAGS-netgroupcache.c): Define.
10464         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
10465         (cache_search): Add const to second parameter.
10466         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
10467         INNETGR.
10468         (dbs): Add netgrdb entry.
10469         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
10470         (verify_persistent_db): Handle netgrdb.
10471         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
10472         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
10473         GETFDNETGR.
10474         (netgroup_response_header): Define.
10475         (innetgroup_response_header): Define.
10476         (datahead): Add netgroup_response_header and innetgroup_response_header
10477         elements.
10478         * nscd/nscd.conf: Add entries for netgroup cache.
10479         * nscd/nscd.h (dbtype): Add netgrdb.
10480         (_PATH_NSCD_NETGROUP_DB): Define.
10481         (netgroup_iov_disabled): Declare.
10482         (xmalloc, xcalloc, xrealloc): Move declarations here.
10483         (cache_search): Adjust prototype.
10484         Add netgroup-related prototypes.
10485         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
10486         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
10487         (__nscd_innetgr): Declare.
10488         * nscd/selinux.c (perms): Use access_vector_t as element type and
10489         add netgroup-related initializers.
10490         * nscd/netgroupcache.c: New file.
10491         * nscd/nscd_netgroup.c: New file.
10492         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
10493         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
10494         For four parameters use innetgr.
10495         * nss/nss_files/files-init.c: Add definition and callback for netgr.
10496         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
10497         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
10498         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
10499
10500         * nscd/connections.c (register_traced_file): Don't register file
10501         for disabled databases.
10502
10503 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
10504
10505         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
10506
10507         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
10508         from tree and freeing node.
10509
10510 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
10511
10512         * nss/nsswitch.c (__nss_database_lookup): Handle
10513         nss_parse_service_list out of memory case.
10514
10515 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
10516
10517         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
10518         out of memory case.
10519
10520 2011-10-04  Andreas Schwab  <schwab@redhat.com>
10521
10522         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
10523         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
10524         pass it down.
10525         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
10526         elf_machine_rela, elf_machine_lazy_rel.
10527         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
10528         (ELF_DYNAMIC_DO_REL): Likewise.
10529         (ELF_DYNAMIC_DO_RELA): Likewise.
10530         (ELF_DYNAMIC_RELOCATE): Likewise.
10531         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
10532         to ELF_DYNAMIC_DO_REL.
10533         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
10534         (dl_main): In trace mode always set __RTLD_NOIFUNC.
10535         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
10536         elf_machine_rela.
10537         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
10538         skip_ifunc, don't call ifunc function if non-zero.
10539         (elf_machine_rela): Likewise.
10540         (elf_machine_lazy_rel): Likewise.
10541         (elf_machine_lazy_rela): Likewise.
10542         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
10543         (elf_machine_lazy_rel): Likewise.
10544         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10545         Likewise.
10546         (elf_machine_lazy_rel): Likewise.
10547         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10548         Likewise.
10549         (elf_machine_lazy_rel): Likewise.
10550         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
10551         (elf_machine_lazy_rel): Likewise.
10552         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
10553         (elf_machine_lazy_rel): Likewise.
10554         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10555         (elf_machine_lazy_rel): Likewise.
10556         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10557         (elf_machine_lazy_rel): Likewise.
10558         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10559         (elf_machine_lazy_rel): Likewise.
10560         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10561         (elf_machine_lazy_rel): Likewise.
10562
10563 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
10564
10565         * nss/nss_files/files-init.c (_nss_files_init): Use static
10566         initialization for all the *_traced_file variables.
10567
10568 2011-09-28  Andreas Schwab  <schwab@redhat.com>
10569
10570         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10571
10572 2011-09-27  Roland McGrath  <roland@hack.frob.com>
10573
10574         [BZ #13226]
10575         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
10576
10577 2011-09-27  Andreas Schwab  <schwab@redhat.com>
10578
10579         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10580         Reread the line before reparsing it.
10581
10582 2011-09-26  Andreas Schwab  <schwab@redhat.com>
10583
10584         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
10585
10586 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
10587             Maxim Kuvyrkov  <maxim@codesourcery.com>
10588             Joseph Myers  <joseph@codesourcery.com>
10589
10590         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
10591         if needed for __stack_chk_guard.
10592
10593 2011-09-19  Roland McGrath  <roland@hack.frob.com>
10594
10595         * sysdeps/posix/spawni.c (script_execute): Always define it.
10596         It will be optimized away if unused.
10597         (maybe_script_execute): New function.
10598         (__spawni): Call it.
10599
10600         * Makerules: Don't include tls.make.
10601         (config-tls): Always set to thread.
10602         * tls.make.c: File removed.
10603
10604 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
10605
10606         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
10607         * config.make.in (CPPFLAGS-config): New substituted variable.
10608
10609 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10610
10611         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
10612
10613         [BZ #13192]
10614         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
10615         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
10616
10617 2011-09-15  Roland McGrath  <roland@hack.frob.com>
10618
10619         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
10620         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
10621         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10622         (CALL_FAIL): Likewise.
10623         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
10624         (CALL_FAIL): Macro removed.
10625         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
10626
10627 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10628
10629         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
10630         for __FINITE_MATH_ONLY__ == 1.
10631
10632 2011-09-15  Andreas Schwab  <schwab@redhat.com>
10633
10634         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
10635         __ieee754_sqrt instead of sqrt.
10636         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
10637         __ieee754_sqrtf instead of sqrtf.
10638         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
10639         __floorf instead of floorf.
10640         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
10641         __floorf, __truncf instead of floorf, truncf.
10642
10643 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
10644
10645         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
10646
10647         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
10648         __extern_always_inline.
10649         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
10650         32-bit.
10651
10652 2011-09-14  Andreas Schwab  <schwab@redhat.com>
10653
10654         * elf/rtld.c (dl_main): Also relocate in dependency order when
10655         doing symbol dependency testing.
10656
10657 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
10658
10659         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10660         Always define `refsym'.
10661
10662 2011-09-13  Andreas Schwab  <schwab@redhat.com>
10663
10664         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
10665         (__FD_ELT): Renamed from __FDELT.
10666         * misc/bits/select2.h (__FD_ELT): Likewise.
10667         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
10668         __FD_MASK instead of __FDELT, __FDMASK.
10669         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10670         Likewise.
10671         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10672         Likewise.
10673
10674         * elf/Makefile (gen-ldd): Fix pattern.
10675
10676         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
10677         (init_tls): Likewise.
10678
10679 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
10680
10681         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
10682
10683 2011-09-12  Andreas Schwab  <schwab@redhat.com>
10684
10685         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
10686         `struct cmsghdr *' instead of `void *'.
10687         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
10688         Likewise.
10689
10690 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
10691
10692         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
10693         if non-absolute.
10694         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
10695         ldd_rewrite_script.
10696
10697 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
10698
10699         * configure.in: Remove --with-tls option.
10700         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
10701         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
10702         out in case it is missing.
10703         * sysdeps/ia64/elf/configure.in: Likewise.
10704         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
10705         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
10706         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
10707         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10708         * sysdeps/sh/elf/configure.in: Likewise.
10709         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
10710         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10711         * sysdeps/x86_64/elf/configure.in: Likewise.
10712         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
10713         * sysdeps/mach/hurd/tls.h: Likewise.
10714
10715         [BZ #13067]
10716         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
10717
10718         [BZ #13090]
10719         * configure.in: Fix use of AC_INIT.
10720
10721         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
10722
10723 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
10724
10725         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
10726         __set_errno.
10727         * malloc/hooks.c: Likewise.
10728
10729         [BZ #11929]
10730         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
10731         variables statically.
10732         (narenas): Initialize.
10733         (list_lock): Initialize.
10734         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
10735         initializtion of main_arena and list_lock.  Small cleanups.
10736         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
10737         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
10738         Add initializers to main_arena and mp_.
10739         (malloc_state): Remove pagesize member.  Change all users to use
10740         GLRO(dl_pagesize).
10741
10742         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
10743         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
10744         is always initialized.
10745
10746         * malloc/malloc.c: Removed unused configurations and dead code.
10747         * malloc/arena.c: Likewise.
10748         * malloc/hooks.c: Likewise.
10749         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
10750
10751         * include/tls.h: Removed.  USE___THREAD must always be defined.
10752         * bits/libc-tsd.h: Don't handle !USE___THREAD.
10753         * elf/dl-libc.c: Likewise.
10754         * elf/dl-tsd.c: Likewise.
10755         * include/errno.h: Likewise.
10756         * include/netdb.h: Likewise.
10757         * include/resolv.h: Likewise.
10758         * inet/herrno-loc.c: Likewise.
10759         * inet/herrno.c: Likewise.
10760         * malloc/arena.c: Likewise.
10761         * malloc/hooks.c: Likewise.
10762         * malloc/malloc.c: Likewise.
10763         * resolv/res-state.c: Likewise.
10764         * resolv/res_libc.c: Likewise.
10765         * sysdeps/i386/dl-machine.h: Likewise.
10766         * sysdeps/ia64/dl-machine.h: Likewise.
10767         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10768         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10769         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10770         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10771         * sysdeps/sh/dl-machine.h: Likewise.
10772         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10773         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10774         * sysdeps/unix/i386/sysdep.S: Likewise.
10775         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10776         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10777         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10778         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10779         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10780         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10781         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10782         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10783         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10784         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10785         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10786         * sysdeps/x86_64/dl-machine.h: Likewise.
10787         * tls.make.c: Likewise.
10788
10789         * configure.in: Remove --with-__thread option.  Make tests for
10790         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
10791         tls_model attribute fail if no support is available.  Remove
10792         USE_IN_LIBIO.
10793         * Makeconfig: Adjust for dropped configure option.  All features are
10794         now mandatory.
10795         * Makerules: Likewise.
10796         * Versions.def: Likewise.
10797         * argp/argp-fmtstream.c: Likewise.
10798         * argp/argp-fmtstream.h: Likewise.
10799         * argp/argp-help.c: Likewise.
10800         * assert/assert.c: Likewise.
10801         * config.h.in: Likewise.
10802         * config.make.in: Likewise.
10803         * configure: Likewise.
10804         * configure.in: Likewise.
10805         * csu/Versions: Likewise.
10806         * csu/init.c: Likewise.
10807         * elf/tst-audit2.c: Likewise.
10808         * elf/tst-tls10.c: Likewise.
10809         * elf/tst-tls10.h: Likewise.
10810         * elf/tst-tls11.c: Likewise.
10811         * elf/tst-tls12.c: Likewise.
10812         * elf/tst-tls14.c: Likewise.
10813         * elf/tst-tlsmod11.c: Likewise.
10814         * elf/tst-tlsmod12.c: Likewise.
10815         * elf/tst-tlsmod13.c: Likewise.
10816         * elf/tst-tlsmod13a.c: Likewise.
10817         * elf/tst-tlsmod14a.c: Likewise.
10818         * elf/tst-tlsmod15b.c: Likewise.
10819         * elf/tst-tlsmod16a.c: Likewise.
10820         * elf/tst-tlsmod16b.c: Likewise.
10821         * elf/tst-tlsmod7.c: Likewise.
10822         * elf/tst-tlsmod8.c: Likewise.
10823         * elf/tst-tlsmod9.c: Likewise.
10824         * gmon/gmon.c: Likewise.
10825         * grp/fgetgrent_r.c: Likewise.
10826         * grp/putgrent.c: Likewise.
10827         * hurd/fopenport.c: Likewise.
10828         * include/libc-symbols.h: Likewise.
10829         * include/tls.h: Likewise.
10830         * intl/gettextP.h: Likewise.
10831         * intl/loadinfo.h: Likewise.
10832         * locale/global-locale.c: Likewise.
10833         * locale/localeinfo.h: Likewise.
10834         * mach/devstream.c: Likewise.
10835         * malloc/arena.c: Likewise.
10836         * malloc/set-freeres.c: Likewise.
10837         * misc/err.c: Likewise.
10838         * misc/getttyent.c: Likewise.
10839         * misc/mntent_r.c: Likewise.
10840         * posix/getopt.c: Likewise.
10841         * posix/wordexp.c: Likewise.
10842         * pwd/fgetpwent_r.c: Likewise.
10843         * resolv/Versions: Likewise.
10844         * resolv/res_hconf.c: Likewise.
10845         * shadow/fgetspent_r.c: Likewise.
10846         * shadow/putspent.c: Likewise.
10847         * stdio-common/printf_fphex.c: Likewise.
10848         * stdio-common/tmpfile.c: Likewise.
10849         * stdlib/abort.c: Likewise.
10850         * stdlib/fmtmsg.c: Likewise.
10851         * sunrpc/auth_unix.c: Likewise.
10852         * sunrpc/clnt_perr.c: Likewise.
10853         * sunrpc/clnt_tcp.c: Likewise.
10854         * sunrpc/clnt_udp.c: Likewise.
10855         * sunrpc/clnt_unix.c: Likewise.
10856         * sunrpc/openchild.c: Likewise.
10857         * sunrpc/svc_simple.c: Likewise.
10858         * sunrpc/svc_tcp.c: Likewise.
10859         * sunrpc/svc_udp.c: Likewise.
10860         * sunrpc/svc_unix.c: Likewise.
10861         * sunrpc/xdr.c: Likewise.
10862         * sunrpc/xdr_array.c: Likewise.
10863         * sunrpc/xdr_rec.c: Likewise.
10864         * sunrpc/xdr_ref.c: Likewise.
10865         * sunrpc/xdr_stdio.c: Likewise.
10866
10867 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10868
10869         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10870
10871 2011-07-03  Andreas Jaeger  <aj@suse.de>
10872
10873         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
10874         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
10875         regenerate with gen-libm-tests.pl.
10876
10877 2010-05-12  Petr Baudis  <pasky@suse.cz>
10878
10879         [BZ #11589]
10880         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
10881         around j0() zero points by switching to j1().
10882         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10883         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10884         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10885         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10886
10887 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10888
10889         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
10890         instead of 0.
10891         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
10892         instead of 0.                              .
10893         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10894         Patch in part by Pavel Roskin <proski@gnu.org>.
10895
10896         [BZ #13138]
10897         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
10898         realloc.
10899         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
10900         Free memory block if necessary.
10901
10902         [BZ #12847]
10903         * libio/genops.c (INTDEF): For string streams the _lock pointer can
10904         be NULL.  Don't lock in this case.
10905
10906 2011-09-09  Roland McGrath  <roland@hack.frob.com>
10907
10908         * elf/elf.h (ELFOSABI_GNU): New macro.
10909         (ELFOSABI_LINUX): Define to that.
10910
10911 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
10912
10913         * string/strncat.c (strncat): Undef the symbol in case it has been
10914         defined in bits/string.h.
10915
10916 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10917
10918         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
10919
10920         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
10921         link map.
10922
10923 2011-08-17  Andreas Jaeger  <aj@suse.de>
10924
10925         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
10926
10927 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10928             Ian Lance Taylor  <iant@google.com>
10929
10930         * math/libm-test.inc (lround_test): New testcase.
10931         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
10932
10933 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
10934
10935         * Makefile: Remove support for automatic cvs check-ins.
10936         * Makerules: Likewise.
10937         * config.make.in: Likewise.
10938         * configure.in: Likewise.
10939         * intl/Makefile: Likewise.
10940         * locale/Makefile: Likewise.
10941         * po/Makefile: Likewise.
10942         * posix/Makefile: Likewise.
10943         * sysdeps/gnu/Makefile: Likewise.
10944         * sysdeps/mach/hurd/Makefile: Likewise.
10945         * sysdeps/sparc/sparc32/Makefile: Likewise.
10946
10947         [BZ #13118]
10948         * posix/Makefile (bug-regex32-ENV): Define.
10949         Patch by John Stanley <jpsinthemix@verizon.net>.
10950
10951         * misc/Makefile (headers): Add bits/select2.h.
10952         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
10953         * misc/bits/select2.h: New file.
10954         * include/bits/select2.h: New file.
10955         * debug/Makefile (routines): Add fdelt_chk.
10956         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
10957         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
10958         FD_ISSET.
10959         * debug/fdelt_chk.c: New file.
10960
10961         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
10962         * wcsmbs/test-wmemcmp.c: Likewise.
10963         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
10964         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
10965
10966 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10967
10968         * string/Makefile (strop-tests): Add memcmp.
10969         * string/test-wmemcmp.c: New file.
10970         * string/test-memcmp.c: Add wmemcmp support.
10971
10972 2011-09-08  Roland McGrath  <roland@hack.frob.com>
10973
10974         [BZ #13153]
10975         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
10976         2011-07-19 change.
10977
10978         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
10979         garbage value in a __mach_port_mod_refs call in the cases of the
10980         task-self and thread-self ports.
10981
10982 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10983
10984         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
10985
10986 2011-09-08  Andreas Schwab  <schwab@redhat.com>
10987
10988         * elf/dl-load.c (lose): Check for non-null L.
10989
10990 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10991
10992         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
10993
10994         * elf/dl-libc.c (dlerror_run): Pass back error code from
10995         dl_catch_error.
10996
10997         [BZ #13123]
10998         * elf/dl-load.c (lose): Free l_origin if it is valid.
10999
11000         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
11001         names.
11002         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
11003         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
11004         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11005         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
11006         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
11007         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
11008
11009 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11010
11011         * sysdeps/powerpc/fpu/e_hypot.c: New file.
11012         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
11013         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
11014         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
11015         * sysdeps/powerpc/fpu/k_cosf.c: New file.
11016         * sysdeps/powerpc/fpu/k_sinf.c: New file.
11017         * sysdeps/powerpc/fpu/s_cosf.c: New file.
11018         * sysdeps/powerpc/fpu/s_sinf.c: New file.
11019         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
11020         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
11021
11022 2011-08-15  Alan Modra  <amodra@gmail.com>
11023
11024         [BZ #13092]
11025         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
11026         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
11027         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
11028         ppc_mcount to static-only-routines.
11029         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
11030         __mcount_internal.
11031         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
11032         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
11033
11034 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
11035
11036         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
11037         for finite and infinity parameters.
11038
11039 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11040
11041         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
11042         and add nop instructions for throughput optimization.
11043         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11044
11045 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
11046
11047         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
11048         aligned copy for power7 with vector-scalar instructions.
11049         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
11050
11051 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11052
11053         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
11054         AVX check.
11055
11056 2011-09-07  Andreas Schwab  <schwab@redhat.com>
11057
11058         [BZ #13144]
11059         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
11060         last change.
11061
11062 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
11063
11064         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11065         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
11066         syscall wrapper around clock_gettime in __vdso_clock_gettime.
11067         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
11068         clock_gettime.
11069
11070 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
11071
11072         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
11073         Forgot to demangle the pointer.
11074
11075         * sysdeps/i386/sysdep.h: Define atom_text_section.
11076         * sysdeps/x86_64/sysdep.h: Likewise.
11077         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
11078         section with atom_text_section.
11079         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
11080         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
11081         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
11082         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11083         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
11084
11085         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
11086         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
11087         already be defined.  Change to take two parameters and don't assign
11088         result to variable.  Adjust all users.
11089         Define INTERNAL_GETTIME if not already defined.
11090         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
11091         call.
11092         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
11093         HAVE_CLOCK_GETTIME_VSYSCALL.
11094         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
11095
11096         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
11097         gettimeofday vsyscall, just use time.
11098
11099 2011-09-06  Andreas Schwab  <schwab@redhat.com>
11100
11101         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
11102         <errno.h>.
11103
11104 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
11105
11106         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
11107         syscall on x86-64.
11108         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
11109         syscall.
11110         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
11111         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
11112         syscall if possible.
11113
11114 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11115
11116         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
11117         e_ident.  Don't pass to find_mapsXX.
11118         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
11119
11120 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11121
11122         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11123         strchr-sse2-no-bsf strrchr-sse2-no-bsf
11124         * sysdeps/x86_64/multiarch/strchr.S: Update.
11125         Check bit_slow_BSF bit.
11126         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
11127         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
11128         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
11129
11130 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11131
11132         [BZ #13134]
11133         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
11134         before glibc 2.15.
11135         (tryshell): Define.
11136         (__spawni): Change last parameter to be flag.  Test
11137         SPAWN_XFLAGS_USE_PATH flag to use path or not.
11138         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
11139         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
11140         * posix/spawni.c: Likewise.
11141         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
11142         * posix/spawnp.c: Likewise.  Change normal version to use
11143         SPAWN_XFLAGS_USE_PATH.
11144         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
11145         SPAWN_XFLAGS_TRY_SHELL.
11146
11147         [BZ #13150]
11148         * posix/glob.h: Remove gcc 1.x support.
11149
11150         [BZ #13068]
11151         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
11152
11153 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11154
11155         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11156         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
11157         strrchr-sse2-bsf
11158         * sysdeps/i386/i686/multiarch/strchr.S: New file.
11159         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
11160         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
11161         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
11162         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
11163         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
11164
11165 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11166
11167         * sysdeps/x86_64/wcscmp.S: New file.
11168
11169         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
11170         wcscmp-c wcscmp-sse2
11171         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
11172         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
11173         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
11174         * wcsmbs/wcscmp.c: Allow renaming.
11175
11176 2011-09-05  David S. Miller  <davem@davemloft.net>
11177
11178         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
11179         stack slot, rather than the struct return pointer slot.
11180         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
11181         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
11182         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
11183         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
11184
11185 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11186
11187         * po/ja.po: Update from translation team.
11188
11189         [BZ #13144]
11190         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
11191         kernel in 64-bit binaries.
11192
11193 2011-09-01  David S. Miller  <davem@davemloft.net>
11194
11195         * elf/elf.h (HWCAP_SPARC_*): Move to..
11196         * sysdeps/sparc/sysdep.h: this new file and add new values.
11197         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
11198         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
11199         _DL_HWCAP_COUNT to 24.
11200         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
11201         entries.
11202         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
11203         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
11204         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
11205         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
11206         instead of magic constants.
11207         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11208
11209 2011-08-31  David S. Miller  <davem@davemloft.net>
11210
11211         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
11212         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
11213         Reimplement to do errno handling inline.
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/sparc64/sysdep.h: Include
11219         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
11220         (PSEUDO): Reimplement to do errno handling inline.
11221         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
11222         (SYSCALL_ERROR_HANDLER): New macro.
11223         (__SYSCALL_STRING): Do not do errno handling in asm.
11224         (__CLONE_SYSCALL_STRING): Delete.
11225         (__INTERNAL_SYSCALL_STRING): Delete.
11226         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
11227         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
11228         i386.
11229         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
11230         (inline_syscall*): Add 'err' argument.
11231         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
11232         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
11233         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
11234         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
11235
11236         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
11237         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
11238
11239 2011-08-30  Andreas Schwab  <schwab@redhat.com>
11240
11241         * elf/rtld.c (dl_main): Relocate objects in dependency order.
11242
11243 2011-08-29  Jiri Olsa <jolsa@redhat.com>
11244
11245         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
11246         directive.
11247
11248 2011-08-24  David S. Miller  <davem@davemloft.net>
11249
11250         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
11251
11252 2011-08-24  Andreas Schwab  <schwab@redhat.com>
11253
11254         * elf/Makefile: Add rules to build and run unload8 test.
11255         * elf/unload8.c: New file.
11256         * elf/unload8mod1.c: New file.
11257         * elf/unload8mod1x.c: New file.
11258         * elf/unload8mod2.c: New file.
11259         * elf/unload8mod3.c: New file.
11260
11261         * elf/dl-close.c (_dl_close_worker): Reset private search list if
11262         it wasn't used.
11263
11264 2011-08-23  David S. Miller  <davem@davemloft.net>
11265
11266         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
11267         subtract stack bias.
11268         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
11269         %sp not %fp in calculations.
11270         (_JMPBUF_UNWINDS_ADJ): Likewise.
11271
11272         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
11273         (aio_suspend): Call it to force an exception region around the
11274         AIO_MISC_WAIT() invocation.
11275
11276 2011-08-23  Andreas Schwab  <schwab@redhat.com>
11277
11278         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
11279         backslash.
11280
11281 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
11282
11283         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
11284         protection macro.
11285         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
11286         and <dl-machine.h>.
11287         (Elf64_FuncDesc): Remove.
11288
11289 2011-08-22  David S. Miller  <davem@davemloft.net>
11290
11291         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
11292         sigaltstack check, add missing cfi directives.
11293         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
11294         missing cfi directives, and sigaltstack handling.
11295
11296 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11297
11298         [BZ #11724]
11299         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
11300         object is seen twice.
11301         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11302
11303         * elf/Makefile (distribute): Add tst-initorder2.c.
11304         (tests): Add tst-initorder2.
11305         (modules-names): Add tst-initorder2a tst-initorder2b
11306         tst-initorder2c tst-initorder2d.  Add rules to build them.
11307         ($(objpfx)tst-initorder2.out): New rule.
11308         * elf/tst-initorder2.c: New file.
11309         * elf/tst-initorder2.exp: New file.
11310
11311 2011-08-22  Andreas Schwab  <schwab@redhat.com>
11312
11313         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
11314
11315         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
11316         dependencies back to end of function.
11317
11318         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11319         $(elfobjdir)/ld.so.
11320
11321 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
11322
11323         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
11324         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
11325         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11326         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11327         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
11328         of __vdso_gettimeofday.
11329         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
11330         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
11331         attribute_hidden.
11332         (_libc_vdso_platform_setup): Remove initialization of
11333         __vdso_gettimeofday and __vdso_time.
11334
11335 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11336
11337         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
11338         and fgetc_unlocked.
11339         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
11340         getc_unlocked.
11341
11342         * elf/dl-open.c (add_to_global): Report additions to the global scope
11343         for LD_DEBUG=scopes.
11344         (dl_open_worker): Also print scope of newly loaded dependencies.
11345         (_dl_show_scope): Indicate if there is no scope.
11346
11347         [BZ #13114]
11348         * stdio-common/Makefile (tests): Add bug24.
11349         * stdio-common/bug24.c: New file.
11350
11351 2011-08-19  Andreas Jaeger  <aj@suse.de>
11352
11353         [BZ #13114]
11354         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
11355         non-existant file when using close-on-exec mode.
11356
11357 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11358
11359         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
11360         the very first instruction.
11361
11362         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
11363         the CFI state in the end.
11364         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
11365         inclusion of dl-trampoline.h.
11366         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
11367
11368 2011-08-19  Andreas Schwab  <schwab@redhat.com>
11369
11370         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
11371         expectations for long double.
11372
11373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
11374         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
11375
11376 2011-08-14  David S. Miller  <davem@davemloft.net>
11377
11378         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
11379         artificual limit depends upon the system page size.
11380
11381 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11382
11383         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
11384         * resolv/Makefile: Define CFLAGS-libresolv.
11385
11386 2011-08-17  Andreas Schwab  <schwab@redhat.com>
11387
11388         * nss/makedb.c (compute_tables): Make variables used in nested
11389         function static.
11390
11391 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11392
11393         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
11394         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
11395         if buffer was too small.
11396
11397         * elf/pldd.c (main): Attach to all threads in the process.
11398         Rewrite /proc handling to use *at functions.
11399
11400 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
11401
11402         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
11403         specifies first scope to show.
11404         (dl_open_worker): Update callers.  Move printing scope of new
11405         object to before the relocation.
11406         * elf/rtld.c (dl_main): Update _dl_show_scope call.
11407         * sysdeps/generic/ldsodefs.h: Update declaration.
11408
11409         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
11410         string for the scope number.
11411
11412 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
11413
11414         * nscd/servicescache.c (cache_addserv): Make sure written is always
11415         initialized.
11416
11417 2011-08-14  Roland McGrath  <roland@hack.frob.com>
11418
11419         * sysdeps/i386/i486/bits/atomic.h
11420         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
11421         statement expression, so as to suppress "set but not used" warning.
11422         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
11423
11424         * string/strncat.c (STRNCAT): Use prototype definition.
11425
11426         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
11427         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
11428         -Iprograms here.
11429         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
11430         (localedef-modules): Add localedef.
11431         (locale-modules): Add locale.
11432
11433         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
11434         * elf/rtld.c (dl_main): Invert order of assignment in last change,
11435         to avoid a warning.
11436
11437 2011-08-14  David S. Miller  <davem@davemloft.net>
11438
11439         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
11440         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
11441
11442 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
11443
11444         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
11445         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
11446         * elf/rtld.c (dl_main): Set l_name of vDSO.
11447         Call _dl_show_scope when DL_DEBUG_SCOPES.
11448         (process_dl_debug): Recognize scopes flag and also set it for all.
11449         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
11450         Declare _dl_show_scope.
11451
11452         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
11453         (do_dlopen): Pass caller_dlopen to dl_open.
11454         (__libc_dlopen_mode): Initialize caller_dlopen.
11455
11456         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
11457         of libc.  Make tolower call locale-independent.  Optimize a bit by
11458         using isdigit instead of isalnum.
11459         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
11460
11461 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
11462
11463         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
11464         was a dependency or dynamically loaded.
11465
11466 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
11467
11468         * intl/l10nflist.c: Allow architecture-specific pop function.
11469         * sysdeps/x86_64/l10nflist.c: New file.
11470
11471         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
11472         classification.
11473
11474 2011-08-10  Andreas Schwab  <schwab@redhat.com>
11475
11476         * include/dirent.h: Add libc_hidden_proto for scandirat and
11477         scandirat64.  Don't declare __scandirat64.
11478         * dirent/scandirat.c: Add libc_hidden_def.
11479         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
11480         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
11481
11482 2011-08-10  David S. Miller  <davem@davemloft.net>
11483
11484         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
11485         enum.
11486         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11487         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11488         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11489
11490 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
11491
11492         * Versions.def [libc]: Add GLIBC_2.15.
11493         * dirent/Makefile (routines): Add scandirat and scandirat64.
11494         * dirent/Versions [libc]: Export scandirat and scandirat64 for
11495         GLIBC_2.15.
11496         * dirent/dirent.h: Declare scandirat and scandirat64.
11497         * dirent/scandirat.c: New file.
11498         * dirent/scandirat64.c: New file.
11499         * sysdeps/wordsize-64/scandirat.c: New file.
11500         * sysdeps/wordsize-64/scandirat64.c: New file.
11501         * dirent/opendir.c: Define opendirat.
11502         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
11503         using scandirat.
11504         * dirent/scandir64.c: Adjust for scandir.c change.
11505         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
11506         __scandirat64, and __scandir_cancel_handler.
11507         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
11508         additional parameter and use openat instead of open (outside of ld.so).
11509         Add new __opendir as wrapper around __opendirat.
11510         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
11511         here without requiring old scandirat implementation.
11512
11513 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
11514
11515         * dirent/scandir.c (cancel_handler): Renamed to
11516         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
11517         defined.  Adjust users.
11518         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
11519         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
11520
11521 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
11522
11523         * string/test-string.h (IMPL): Use __STRING to expand name and then
11524         stringify it.
11525
11526         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
11527         of cleanups.
11528
11529 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11530
11531         * string/Makefile: Update.
11532         (strop-tests): Append strncat.
11533         * string/test-wcscmp.c: New file.
11534         New comprehensive test for wcscmp.
11535         * string/test-strcmp.c: Update.
11536         (WIDE): New define.
11537
11538 2011-07-22  Andreas Schwab  <schwab@redhat.com>
11539
11540         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
11541         line.
11542
11543 2011-07-26  Andreas Schwab  <schwab@redhat.com>
11544
11545         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11546         encoding to ACE if AI_IDN.
11547
11548 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
11549
11550         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
11551         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
11552
11553 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11554
11555         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
11556         Fix overflow bug in strncat.
11557         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
11558
11559         * string/test-strncat.c: Update.
11560         Add new tests for checking overflow bugs.
11561
11562 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11563
11564         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11565         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
11566         * sysdeps/i386/i686/multiarch/strcat.S: New file.
11567         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
11568         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
11569         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
11570         * sysdeps/i386/i686/multiarch/strncat.S: New file.
11571         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
11572         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
11573
11574         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
11575         (USE_AS_STRCAT): Define.
11576         Add strcat and strncat support.
11577         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11578
11579 2011-07-25  Andreas Schwab  <schwab@redhat.com>
11580
11581         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
11582         __n bigger than INT_MAX+1.
11583         (__strncmp_g): Likewise.
11584
11585 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
11586
11587         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
11588         * libio/stido.h: Likewise.
11589
11590         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
11591         (AF_NFC): Define.
11592         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
11593         (AF_NFC): Define.
11594
11595         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
11596         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11597         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11598         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11599         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11600
11601         [BZ #13021]
11602         * scripts/test-installation.pl: Don't expect libnss_test1 to be
11603         installed.
11604
11605         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
11606         typo.
11607         (_dl_x86_64_save_sse): Likewise.
11608
11609 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
11610
11611         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
11612         OSXSAVE.
11613         (_dl_x86_64_save_sse): Likewise.
11614
11615         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
11616
11617         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
11618
11619 2011-07-21  Andreas Schwab  <schwab@redhat.com>
11620
11621         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
11622         change.
11623         (_dl_x86_64_save_sse): Use correct AVX check.
11624
11625 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11626
11627         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
11628         bug in strncpy/strncat.
11629         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
11630
11631 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
11632
11633         * string/tester.c (test_strcat): Add tests for different alignments
11634         of source and destination.
11635         (test_strncat): Likewise.
11636
11637 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11638
11639         [BZ #12852]
11640         * posix/glob.c (glob): Check passed in values before using them in
11641         expressions to avoid some overflows.
11642         (glob_in_dir): Likewise.
11643
11644         [BZ #13007]
11645         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
11646         check for AVX enablement so that we don't crash with old kernels and
11647         new hardware.
11648         * elf/tst-audit4.c: Add same checks here.
11649         * elf/tst-audit6.c: Likewise.
11650
11651         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
11652
11653 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
11654
11655         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
11656
11657 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11658
11659         * po/cs.po: Update from translation team.
11660         * po/bg.po: Likewise.
11661
11662 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
11663
11664         * misc/sys/cdefs.h: Add support for const attribute.
11665         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
11666         to gnu_dev_{major,minor,makedev} functions.
11667
11668 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
11669
11670         * intl/dcigettext.c (get_output_charset): Add missing bracket.
11671
11672 2011-07-20  Andreas Schwab  <schwab@redhat.com>
11673
11674         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
11675         strlen results.
11676
11677 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11678
11679         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
11680         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
11681         register in order to avoid conflicts with the soft frame pointer
11682         being held in r11 when necessary.
11683         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11684         (INTERNAL_VSYSCALL_NCS): Likewise.
11685
11686 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
11687
11688         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
11689         * elf/dl-fini.c (_dl_fini): Adjust caller.
11690         * elf/dl-close.c (_dl_close_worker): Likewise.
11691         * sysdeps/generic/ldsodefs.h: Adjust declaration.
11692
11693 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11694
11695         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
11696         "aux_cache->nlibs < 0".
11697
11698         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
11699         in the reload-count case.
11700
11701 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11702
11703         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11704         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
11705         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
11706         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
11707         * sysdeps/x86_64/multiarch/strcat.S: New file.
11708         * sysdeps/x86_64/multiarch/strncat.S: New file.
11709         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
11710         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
11711         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
11712         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
11713         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
11714         (USE_AS_STRCAT): Define.
11715         Add strcat and strncat support.
11716         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11717         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
11718         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
11719         * string/strncat.c: Update.
11720         (USE_AS_STRNCAT): Define.
11721         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11722         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
11723         and i7.
11724         * sysdeps/x86_64/multiarch/init-arch.h
11725         (bit_Prefer_PMINUB_for_stringop): New.
11726         (index_Prefer_PMINUB_for_stringop): Likewise.
11727         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
11728         bit_Prefer_PMINUB_for_stringop.
11729
11730 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11731
11732         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
11733         buffer64.
11734         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
11735         of casting of buffer.
11736         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
11737         buffer32 and buffer64.
11738         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
11739         writes instead of casting of buffer.
11740         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
11741         buffer32.
11742         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
11743         casting of buffer.
11744
11745 2011-07-19  Andreas Schwab  <schwab@redhat.com>
11746
11747         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
11748
11749 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11750
11751         * nscd/nscd.c (termination_handler): Don't do anything for a database
11752         if it has not yet been initialized.
11753
11754 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11755
11756         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11757
11758 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11759
11760         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11761
11762 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11763
11764         * po/nl.po: Update from translation team.
11765         * po/sv.po: Likewise.
11766
11767 2011-07-16  Roland McGrath  <roland@hack.frob.com>
11768
11769         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
11770         now disallowed by GCC.
11771
11772         * configure.in (use-default-link): Default to yes if a test -shared
11773         link meets our qualifications.
11774         * configure: Regenerated.
11775
11776         * config.make.in (output-format): New variable.
11777         * configure.in: Check for ld --print-output-format support.
11778         * configure: Regenerated.
11779         * Makerules ($(common-objpfx)format.lds)
11780         [$(output-format) != unknown]: Just use $(output-format),
11781         instead of the linker-script munging.
11782
11783 2011-07-14  Roland McGrath  <roland@hack.frob.com>
11784
11785         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
11786         of $(common-objpfx)shlib.lds.
11787         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
11788
11789         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
11790         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
11791
11792         * configure.in (-z relro check): Adjust test code to add a large
11793         writable data section after it.
11794         * configure: Regenerated.
11795
11796 2011-07-11  Roland McGrath  <roland@hack.frob.com>
11797
11798         * configure.in (-z relro check): Fix test code to make the variable
11799         truly const.
11800         * configure: Regenerated.
11801
11802 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
11803
11804         * nscd/nscd.h (struct traced_file): Define.
11805         (struct database_dyn): Remove inotify_descr, reset_res, and filename
11806         elements.  Add traced_files.
11807         (inotify_fd): Declare.
11808         (register_traced_file): Declare.
11809         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
11810         (inotify_fd): Export.
11811         (resolv_conf_descr): Remove.
11812         (nscd_init): Move inotify descriptor creation to main.
11813         Don't register files for notification here.
11814         (register_traced_file): New function.
11815         (invalidate_cache): Don't use reset_res to determine whether to call
11816         res_init, go through the list of registered files.
11817         (main_loop_poll): The inotify descriptors are now stored in the
11818         structures for the traced files.
11819         (main_loop_epoll): Likewise
11820         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
11821         to __nss_disable_nscd.
11822         * nscd/cache.c (prune_cache): There is no single inotify descriptor
11823         for a database anymore.  Check the records for all the registered
11824         files instead.
11825         * nss/Makefile (libnss_files-routines): Add files-init.
11826         (libnss_db-routines): Add db-init.
11827         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
11828         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
11829         * nss/nss_db/db-init.c: New file.
11830         * nss/nss_files/files-init.c: New file.
11831         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
11832         __nss_lookup_function.
11833         (__nss_lookup_function): Call nss_load_library.
11834         (nss_load_all_libraries): New function.
11835         (__nss_disable_nscd): Take parameter with callback function for files
11836         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
11837         used for the cached services.
11838         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
11839         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
11840         options for features to all the files in nscd.
11841
11842         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
11843
11844 2011-07-10  Roland McGrath  <roland@hack.frob.com>
11845
11846         * csu/elf-init.c (__libc_csu_init): Comment typo.
11847
11848 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
11849
11850         * po/pl.po: Update from translation team.
11851         * po/ja.po: Likewise.
11852         * po/ru.po: Likewise.
11853         * po/ko.po: Likewise.
11854         * po/fr.po: Likewise.
11855
11856 2011-07-09  Roland McGrath  <roland@hack.frob.com>
11857
11858         * configure.in (.ctors/.dtors header and trailer check):
11859         Use an empirical test on a built program.
11860         * configure: Regenerated.
11861
11862         * configure.in (-z relro check): Use an empirical test on a built DSO.
11863         Detect, but do not require, on ia64.
11864         * configure: Regenerated.
11865
11866         * configure.in (READELF): Find it with AC_CHECK_TOOL.
11867         Update tests that use readelf to use $READELF instead.
11868         * configure: Regenerated.
11869
11870 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
11871
11872         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
11873         if the result is not used.
11874
11875 2011-07-05  Andreas Jaeger  <aj@suse.de>
11876
11877         [BZ#9696]
11878         * stdlib/tst-strtod.c: Add testcase.
11879
11880 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11881
11882         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
11883         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
11884         The latter has a higher limit.  Take additional parameter to pass to
11885         the new function.
11886         (__pathconf): Pass file to __statfs_link_max.
11887         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
11888         __statfs_link_max.
11889         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
11890         __statfs_link_max.
11891
11892         [BZ #12868]
11893         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
11894         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11895         Handle Lustre.
11896         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
11897         (__statfs_filesize_max): Likewise.
11898         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
11899
11900 2011-07-05  Andreas Jaeger  <aj@suse.de>
11901
11902         * resolv/res_comp.c (dn_skipname): Remove unused variable.
11903
11904 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
11905
11906         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
11907         `status' variable.
11908         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
11909         Likewise.
11910
11911 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11912
11913         * Makefile (strop-tests): Add strncat.
11914         * string/test-strncat.c: New file.
11915
11916 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
11917
11918         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
11919
11920 2011-06-21  Andreas Jaeger  <aj@suse.de>
11921
11922         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
11923         Copy rule from iconvdata/Makefile.
11924
11925 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11926
11927         [BZ #12922]
11928         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
11929         but no long options are defined, just return 'W'.
11930
11931 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
11932
11933         [BZ #9696]
11934         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
11935
11936 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11937
11938         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
11939         netgroups to read.
11940         (innetgr): Likewise.
11941
11942 2011-07-05  Roland McGrath  <roland@hack.frob.com>
11943
11944         * config.make.in (install_root): Default to $(DESTDIR).
11945
11946 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
11947
11948         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
11949
11950 2011-07-02  Roland McGrath  <roland@hack.frob.com>
11951
11952         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
11953
11954         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
11955         containing directory rather than embedding absolute directory names.
11956
11957         * scripts/check-local-headers.sh: Rewritten using awk.
11958         Match by word, not by line.  Print error messages for matches.
11959         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
11960
11961         * Makerules [shlib-lds-flags empty]:
11962         ($(common-objpfx)libc_pic.opts): New target.
11963         ($(common-objpfx)libc_pic.os.clean): New target.
11964         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
11965
11966         * config.make.in (OBJCOPY): New variable.
11967         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
11968         * configure: Regenerated.
11969
11970         * config.make.in (use-default-link): New variable.
11971         * configure.in (use_default_link): Grok --with-default-link to set it.
11972         * configure: Regenerated.
11973         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
11974         (shlib-lds, shlib-lds-flags): Define to empty.
11975
11976         * Makerules (shlib-lds): New variable.
11977         (shlib-lds-flags): New variable.
11978         (build-shlib, build-moduile, build-module-asneeded): Use it.
11979         ($(common-objpfx)libc.so): Use $(shlib-lds).
11980         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
11981         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
11982
11983         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
11984         DT_FLAGS/DT_FLAGS_1 with zero flags.
11985
11986         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
11987         linker script munging.
11988
11989 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
11990
11991         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
11992         as 128-bit value.
11993         * crypt/sha512.c (sha512_process_block): Perform total addition using
11994         128-bit if possible.
11995         (__sha512_finish_ctx): Likewise.
11996         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
11997         as 64-bit value.
11998         * crypt/sha256.c (SWAP64): Define.
11999         (sha256_process_block): Perform total addition using 64-bit if
12000         possible.
12001         (__sha256_finish_ctx): Likewise.
12002
12003 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
12004
12005         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
12006         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12007         * nscd/hstcache.c (cache_addhst): Likewise.
12008         * nscd/grpcache.c (cache_addgr): Likewise.
12009         * nscd/aicache.c (addhstaiX): Likewise
12010         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
12011
12012 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
12013
12014         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
12015         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12016         * nscd/hstcache.c (cache_addhst): Likewise.
12017         * nscd/grpcache.c (cache_addgr): Likewise.
12018         * nscd/aicache.c (addhstaiX): Likewise
12019
12020 2011-07-01  Andreas Schwab  <schwab@redhat.com>
12021
12022         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
12023         domain only when needed.
12024
12025 2011-06-30  Andreas Schwab  <schwab@redhat.com>
12026
12027         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
12028         is always restored.
12029
12030 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
12031
12032         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
12033         are re-adding the entry.
12034         * nscd/servicescache.c (cache_addserv): Likewise.
12035
12036 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
12037
12038         * sysdeps/generic/dl-irel.h: fix protection against multiple
12039         inclusions.
12040         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
12041
12042 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
12043
12044         [BZ #12935]
12045         * malloc/memusage.sh: Fix quoting in message.
12046         * debug/xtrace.sh: Likewise.
12047
12048         * configure.in: Remove support for --experimental-malloc option, make
12049         it the default.
12050         * config.make.in: Likewise.
12051         * malloc/Makefile: Likewise.
12052
12053 2011-06-27  Andreas Schwab  <schwab@redhat.com>
12054
12055         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
12056         two-byte characters.
12057
12058 2011-06-27  Roland McGrath  <roland@hack.frob.com>
12059
12060         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
12061         AC_CACHE_CHECK invocation.
12062         * configure: Regenerated.
12063
12064         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
12065
12066 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
12067
12068         [BZ #12350]
12069         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
12070         bit from old_res_options.
12071
12072         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
12073
12074         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
12075         value type for setfct.
12076
12077 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
12078
12079         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
12080         __gettimeofday instead of gettimeofday.
12081
12082 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
12083
12084         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
12085
12086 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12087
12088         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
12089
12090         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
12091         info.
12092
12093 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12094
12095         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12096         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
12097         strcpy-sse2-unaligned strncpy-sse2-unaligned
12098         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
12099         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
12100         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
12101         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
12102         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
12103         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
12104         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
12105         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
12106         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
12107         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
12108         (STRCPY): Support SSE2 and SSSE3 versions.
12109
12110 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
12111
12112         [BZ #12874]
12113         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
12114         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
12115         kernels which artificially limit size of requests.
12116
12117 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12118
12119         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12120         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
12121         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
12122         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
12123         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
12124         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
12125         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
12126         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
12127         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
12128         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
12129         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
12130         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
12131         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
12132         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
12133         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
12134         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12135         Enable unaligned load optimization for Intel Core i3, i5 and i7
12136         processors.
12137         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
12138         Define.
12139         (index_Fast_Unaligned_Load): Define.
12140         (HAS_FAST_UNALIGNED_LOAD): Define.
12141
12142 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
12143
12144         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
12145
12146 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
12147
12148         [BZ #12907]
12149         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
12150         until it is clear that the information is realy needed.
12151         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
12152
12153 2011-06-22  Andreas Schwab  <schwab@redhat.com>
12154
12155         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
12156
12157 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
12158
12159         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
12160         /sys/devices/system/cpu/online if it is usable.
12161
12162         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
12163         reading the information from the /proc filesystem to once a second.
12164
12165 2011-06-21  Andreas Jaeger  <aj@suse.de>
12166
12167         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
12168         NULL after inclusion of kernel headers.
12169
12170 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
12171
12172         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
12173         calls to internal_setent.
12174
12175         [BZ #12885]
12176         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
12177         addresses using gethostbyname4_r ignore IPv4 addresses.
12178
12179         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
12180         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
12181
12182         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
12183
12184 2011-06-20  David S. Miller  <davem@davemloft.net>
12185
12186         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
12187         inclusions.
12188         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
12189
12190         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
12191         (elf_irel): Use it.
12192         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
12193         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
12194         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
12195         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
12196         * sysdeps/x86_64/dl-irel.h: Likewise.
12197
12198         * elf/dl-runtime.c: Use elf_ifunc_invoke.
12199         * elf/dl-sym.c: Likewise.
12200
12201 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12202
12203         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
12204         need to dereference resplen2.
12205
12206 2011-06-14  Andreas Schwab  <schwab@redhat.com>
12207
12208         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
12209
12210 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12211
12212         * Makeconfig: Define vardbdir and inst_vardbdir.
12213         * nss/Makefile: Add rules to install db-Makefile.
12214
12215         * nss/nss_db/db-XXX.c: Cleanup.
12216
12217         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
12218         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
12219         GLIBC_PRIVATE.
12220         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
12221         * nss/makedb.c: Implement -g option to specify that value strings
12222         are generated and should not be added to table iterated over for
12223         get*ent calls.
12224         * nss/nss_db/db-initgroups.c: New file.
12225
12226         * nss/getent.c: Add support for initgroups lookups through getgrouplist
12227         interface.
12228
12229         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
12230         (internal_getgrouplist): Adjust to name change.
12231         Update use_initgroups_entry if this is not the first call.
12232         * nss/databases.def: Add initgroups entry.
12233
12234         * nss/makedb.c (compute_tables): Check result of multiple hash table
12235         sizes to minimize maximum chain length.
12236
12237 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
12238
12239         * Versions.def: Add entry for libnss_db.
12240         * shlib-versions: Likewise.
12241         * nss/Makefile: Add rules to build libnss_db.
12242         * nss/Versions: Add libnss_db information.  Organize libnss_files
12243         entries better.
12244         * nss/db-Makefile: Add gshadow support.  Change rules for the new
12245         makedb progra.  Some minor improvements to generate smaller files.
12246         * nss/nss_db/nss_db.h: Move NSS database header data structures to
12247         here from...
12248         * nss/makedb.c: ...here.
12249         Improve database format to be smaller and require less memory at
12250         runtime.
12251         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
12252         db anymore.
12253         * nss/nss_db/db-netgrp.c: Likewise.
12254         * nss/nss_db/db-open.c: Likewise.
12255         * nss/nss_files/flies-XXX.x: Adjust comments.
12256         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
12257         * nss/nss_files/files-grp.c: Likewise.
12258         * nss/nss_files/files-hosts.c: Likewise.
12259         * nss/nss_files/files-network.c: Likewise.
12260         * nss/nss_files/files-proto.c: Likewise.
12261         * nss/nss_files/files-pwd.c: Likewise.
12262         * nss/nss_files/files-rpc.c: Likewise.
12263         * nss/nss_files/files-service.c: Likewise.
12264         * nss/nss_files/files-sgrp.c: Likewise.
12265         * nss/nss_files/files-spwd.c: Likewise.
12266         * nss/nss_db/db-alias.c: Removed.
12267         * nss/nss_db/dummy-db.h: Removed.
12268
12269 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
12270
12271         * nss/makedb.c: Rewritten to not use database library.
12272         * nss/Makefile: Update to build new makedb program.
12273
12274 2011-06-14  Andreas Jaeger  <aj@suse.de>
12275
12276         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
12277         memset declaration.
12278
12279 2011-06-10  Andreas Schwab  <schwab@redhat.com>
12280
12281         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
12282         tmpbuf.
12283
12284 2011-06-10  Roland McGrath  <roland@hack.frob.com>
12285
12286         * Makerules (shlib.lds): Fail if the linker script comes out empty.
12287         * elf/Makefile ($(objpfx)ld.so): Likewise.
12288
12289         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
12290         Don't list ld.so twice in dependencies.
12291
12292         * posix/bug-regex31.c: Include <stdlib.h>.
12293
12294         * nscd/hstcache.c (cache_addhst): Remove unused variable.
12295
12296         * nis/nss_compat/compat-spwd.c
12297         (getspent_next_nss_netgr): Remove unused variable.
12298         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
12299
12300         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
12301         nonmembers" output to use the right array.
12302
12303         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
12304
12305         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
12306
12307         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
12308         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
12309         * catgets/gencat.c (read_input_file): Likewise.
12310         * locale/programs/locarchive.c (enlarge_archive): Likewise.
12311
12312         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
12313         variable definition inside #if's controlling its use.
12314
12315         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
12316
12317         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
12318
12319         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
12320
12321         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
12322         unreachable code.
12323
12324         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
12325
12326         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
12327         * configure: Regenerated.
12328
12329         * Makerules: Revert last change.
12330         * elf/Makefile: Likewise.
12331
12332 2011-06-09  Roland McGrath  <roland@hack.frob.com>
12333
12334         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
12335         * elf/Makefile ($(objpfx)librtld.os): Likewise.
12336         (reloc-link): Likewise.
12337
12338 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
12339
12340         * elf/Makefile: Add rules to build pldd.
12341         * elf/pldd.c: New file.
12342         * elf/pldd-xx.c: New file.
12343
12344 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
12345
12346         * version.h: Update for 2.15 development version.
12347
12348 2011-06-07  David S. Miller  <davem@davemloft.net>
12349
12350         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
12351         ifuncs.
12352         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
12353         elf_machine_lazy_rel): Likewise.
12354         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
12355         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
12356         elf_machine_lazy_rel): Likewise.
12357         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
12358         dl_hwcap via passed in argument.
12359         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
12360         Likewise.
12361
12362 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12363
12364         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
12365
12366 2011-06-06  Roland McGrath  <roland@hack.frob.com>
12367
12368         [BZ #12849]
12369         * manual/fdl-1.1.texi: New file, verbatim from:
12370         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
12371         * manual/lgpl-2.1.texi: New file, verbatim from:
12372         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
12373         * manual/Makefile (licenses): New variable, list those new file names.
12374         (texis): Use it.
12375         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
12376
12377         * manual/fdl.texi: File removed.
12378         * manual/lesser.texi: File removed.
12379         * manual/libc.texinfo (Copying, Documentation License):
12380         Use new @include file names, put @appendix directive before @include.
12381
12382 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
12383
12384         [BZ #12841]
12385         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
12386         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
12387         (mq_open): Add __NTH.
12388
12389 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12390
12391         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12392         Assume Intel Core i3/i5/i7 processor if AVX is available.
12393
12394 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12395
12396         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12397         typo.
12398
12399 2011-05-31  Andreas Schwab  <schwab@redhat.com>
12400
12401         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
12402         memory.  Use alloca_account.  Fix memory leak when retrying.
12403
12404 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12405
12406         * version.h (RELEASE): Bump for 2.14 release.
12407         * include/features.h (__GLIBC_MINOR__): Bump to 14.
12408
12409         * config.make.in (RANLIB): Remove entry.
12410
12411 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
12412
12413         * po/Makefile (po-sed-cmd): Add ksh to extensions.
12414         (libc.pot): Work around missing support for .ksh extension in xgettext.
12415
12416         [BZ #12684]
12417         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
12418         if both request failed.
12419         (send_dg): In case of server errors clear resplen or *resplen2.
12420
12421         [BZ #12454]
12422         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
12423         when there are multiple maps.
12424         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
12425         (_dl_fini): Remove test here.
12426
12427         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
12428
12429 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
12430
12431         [BZ #12350]
12432         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
12433         bit from old_res_options.
12434         (gaih_inet): Likewise.
12435
12436         [BZ #11099]
12437         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
12438         as signed.
12439
12440         * resolv/res_init.c (res_setoptions): Make the code more compact.
12441
12442         [BZ #11558]
12443         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
12444         set RES_USEVC.
12445
12446         [BZ #11634]
12447         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
12448
12449         * malloc/malloc.h: Mark malloc hook variables as deprecated.
12450
12451         [BZ #11781]
12452         * malloc/malloc.h: Declare malloc hook variables as volatile.
12453
12454         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
12455         in last patch.
12456
12457         [BZ #11799]
12458         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
12459         raise in the comment.
12460         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12461         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12462         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
12463
12464 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
12465
12466         [BZ #12811]
12467         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
12468         grow the buffers more if it already has to be sufficient.
12469         (build_wcs_upper_buffer): Likewise.
12470         * posix/regexec.c (check_matching): Likewise.
12471         (clean_state_log_if_needed): Likewise.
12472         (extend_buffers): Don't enlarge buffers beyond size of the input
12473         buffer.
12474         Patches mostly by Emil Wojak <emil@wojak.eu>.
12475         * posix/bug-regex32.c: New file.
12476         * posix/Makefile (tests): Add bug-regex32.
12477
12478         * locale/findlocale.c (_nl_find_locale): Return right away if
12479         _nl_explode_name failed.
12480         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12481
12482         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
12483
12484         * debug/xtrace.sh: Unify messages.
12485         * malloc/memusage.sh: Likewise.
12486
12487         [BZ #12813]
12488         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
12489         time symbol from vDSO.  Substitute with vsyscall if not available.
12490         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
12491         __vdso_time.
12492
12493         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
12494         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
12495         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
12496         Add sendmmsg and internal_sendmmsg.
12497         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
12498         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
12499         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
12500
12501         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
12502         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
12503         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
12504
12505 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
12506
12507         [BZ #12813]
12508         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
12509         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
12510         available.
12511         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
12512         __vdso_getcpu.
12513
12514         [BZ #12814]
12515         * iconvdata/Makefile (tests): Add bug-iconv9.
12516         * iconvdata/bug-iconv9.c: New file.
12517
12518 2011-05-27  Andreas Schwab  <schwab@redhat.com>
12519
12520         [BZ #12814]
12521         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
12522
12523 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12524
12525         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12526         (struct user_regs_struct): Change intcs field back to cs.
12527
12528 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
12529
12530         * po/ja.po: Update from translation team.
12531
12532 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
12533
12534         [BZ #12795]
12535         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
12536         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
12537
12538 2011-05-20  Andreas Schwab  <schwab@redhat.com>
12539
12540         * stdlib/longlong.h: Update from GCC.
12541
12542 2011-05-23  Andreas Schwab  <schwab@redhat.com>
12543
12544         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
12545         parameter name.
12546         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
12547         Add parameter name.
12548         (__sysconf): Pass it down.
12549
12550 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
12551
12552         [BZ #12671]
12553         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
12554         some situations.
12555         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12556         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
12557         add in in __libc_use_alloca calls.  Adjust callers.
12558         (glob): Use malloc in some situations.
12559
12560         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
12561         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
12562         pltexit.
12563
12564 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
12565
12566         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
12567         and CLOCK_BOOTTIME_ALARM.
12568
12569         [BZ #12782]
12570         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
12571         is returned.
12572
12573         * string/_strerror.c (__strerror_r): Print negative errors as signed
12574         numbers.
12575
12576         [BZ #12777]
12577         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
12578         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
12579         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
12580
12581         * configure.in: Fix typo in redirection and correct removal of test
12582         files in two cases.
12583
12584         [BZ #12788]
12585         * locale/setlocale.c (new_composite_name): Fix test to check for
12586         identical name of all categories.
12587
12588         [BZ #12792]
12589         * libio/filedoalloc.c (local_isatty): New function.
12590         (_IO_file_doallocate): Use local_isatty.
12591         * stdio-common/perror.c (perror): In case a new stream is used
12592         forward the stream error.
12593         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
12594         error flag.
12595
12596 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
12597
12598         [BZ #11869]
12599         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
12600         alloca.
12601         * include/alloca.h (extend_alloca_account): Define.
12602
12603         [BZ #11857]
12604         * posix/regex.h: Fix comments with documentation of user-accessible
12605         fields after compilation and describe correct free'ing of pattern
12606         after re_compile_pattern.
12607         Patch by Reuben Thomas <rrt@sc3d.org>.
12608
12609 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
12610
12611         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
12612         and -mno-altivec to prevent the compiler from using Altivec and/or
12613         VSX instructions when the corresponding registers are not available.
12614
12615 2011-05-19  Andreas Schwab  <schwab@redhat.com>
12616
12617         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
12618
12619 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
12620
12621         * libio/freopen.c (freopen): Use __dup2, not dup2.
12622         * libio/freopen64.c (freopen64): Likewise.
12623
12624 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12625
12626         [BZ #12775]
12627         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
12628         * math/Makefile (tests): Add test-powl.
12629         (CFLAGS-test-powl.c): Define.
12630         * math/test-powl.c: New file.
12631
12632 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12633
12634         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
12635
12636 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
12637
12638         [BZ #11837]
12639         * iconvdata/gb18030.c: Update to GB18020-2005.
12640
12641 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
12642
12643         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
12644         RE_SYNTAX_POSIX_AWK): Update to match recent development.
12645         Patch by Aharon Robbins <arnold@skeeve.com>.
12646
12647         [BZ #11892]
12648         * stdlib/putenv.c (putenv): Don't always create copy of the variable
12649         on the stack.
12650
12651         [BZ #11895]
12652         * misc/pselect.c (__pselect): Handle timeout value errors hidden
12653         through underflows.
12654
12655         [BZ #12766]
12656         * misc/error.c (error_at_line): Ensure file_name and old_file_name
12657         point to strings before performing equality test for error_one_per_line
12658         mode.
12659
12660         [BZ #11697]
12661         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
12662
12663         [BZ #11820]
12664         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12665         (struct user_fpregs_struct): Avoid __uint*_t types.
12666
12667         [BZ #6420]
12668         * malloc/mtrace.c (tr_where): Add additional parameter to point to
12669         symbol info.  Use it instead of calling _dl_addr locally.
12670         (lock_and_info): New function.
12671         (tr_freehook): Call lock_and_info and pass symbol info as additional
12672         parameter to tr_where.
12673         (tr_mallochook): Likewise.
12674         (tr_reallochook): Likewise.
12675         (tr_memalignhook): Likewise.
12676
12677         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
12678         used and couldn't be at all thread-safe.
12679
12680 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
12681
12682         * libio/freopen.c (freopen): Don't close old file descriptor
12683         before the new one is opened.  Instead dup the new file descriptor
12684         to the old one after the new stream is created.
12685         * libio/freopen64.c (freopen64): Likewise.
12686         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
12687         * libio/fileops.c (_IO_new_file_close_it): Handle new
12688         _IO_FLAGS2_NOCLOSE flag.
12689         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
12690         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
12691         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
12692         _IO_FLAGS2_NOCLOSE flag.
12693         * include/unistd.h: Add hidden_proto for dup3.
12694         Define __have_dup3.
12695         * io/dup3.c: Define hidden symbol.
12696         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
12697
12698         [BZ #7101]
12699         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
12700         when an incomplete long option is used.
12701         * posix/tst-getopt_long1.c: New file.
12702         * posix/Makefile (tests): Add tst-getopt_long1.
12703
12704         [BZ #10138]
12705         * scripts/config.guess: Update from autoconf-2.68.
12706         * scripts/config.sub: Likewise.
12707
12708         [BZ #10157]
12709         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
12710         tests into ...
12711         (has_cpuclock): ...this.  New function.
12712         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
12713         macro here based on has_cpuclock code.
12714
12715         [BZ #10149]
12716         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12717         First byte (not low byte) is now always NUL.
12718         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
12719
12720         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12721         Use non-cancelable interfaces.
12722
12723         [BZ #9809]
12724         * locale/iso-639.def: Add entry for Sorani.
12725
12726         [BZ #11901]
12727         * include/stdlib.h: Move include protection to the right place.
12728         Define abort_msg_s.  Declare __abort_msg with it.
12729         * stdlib/abort.c (__abort_msg): Adjust type.
12730         * assert/assert.c (__assert_fail_base): New function.  Majority
12731         of code from __assert_fail.  Allocate memory for __abort_msg with
12732         mmap.
12733         (__assert_fail): Now call __assert_fail_base.
12734         * assert/assert-perr.c: Remove bulk of implementation.  Use
12735         __assert_fail_base.
12736         * include/assert.hL Declare __assert_fail_base.
12737         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
12738         mmap.
12739         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
12740
12741 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
12742
12743         [BZ #11952]
12744         [BZ #12453]
12745         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
12746         until all modules are registered in the DTV.
12747         * elf/Makefile: Add rules to build and run tst-tls19.
12748         * elf/tst-tls19.c: New file.
12749         * elf/tst-tls19mod1.c: New file.
12750         * elf/tst-tls19mod2.c: New file.
12751         * elf/tst-tls19mod3.c: New file.
12752         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
12753
12754         [BZ #12083]
12755         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
12756         correctly.
12757
12758         [BZ #12601]
12759         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
12760         two-byte sequence errors.
12761         * iconvdata/Makefile (tests): Add bug-iconv8.
12762         * iconvdata/bug-iconv8.c: New file.
12763
12764         [BZ #12626]
12765         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
12766         buf2 definition.
12767
12768         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
12769
12770         [BZ #12432]
12771         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
12772         (dummy_getcfa): New function.
12773         (init): Get _Unwind_GetCFA address, use dummy if not found.
12774         (backtrace_helper): In recursion check, also check whether CFA changes.
12775         (__backtrace): Completely initialize arg.
12776
12777         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
12778         storing incomplete byte sequence in state object.  Avoid testing for
12779         guaranteed too small input if we know there is enough data available.
12780
12781 2011-05-11  Andreas Schwab  <schwab@redhat.com>
12782
12783         * Makeconfig (+link-pie): Indent.
12784         * Rules (binaries-pie): Define if $(have-fpie) and
12785         $(build-shared).
12786         (binaries-shared): Also filter out $(binaries-pie).
12787         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
12788         * nscd/Makefile (others-pie): Add nscd.
12789         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
12790         ($(objpfx)nscd): Remove command override.
12791         * login/Makefile (others-pie): Add pt_chown.
12792         ($(objpfx)pt_chown): Remove command override.
12793         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
12794         remove command overrides.
12795
12796 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
12797
12798         * libio/tst_putwc.c: Fix error messages.
12799
12800         [BZ #12724]
12801         * libio/fileops.c (_IO_new_file_close_it): Always flush when
12802         currently writing and seek to current position when not.
12803         * libio/Makefile (tests): Add bug-fclose1.
12804         * libio/bug-fclose1.c: New file.
12805
12806 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
12807
12808         [BZ #12511]
12809         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
12810         don't set DF_1_NODELETE here.
12811         (do_lookup_x): When entering new entry test for copy relocation
12812         and if necessary set DF_1_NODELETE flag.
12813         * elf/tst-unique4.cc: New file.
12814         * elf/tst-unique4.h: New file.
12815         * elf/tst-unique4lib.cc: New file.
12816         * elf/Makefile: Add rules to build and run tst-unique4.
12817         Patch by Piotr Bury <pbury@goahead.com>.
12818
12819 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12820
12821         [BZ #12052]
12822         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
12823
12824         [BZ #12625]
12825         * misc/mntent_r.c (addmntent): Flush the stream after the output
12826
12827         [BZ #12393]
12828         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
12829         (is_trusted_path_normalize): Skip initial colon.  Append slash
12830         to empty buffer.  Duplicate is_trusted_path code but allow
12831         constructed patch to be prefix.
12832         (is_dst): Allow $ORIGIN followed by /.
12833         (_dl_dst_substitute): Correct clearing of check_for_trusted.
12834         Correct testing of result of is_trusted_path_normalize
12835         (decompose_rpath): Fix warning.
12836
12837 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
12838
12839         [BZ #11257]
12840         * grp/initgroups.c (internal_getgrouplist): When we found the service
12841         list through the initgroups entry in nsswitch.conf do not always
12842         continue on a successful lookup.  Don't always use the
12843         __nss_group_database value if it is set.
12844         * nss/nsswitch.conf (initgroups): Change action for successful db
12845         lookup to continue for compatibility.
12846
12847 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
12848
12849         [BZ #11532]
12850         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
12851         and CP774 modules.
12852         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
12853         and CP774 modules.
12854         * iconvdata/tst-tables.sh: Likewise.
12855         * iconvdata/cp770.c: New file.
12856         * iconvdata/cp771.c: New file.
12857         * iconvdata/cp772.c: New file.
12858         * iconvdata/cp773.c: New file.
12859         * iconvdata/cp774.c: New file.
12860         * iconvdata/testdata/CP770: New file.
12861         * iconvdata/testdata/CP770..UTF8: New file.
12862         * iconvdata/testdata/CP771: New file.
12863         * iconvdata/testdata/CP771..UTF8: New file.
12864         * iconvdata/testdata/CP772: New file.
12865         * iconvdata/testdata/CP772..UTF8: New file.
12866         * iconvdata/testdata/CP773: New file.
12867         * iconvdata/testdata/CP773..UTF8: New file.
12868         * iconvdata/testdata/CP774: New file.
12869         * iconvdata/testdata/CP774..UTF8: New file.
12870
12871         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
12872         END CHARMAP line.
12873         * iconvdata/gen-8bit-gap.sh: Likewise.
12874         * iconvdata/gen-8bit.sh: Likewise.
12875
12876         * locale/iso-639.def: Add ary entry.
12877
12878         [BZ #11258]
12879         * locale/C-translit.h.in: Add U20A1 transliteration.
12880
12881         [BZ #12178]
12882         * locale/iso-639.def: Add wae entry.
12883         Patch by Kevin Bortis <bortis@translate-wae.ch>.
12884
12885         [BZ #12545]
12886         * locale/programs/localedef.c (construct_output_path): Use ssize_t
12887         for n.
12888
12889         [BZ #12711]
12890         * locale/C-translit.h.in: Add entry for U20B9.
12891         Patch by pravin.d.s@gmail.com.
12892
12893 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
12894
12895         [BZ #12713]
12896         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
12897         ENAMETOOLONG use generic getcwd.
12898         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
12899         in rtld.  Use *stat64.
12900         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
12901         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
12902         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
12903         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
12904         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
12905         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
12906         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
12907         __fstatat64 macros.
12908         * include/dirent.h: Add libc_hidden_proto for rewinddir.
12909         * dirent/rewinddir.c: Add libc_hidden_def.
12910         * sysdeps/mach/hurd/rewinddir.c: Likewise.
12911         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
12912
12913         * include/dirent.h (__alloc_dir): Add flags parameter.
12914         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
12915         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
12916         __alloc_dir.
12917         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
12918         from fdopendir if O_CLOEXEC is already set.
12919
12920 2011-03-15  Alan Modra  <amodra@gmail.com>
12921
12922         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
12923         l_tls_firstbyte_offset non-zero.  Save padding offset in
12924         l_tls_firstbyte_offset for later use.
12925         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
12926         freeing static tls block.
12927
12928 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
12929
12930         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
12931         where #ifdef was intended.  The intent is to prevent ARG_MAX from
12932         being defined by the kernel headers.
12933
12934 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
12935
12936         [BZ #12734]
12937         * resolv/resolv.h: Define RES_NOTLDQUERY.
12938         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
12939         no-tld-query and set RES_NOTLDQUERY.
12940         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
12941         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
12942         modern BIND to search name as TLD unless forbidden.
12943
12944 2011-05-07  Petr Baudis  <pasky@suse.cz>
12945             Ulrich Drepper  <drepper@gmail.com>
12946
12947         [BZ #12393]
12948         * elf/dl-load.c (fillin_rpath): Move trusted path check...
12949         (is_trusted_path): ...to here.
12950         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
12951         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
12952         using is_trusted_path_normalize() in setuid scripts.
12953
12954 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12955
12956         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
12957         __BEGIN/__END_DECLS.
12958
12959 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
12960
12961         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
12962         NSS_STATUS_NOTFOUND if no record was found.
12963
12964 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12965
12966         * sunrpc/Makefile (headers): Add rpc/netdb.h.
12967         (headers-not-in-tirpc): Remove rpc/netdb.h
12968         * resolv/netdb.h: Revert last change.
12969
12970 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12971
12972         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
12973         circular dependency between libgcc.a and libc.a.
12974
12975 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12976
12977         * resolv/netdb.h: Don't include <rpc/netdb.h>.
12978         * nis/Makefile: Don't install rpcsvc/*.
12979         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
12980         instead of <rpc/types.h>.
12981         (MAXHOSTNAMELEN): Define.
12982
12983 2011-05-03  Andreas Schwab  <schwab@redhat.com>
12984
12985         * elf/ldconfig.c (add_dir): Don't crash on empty path.
12986
12987 2011-04-28  Maciej Babinski  <mbabinski@google.com>
12988
12989         [BZ #12714]
12990         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
12991         gethostbyname4_r when IPv6 results are possible.
12992
12993 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
12994
12995         [BZ #12723]
12996         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
12997         _PC_PIPE_BUF handling.
12998
12999 2011-04-30  Bruno Haible  <bruno@clisp.org>
13000
13001         [BZ #12717]
13002         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
13003         * resolv/netdb.h (getnameinfo): Change type of flags parameter
13004         to 'int'.
13005         * inet/getnameinfo.c (getnameinfo): Likewise.
13006
13007 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
13008
13009         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
13010         to groups setting in database lookup.
13011         * nss/nsswitch.conf: Add initgroups entry.
13012
13013 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
13014
13015         [BZ #12685]
13016         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
13017         mode string.
13018         Patch by Eric Blake <eblake@redhat.com>.
13019
13020 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
13021
13022         * sunrpc/Makefile (need-export-routines): Add svc_run.
13023         (routines): Remove svc_run.
13024         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
13025         * sunrpc/clnt_perr.c (clnt_perrno): Export.
13026         * sunrpc/svc_run.c (svc_run): Likewise.
13027         * sunrpc/svc_udp.c (svcudp_create): Likewise.
13028
13029 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
13030
13031         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
13032         problem in reallocation in last patch.
13033
13034 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
13035
13036         * sunrpc/Makefile: Move inclusion of Rules.
13037
13038 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
13039
13040         * nss/nss_files/files-initgroups.c: New file.
13041         * nss/Makefile (libnss_files-routines): Add files-initgroups.
13042         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
13043         _nss_files_initgroups_dyn.
13044
13045 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
13046
13047         * elf/elf.h (R_ARM_IRELATIVE): Define.
13048
13049 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
13050
13051         * po/ru.po: Update from translation team.
13052
13053 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
13054
13055         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
13056         dependencies.
13057
13058 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
13059
13060         [BZ #12653]
13061         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
13062         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
13063         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13064         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13065         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13066
13067 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
13068
13069         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
13070         differing bytes.
13071         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13072         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13073         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13074
13075 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
13076
13077         [BZ #12420]
13078         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
13079         storing it.
13080         * stdlib/bug-getcontext.c: New file.
13081         * stdlib/Makefile: Add rules to build and run bug-getcontext.
13082
13083 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13084
13085         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
13086         instructions into .machine "z9-109".
13087         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
13088         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
13089
13090 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13091
13092         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
13093         between environment variables and auxiliary vector.
13094
13095 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
13096
13097         * Makefile: Add rules to build linkobj/libc.so.
13098         * include/libc-symbols.h: Define libc_hidden_nolink.
13099         * include/rpc/auth.h: Mark functions which are to be hidden.
13100         * include/rpc/auth_des.h: Likewise.
13101         * include/rpc/auth_unix.h: Likewise.
13102         * include/rpc/clnt.h: Likewise.
13103         * include/rpc/des_crypt.h: Likewise.
13104         * include/rpc/key_prot.h: Likewise.
13105         * include/rpc/pmap_clnt.h: Likewise.
13106         * include/rpc/pmap_prot.h: Likewise.
13107         * include/rpc/pmap_rmt.h: Likewise.
13108         * include/rpc/rpc_msg.h: Likewise.
13109         * include/rpc/svc.h: Likewise.
13110         * include/rpc/svc_auth.h: Likewise.
13111         * include/rpc/xdr.h: Likewise.
13112         * nis/Makefile: Link all DSOs against linkobj/libc.so.
13113         * nss/Makefile: Likewise.
13114         * sunrpc/Makefile: Don't install headers.  Build library with normal
13115         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
13116         * sunrpc/auth_des.c: Hide exported symbols by default, export some
13117         for the compat linking library.  Remove use of INTDEF/INTUSE.
13118         * sunrpc/auth_none.c: Likewise.
13119         * sunrpc/auth_unix.c: Likewise.
13120         * sunrpc/authdes_prot.c: Likewise.
13121         * sunrpc/authuxprot.c: Likewise.
13122         * sunrpc/clnt_gen.c: Likewise.
13123         * sunrpc/clnt_perr.c: Likewise.
13124         * sunrpc/clnt_raw.c: Likewise.
13125         * sunrpc/clnt_simp.c: Likewise.
13126         * sunrpc/clnt_tcp.c: Likewise.
13127         * sunrpc/clnt_udp.c: Likewise.
13128         * sunrpc/clnt_unix.c: Likewise.
13129         * sunrpc/des_crypt.c: Likewise.
13130         * sunrpc/des_soft.c: Likewise.
13131         * sunrpc/get_myaddr.c: Likewise.
13132         * sunrpc/key_call.c: Likewise.
13133         * sunrpc/key_prot.c: Likewise.
13134         * sunrpc/netname.c: Likewise.
13135         * sunrpc/pm_getmaps.c: Likewise.
13136         * sunrpc/pm_getport.c: Likewise.
13137         * sunrpc/pmap_clnt.c: Likewise.
13138         * sunrpc/pmap_prot.c: Likewise.
13139         * sunrpc/pmap_prot2.c: Likewise.
13140         * sunrpc/pmap_rmt.c: Likewise.
13141         * sunrpc/publickey.c: Likewise.
13142         * sunrpc/rpc_cmsg.c: Likewise.
13143         * sunrpc/rpc_common.c: Likewise.
13144         * sunrpc/rpc_dtable.c: Likewise.
13145         * sunrpc/rpc_prot.c: Likewise.
13146         * sunrpc/rpc_thread.c: Likewise.
13147         * sunrpc/rtime.c: Likewise.
13148         * sunrpc/svc.c: Likewise.
13149         * sunrpc/svc_auth.c: Likewise.
13150         * sunrpc/svc_authux.c: Likewise.
13151         * sunrpc/svc_raw.c: Likewise.
13152         * sunrpc/svc_run.c: Likewise.
13153         * sunrpc/svc_simple.c: Likewise.
13154         * sunrpc/svc_tcp.c: Likewise.
13155         * sunrpc/svc_udp.c: Likewise.
13156         * sunrpc/svc_unix.c: Likewise.
13157         * sunrpc/svcauth_des.c: Likewise.
13158         * sunrpc/xcrypt.c: Likewise.
13159         * sunrpc/xdr.c: Likewise.
13160         * sunrpc/xdr_array.c: Likewise.
13161         * sunrpc/xdr_float.c: Likewise.
13162         * sunrpc/xdr_intXX_t.c: Likewise.
13163         * sunrpc/xdr_mem.c: Likewise.
13164         * sunrpc/xdr_rec.c: Likewise.
13165         * sunrpc/xdr_ref.c: Likewise.
13166         * sunrpc/xdr_sizeof.c: Likewise.
13167         * sunrpc/xdr_stdio.c: Likewise.
13168
13169 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
13170
13171         [BZ #12650]
13172         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
13173         * sysdeps/ia64/dl-tls.h: Likewise.
13174         * sysdeps/powerpc/dl-tls.h: Likewise.
13175         * sysdeps/s390/dl-tls.h: Likewise.
13176         * sysdeps/sh/dl-tls.h: Likewise.
13177         * sysdeps/sparc/dl-tls.h: Likewise.
13178         * sysdeps/x86_64/dl-tls.h: Likewise.
13179         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
13180
13181 2011-03-14  Andreas Schwab  <schwab@redhat.com>
13182
13183         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
13184         rpath element also skip the following colon.
13185         (expand_dynamic_string_token): Add is_path parameter and pass
13186         down to DL_DST_REQUIRED and _dl_dst_substitute.
13187         (decompose_rpath): Call expand_dynamic_string_token with
13188         non-zero is_path.  Ignore empty rpaths.
13189         (_dl_map_object_from_fd): Call expand_dynamic_string_token
13190         with zero is_path.
13191
13192 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
13193
13194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13195         Make cancelable.
13196
13197 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
13198
13199         [BZ #12655]
13200         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
13201         Patch by Filipe David Manana <fdmanana@apache.org>.
13202
13203 2011-04-07  Andreas Schwab  <schwab@redhat.com>
13204
13205         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
13206         Maintain aligned stack.
13207         (CHECK_RSP): Remove unused macro.
13208
13209 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
13210
13211         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
13212         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
13213
13214 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
13215
13216         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
13217
13218         * include/features.h: Mention __USE_XOPEN2K8 in comment.
13219
13220 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
13221
13222         [BZ #12518]
13223         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
13224         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
13225         * sysdeps/x86_64/memmove.c: New file.
13226         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
13227         (memcpy): Renamed to ...
13228         (__new_memcpy): This.
13229         (memcpy): Provide GLIBC_2_14 memcpy.
13230         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
13231         (memcpy): Provide GLIBC_2_2_5 memcpy.
13232
13233 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13234
13235         [BZ #12631]
13236         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
13237
13238 2011-03-30  Andreas Schwab  <schwab@redhat.com>
13239
13240         * misc/syncfs.c: New file.
13241         * misc/Makefile (routines): Add syncfs.
13242         * posix/unistd.h: Declare syncfs.
13243         * sysdeps/unix/syscalls.list: Add syncfs.
13244
13245 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13246
13247         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
13248         open_by_handle_at.
13249         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13250         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13251         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13252         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13253         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13254         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
13255         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13256
13257 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13258
13259         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
13260         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13261         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13262         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13263         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13264         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13265         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13266
13267         * io/Makefile: Compile fallocate.c, fallocate64.c, and
13268         sync_file_range.c with -fexceptions.
13269         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
13270         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
13271         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
13272         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
13273         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13274         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13275         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
13276         sync_file_range as cancellation point
13277         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
13278         now a wrapper around __call_sync_file_range with cancellation handling.
13279         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
13280         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
13281         function name to __call_sync_file_range.
13282         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
13283         Add call_sync_file_range.
13284
13285 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13286
13287         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13288         bits/timex.h.
13289
13290 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13291
13292         * iconv/iconv.h: Fix typo in comment.
13293         * io/fcntl.h: Likewise.
13294         * libio/stdio.h: Likewise.
13295         * posix/spawn.h: Likewise.
13296         * posix/unistd.h: Likewise.
13297         * stdlib/stdlib.h: Likewise.
13298         * time/time.h: Likewise.
13299         * wcsmbs/wchar.h: Likewise.
13300
13301         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
13302         open_by_handle): Add.
13303         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
13304         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
13305         Augment a few comments.
13306         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13307         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13308         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13309         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13310         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13311         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
13312         open_by_handle.
13313
13314         * io/fcntl.h (AT_EMPTY_PATH): Define.
13315
13316 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
13317
13318         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
13319         * sysdeps/unix/sysv/linux/bits/time.h: New file.
13320         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
13321         to...
13322         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
13323         * Versions.def: Add GLIBC_2.14.
13324         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
13325         Export.
13326
13327 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
13328
13329         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
13330         round counter.
13331         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13332
13333 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13334
13335         [BZ #12597]
13336         * string/test-strncmp.c (do_page_test): New function.
13337         (check2): Likewise.
13338         (test_main): Call check2.
13339         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
13340
13341 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
13342
13343         [BZ #12587]
13344         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13345         Handle cache information in CPU leaf 4.
13346         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13347
13348 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
13349
13350         [BZ #12583]
13351         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
13352         character representation.
13353         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
13354
13355 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
13356
13357         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
13358         END(__isnan) to END(__isnanf) to match function entry point/label
13359         EALIGN(__isnanf,...).
13360
13361 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
13362
13363         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
13364
13365 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
13366
13367         [BZ #12510]
13368         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
13369         copy from the symbol referenced in the relocation to initialize the
13370         used variable.
13371         Patch by Piotr Bury <pbury@goahead.com>.
13372         * elf/Makefile: Add rules to build and tst-unique3.
13373         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
13374         * elf/tst-unique3.cc: New file.
13375         * elf/tst-unique3.h: New file.
13376         * elf/tst-unique3lib.cc: New file.
13377         * elf/tst-unique3lib2.cc: New file.
13378
13379         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
13380
13381 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
13382
13383         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
13384         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
13385         to _start.
13386
13387 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
13388
13389         * elf/dl-load.c (_dl_map_object): If we are looking for the first
13390         to-be-loaded object along a path to loader is ld.so.
13391
13392 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13393             Ulrich Drepper  <drepper@gmail.com>
13394
13395         * sysdeps/x86_64/memset.S: After aligning destination, code
13396         branches to different locations depending on the value of
13397         misalignment, when multiarch is enabled. Fix this.
13398
13399 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13400
13401         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
13402         Set _x86_64_preferred_memory_instruction for AMD processsors.
13403         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13404         Set bit_Prefer_SSE_for_memop for AMD processors.
13405
13406 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
13407
13408         * libio/fmemopen.c (fmemopen): Optimize a bit.
13409
13410 2011-03-03  Andreas Schwab  <schwab@redhat.com>
13411
13412         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
13413
13414 2011-03-03  Roland McGrath  <roland@redhat.com>
13415
13416         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
13417
13418 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
13419
13420         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
13421         __bzero_ultra1 instead of __memset_ultra1.
13422
13423 2011-02-23  Andreas Schwab  <schwab@redhat.com>
13424             Ulrich Drepper  <drepper@gmail.com>
13425
13426         [BZ #12509]
13427         * include/link.h (struct link_map): Add l_orig_initfini.
13428         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
13429         returning unsuccessfully.
13430         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
13431         close of a file loaded at startup, restore the original l_initfini
13432         list.
13433         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
13434         list, store the pointer.
13435         * elf/Makefile ($(objpfx)noload-mem): New rule.
13436         (noload-ENV): Define.
13437         (tests): Add $(objpfx)noload-mem.
13438         * elf/noload.c: Include <memcheck.h>.
13439         (main): Call mtrace.  Close all opened handles.
13440
13441 2011-02-17  Andreas Schwab  <schwab@redhat.com>
13442
13443         [BZ #12454]
13444         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
13445         dependencies are missing.
13446
13447 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13448
13449         Fix __if_freereq crash: Unlike the generic version which uses free,
13450         Hurd needs munmap.
13451         * sysdeps/mach/hurd/ifreq.h: New file.
13452
13453 2011-01-27  Petr Baudis  <pasky@suse.cz>
13454             Ulrich Drepper  <drepper@gmail.com>
13455
13456         [BZ 12445]#
13457         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
13458         to extend_alloca().
13459         * stdio-common/bug23.c: New file.
13460         * stdio-common/Makefile (tests): Add bug23.
13461
13462 2010-09-28  Andreas Schwab  <schwab@redhat.com>
13463             Ulrich Drepper  <drepper@gmail.com>
13464
13465         [BZ #12489]
13466         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
13467         before performing relro protection.  At old place add assertion
13468         to make sure nothing changed.
13469
13470 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
13471             Glauber de Oliveira Costa  <glommer@gmail.com>
13472
13473         * elf/elf.h: Add new ARM TLS relocs.
13474
13475 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
13476
13477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13478         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
13479         cast from r3.
13480         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
13481         'tests' variable.
13482         * sysdeps/wordsize-64/tst-writev.c: New file.
13483
13484 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
13485
13486         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
13487         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
13488         insns in _dl_start to prevent a TOC reference before relocs are
13489         resolved.
13490
13491 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
13492
13493         [BZ #12469]
13494         * Makeconfig: Remove RANLIB definition.
13495         * Makerules: Don't use RANLIB.
13496         * aclocal.m4: Remove ranlib test.
13497         * configure.in: No need to check for ranlib.
13498         * elf/rtld-Rules: Don't use RANLIB.
13499
13500 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13501
13502         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
13503         protection macro.
13504         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
13505         inclusion protection macro.
13506
13507         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
13508         SIGRTMIN and SIGRTMAX and print information in that case only when
13509         SIGRTMIN is defined.
13510
13511 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13512
13513         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
13514         arginfo fn returning -1.
13515
13516         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
13517         and thousands string is zero terminated.
13518
13519 2011-02-03  Andreas Schwab  <schwab@redhat.com>
13520
13521         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
13522         sysdeps/unix/sysv/linux/bits/socket.h.
13523
13524 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13525
13526         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
13527         (__CPU_COUNT): Remove old macros.
13528         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
13529         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
13530         (__CPU_ALLOC, __CPU_FREE): Add macros.
13531         (__sched_cpualloc, __sched_cpufree): Add declarations.
13532
13533 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
13534
13535         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
13536         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
13537         * nscd/aicache.c (addhstaiX): Return timeout of added value.
13538         (readdhstai): Return value of addhstaiX call.
13539         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
13540         (addgrbyX): Return value returned by cache_addgr.
13541         (readdgrbyname): Return value returned by addgrbyX.
13542         (readdgrbygid): Likewise.
13543         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
13544         (addpwbyX): Return value returned by cache_addpw.
13545         (readdpwbyname): Return value returned by addhstbyX.
13546         (readdpwbyuid): Likewise.
13547         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
13548         (addservbyX): Return value returned by cache_addserv.
13549         (readdservbyname): Return value returned by addservbyX:
13550         (readdservbyport): Likewise.
13551         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
13552         (addhstbyX): Return value returned by cache_addhst.
13553         (readdhstbyname): Return value returned by addhstbyX.
13554         (readdhstbyaddr): Likewise.
13555         (readdhstbynamev6): Likewise.
13556         (readdhstbyaddrv6): Likewise.
13557         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
13558         (readdinitgroups): Return value returned by addinitgroupsX.
13559         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
13560         (prune_cache): Keep track of timeout value of re-added entries.
13561         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
13562         * nscd/nscd.h: Adjust prototypes of readd* functions.
13563
13564 2011-02-04  Roland McGrath  <roland@redhat.com>
13565
13566         * nis/nis_server.c (nis_servstate): Use the right name for 0.
13567         (nis_stats): Likewise.
13568         * nis/nis_modify.c (nis_modify): Likewise.
13569         * nis/nis_remove.c (nis_remove): Likewise.
13570         * nis/nis_add.c (nis_add): Likewise.
13571
13572         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
13573
13574         * posix/fnmatch_loop.c: Add some consts.
13575
13576         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
13577
13578 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
13579
13580         [BZ #12460]
13581         * config.make.in (config-cflags-novzeroupper): Define.
13582         * configure.in: Substitute libc_cv_cc_novzeroupper.
13583         * elf/Makefile (AVX-CFLAGS): Define.
13584         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
13585         (CFLAGS-tst-auditmod4a.c): Likewise.
13586         (CFLAGS-tst-auditmod4b.c): Likewise.
13587         (CFLAGS-tst-auditmod6b.c): Likewise.
13588         (CFLAGS-tst-auditmod6c.c): Likewise.
13589         (CFLAGS-tst-auditmod7b.c): Likewise.
13590         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
13591
13592 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
13593
13594         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
13595         function to the callback.
13596         Patch partly by Jiri Olsa <jolsa@redhat.com>.
13597
13598 2011-02-02  Andreas Schwab  <schwab@redhat.com>
13599
13600         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
13601         of errno.
13602
13603 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
13604
13605         [BZ #11724]
13606         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
13607         of constructors.
13608         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
13609         of destructors.
13610         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
13611
13612         [BZ #11724]
13613         * elf/Makefile: Add rules to build and run new test.
13614         * elf/tst-initorder.c: New file.
13615         * elf/tst-initorder.exp: New file.
13616         * elf/tst-initordera1.c: New file.
13617         * elf/tst-initordera2.c: New file.
13618         * elf/tst-initordera3.c: New file.
13619         * elf/tst-initordera4.c: New file.
13620         * elf/tst-initorderb1.c: New file.
13621         * elf/tst-initorderb2.c: New file.
13622         * elf/tst-order-a1.c: New file.
13623         * elf/tst-order-a2.c: New file.
13624         * elf/tst-order-a3.c: New file.
13625         * elf/tst-order-a4.c: New file.
13626         * elf/tst-order-b1.c: New file.
13627         * elf/tst-order-b2.c: New file.
13628         * elf/tst-order-main.c: New file.
13629         New test case by George Gensure <werkt0@gmail.com>.
13630
13631 2010-10-01  Andreas Schwab  <schwab@redhat.com>
13632
13633         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13634         decoding ACE if AI_CANONIDN.
13635
13636 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
13637
13638         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
13639
13640 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
13641
13642         * version.h (RELEASE): Bump for 2.13 release.
13643         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
13644
13645         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
13646
13647         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
13648         MADV_NOHUGEPAGE.
13649         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
13650         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
13651         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13652         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13653         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13654         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13655
13656         * posix/getconf.c: Update copyright year.
13657         * catgets/gencat.c: Likewise.
13658         * csu/version.c: Likewise.
13659         * debug/catchsegv.sh: Likewise.
13660         * debug/xtrace.sh: Likewise.
13661         * elf/ldconfig.c: Likewise.
13662         * elf/ldd.bash.in: Likewise.
13663         * elf/sprof.c (print_version): Likewise.
13664         * iconv/iconv_prog.c: Likewise.
13665         * iconv/iconvconfig.c: Likewise.
13666         * locale/programs/locale.c: Likewise.
13667         * locale/programs/localedef.c: Likewise.
13668         * malloc/memusage.sh: Likewise.
13669         * malloc/mtrace.pl: Likewise.
13670         * nscd/nscd.c (print_version): Likewise.
13671         * nss/getent.c: Likewise.
13672
13673         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
13674         PF_CAIF, and PF_ALG.
13675         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13676
13677 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
13678
13679         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
13680         (modules-names): Use them.
13681         (ifunc-test-modules, ifunc-pie-tests): Define.
13682         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
13683         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
13684         (test-extras): Likewise.
13685         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
13686         $(compile-command.c).
13687         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
13688         (all-built-dso): Define.
13689         (check-textrel.out, check-execstack.out): Depend on it.
13690
13691         * configure.in: Don't override --enable-multi-arch.
13692
13693 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
13694
13695         [BZ #6812]
13696         * nscd/hstcache.c (tryagain): Define.
13697         (cache_addhst): Return tryagain not notfound for temporary errors.
13698         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
13699         failed.
13700
13701 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
13702
13703         [BZ #10563]
13704         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
13705         to make the syscall.
13706         * sysdeps/unix/sysv/linux/setgroups.c: New file.
13707
13708         [BZ #12378]
13709         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
13710         and fall back to matching as normal character if the string ends before
13711         the matching ']' is found.  This is what POSIX requires.
13712         * posix/testfnm.c: Adjust test result.
13713         * posix/globtest.sh: Adjust test result.  Add new test.
13714         * posix/tst-fnmatch.input: Likewise.
13715         * posix/tst-fnmatch2.c: Add new test.
13716
13717 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
13718
13719         * elf/Makefile (check-execstack): Revert last change.  Depend on
13720         check-execstack.h.
13721         (check-execstack.h): New target.
13722         (generated): Add check-execstack.h.
13723         * elf/check-execstack.c: Include "check-execstack.h".
13724         (main): Revert last change.
13725         (handle_file): Return zero if GNU_STACK is absent and
13726         DEFAULT_STACK_PERMS doesn't include PF_X.
13727
13728 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
13729
13730         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
13731         in child fails because the descriptor is already closed.
13732         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
13733         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
13734         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
13735
13736         [BZ #12397]
13737         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
13738         syscall.
13739
13740         [BZ #10484]
13741         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
13742         temporary buffer used to handle multi lookups locally.
13743         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
13744
13745 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13746
13747         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
13748         loader is ld.so.
13749
13750 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
13751
13752         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
13753         alignment for SSE2.
13754
13755 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13756
13757         [BZ #12394]
13758         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
13759         characters.  When rounding increased number of integer digits recompute
13760         number of groups.
13761         * stdio-common/tst-grouping.c: New file.
13762         * stdio-common/Makefile: Add rules to build and run tst-grouping.
13763
13764 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
13765
13766         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
13767         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
13768
13769         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
13770         void.
13771         * bits/select.h: Likewise.
13772
13773 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
13774
13775         * po/ja.po: Update from translation team.
13776
13777 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
13778
13779         [BZ #11155]
13780         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
13781         implementation just like for lxstat, fxstatat, et al.
13782
13783 2010-12-27  Jim Meyering  <meyering@redhat.com>
13784
13785         [BZ #12348]
13786         * posix/regexec.c (build_trtable): Return failure indication upon
13787         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13788
13789 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
13790
13791         [BZ #12201]
13792         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
13793         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
13794         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
13795         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
13796
13797         [BZ #12207]
13798         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
13799
13800         [BZ #12204]
13801         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
13802         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
13803
13804 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13805
13806         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
13807         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
13808         script has SORT_BY_INIT_PRIORITY.
13809         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
13810         NO_CTORS_DTORS_SECTIONS is defined.
13811         * elf/soinit.c: Likewise.
13812         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
13813         NO_CTORS_DTORS_SECTIONS is defined.
13814         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
13815         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
13816         * sysdeps/sh/init-first.c: Likewise.
13817         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
13818
13819 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
13820
13821         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
13822         always use the slow path.
13823
13824 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
13825
13826         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
13827         similar rule which adds the sysdep directories to the header search in
13828         order to pick up the correct platform stackinfo.h.
13829         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
13830         perform test if it is, otherwise return successfully without testing.
13831         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
13832         DEFAULT_STACK_PERMS define in stackinfo.h.
13833         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
13834         defined in stackinfo.h.
13835         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
13836         DEFAULT_STACK_PERMS defined in stackinfo.h.
13837         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
13838         * sysdeps/ia64/stackinfo.h: Likewise.
13839         * sysdeps/s390/stackinfo.h: Likewise.
13840         * sysdeps/sh/stackinfo.h: Likewise.
13841         * sysdeps/sparc/stackinfo.h: Likewise.
13842         * sysdeps/x86_64/stackinfo.h: Likewise.
13843         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
13844         PF_X for powerpc64.  Retain PF_X for powerpc32.
13845
13846 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
13847
13848         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
13849         accurately.
13850         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
13851         GETDENTS_64BIT_ALIGNED.
13852
13853 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
13854
13855         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
13856
13857 2010-12-10  Andreas Schwab  <schwab@redhat.com>
13858
13859         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
13860         _GNU_SOURCE.
13861
13862         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
13863         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
13864         Remove __restrict.
13865         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
13866         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
13867
13868 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
13869
13870         [BZ #11655]
13871         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
13872         are initialized.
13873
13874 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
13875
13876         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
13877
13878 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
13879
13880         * po/it.po: Update from translation team.
13881
13882 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13883
13884         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
13885         unused codes.
13886
13887 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
13888
13889         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
13890
13891 2010-11-24  Andreas Schwab  <schwab@redhat.com>
13892
13893         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
13894         specially.
13895         (gaih_getanswer_slice): Likewise.
13896
13897 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
13898
13899         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
13900
13901 2010-05-31  Petr Baudis  <pasky@suse.cz>
13902
13903         [BZ #11149]
13904         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
13905         silently even in the chroot mode.
13906
13907 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
13908
13909         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
13910         last patch a bit.  Pretty printing
13911
13912 2010-05-31  Petr Baudis <pasky@suse.cz>
13913
13914         [BZ #10085]
13915         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
13916         initialization of skip_initgroups_dyn.
13917
13918 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
13919
13920         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
13921         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13922
13923 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
13924
13925         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
13926
13927 2010-11-11  Andreas Schwab  <schwab@redhat.com>
13928
13929         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
13930         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
13931         (tst-fnmatch-ENV): Set MALLOC_TRACE.
13932         ($(objpfx)tst-fnmatch-mem): New rule.
13933         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
13934         * posix/tst-fnmatch.c (main): Call mtrace.
13935
13936 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
13937
13938         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13939         Support Intel processor model 6 and model 0x2c.
13940
13941 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
13942
13943         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
13944           signed comparison.
13945
13946 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
13947
13948         [BZ #12205]
13949         * string/test-strncasecmp.c (check_result): New function.
13950         (do_one_test): Use it.
13951         (check1): New function.
13952         (test_main): Use it.
13953         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
13954         Support strcasecmp and strncasecmp.
13955
13956 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
13957
13958         [BZ #12194]
13959         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
13960         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13961
13962 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13963
13964         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
13965         IFUNC support.
13966         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13967         memset-x86-64.
13968         * sysdeps/x86_64/multiarch/bzero.S: New file.
13969         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
13970         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
13971         * sysdeps/x86_64/multiarch/memset.S: New file.
13972         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
13973         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13974         Set bit_Prefer_SSE_for_memop for Intel processors.
13975         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
13976         Define.
13977         (index_Prefer_SSE_for_memop): Define.
13978         (HAS_PREFER_SSE_FOR_MEMOP): Define.
13979
13980 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
13981
13982         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
13983         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
13984
13985 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
13986
13987         [BZ #12191]
13988         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13989         (__x86_64_raw_data_cache_size_half): Likewise.
13990         (__x86_64_raw_shared_cache_size): Likewise.
13991         (__x86_64_raw_shared_cache_size_half): Likewise.
13992
13993         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13994         (__x86_64_raw_data_cache_size_half): Likewise.
13995         (__x86_64_raw_shared_cache_size): Likewise.
13996         (__x86_64_raw_shared_cache_size_half): Likewise.
13997         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
13998         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
13999         and __x86_64_raw_shared_cache_size_half.  Round
14000         __x86_64_data_cache_size_half, __x86_64_data_cache_size
14001         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
14002         to multiple of 256 bytes.
14003
14004 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
14005
14006         [BZ #12167]
14007         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
14008         of inacessible symlinks.  Verify result of symlink before returning it.
14009         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
14010         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
14011
14012 2010-10-28  Erich Ritz  <erichritz@gmail.com>
14013
14014         * math/math.h (isinf): Fix typo in comment.
14015
14016 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
14017
14018         * po/da.po: Update from translation team.
14019
14020 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
14021
14022         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
14023         is added to the list.
14024
14025 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14026             Ulrich Drepper  <drepper@gmail.com>
14027
14028         * elf/dl-object.c (_dl_new_object): Don't append the new object to
14029         the global list here.  Move code to...
14030         (_dl_add_to_namespace_list): ...here.  New function.
14031         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
14032         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
14033         * elf/dl-load.c (lose): Don't remove the element from the list.
14034         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
14035         (_dl_map_object): Likewise.
14036
14037 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
14038
14039         [BZ #12159]
14040         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
14041         into all bytes of SSE register.
14042         Patch by Richard Li <richardpku@gmail.com>.
14043
14044 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
14045
14046         [BZ #12140]
14047         * malloc/malloc.c (_int_free): Fill correct number of bytes when
14048         perturbing.
14049
14050 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
14051
14052         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
14053         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
14054         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
14055         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
14057         submachine.
14058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14059
14060 2010-10-22  Andreas Schwab  <schwab@redhat.com>
14061
14062         * include/dlfcn.h (__RTLD_SECURE): Define.
14063         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
14064         mode & __RTLD_SECURE instead.
14065         (open_path): Rename preloaded parameter to secure.
14066         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
14067         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
14068         * elf/dl-deps.c (openaux): Likewise.
14069         * elf/rtld.c (struct map_args): Remove is_preloaded.
14070         (map_doit): Don't use it.
14071         (dl_main): Likewise.
14072         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
14073         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
14074
14075 2010-09-09  Andreas Schwab  <schwab@redhat.com>
14076
14077         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
14078         (sysd-rules-targets): Remove duplicates.
14079         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
14080         rtld-%.$o dependency.
14081
14082 2010-10-18  Andreas Schwab  <schwab@redhat.com>
14083
14084         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
14085         _dl_map_object do it.
14086
14087 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
14088
14089         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
14090         fast fma builtins, define the macros in the C99 standard.
14091         (FP_FAST_FMAF): Likewise.
14092         (FP_FAST_FMAL): Likewise.
14093         * sysdeps/x86_64/bits/mathdef.h: Likewise.
14094
14095         * bits/mathdef.h: Update copyright year.
14096         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14097
14098 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
14099
14100         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
14101         builtins, define the macros in the C99 standard.
14102         (FP_FAST_FMAF): Likewise.
14103         (FP_FAST_FMAL): Likewise.
14104         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
14105         multiply/add.
14106         (FP_FAST_FMAF): Likewise.
14107
14108 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
14109
14110         [BZ #3268]
14111         * math/libm-test.inc (fma_test): Some new testcases.
14112         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
14113         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
14114         y and infinite z.  Do multiplication by C already in long double.
14115         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
14116         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
14117         y and infinite z.  Do bitwise or of inexact bit into u.d.
14118         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
14119         * sysdeps/i386/fpu/s_fmaf.S: Removed.
14120         * sysdeps/i386/fpu/s_fma.S: Removed.
14121         * sysdeps/i386/fpu/s_fmal.S: Removed.
14122
14123 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
14124
14125         [BZ #3268]
14126         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
14127         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
14128         computation is not scheduled after fetestexcept.  Fix value
14129         of minimum denormal long double.
14130
14131 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
14132
14133         [BZ #3268]
14134         * math/libm-test.inc (fma_test): Add some more tests.
14135         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
14136         correctly.
14137
14138 2010-10-15  Andreas Schwab  <schwab@redhat.com>
14139
14140         * scripts/data/localplt-s390-linux-gnu.data: New file.
14141         * scripts/data/localplt-s390x-linux-gnu.data: New file.
14142
14143 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
14144
14145         [BZ #3268]
14146         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
14147         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
14148         instead of dbl-64.
14149         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
14150         inlines.
14151         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
14152         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
14153         if one of x and y is very large and the other is subnormal.
14154         * sysdeps/s390/fpu/s_fmaf.c: New file.
14155         * sysdeps/s390/fpu/s_fma.c: New file.
14156         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
14157         * sysdeps/powerpc/fpu/s_fma.S: New file.
14158         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
14159         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
14160         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
14161
14162 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
14163
14164         [BZ #3268]
14165         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
14166         fma tests.
14167         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
14168         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
14169         * sysdeps/i386/i686/multiarch/s_fma.c: Include
14170         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
14171         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
14172         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
14173         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
14174
14175 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
14176
14177         [BZ #12078]
14178         * posix/regcomp.c (parse_branch): One more memory leak plugged.
14179         * posix/bug-regex31.input: Add test case.
14180
14181 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14182
14183         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
14184         * posix/bug-regex31.input: New file.
14185
14186         [BZ #12078]
14187         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
14188         (parse_sub_exp): Fix last change, use postorder.
14189
14190         * posix/bug-regex31.c: New file.
14191         * posix/Makefile: Add rules to build and run bug-regex31.
14192
14193         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
14194
14195         [BZ #12078]
14196         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
14197
14198         [BZ #12108]
14199         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
14200         to have entries in sys_siglist.
14201
14202         [BZ #12093]
14203         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
14204         be NULL.
14205
14206 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
14207
14208         [BZ #3268]
14209         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
14210         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
14211         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14212         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
14213         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14214         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
14215         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
14216         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
14217         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
14218         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
14219         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
14220         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
14221         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
14222         * math/ftestexcept.c (fetestexcept): Likewise.
14223         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
14224         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
14225         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
14226         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
14227         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
14228         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
14229         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14230
14231 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14232
14233         [BZ #12107]
14234         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
14235         newline.
14236
14237 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
14238
14239         * string/bug-strstr1.c: New file.
14240         * string/Makefile: Add rules to build and run bug-strstr1.
14241
14242 2010-10-05  Eric Blake  <eblake@redhat.com>
14243
14244         [BZ #12092]
14245         * string/str-two-way.h (two_way_long_needle): Always clear memory
14246         when skipping input due to the shift table.
14247
14248 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
14249
14250         [BZ #12005]
14251         * malloc/mcheck.c: Handle large requests.
14252
14253         [BZ #12077]
14254         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
14255         for strncmp and strncasecmp.
14256         * string/stratcliff.c: Add tests for strcmp and strncmp.
14257         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
14258
14259 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14260
14261         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
14262         __set_fpscr.
14263
14264 2010-09-30  Andreas Jaeger  <aj@suse.de>
14265
14266         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
14267         (CGROUP_SUPER_MAGIC): Define.
14268         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14269         Handle btrfs and cgroup file systems.
14270         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
14271         Likewise.
14272
14273 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
14274
14275         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
14276         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
14277
14278 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14279
14280         [BZ #12067]
14281         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
14282         trying to locate the ELF header.
14283
14284 2010-09-27  Andreas Schwab  <schwab@redhat.com>
14285
14286         [BZ #11611]
14287         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
14288         Mask out sign-bit copies when constructing f_fsid.
14289
14290 2010-09-24  Petr Baudis <pasky@suse.cz>
14291
14292         * debug/stack_chk_fail_local.c: Add missing licence exception.
14293         * debug/warning-nop.c: Likewise.
14294
14295 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
14296
14297         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
14298         implementing getdents64 using getdents syscall, set d_type if
14299         __ASSUME_GETDENTS32_D_TYPE.
14300
14301 2010-09-16  Andreas Schwab  <schwab@redhat.com>
14302
14303         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
14304         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
14305
14306 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
14307
14308         [BZ #12037]
14309         * posix/unistd.h: Undo change of feature selection for ftruncate from
14310         2010-01-11.
14311
14312 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
14313
14314         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
14315         detection.
14316
14317 2010-09-20  Andreas Schwab  <schwab@redhat.com>
14318
14319         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
14320         fanotify_mark.
14321         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14322
14323 2010-09-14  Andreas Schwab  <schwab@redhat.com>
14324
14325         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
14326         variables after CHECK_SP call.
14327         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
14328
14329 2010-09-13  Andreas Schwab  <schwab@redhat.com>
14330             Ulrich Drepper  <drepper@redhat.com>
14331
14332         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
14333         re-relocationg ld.so.
14334         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
14335         _dl_init_paths call.
14336         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
14337         here anymore.
14338
14339 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
14340
14341         * resolv/res_init.c (__res_vinit): Count the default server we added.
14342
14343 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
14344             Ulrich Drepper  <drepper@redhat.com>
14345
14346         [BZ #11968]
14347         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14348         (____longjmp_chk): Use %ebx for saving value across system call.
14349         Add unwind info.
14350
14351 2010-09-06  Andreas Schwab  <schwab@redhat.com>
14352
14353         * manual/Makefile: Don't mix pattern rules with normal rules.
14354
14355 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14356
14357         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
14358         operation.
14359         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
14360         * libio/iofopncook.c (_IO_cookie_init): Likewise.
14361         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
14362         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
14363         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14364         Likewise.
14365
14366 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
14367
14368         [BZ #11979]
14369         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
14370         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
14371
14372 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
14373
14374         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
14375         * sysdeps/x86_64/addmul_1.S: Likewise.
14376         * sysdeps/x86_64/lshift.S: Likewise.
14377         * sysdeps/x86_64/mul_1.S: Likewise.
14378         * sysdeps/x86_64/rshift.S: Likewise.
14379         * sysdeps/x86_64/sub_n.S: Likewise.
14380         * sysdeps/x86_64/submul_1.S: Likewise.
14381
14382 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14383
14384         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
14385         Define __sched_param instead of SCHED_* and sched_param when
14386         <bits/sched.h> is included with __need_schedparam defined.
14387         * bits/sched.h [__need_schedparam]
14388         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
14389         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
14390         (__defined_schedparam): Define to 1.
14391         (__sched_param): New structure, identical to sched_param.
14392         (__need_schedparam): Undefine.
14393
14394 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
14395
14396         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
14397         (epoll_create1): Declare.
14398
14399         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
14400
14401 2010-08-31  Andreas Schwab  <schwab@redhat.com>
14402
14403         [BZ #7066]
14404         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
14405         shifting retval into place.
14406
14407 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
14408
14409         * nis/rpcsvc/nis.h: Update copyright notice.
14410         * nis/rpcsvc/nis.x: Likewise.
14411         * nis/rpcsvc/nis_callback.h: Likewise.
14412         * nis/rpcsvc/nis_callback.x: Likewise.
14413         * nis/rpcsvc/nis_object.x: Likewise.
14414         * nis/rpcsvc/nis_tags.h: Likewise.
14415         * nis/rpcsvc/yp.h: Likewise.
14416         * nis/rpcsvc/yp.x: Likewise.
14417         * nis/rpcsvc/ypupd.h: Likewise.
14418         * nis/yp_xdr.c: Likewise.
14419         * nis/ypupdate_xdr.c: Likewise.
14420
14421         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
14422         mainly the body of pmap_getport.  Add parameters to specify timeouts.
14423         (pmap_getport): Use __libc_rpc_getport.
14424         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
14425         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
14426         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
14427
14428 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
14429
14430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
14431         fanotify_mark.
14432
14433 2010-08-27  Roland McGrath  <roland@redhat.com>
14434
14435         * sysdeps/i386/i686/multiarch/Makefile
14436         (CFLAGS-varshift.c): New variable.
14437
14438 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
14439
14440         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
14441         * sysdeps/i386/i686/multiarch/varshift.c: New file.
14442
14443         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
14444
14445         * sysdeps/x86_64/strlen.S: Minimal code improvement.
14446
14447 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
14448
14449         * sysdeps/x86_64/strlen.S: Unroll the loop.
14450         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14451         strlen-sse2 strlen-sse2-bsf.
14452         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
14453         __strlen_no_bsf if bit_Slow_BSF is set.
14454         (__strlen_sse42): Removed.
14455         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
14456         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
14457
14458 2010-08-25  Roland McGrath  <roland@redhat.com>
14459
14460         * sysdeps/x86_64/multiarch/varshift.S: File removed.
14461         * sysdeps/x86_64/multiarch/varshift.c: New file.
14462         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
14463         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
14464         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
14465         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14466
14467 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
14468
14469         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14470         strlen-sse2 strlen-sse2-bsf.
14471         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
14472         __strlen_sse2_bsf if bit_Slow_BSF is unset.
14473         (__strlen_sse2): Removed.
14474         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
14475         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
14476         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14477         bit_Slow_BSF for Atom.
14478         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
14479         (index_Slow_BSF): Define.
14480         (HAS_SLOW_BSF): Define.
14481
14482 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
14483
14484         [BZ #10851]
14485         * resolv/res_init.c (__res_vinit): When no server address at all
14486         is given default to loopback.
14487
14488 2010-08-24  Roland McGrath  <roland@redhat.com>
14489
14490         * configure.in: Remove config-name.h generation.
14491         * configure: Regenerated.
14492         * config-name.in: File removed.
14493         * scripts/config-uname.sh: New file.
14494         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
14495         ($(objdir)config-name.h): New target.
14496
14497         * sunrpc/rpc_parse.h: Avoid nested comment.
14498
14499 2010-08-24  Richard Henderson  <rth@redhat.com>
14500             Ulrich Drepper  <drepper@redhat.com>
14501             H.J. Lu  <hongjiu.lu@intel.com>
14502
14503         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
14504         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
14505         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
14506         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
14507         _mm_alignr_epi8 with _mm_loadu_si128.
14508         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
14509         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
14510         (__m128i_shift_right): Removed.
14511         * sysdeps/i386/i686/multiarch/varshift.h: New file.
14512         * sysdeps/i386/i686/multiarch/varshift.S: New file.
14513         * sysdeps/x86_64/multiarch/varshift.h: New file.
14514         * sysdeps/x86_64/multiarch/varshift.S: New file.
14515
14516 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
14517
14518         * configure.in: Move assembler checks to before sysdep dir checking.
14519
14520 2010-08-20  Petr Baudis  <pasky@suse.cz>
14521
14522         * LICENSES: Sync the sunrpc license.
14523
14524 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
14525
14526         * sunrpc/auth_des.c: Update copyright notice once again.
14527         * sunrpc/auth_none.c: Likewise.
14528         * sunrpc/auth_unix.c: Likewise.
14529         * sunrpc/authdes_prot.c: Likewise.
14530         * sunrpc/authuxprot.c: Likewise.
14531         * sunrpc/bindrsvprt.c: Likewise.
14532         * sunrpc/clnt_gen.c: Likewise.
14533         * sunrpc/clnt_perr.c: Likewise.
14534         * sunrpc/clnt_raw.c: Likewise.
14535         * sunrpc/clnt_simp.c: Likewise.
14536         * sunrpc/clnt_tcp.c: Likewise.
14537         * sunrpc/clnt_udp.c: Likewise.
14538         * sunrpc/clnt_unix.c: Likewise.
14539         * sunrpc/des_crypt.c: Likewise.
14540         * sunrpc/des_soft.c: Likewise.
14541         * sunrpc/get_myaddr.c: Likewise.
14542         * sunrpc/getrpcport.c: Likewise.
14543         * sunrpc/key_call.c: Likewise.
14544         * sunrpc/key_prot.c: Likewise.
14545         * sunrpc/openchild.c: Likewise.
14546         * sunrpc/pm_getmaps.c: Likewise.
14547         * sunrpc/pm_getport.c: Likewise.
14548         * sunrpc/pmap_clnt.c: Likewise.
14549         * sunrpc/pmap_prot.c: Likewise.
14550         * sunrpc/pmap_prot2.c: Likewise.
14551         * sunrpc/pmap_rmt.c: Likewise.
14552         * sunrpc/rpc/auth.h: Likewise.
14553         * sunrpc/rpc/auth_unix.h: Likewise.
14554         * sunrpc/rpc/clnt.h: Likewise.
14555         * sunrpc/rpc/des_crypt.h: Likewise.
14556         * sunrpc/rpc/key_prot.h: Likewise.
14557         * sunrpc/rpc/netdb.h: Likewise.
14558         * sunrpc/rpc/pmap_clnt.h: Likewise.
14559         * sunrpc/rpc/pmap_prot.h: Likewise.
14560         * sunrpc/rpc/pmap_rmt.h: Likewise.
14561         * sunrpc/rpc/rpc.h: Likewise.
14562         * sunrpc/rpc/rpc_des.h: Likewise.
14563         * sunrpc/rpc/rpc_msg.h: Likewise.
14564         * sunrpc/rpc/svc.h: Likewise.
14565         * sunrpc/rpc/svc_auth.h: Likewise.
14566         * sunrpc/rpc/types.h: Likewise.
14567         * sunrpc/rpc/xdr.h: Likewise.
14568         * sunrpc/rpc_clntout.c: Likewise.
14569         * sunrpc/rpc_cmsg.c: Likewise.
14570         * sunrpc/rpc_common.c: Likewise.
14571         * sunrpc/rpc_cout.c: Likewise.
14572         * sunrpc/rpc_dtable.c: Likewise.
14573         * sunrpc/rpc_hout.c: Likewise.
14574         * sunrpc/rpc_main.c: Likewise.
14575         * sunrpc/rpc_parse.c: Likewise.
14576         * sunrpc/rpc_parse.h: Likewise.
14577         * sunrpc/rpc_prot.c: Likewise.
14578         * sunrpc/rpc_sample.c: Likewise.
14579         * sunrpc/rpc_scan.c: Likewise.
14580         * sunrpc/rpc_scan.h: Likewise.
14581         * sunrpc/rpc_svcout.c: Likewise.
14582         * sunrpc/rpc_tblout.c: Likewise.
14583         * sunrpc/rpc_util.c: Likewise.
14584         * sunrpc/rpc_util.h: Likewise.
14585         * sunrpc/rpcinfo.c: Likewise.
14586         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
14587         * sunrpc/rpcsvc/key_prot.x: Likewise.
14588         * sunrpc/rpcsvc/klm_prot.x: Likewise.
14589         * sunrpc/rpcsvc/mount.x: Likewise.
14590         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
14591         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
14592         * sunrpc/rpcsvc/rex.x: Likewise.
14593         * sunrpc/rpcsvc/rstat.x: Likewise.
14594         * sunrpc/rpcsvc/rusers.x: Likewise.
14595         * sunrpc/rpcsvc/sm_inter.x: Likewise.
14596         * sunrpc/rpcsvc/spray.x: Likewise.
14597         * sunrpc/rpcsvc/yppasswd.x: Likewise.
14598         * sunrpc/rtime.c: Likewise.
14599         * sunrpc/svc.c: Likewise.
14600         * sunrpc/svc_auth.c: Likewise.
14601         * sunrpc/svc_authux.c: Likewise.
14602         * sunrpc/svc_raw.c: Likewise.
14603         * sunrpc/svc_run.c: Likewise.
14604         * sunrpc/svc_simple.c: Likewise.
14605         * sunrpc/svc_tcp.c: Likewise.
14606         * sunrpc/svc_udp.c: Likewise.
14607         * sunrpc/svc_unix.c: Likewise.
14608         * sunrpc/svcauth_des.c: Likewise.
14609         * sunrpc/xcrypt.c: Likewise.
14610         * sunrpc/xdr.c: Likewise.
14611         * sunrpc/xdr_array.c: Likewise.
14612         * sunrpc/xdr_float.c: Likewise.
14613         * sunrpc/xdr_mem.c: Likewise.
14614         * sunrpc/xdr_rec.c: Likewise.
14615         * sunrpc/xdr_ref.c: Likewise.
14616         * sunrpc/xdr_sizeof.c: Likewise.
14617         * sunrpc/xdr_stdio.c: Likewise.
14618
14619         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
14620         handling.
14621
14622 2010-08-19  Andreas Schwab  <schwab@redhat.com>
14623
14624         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
14625
14626 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
14627
14628         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
14629         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
14630         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
14631         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
14632         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
14633         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
14634         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
14635         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
14636         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
14637         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
14638         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
14639         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
14640         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
14641         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
14642
14643 2010-07-26  Anton Blanchard  <anton@samba.org>
14644
14645         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
14646         * malloc/arena.c (heap_trim): Likewise.
14647
14648 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
14649
14650         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
14651         here.  Not...
14652         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
14653         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
14654
14655 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14656
14657         * sysdeps/i386/elf/Makefile: New file.
14658
14659 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14660
14661         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
14662         from fanotify_init.
14663         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
14664         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14665
14666 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
14667
14668         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
14669         of strncasecmp_l.
14670         * sysdeps/multiarch/strcmp.S: Likewise.
14671
14672 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
14673
14674         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14675         strncase_l-nonascii.
14676         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14677         Add strncase_l-ssse3.
14678         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
14679         * sysdeps/x86_64/strcmp.S: Likewise.
14680         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
14681         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
14682         * sysdeps/x86_64/strncase.S: New file.
14683         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
14684         * sysdeps/x86_64/strncase_l.S: New file.
14685         * string/Makefile (strop-tests): Add strncasecmp.
14686         * string/test-strncasecmp.c: New file.
14687
14688         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
14689         warning.
14690
14691         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
14692         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
14693
14694 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14695
14696         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
14697
14698 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
14699
14700         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
14701         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
14702         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
14703
14704 2010-05-01  Alan Modra  <amodra@gmail.com>
14705
14706         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
14707         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
14708         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
14709         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
14710         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
14711         tidying.  Don't tail-call __sigjmp_save for static lib.
14712         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
14713         save location.
14714         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
14715         (CALL_MCOUNT): Add eh info, and nop after bl.
14716         (TAIL_CALL_SYSCALL_ERROR): New macro.
14717         (PSEUDO_RET): Use it.
14718         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
14719         Correct save location of integer regs and cr.
14720         (_dl_profile_resolve): Correct cr save location.  Delete nops
14721         after bl when SHARED.  Reduce cfi size a little by better
14722         placement of cfi directives.
14723         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
14724         make a stack frame.  Instead use parm save area as a temp.
14725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
14726         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
14727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
14728         Don't make a stack frame for parent, use parm save area.
14729         Increase child stack frame to 112 bytes.  Don't save unused reg,
14730         and adjust reg usage.  Set up cfi on error recovery and
14731         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
14732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14733         (__makecontext): Add dummy nop after jump to exit.
14734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
14735         Use correct parm save area and cr save, reduce stack frame.
14736         Correct cfi for possible PSEUDO_RET frame setup.
14737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
14738         Branch to local label emitted by PSEUDO_RET rather than
14739         __syscall_error.
14740
14741 2010-08-12  Andreas Schwab  <schwab@redhat.com>
14742
14743         [BZ #11904]
14744         * locale/programs/locale.c (print_assignment): New function.
14745         (show_locale_vars): Use it.
14746
14747 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
14748
14749         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
14750         field.
14751         (struct statfs64): Likewise.
14752         (_STATFS_F_FLAGS): Define.
14753         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
14754         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14755         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
14756         (ST_VALID): Define locally.
14757         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
14758         __statvfs_getflags, use the provided value.
14759         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14760         __ASSUME_STATFS_F_FLAGS.
14761
14762         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
14763
14764         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
14765         Add sys/fanotify.h.
14766         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
14767         fanotify_mask for GLIBC_2.13.
14768         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
14769         fanotify_init and fanotify_mark.
14770         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14771         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
14772
14773         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
14774         Add prlimit.
14775         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
14776         prlimit64 for GLIBC_2.13.
14777         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
14778         prlimit64.
14779         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
14780         syscall.
14781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14782         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14783         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
14784         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
14785         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
14786         add prlimit alias.
14787         * sysdeps/unix/sysv/linux/prlimit.c: New file.
14788
14789         [BZ #11903]
14790         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
14791         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
14792
14793         * nss/Makefile: Add rules to build and run tst-nss-test1.
14794         * shlib-versions: Add entry for libnss_test1.
14795         * nss/nss_test1.c: New file.
14796         * nss/tst-nss-test1.c: New file.
14797
14798         * nss/nsswitch.c (__nss_database_custom): Define new variable.
14799         (__nss_configure_lookup): Set appropriate entry in
14800         __nss_configure_lookup to true.
14801         * nss/nsswitch.h: Define enum with indeces of databases in
14802         databases and __nss_database_custom arrays.  Declare
14803         __nss_database_custom.
14804         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
14805         to avoid using nscd when custom rules are installed.
14806         * nss/getXXbyYY_r.c: Likewise.
14807         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14808
14809         * nss/nss_files/files-parse.c: Whitespace fixes.
14810
14811 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
14812
14813         [BZ #11883]
14814         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
14815         * posix/fnmatch_loop.c: Likewise.
14816
14817 2010-07-17  Andi Kleen  <ak@linux.intel.com>
14818
14819         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
14820         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
14821         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
14822         * Versions.def [GLIBC_2.13]: Add.
14823
14824 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
14825
14826         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14827         Also fail if tpwd after pwuid call is NULL.
14828
14829 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14830
14831         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
14832         when converting to ms.
14833
14834 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14835
14836         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
14837         EOPNOTSUPP errors with ENOTTY.
14838         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
14839         EOPNOTSUPP errors with ENOTTY.
14840
14841 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
14842
14843         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14844         Add strcasecmp_l-ssse3.
14845         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
14846         strcasecmp.
14847         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
14848         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
14849         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
14850
14851 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
14852
14853         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
14854
14855         * string/Makefile (strop-tests): Add strcasecmp.
14856         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14857         strcasecmp_l-nonascii.
14858         (gen-as-const-headers): Add locale-defines.sym.
14859         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
14860         * sysdeps/x86_64/strcasecmp.S: New file.
14861         * sysdeps/x86_64/strcasecmp_l.S: New file.
14862         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
14863         * sysdeps/x86_64/locale-defines.sym: New file.
14864         * string/test-strcasecmp.c: New file.
14865
14866         * string/test-strcasestr.c: Test both ends of the range of characters.
14867         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
14868
14869 2010-07-29  Roland McGrath  <roland@redhat.com>
14870
14871         [BZ #11856]
14872         * manual/locale.texi (Yes-or-No Questions): Fix example code.
14873
14874 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
14875
14876         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
14877         for ld.so.
14878
14879 2010-07-27  Andreas Schwab  <schwab@redhat.com>
14880
14881         * manual/memory.texi (Malloc Tunable Parameters): Document
14882         M_PERTURB.
14883
14884 2010-07-26  Roland McGrath  <roland@redhat.com>
14885
14886         [BZ #11840]
14887         * configure.in (-fgnu89-inline check): Set and substitute
14888         gnu89_inline, not libc_cv_gnu89_inline.
14889         * configure: Regenerated.
14890         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
14891
14892 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
14893
14894         * string/test-strnlen.c: New file.
14895         * string/Makefile (strop-tests): Add strnlen.
14896         * string/tester.c (test_strnlen): Add a few more test cases.
14897         * string/tst-strlen.c: Better error reporting.
14898
14899         * sysdeps/x86_64/strnlen.S: New file.
14900
14901 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
14902
14903         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
14904         lower-latency instructions.
14905
14906 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
14907
14908         * string/test-strcasestr.c: New file.
14909         * string/test-strstr.c: New file.
14910         * string/Makefile (strop-tests): Add strstr and strcasestr.
14911         * string/str-two-way.h: Don't undefine MAX.
14912         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14913
14914 2010-07-21  Andreas Schwab  <schwab@redhat.com>
14915
14916         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14917         strcasestr-nonascii.
14918         (CFLAGS-strcasestr-nonascii.c): Define.
14919         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
14920         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
14921         Remove unused attribute.
14922
14923 2010-07-20  Roland McGrath  <roland@redhat.com>
14924
14925         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
14926         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
14927         ld.so.cache was broken.  With it, there is no way to disable dsocaps
14928         like LD_HWCAP_MASK can disable hwcaps.
14929
14930 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14931
14932         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
14933
14934 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
14935
14936         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
14937         call in strcasestr.
14938         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
14939         __strcasestr_sse42_nonascii.
14940         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
14941         strcasestr-nonascii.c.
14942         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
14943
14944 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
14945
14946         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
14947         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
14948         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
14949         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
14950
14951 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
14952
14953         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
14954         fcntl.
14955
14956 2010-07-06  Andreas Schwab  <schwab@redhat.com>
14957
14958         [BZ #11577]
14959         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
14960         dl_signal_cerror.
14961
14962 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
14963
14964         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
14965         _PC_PIPE_BUF using F_GETPIPE_SZ.
14966
14967 2010-07-05  Roland McGrath  <roland@redhat.com>
14968
14969         * manual/arith.texi (Rounding Functions): Fix rint description
14970         implicit in round description.
14971
14972 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
14973
14974         * elf/Makefile: Fix linking for a few tests to make recent linker
14975         happy.
14976
14977 2010-06-30  Andreas Schwab  <schwab@redhat.com>
14978
14979         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14980         $(common-objpfx)libc_nonshared.a.
14981
14982 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
14983
14984         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
14985         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
14986         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14987         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14988         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
14989         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
14990         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14991         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
14993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
14994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
14995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
14997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
14999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
15000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
15001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
15002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
15003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
15004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
15005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
15006         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
15007         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
15008         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
15009         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
15010         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
15011         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
15012         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
15013         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
15014         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
15015         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
15016         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
15017         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
15018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
15019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
15020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
15021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
15022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
15023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
15024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
15025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
15026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
15027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
15028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
15029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
15030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
15031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
15032
15033 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15034
15035         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
15036         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
15037         * string/memmove.c (memmove): Renamed to ...
15038         (MEMMOVE): ...this.  Default to memmove.
15039         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
15040         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
15041         (END_CHK): Define.
15042         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15043         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
15044         mempcpy-ssse3-back memmove-ssse3-back.
15045         * sysdeps/x86_64/multiarch/bcopy.S: New file .
15046         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
15047         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
15048         * sysdeps/x86_64/multiarch/memcpy.S: New file.
15049         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
15050         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
15051         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
15052         * sysdeps/x86_64/multiarch/memmove.c: New file.
15053         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
15054         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
15055         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
15056         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
15057         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
15058         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
15059         Define.
15060         (index_Fast_Copy_Backward): Define.
15061         (HAS_ARCH_FEATURE): Define.
15062         (HAS_FAST_REP_STRING): Define.
15063         (HAS_FAST_COPY_BACKWARD): Define.
15064
15065 2010-06-21  Andreas Schwab  <schwab@redhat.com>
15066
15067         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15068         Restore proper fallback handling.
15069
15070 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
15071
15072         [BZ #11701]
15073         * posix/group_member.c (__group_member): Correct checking loop.
15074
15075         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
15076         OOM in getpwuid_r correctly.  Return error number when the caller
15077         should return, otherwise -1.
15078         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
15079         call returning > 0 value.
15080         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
15081
15082 2010-06-07  Andreas Schwab  <schwab@redhat.com>
15083
15084         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
15085         libc_nonshared.a from targets in modules-names.
15086
15087 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
15088
15089         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
15090         requires it.
15091
15092 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
15093
15094         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
15095         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
15096         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
15097         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
15098
15099 2010-06-02  Andreas Schwab  <schwab@redhat.com>
15100
15101         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
15102
15103 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
15104
15105         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
15106         and F_GETPIPE_SZ.
15107         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15108         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15109         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15110         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15111         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15112         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
15113
15114 2010-06-14  Roland McGrath  <roland@redhat.com>
15115
15116         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
15117
15118 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
15119
15120         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
15121         __REDIRECT followed by __THROW.
15122         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
15123         * posix/getopt.h (getopt): Likewise.
15124
15125 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
15126
15127         * hurd/lookup-at.c (__file_name_lookup_at): Accept
15128         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
15129         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
15130         in AT_FLAGS.
15131         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
15132         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
15133
15134 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
15135
15136         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
15137
15138 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
15139
15140         [BZ #11640]
15141         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15142         Properly check family and model.
15143
15144 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
15145
15146         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
15147
15148 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
15149
15150         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
15151
15152 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
15153
15154         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
15155         symbol reference.
15156
15157 2010-05-19  Andreas Schwab  <schwab@redhat.com>
15158
15159         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
15160         symbol reference.
15161
15162 2010-05-21  Andreas Schwab  <schwab@redhat.com>
15163
15164         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
15165         and internal_recvmmsg.
15166         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
15167         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
15168         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
15169         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
15170
15171         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
15172         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
15173         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
15174
15175 2010-05-20  Andreas Schwab  <schwab@redhat.com>
15176
15177         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
15178
15179 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
15180
15181         POWER7 optimizations.
15182         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
15183         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
15184
15185 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
15186
15187         * version.h: Update for 2.13 development version.
15188
15189 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
15190
15191         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
15192         exceptions.  Return 0.
15193
15194 2010-05-07  Roland McGrath  <roland@redhat.com>
15195
15196         * elf/ldconfig.c (main): Add a const.
15197
15198 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
15199
15200         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
15201         (args_options): Add no-idn option.
15202         (ahosts_keys_int): Add idn_flags to ai_flags.
15203         (parse_option): Handle 'i' option to clear idn_flags.
15204
15205         * malloc/malloc.c (_int_free): Possible race in the most recently
15206         added check.  Only act on the data if no current modification
15207         happened.
15208
15209 See ChangeLog.17 for earlier changes.