* manual/job.texi: Document MTASC-safety properties.
[jlayton/glibc.git] / ChangeLog
1 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
2
3         * manual/job.texi: Document MTASC-safety properties.
4
5 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
6
7         * manual/getopt.texi: Document MTASC-safety properties.
8
9 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
10
11         * manual/ctype.texi: Document MTASC-safety properties.
12
13 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
14
15         [BZ #16046]
16         * csu/libc-tls.c (static_map): Remove variable.
17         (__libc_setup_tls): Use main executable's link map for TLS data.
18         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
19         casing for LM_ID_BASE and GL(dl_nns).
20         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
21         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
22         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
23         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
24         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
25         member.
26         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
27         l_phnum members.
28
29 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
30
31         * manual/debug.texi: Document MTASC-safety properties.
32
33 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
34
35         [BZ #16510]
36         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
37         of __x86_64__ when disabling x87 inline functions.
38
39 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
40
41         * manual/charset.texi: Document MTASC-safety properties.
42
43 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
44
45         * manual/crypt.texi: Document MTASC-safety properties.
46
47 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
48
49         * manual/conf.texi: Document MTASC-safety properties.
50
51 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
52
53         * manual/arith.texi: Document MTASC-safety properties.
54
55 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
56
57         * manual/argp.texi: Document MTASC-safety properties.
58
59 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
60
61         * manual/macros.texi: Introduce macros to document multi
62         thread, asynchronous signal and asynchronous cancellation
63         safety properties.
64         * manual/intro.texi: Introduce the properties themselves.
65
66 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67
68         * sysdeps/sh/sh4/Makefile: New file.
69
70 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
71
72         * math/gen-libm-test.pl ($srcdir): New variable.
73         ($auto_input): Use it.
74
75 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
76
77         [BZ #16506]
78         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
79         access beyond array bounds when parsing netgroups file.
80
81         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
82         the old buffer before realloc.
83
84 2014-01-27  Allan McRae  <allan@archlinux.org>
85
86         * po/fr.po: Update French translation from translation project.
87
88 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
89
90         * sysdeps/sh/libm-test-ulps: Regenerate.
91
92 2014-01-24  David S. Miller  <davem@davemloft.net>
93
94         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
95
96 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
97
98         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
99         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
100
101 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
102
103         [BZ #16474]
104         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
105         string pointers after reallocation.
106
107 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
108
109         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
110         __SH4A__ instead of __SH_FPU_ANY__.
111
112 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
113
114         * sysdeps/sh/fpu_control.h: New file.
115         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
116         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
117         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
118         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
119         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
120         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
121         * sysdeps/sh/sys/ucontext.h: Remove.
122         * sysdeps/sh/sys: Remove directory.
123
124 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
125
126         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
127         s390/sys/ucontext.h.
128         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
129         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
130
131 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
132
133         [BZ #15605]
134         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
135
136 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
137
138         [BZ#16431]
139         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
140         Adjust the vDSO correctly for internal calls.
141         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
142
143 2014-01-20  Allan McRae  <allan@archlinux.org>
144
145         * po/ca.po: Update Catalan translation from translation project.
146
147 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
148
149         * sysdeps/s390/sotruss-lib.c: New file.
150
151 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
152
153         [BZ#16430]
154         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
155         (__GI___gettimeofday): Alias for a different internal symbol to avoid
156         local calls issues by not having a PLT stub required for IFUNC calls.
157         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
158
159 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
160
161         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
162         * math/test-fpucw-static.c: Likewise.
163
164 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
165
166         [BZ #16453]
167         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
168
169 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
170
171         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
172         implementation for powerpc.
173
174 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
175
176         [BZ #14782]
177         * sysdeps/posix/system.c (__libc_system): Do not enable
178         asynchronous cancellation.
179
180 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
181
182         [BZ #16427]
183         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
184         handling only for numbers special also in the IEEE case.
185
186 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
187
188         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
189
190 2014-01-11  Allan McRae  <allan@archlinux.org>
191
192         * po/bg.po: Update Bulgarian translation from translation project.
193
194         * po/de.po: Update German translation from translation project.
195
196 2014-01-10  Roland McGrath  <roland@hack.frob.com>
197
198         * sysdeps/generic/gcc-compat.h: New file.
199
200 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
201
202         * benchtests/asin-inputs: Correct slow inputs.
203         * benchtests/acos-inputs: Likewise.
204
205 2014-01-10  Allan McRae  <allan@archlinux.org>
206
207         * po:sv.po: Update Swedish translation from translation project.
208
209         * po/vi.po: Update Vietnamese translation from translation project.
210
211         * po/eo.po: Update Esperanto translation from translation project.
212
213         * po/cs.po: Update Czech translation from translation project.
214
215         * po/nl.po: Update Dutch translation from translation project.
216
217         * po/pl.po: Update Polish translation from translation project.
218
219         * po/ru.po: Update Russian translation from translation project.
220
221         * po/uk.po: Update Ukrainian translation from translation project.
222
223 2014-01-08  Brooks Moses  <bmoses@google.com>
224
225         * elf/dl-load.c: Fix comment typo.
226
227 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
228
229         * po/header.pot: Rename to...
230         * po/pot.header: ... this.
231         * po/Makefile: Use pot.header.
232
233 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
234             Maxim Kuvyrkov  <maxim@kugelworks.com>
235
236         [BZ #16394]
237         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
238         SRC and DEST against LEN.
239
240 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
241
242         [BZ #16414]
243         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
244         implementation.
245         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
246
247 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
248
249         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
250
251 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
252
253         [BZ #16408]
254         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
255         for large positive arguments.
256
257 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
258
259         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
260
261         * math/auto-libm-test-in: Mark various tests with
262         xfail-rounding:ldbl-128ibm.
263         * math/auto-libm-test-out: Regenerated.
264
265         [BZ #16407]
266         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
267         Increase overflow threshold.
268
269 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
270
271         [BZ #14286]
272         * stdio-common/vfprintf.c: Check for integer overflow.
273
274 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
275
276         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
277         the first argument and return value of __tls_get_addr_internal.
278
279 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
280
281         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
282         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
283
284 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
285
286         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
287         * sysdeps/s390/rtld-global-offsets.sym: New file.
288         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
289         GLIBC_2.19 symbol.
290         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
291         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
292         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
293         ... this.
294         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
295         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
296         ... this.
297         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
298         Regenerate.
299         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
300         Regenerate.
301         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
302         halfs of GPRs for high_gprs contexts.
303         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
304         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
305         field.
306         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
307         uc_flags field.
308         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
309         64 bit versions:
310         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
311         for high GPRs (uc_high_gprs) and for future extensions
312         (__reserved).
313         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
314         for future extensions (__reserved).
315         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
316         64 bit versions:
317         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
318         SC_HIGHGPRS offset definition.
319         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
320         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
321
322 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
323
324         * Versions.def: Add GLIBC_2.19 for libpthread.
325         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
326         siglongjmp for libpthread with GLIBC_2.19 symver.
327         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
328         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
329         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
330         * sysdeps/s390/__longjmp.c: New file.
331         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
332         * sysdeps/s390/longjmp.c: New file.
333         * sysdeps/s390/setjmp.S: New file.
334         * sysdeps/s390/sigjmp.S: New file.
335         * sysdeps/s390/v1-longjmp.c: New file.
336         * sysdeps/s390/v1-setjmp.h: New file.
337         * sysdeps/s390/v1-sigjmp.c: New file.
338         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
339         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
340         GLIBC_2.19 version.
341         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
342         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
343         versioned symbols for ____longjmp_chk.
344         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
345         Likewise.
346         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
347         Regenerate.
348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
349         Regenerate.
350         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
351         Regenerate.
352         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
353         Regenerate.
354         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
355         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
356         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
357         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
358         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
359         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
360         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
361         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
362         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
363         * sysdeps/s390/rtld-__longjmp.c: New file.
364         * sysdeps/s390/rtld-setjmp.S: New file.
365
366 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
367
368         [BZ #16400]
369         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
370         Return -__logl (x) for small positive arguments without evaluating
371         a polynomial.
372
373 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
374
375         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
376         Rename to ...
377         (__ptrace_peeksiginfo_args): ... this.
378         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
379         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
380         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
381
382 2014-01-06  Allan McRae  <allan@archlinux.org>
383
384         * inet/netinet/in.h: Fix typo in comment.
385
386 2014-01-05  Andreas Jaeger  <aj@suse.de>
387
388         * sysdeps/i386/fpu/libm-test-ulps: Update.
389
390 2014-01-05  Allan McRae  <allan@archlinux.org>
391
392         * po/libc.pot: Regenerated.
393
394         * malloc/memusagestat.c: Fix gettext call formatting.
395
396 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
397
398         * nscd/nscd.c: Improve usage() output.
399
400 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
401
402         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
403         * sysdeps/unix/sysv/linux/configure: Regenerated.
404         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
405         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
406
407 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
408
409         [BZ #16390]
410         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
411         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
412
413 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
414
415         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
416         extra tokens at end of #undef directive.
417         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
418         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
419         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
420
421 2014-01-03  Andrew Hunter  <ahh@google.com>
422
423         * elf/dl-open.c (dl_open_worker): New comment.
424         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Use
425         atomic_compare_and_exchange_bool_acq
426         (_dl_allocate_static_tls): Block signals.
427         * elf/dl-tls.c (allocate_and_init): Return void.
428         (_dl_update_slotinfo): Block signals, use atomic update.
429
430 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
431
432         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
433
434         * math/auto-libm-test-in: Mark various tests with
435         xfail-rounding:ldbl-128ibm.
436         * math/auto-libm-test-out: Regenerated.
437
438 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
439
440         [BZ #16386]
441         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
442         numbers with subnormal high part when calculating exponent.
443
444         [BZ #16385]
445         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
446         fabs.
447
448         [BZ #16384]
449         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
450         M_LN2l.
451         (__ieee754_acoshl): Use __log1pl not __log1p.
452
453 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
454
455         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all,
456         ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry,
457         __failing_morecore, ptmalloc_init, dump_heap, new_heap, grow_heap,
458         heap_trim, _int_new_arena, get_free_list, reused_arena, arena_get2):
459         Convert to GNU style.
460         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init,
461         mem2mem_check, mem2chunk_check, top_check, realloc_check,
462         memalign_check, __malloc_set_state): Likewise.
463         * malloc/mallocbug.c (main): Likewise.
464         * malloc/malloc.c (__malloc_assert, malloc_init_state, free_perturb,
465         do_check_malloced_chunk, do_check_malloc_state, sysmalloc, systrim,
466         mremap_chunk, __libc_malloc, __libc_free, __libc_realloc, _mid_memalign,
467         _int_malloc, malloc_consolidate, _int_realloc, _int_memalign, mtrim,
468         musable, __libc_mallopt, __posix_memalign, malloc_info): Likewise.
469         * malloc/malloc.h: Likewise.
470         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook, mallochook,
471         memalignhook, reallochook, mabort): Likewise.
472         * malloc/mcheck.h: Likewise.
473         * malloc/memusage.c (update_data, me, malloc, realloc, calloc, free, mmap,
474         mmap64, mremap, munmap, dest): Likewise.
475         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
476         * malloc/morecore.c (__default_morecore): Likewise.
477         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
478         * malloc/obstack.c (_obstack_begin, _obstack_newchunk,
479         _obstack_allocated_p, obstack_free, _obstack_memory_used,
480         print_and_abort): Likewise.
481         * malloc/obstack.h: Likewise.
482         * malloc/set-freeres.c (__libc_freeres): Likewise.
483         * malloc/tst-mallocstate.c (main): Likewise.
484         * malloc/tst-mtrace.c (main): Likewise.
485         * malloc/tst-realloc.c (do_test): Likewise.
486
487 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
488
489         [BZ #16366]
490         * nscd/netgroupcache.c (do_notfound): New function.
491         (addgetnetgrentX): Use it.
492
493         [BZ # 16365]
494         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
495         NSS_STATUS_NOTFOUND.
496
497 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
498
499         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
500         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
501
502 2014-01-01  Allan McRae  <allan@archlinux.org>
503
504         * scripts/update-copyrights: Update configure input file suffix.
505
506         * NEWS: Update copyright year.
507         * catgets/gencat.c: Likewise.
508         * csu/version.c: Likewise.
509         * debug/catchsegv.sh: Likewise.
510         * debug/pcprofiledump.c: Likewise.
511         * debug/xtrace.sh: Likewise.
512         * elf/ldconfig.c: Likewise.
513         * elf/ldd.bash.in: Likewise.
514         * elf/pldd.c: Likewise.
515         * elf/sotruss.ksh: Likewise.
516         * elf/sprof.c: Likewise.
517         * iconv/iconv_prog.c: Likewise.
518         * iconv/iconvconfig.c: Likewise.
519         * locale/programs/locale.c: Likewise.
520         * locale/programs/localedef.c: Likewise.
521         * login/programs/pt_chown.c: Likewise.
522         * malloc/memusage.sh: Likewise.
523         * malloc/memusagestat.c: Likewise.
524         * malloc/mtrace.pl: Likewise.
525         * manual/libc.texinfo: Likewise.
526         * nscd/nscd.c: Likewise.
527         * nss/getent.c: Likewise.
528         * nss/makedb.c: Likewise.
529         * posix/getconf.c: Likewise.
530         * scripts/test-installation.pl: Likewise.
531
532         * All files with FSF copyright notices: Update copyright dates
533         using scripts/update-copyrights.
534         * intl/plural.c: Regenerated.
535         * locale/programs/charmap-kw.h: Likewise.
536         * locale/programs/locfile-kw.h: Likewise.
537
538 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
539
540         * sysdeps/unix/sysv/linux/configure: Regenerated.
541         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
542         the linux/fanotify.h header.
543         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
544         HAVE_LINUX_FANOTIFY_H is defined.
545
546 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
547
548         * benchtests/cos-inputs: New inputs.
549         * benchtests/sin-inputs: Likewise.
550
551         * benchtests/atan-inputs: New inputs. Fix name of multiple
552         precision fallback inputs.
553
554         * benchtests/atanh-inputs: New inputs.
555         * benchtests/tanh-inputs: Likewise.
556
557         * benchtests/acosh-inputs: New inputs.
558         * benchtests/asinh-inputs: Likewise.
559
560         * benchtests/cosh-inputs: New inputs.
561         * benchtests/sinh-inputs: Likewise.
562
563         * benchtests/acos-inputs: Add more inputs.
564         * benchtests/asin-inputs: Likewise.
565
566 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
567
568         [BZ #16375]
569         * manual/arith.texi: Fix spelling.
570         * manual/charset.texi: Likewise.
571         * manual/errno.texi: Likewise.
572         * manual/filesys.texi: Likewise.
573         * manual/lang.texi: Likewise.
574         * manual/llio.texi: Likewise.
575         * manual/locale.texi: Likewise.
576         * manual/message.texi: Likewise.
577         * manual/resource.texi: Likewise.
578         * manual/search.texi: Likewise.
579         * manual/setjmp.texi: Likewise.
580         * manual/stdio.texi: Likewise.
581         * manual/string.texi: Likewise.
582         * manual/sysinfo.texi: Likewise.
583         * manual/time.texi: Likewise.
584
585 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
586
587         * po/sl.po: New file.
588
589 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
590
591         * .gitignore: Add core/.gdbinit/.gdb_history.
592
593 2013-12-27  Allan McRae  <allan@archlinux.org>
594
595         [BZ #16369]
596         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
597         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
598
599 2013-12-24  Brooks Moses  <bmoses@google.com>
600
601         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
602         all compilers that claim C++98 compliance, not just GCC.
603         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
604         Likewise.
605
606 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
607
608         * NEWS: Restore accidentally deleted bug-fix entries.
609
610 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
611             Ondřej Bílka  <neleai@seznam.cz>
612
613         [BZ #15073]
614         * malloc/malloc.c (_int_free): Perform sanity check only if we
615         have_lock.
616
617 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
618
619         [BZ #12986]
620         * manual/stdio.texi (String Input Conversions): Clarify that character
621         classes are not supported.
622
623 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
624
625         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
626
627 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
628
629         [BZ #16337]
630         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
631         Calculate results for small negative arguments directly rather
632         than using reflection formula with special underflow handling.
633
634         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
635         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
636         sysdeps/unix/bsd/bsd4.4/syscalls.list.
637         (fchflags): Likewise.
638         (revoke): Likewise.
639         (setlogin): Likewise.
640         (sigaltstack): Likewise.
641         (wait4): Likewise.
642         (sigblock): Remove.
643         (sigsetmask): Likewise.
644         (wait3): Likewise.
645         (waitpid): Likewise.
646         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
647         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
648         file.
649         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
650         * sysdeps/unix/bsd/Makefile: ... here.
651         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
652         * sysdeps/unix/bsd/Versions: ... here.
653         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
654         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
655         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
656         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
657         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
658         * sysdeps/unix/bsd/sigblock.c: ... here.
659         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
660         * sysdeps/unix/bsd/sigsetmask.c: ... here.
661         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
662         * sysdeps/unix/bsd/sigvec.c: ... here.
663         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
664         * sysdeps/unix/bsd/tcdrain.c: ... here.
665         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
666         * sysdeps/unix/bsd/tcgetattr.c: ... here.
667         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
668         * sysdeps/unix/bsd/tcsetattr.c: ... here.
669         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
670         * sysdeps/unix/bsd/wait.c: ... here.
671         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
672         * sysdeps/unix/bsd/wait3.c: ... here.
673         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
674         * sysdeps/unix/bsd/waitpid.c: ... here.
675
676 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
677
678         [BZ #16356]
679         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
680         round-to-nearest for [!USE_AS_EXPM1L].
681         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
682         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
683         more tests of exp and exp10.  Expect some exp10 tests to miss
684         exceptions or fail in directed rounding modes.
685         * math/auto-libm-test-out: Regenerated.
686         * math/libm-test.inc (exp10_tonearest_test_data): New array.
687         (exp10_test_tonearest): New function.
688         (exp10_towardzero_test_data): New array.
689         (exp10_test_towardzero): New function.
690         (exp10_downward_test_data): New array.
691         (exp10_test_downward): New function.
692         (exp10_upward_test_data): New array.
693         (exp10_test_upward): New function.
694         (main): Call the new functions.
695         * sysdeps/i386/fpu/libm-test-ulps: Update.
696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
697
698 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
699
700         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
701         asinh, atan, atan2, atanh, cbrt, cos and cosh.
702         * math/auto-libm-test-out: Regenerated.
703         * math/libm-test.inc (acosh_test_data): Add more tests.
704         (atanh_test_data): Likewise.
705         (ceil_test_data): Likewise.
706         (copysign_test_data): Likewise.
707         * sysdeps/i386/fpu/libm-test-ulps: Update.
708         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
709
710         * timezone/checktab.awk: Update from tzcode 2013i.
711         * timezone/private.h: Likewise.
712         * timezone/scheck.c: Likewise.
713         * timezone/tzfile.h: Likewise.
714         * timezone/tzselect.ksh: Likewise.
715         * timezone/zdump.c: Likewise.
716         * timezone/zic.c: Likewise.
717
718         * math/auto-libm-test-in: Add tests of cpow.
719         * math/auto-libm-test-out: Regenerated.
720         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
721         * * math/gen-auto-libm-tests.c (func_calc_method): Add value
722         mpc_cc_c.
723         (func_calc_desc): Add mpc_cc_c union field.
724         (test_functions): Add cpow.
725         (special_fill_2pi): New function.
726         (special_real_inputs): Add 2pi.
727         (calc_generic_results): Handle mpc_cc_c.
728         * sysdeps/i386/fpu/libm-test-ulps: Update.
729         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
730
731         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
732         csqrt, ctan and ctanh.
733         * math/auto-libm-test-out: Regenerated.
734         * math/libm-test.inc (TEST_COND_x86_64): New macro.
735         (TEST_COND_x86): Likewise.
736         (ccos_test_data): Use AUTO_TESTS_c_c.
737         (ccosh_test_data): Likewise.
738         (cexp_test_data): Likewise.
739         (clog_test_data): Likewise.
740         (csqrt_test_data): Likewise.
741         (ctan_test_data): Likewise.
742         (ctan_tonearest_test_data): Likewise.
743         (ctan_towardzero_test_data): Likewise.
744         (ctan_downward_test_data): Likewise.
745         (ctan_upward_test_data): Likewise.
746         (ctanh_test_data): Likewise.
747         (ctanh_tonearest_test_data): Likewise.
748         (ctanh_towardzero_test_data): Likewise.
749         (ctanh_downward_test_data): Likewise.
750         (ctanh_upward_test_data): Likewise.
751         * math/gen-auto-libm-tests.c (func_calc_method): Add value
752         mpc_c_c.
753         (func_calc_desc): Add mpc_c_c union field.
754         (FUNC_mpc_c_c): New macro.
755         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
756         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
757         ctanh.
758         (special_fill_min_subnorm_p120): New function.
759         (special_real_inputs): Add min_subnorm_p120.
760         (calc_generic_results): Handle mpc_c_c.
761         * sysdeps/i386/fpu/libm-test-ulps: Update.
762         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
763
764 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
765
766         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin,
767         do_sin_slow): New functions.
768         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2,
769         cslow2, csloww1, csloww2): Use the new functions.
770
771         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
772         Use M to change sign of result instead of X.  Assume X is
773         positive.
774         (csloww1): Likewise.
775         (__sin): Adjust.
776         (__cos): Adjust.
777
778         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
779         arguments A and DA.
780         (__sin): Adjust.
781         (__cos): Likewise.
782
783         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
784         (__cos): Likewise.
785         (sloww1): Don't adjust sign of DX.
786         (csloww1): Likewise.
787         (sloww2): Use X directly and don't adjust sign of DX.
788         (csloww2): Likewise.
789
790 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
791
792         * math/auto-libm-test-in: Add tests of cabs and carg.
793         * math/auto-libm-test-out: Regenerated.
794         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
795         (carg_test_data): Likewise.
796         * math/gen-auto-libm-tests.c (func_calc_method): Add value
797         mpc_c_f.
798         (func_calc_desc): Add mpc_c_f union field.
799         (test_functions): Add cabs and carg.
800         (calc_generic_results): Handle mpc_c_f.
801
802         * sysdeps/powerpc/powerpc32/libgcc-compat.S
803         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
804         as a macro and a compat symbol.
805         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
806         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
807         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
808         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
809         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
810         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
811         not use .hidden.
812         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
813         Likewise.
814         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
815         Likewise.
816         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
817         Likewise.
818         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
819         Likewise.
820         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
821         Likewise.
822         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
823         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
824         from GLIBC_2.3.2.
825
826 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
827
828         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
829
830 2013-12-19  Paul Pluzhnikov  <ppluzhnikov@google.com>
831
832         * elf/dl-misc.c (ptr_to_signal_safe_allocator_header): New function.
833         (__signal_safe_memalign, __signal_safe_free): Use it.
834         (__signal_safe_realloc): Likewise.
835
836 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
837
838         * manual/texinfo.tex: Update to version 2013-11-26.10 with
839         trailing whitespace removed.
840         * scripts/config.guess: Update to version 2013-11-29.
841         * scripts/config.sub: Update to version 2013-10-01.
842
843         * math/auto-libm-test-in: Add tests of sincos.
844         * math/auto-libm-test-out: Regenerated.
845         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
846         * math/gen-auto-libm-tests.c (func_calc_method): Add value
847         mpfr_f_11.
848         (func_calc_desc): Add mpfr_f_11 union field.
849         (test_functions): Add sincos.
850         (calc_generic_results): Handle mpfr_f_11.
851         * sysdeps/i386/fpu/libm-test-ulps: Update.
852         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
853
854 2013-12-19  Andreas Schwab  <schwab@suse.de>
855
856         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
857         CALL_MCOUNT.
858         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
859         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
860         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
861
862 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
863
864         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
865         * sysdeps/i386/fpu/libm-test-ulps: Update.
866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
867
868         [BZ #16293]
869         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
870         round-to-nearest mode when using frndint.
871         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
872         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
873         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
874         Likewise.
875         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
876         sinh test to fail.
877         * math/auto-libm-test-out: Regenerated.
878         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
879         (TEST_COND_x86): Likewise.
880         (expm1_tonearest_test_data): New array.
881         (expm1_test_tonearest): New function.
882         (expm1_towardzero_test_data): New array.
883         (expm1_test_towardzero): New function.
884         (expm1_downward_test_data): New array.
885         (expm1_test_downward): New function.
886         (expm1_upward_test_data): New array.
887         (expm1_test_upward): New function.
888         (main): Run the new test functions.
889         * sysdeps/i386/fpu/libm-test-ulps: Update.
890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
891
892         * include/features.h: Update comment documenting feature test
893         macros.  Mention _DEFAULT_SOURCE in comment.
894         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
895         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
896         _BSD_SOURCE and _SVID_SOURCE.
897         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
898         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
899         !_SVID_SOURCE]: Likewise.
900         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
901         (__USE_POSIX_IMPLICITLY): Define.
902         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
903         (_POSIX_SOURCE): Undefine and redefine.
904         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
905         (_POSIX_C_SOURCE): Likewise.
906         * manual/creature.texi (_DEFAULT_SOURCE): Document.
907         (Feature Test Macros): Update documentation of default features.
908
909 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
910
911         * benchtests/Makefile: Add bench-strtok.
912         * benchtests/bench-strtok.c: New file: strtok benchtest.
913
914 2013-12-19  Allan McRae  <allan@archlinux.org>
915
916         * manual/install.texi: Suppress menu for plain text output.
917         * INSTALL: Regenerated.
918
919 2013-12-18  Andrew Hunter  <ahh@google.com>
920
921         * sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
922         (__signal_safe_malloc, __signal_safe_free): Likewise.
923         (__signal_safe_realloc, __signal_safe_calloc): Likewise.
924         * elf/dl-misc.c (__signal_safe_allocator_header): New struct.
925         (__signal_safe_memalign, __signal_safe_malloc): New function.
926         (__signal_safe_free, __signal_safe_realloc): Likewise.
927         (__signal_safe_calloc): Likewise.
928         * elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
929         functions.
930         (_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
931
932 2013-12-18  Andrew Hunter  <ahh@google.com>
933
934         * elf/Versions (ld): Add _dl_clear_dtv.
935         * sysdeps/generic/ldsodefs.h (_dl_clear_dtv): New prototype.
936         * elf/dl-tls.c (_dl_clear_dtv): New function.
937         * nptl/allocatestack.c (get_cached_stack): Call _dl_clear_dtv.
938
939 2013-12-18  Andrew Hunter  <ahh@google.com>
940
941         * sysdeps/generic/ldsodefs.h (_dl_mask_all_signals): New prototype.
942         (_dl_unmask_signals): Likewise.
943         * sysdeps/mach/hurd/dl-sysdep.h (_dl_mask_all_signals): New stub.
944         (_dl_unmask_all_signals): Likewise.
945         * sysdeps/unix/sysv/linux/dl-sysdep.h (_dl_mask_all_signals): New prototype.
946         (_dl_unmask_all_signals): Likewise.
947         * sysdeps/unix/sysv/linux/dl-sysdep.c (_dl_mask_all_signals): New function.
948         (_dl_unmask_signals): Likewise.
949
950 2013-12-18  Brooks Moses  <bmoses@google.com>
951
952         [BZ #15846]
953         * misc/getauxval.c: Include errno.h.
954         (__getauxval): Set errno to ENOENT if the requested type is not
955         found.
956         * misc/sys/auxv.h (getauxval): Document that it may set errno;
957         don't declare with __attribute_const__.
958         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
959         * manual/startup.texi: Document that getauxval sets errno.
960
961 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
962
963         * math/auto-libm-test-in: Add tests of jn and yn.
964         * math/auto-libm-test-out: Regenerated.
965         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
966         (yn_test_data): Likewise.
967         * math/gen-auto-libm-tests.c (func_calc_method): Add value
968         mpfr_if_f.
969         (func_calc_desc): Add mpfr_if_f union field.
970         (FUNC_mpfr_if_f): New macro.
971         (test_functions): Add jn and yn.
972         (calc_generic_results): Assert type of second input for
973         mpfr_ff_f.  Handle mpfr_if_f.
974         (output_for_one_input_case): Disable all checking for arguments
975         fitting floating-point types in case of an integer argument.
976         * sysdeps/i386/fpu/libm-test-ulps: Update.
977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
978
979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
980         Don't expect fegetround reference in libm.so.
981
982 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
983
984         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
985         $(config-cflags-nofma).
986
987 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
988
989         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
990         * math/auto-libm-test-out: Regenerated.
991
992         [BZ #16338]
993         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
994         to determine exponent and adjust argument to have exponent of -1.
995         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
996         log2.
997         * math/auto-libm-test-out: Regenerated.
998         * sysdeps/i386/fpu/libm-test-ulps: Update.
999         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1000
1001 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
1002
1003         * manual/probes.texi: Remove cases when per-thread arenas are
1004         disabled.
1005
1006 2013-12-18  Andreas Schwab  <schwab@suse.de>
1007
1008         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
1009         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
1010         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
1011         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
1012         * sysdeps/i386/i686/multiarch/Makefile: Update.
1013         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
1014
1015 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1016
1017         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
1018         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
1019
1020 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1021
1022         Support TZ transition times < 00:00:00.
1023         This is needed for version-3 tz-format files; it supports time
1024         stamps past 2037 for America/Godthab (the only entry in the tz
1025         database for which this change is relevant).
1026         * manual/time.texi (TZ Variable): Document transition times
1027         from -167:59:59 through -00:00:01.
1028         * time/tzset.c (tz_rule): Time of day is now signed.
1029         (__tzset_parse_tz): Parse negative time of day.
1030
1031         Document TZ transition times >= 25:00:00.
1032         * manual/time.texi (TZ Variable): Document transition times from
1033         25:00:00 through 167:59:59.  These are already supported, and this
1034         support will help with version-3 tz-format files.
1035
1036         * manual/time.texi (TZ Variable): Modernize North America example
1037         to reflect current (i.e., 2007-and-later) daylight saving rules.
1038
1039         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
1040
1041 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1042
1043         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
1044         * sysdeps/unix/bsd/bits/stat.h: Likewise.
1045         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
1046         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1047         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
1048         * sysdeps/unix/bsd/bsdstat.h: Likewise.
1049         * sysdeps/unix/bsd/clock.c: Likewise.
1050         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
1051         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
1052         * sysdeps/unix/bsd/init-posix.c: Likewise.
1053         * sysdeps/unix/bsd/poll.c: Likewise.
1054         * sysdeps/unix/bsd/ptsname.c: Likewise.
1055         * sysdeps/unix/bsd/seekdir.c: Likewise.
1056         * sysdeps/unix/bsd/setegid.c: Likewise.
1057         * sysdeps/unix/bsd/seteuid.c: Likewise.
1058         * sysdeps/unix/bsd/setgid.c: Likewise.
1059         * sysdeps/unix/bsd/setrgid.c: Likewise.
1060         * sysdeps/unix/bsd/setruid.c: Likewise.
1061         * sysdeps/unix/bsd/setsid.c: Likewise.
1062         * sysdeps/unix/bsd/setuid.c: Likewise.
1063         * sysdeps/unix/bsd/sigaction.c: Likewise.
1064         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
1065         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
1066         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
1067         * sysdeps/unix/bsd/telldir.c: Likewise.
1068         * sysdeps/unix/bsd/times.c: Likewise.
1069         * sysdeps/unix/bsd/usleep.c: Likewise.
1070
1071         * misc/Makefile (install-lib): Remove libbsd-compat.a.
1072         ($(objpfx)libbsd-compat.a): Remove rule.
1073
1074         * include/features.h (__FAVOR_BSD): Do not define.
1075         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
1076         features conflicting with POSIX.
1077         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
1078         (_BSD_SOURCE): Remove description of not being a subset of other
1079         feature test macros.
1080         * manual/job.texi (getpgrp): Do not document BSD version.
1081         (getpgid): Do not document by reference to BSD getpgrp.
1082         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
1083         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
1084         * signal/signal.h [__FAVOR_BSD]: Likewise.
1085         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
1086         instead of making contents conditional on [__FAVOR_BSD].
1087         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
1088
1089 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1090
1091         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1092
1093 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1094
1095         [BZ #16314]
1096         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
1097         values below 2**-450, not 2**-500.
1098         * math/auto-libm-test-in: Don't allow spurious underflow from
1099         hypot.
1100         * math/auto-libm-test-out: Regenerated.
1101
1102         [BZ #16316]
1103         [BZ #16330]
1104         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
1105         values of ha and hb and sort them after adjusting subnormal
1106         arguments.
1107         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
1108         Likewise.
1109         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
1110         values of ea and eb and sort them after adjusting subnormal
1111         arguments.
1112         * math/auto-libm-test-in: Do not expect some hypot tests of
1113         subnormals to fail.  Add more hypot tests.
1114         * math/auto-libm-test-out: Regenerated.
1115
1116 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1117
1118         [BZ #13304]
1119         * sysdeps/sh/s_fma.c: New file.
1120         * sysdeps/sh/s_fmaf.c: New file.
1121         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
1122         version.
1123         * sysdeps/sh/Implies: Add sh/soft-fp.
1124
1125 2013-12-16  Roland McGrath  <roland@hack.frob.com>
1126
1127         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
1128         level of indirection to members `objname', `errstring', `malloced'.
1129         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
1130         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
1131         it as the __longjmp argument (just pass 1 instead).
1132         (_dl_catch_error): Initialize C with argument pointers and address of
1133         volatile local ERRCODE rather than copying values out of C at return.
1134
1135 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
1136
1137         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
1138         * math/auto-libm-test-out: Regenerated.
1139         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
1140         (hypot_test_data): Likewise.
1141         (pow_test_data): Likewise.
1142         (pow_tonearest_test_data): Likewise.
1143         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1144         mpfr_ff_f.
1145         (func_calc_desc): Add mpfr_ff_f union field.
1146         (FUNC_mpfr_ff_f): New macro.
1147         (test_functions): Add atan2, hypot and pow.
1148         (special_fill_min): New function.
1149         (special_fill_minus_min): Likewise.
1150         (special_fill_min_subnorm): Likewise.
1151         (special_fill_minus_min_subnorm): Likewise.
1152         (special_real_inputs): Add min, -min, min_subnorm and
1153         -min_subnorm.
1154         (calc_generic_results): Handle mpfr_ff_f.
1155         * sysdeps/i386/fpu/libm-test-ulps: Update.
1156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1157
1158 2013-12-16  Will Newton  <will.newton@linaro.org>
1159
1160         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
1161         (Aligned Memory Blocks): Add documentation for aligned_alloc
1162         and suggest it as an alternative to posix_memalign.
1163         (Hooks for Malloc): Document __memalign_hook is also called
1164         for aligned_alloc.  (Summary of Malloc): Add summary for
1165         aligned alloc.  Document __memalign_hook is also called
1166         for aligned_alloc.
1167
1168 2013-12-16  Will Newton  <will.newton@linaro.org>
1169
1170         * manual/memory.texi (Malloc Examples): Clarify default
1171         alignment documentation.  Suggest posix_memalign rather
1172         than memalign or valloc.
1173         (Aligned Memory Blocks): Remove suggestion to use memalign
1174         or valloc.  Remove obsolete comment about BSD.
1175         Document memalign errno values and mark the function obsolete.
1176         Document posix_memalign returned error codes.  Mark valloc
1177         as obsolete.  (Hooks for Malloc): __memalign_hook is also
1178         called for posix_memalign and valloc.
1179         (Summary of Malloc): Add posix_memalign to function summary.
1180         __memalign_hook is also called for posix_memalign and valloc.
1181
1182 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1183
1184         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
1185         TAYLOR_SIN.
1186         (__sin): Adjust.
1187         (__cos): Likewise.
1188         (sloww): Use mynumber union.  Expand ternary operator into
1189         if-else statements.
1190         (cslow): use mynumber union.
1191
1192 2013-12-16  Allan McRae  <allan@archlinux.org>
1193
1194         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
1195         * configure: Regenerated.
1196
1197         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
1198
1199         [BZ #14120]
1200         * configure.ac: Added --enable-maintainer-mode. Check for
1201         autoconf when enabled.
1202         * configure: Regenerated.
1203
1204         * nscd/nscd.service: New file.
1205         * nscd/nscd.tmpfiles: New file.
1206
1207 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
1208
1209         [BZ #12100]
1210         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
1211         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
1212         * sysdeps/x86_64/multiarch/strstr.c: ... here.
1213         (strstr): Add __strstr_sse2_unaligned ifunc.
1214         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
1215         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
1216         (strcasestr): Remove __strcasestr_sse42 ifunc.
1217         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
1218         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1219         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1220
1221 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1222
1223         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
1224         * sysdeps/sh/bits/fenv.h: ... here.
1225         * sysdeps/sh/sh4/fpu/bits: Remove directory.
1226
1227 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1228
1229         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
1230
1231 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1232
1233         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
1234         hypotf multiarch implementations.
1235         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
1236         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
1237         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
1238         multiarch hypot for PPC64.
1239         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
1240         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
1241         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
1242         multiarch hypotf for PPC64.
1243
1244 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1245
1246         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
1247         modff multiarch implementations.
1248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
1249         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
1250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
1251         multiarch modf for PPC64.
1252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
1253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
1254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
1255         multiarch modff for PPC64.
1256
1257 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1258
1259         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
1260         and logl multiarch implementations.
1261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
1262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
1263         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
1264         multiarch logb for PPC64.
1265         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
1266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
1267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
1268         multiarch logb for PPC64.
1269         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
1270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
1271         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
1272         multiarch logb for PPC64.
1273
1274 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1275
1276         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
1277         isinff multiarch implementation.
1278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
1279         file.
1280         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
1281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
1282         multiarch isinf for PPC64.
1283         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
1284         file.
1285         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
1286         multiarch isinff for PPC64.
1287
1288 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1289
1290         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
1291         finitef multiarch implementation.
1292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
1293         file.
1294         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
1295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
1296         multiarch finite for PPC64.
1297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
1298         file.
1299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
1300         multiarch finitef for PPC64.
1301
1302 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1303
1304         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
1305         lrint multiarch implementation.
1306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
1307         file.
1308         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
1309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
1310         multiarch llrint for PPC64.
1311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
1312         multiarch lrint for PPC64.
1313
1314 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1315
1316         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
1317         copysignf multiarch implementation.
1318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
1319         file.
1320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
1321         file.
1322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
1323         multiarch copysign for PPC64.
1324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
1325         multiarch copysignf for PPC64.
1326
1327 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1328
1329         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
1330         multiarch implementation.
1331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
1332         file.
1333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
1334         file.
1335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
1336         file.
1337         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
1338         file.
1339         multiarch llround for PPC64.
1340         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
1341         multiarch trunc for PPC64.
1342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
1343         multiarch truncf for PPC64.
1344
1345 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1346
1347         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
1348         multiarch implementation.
1349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
1350         file.
1351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
1352         file.
1353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
1354         file.
1355         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
1356         file.
1357         multiarch llround for PPC64.
1358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
1359         multiarch round for PPC64.
1360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
1361         multiarch roundf for PPC64.
1362
1363 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1364
1365         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
1366         multiarch implementation.
1367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
1368         file.
1369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
1370         file.
1371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
1372         file.
1373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
1374         file.
1375         multiarch llround for PPC64.
1376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
1377         multiarch floor for PPC64.
1378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
1379         multiarch floorf for PPC64.
1380
1381 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1382
1383         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
1384         multiarch implementation.
1385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
1386         file.
1387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
1388         file.
1389         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
1390         file.
1391         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
1392         file.
1393         multiarch llround for PPC64.
1394         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
1395         multiarch ceil for PPC64.
1396         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
1397         multiarch ceilf for PPC64.
1398
1399 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1400
1401         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
1402         multiarch implementation.
1403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
1404         file.
1405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
1406         file.
1407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
1408         file.
1409         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
1410         multiarch llround for PPC64.
1411         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
1412         multiarch lround for PPC64.
1413
1414 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1415
1416         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
1417         multiarch implementation.
1418         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
1419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
1420         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
1421         file.
1422         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
1423         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
1424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
1425         multiarch isnan for PPC64.
1426         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
1427         multiarch isnanf for PPC64.
1428
1429 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1430
1431         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
1432         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
1433         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
1434         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
1435         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
1436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
1437
1438 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1439
1440         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
1441         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1442         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1443         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1444
1445 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1446
1447         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
1448         multiarch implementations.
1449         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1450         (__libc_ifunc_impl_list): Likewise.
1451         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
1452         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
1453         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
1454         multiarch stpcpy for PPC64.
1455
1456 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1457
1458         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
1459         multiarch implementations.
1460         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1461         (__libc_ifunc_impl_list): Likewise.
1462         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
1463         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
1464         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
1465         multiarch strcpy for PPC64.
1466
1467 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1468
1469         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
1470         redefine function name.
1471         (_wordcopy_fwd_dest_aligned): Likewise.
1472         (_wordcopy_bwd_aligned): Likewise.
1473         (_wordcopy_bwd_dest_aligned): Likewise.
1474         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
1475         multiarch implementations.
1476         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1477         (__libc_ifunc_impl_list): Likewise.
1478         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
1479         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
1480         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
1481         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
1482         multiarch wcscpy for PPC64.
1483
1484 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1485
1486         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
1487         multiarch implementations.
1488         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1489         (__libc_ifunc_impl_list): Likewise.
1490         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
1491         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
1492         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
1493         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
1494         multiarch wcscpy for PPC64.
1495
1496 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1497
1498         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
1499         multiarch implementations.
1500         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1501         (__libc_ifunc_impl_list): Likewise.
1502         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
1503         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
1504         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
1505         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
1506         multiarch wcsrchr for PPC64.
1507
1508 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1509
1510         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
1511         multiarch implementations.
1512         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1513         (__libc_ifunc_impl_list): Likewise.
1514         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
1515         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
1516         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
1517         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
1518         multiarch wcschr for PPC64.
1519
1520 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1521
1522         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
1523         multiarch implementations.
1524         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1525         (__libc_ifunc_impl_list): Likewise.
1526         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
1527         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
1528         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
1529         multiarch strchrnul for PPC64.
1530
1531 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1532
1533         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
1534         implementations.
1535         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1536         (__libc_ifunc_impl_list): Likewise.
1537         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
1538         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
1539         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
1540         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
1541         strchr for PPC64.
1542
1543 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1544
1545         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
1546         implementations.
1547         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1548         (__libc_ifunc_impl_list): Likewise.
1549         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
1550         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
1551         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
1552         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
1553         strncmp for PPC64.
1554
1555 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1556
1557         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
1558         multiarch implementations.
1559         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1560         (__libc_ifunc_impl_list): Likewise.
1561         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
1562         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
1563         strncasecmp for PPC64.
1564         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
1565         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
1566         multiarch strncasecmp_l for PPC64.
1567
1568 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1569
1570         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
1571         multiarch implementations.
1572         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1573         (__libc_ifunc_impl_list): Likewise.
1574         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
1575         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
1576         multiarch strcasecmp for PPC64.
1577         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
1578         file.
1579         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
1580         multiarch strcasecmp_l for PPC64.
1581
1582 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1583
1584         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
1585         implementations.
1586         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1587         (__libc_ifunc_impl_list): Likewise.
1588         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
1589         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
1590         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
1591         strnlen for PPC64.
1592
1593 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1594
1595         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
1596         implementations.
1597         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1598         (__libc_ifunc_impl_list): Likewise.
1599         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
1600         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
1601         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
1602         strlen for PPC64.
1603
1604 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1605
1606         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
1607         implementations.
1608         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1609         (__libc_ifunc_impl_list): Likewise.
1610         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
1611         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
1612         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
1613         rawmemrchr for PPC64.
1614
1615 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1616
1617         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
1618         implementation.
1619         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1620         (__libc_ifunc_impl_list): Likewise.
1621         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
1622         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
1623         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
1624         memrchr for PPC64.
1625
1626 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1627
1628         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
1629         implementation.
1630         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1631         (__libc_ifunc_impl_list): Likewise.
1632         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
1633         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
1634         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
1635         memchr for PPC64.
1636
1637 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1638
1639         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
1640         implementation.
1641         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1642         (__libc_ifunc_impl_list): Likewise.
1643         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
1644         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
1645         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
1646         mempcpy for PPC64.
1647
1648 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1649
1650         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
1651         avoid cretion of __bzero symbol.
1652         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
1653         Likewise.
1654         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
1655         Likewise.
1656         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
1657         Likewise.
1658         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
1659         multiarch implementations.
1660         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1661         (__libc_ifunc_impl_list): Likewise.
1662         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
1663         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
1664         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
1665         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
1666         bzero for PPC32.
1667         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
1668         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
1669         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
1670         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
1671         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
1672         memset for PPC64.
1673         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
1674
1675 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1676
1677         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
1678         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
1679         implementations.
1680         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1681         (__libc_ifunc_impl_list): Likewise.
1682         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
1683         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
1684         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
1685         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
1686         memcmp for PPC64.
1687
1688 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1689
1690         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
1691         multiarch for POWER/PPC64.
1692         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1693         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
1694         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
1695         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
1696         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
1697         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
1698         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
1699         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
1700         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
1701         memcpy for PPC64.
1702
1703 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1704
1705         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
1706         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
1707         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
1708         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
1709         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
1710         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
1711         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
1712         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
1713         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
1714         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
1715         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
1716         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
1717         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
1718         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
1719         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
1720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
1721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
1722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
1723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
1724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
1725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
1726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
1727
1728 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1729
1730         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
1731
1732 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1733
1734         * benchtests/Makefile (bench): Add exp2 and log2.
1735         (LDLIBS-bench-exp2): Add -lm.
1736         (LDLIBS-bench-log2): Likewise.
1737         * benchtests/exp2-inputs: New inputs file.
1738         * benchtests/log2-inputs: New inputs file.
1739         * benchtests/log-inputs: Add new inputs.
1740         * benchtests/tan-inputs: Likewise.
1741
1742 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1743
1744         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
1745         definition...
1746         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
1747         csloww1, csloww2): ... from here.
1748
1749         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
1750         instead of structures.
1751         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
1752         (POLYNOMIAL): Likewise.
1753         (TAYLOR_SLOW): Likewise.
1754         (__sin): Likewise.
1755         (__cos): Likewise.
1756         (slow1): Likewise.
1757         (slow2): Likewise.
1758         (sloww): Likewise.
1759         (sloww1); Likewise.
1760         (sloww2): Likewise.
1761         (bsloww1): Likewise.
1762         (bsloww2): Likewise.
1763         (cslow2): Likewise.
1764         (csloww): Likewise.
1765         (csloww1): Likewise.
1766         (csloww2): Likewise.
1767
1768 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1769
1770         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
1771         (__malloc_assert, __libc_realloc, __libc_calloc,
1772         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
1773         memcpy and memset.
1774         * malloc/hooks.c (realloc_check): Likewise.
1775
1776 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1777
1778         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
1779         * malloc/arena.c: Remove PER_THREAD conditional.
1780         [!PER_THREAD]: Remove code.
1781         (ptmalloc_unlock_all2): Likewise.
1782         (ptmalloc_init): Likewise.
1783         (_int_new_arena): Likewise.
1784         (arena_get2): Likewise.
1785         * malloc/hooks.c (__malloc_get_state): Likewise.
1786         (__malloc_set_state): Likewise.
1787         * malloc/malloc.c: Likewise.
1788         (struct malloc_state): Likewise.
1789         (struct malloc_par): Likewise.
1790         (__libc_realloc): Likewise.
1791         (__libc_mallopt): Likewise.
1792
1793 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1794
1795         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
1796
1797 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1798
1799         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
1800         macro to a function.  Check for zero perturb_byte.
1801         (_int_malloc, _int_free): Remove zero perturb_byte checks.
1802
1803 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1804
1805         * malloc/malloc.c: (force_reg): Remove.
1806         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
1807         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
1808         force_reg by atomic_forced_read.
1809         * malloc/arena.c (ptmalloc_init): Likewise.
1810         * malloc/hooks.c (top_check): Likewise.
1811
1812 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1813
1814         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1815
1816 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
1817
1818         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1819
1820 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
1821
1822         * math/auto-libm-test-in: Add tests of lgamma.
1823         * math/auto-libm-test-out: Regenerated.
1824         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
1825         (M_LOG_2_SQRT_PIl): Likewise.
1826         (lgamma_test_data): Use AUTO_TESTS_f_f1.
1827         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1828         mpfr_f_f1.
1829         (func_calc_desc): Add mpfr_f_f1 union field.
1830         (ARGS1): New macro.
1831         (ARGS2): Likewise.
1832         (ARGS3): Likewise.
1833         (ARGS4): Likewise.
1834         (RET1): Likewise.
1835         (RET2): Likewise.
1836         (CALC): Likewise.
1837         (FUNC): Likewise.
1838         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
1839         (test_functions): Add lgamma.
1840         (calc_generic_results): Handle mpfr_f_f1.
1841         * sysdeps/i386/fpu/libm-test-ulps: Update.
1842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1843
1844 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1845
1846         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
1847         __mpn_add_n for PowerPC64/POWER7.
1848         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
1849         __mpn_sub_n for PowerPC64/POWER7.
1850
1851 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1852
1853         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
1854         __mpn_addmul_1 for PowerPC64.
1855         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
1856         __mpn_submul_1 for PowerPC64.
1857         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
1858         for PowerPC64.
1859         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
1860         for PowerPC64.
1861
1862 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
1863
1864         [BZ #15089]
1865         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
1866
1867 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1868
1869         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
1870
1871 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1872
1873         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
1874         add multiarch folders.
1875         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
1876         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
1877         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
1878         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
1879         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
1880         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
1881         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
1882         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
1883         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
1884         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
1885         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
1886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
1887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
1888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
1889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
1890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
1891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
1892
1893 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1894
1895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1896         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
1897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
1898         New file.
1899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
1900         New file.
1901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
1902         multiarch __ieee754_hypot for PowerPC32.
1903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
1904         New file.
1905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
1906         New file.
1907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
1908         multiarch __ieee754_hypotf for PowerPC32.
1909
1910 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1911
1912         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
1913         long_double_symbol only if __logbl is defined.
1914         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
1915         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
1916         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
1917         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
1918         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
1919         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
1920         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
1921         path for implementation.
1922         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
1923         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
1924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
1925         logb, and logbl multiarch implementations for PowerPC32.
1926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
1927         file.
1928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
1929         file.
1930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
1931         multiarch logb for PowerPC32.
1932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
1933         file.
1934         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
1935         file.
1936         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
1937         multiarch logbf for PowerPC32.
1938         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
1939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
1940         file.
1941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
1942         multiarch logbl implementation for PowerPC32.
1943
1944 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1945
1946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
1947         and modff multiarch implementations.
1948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
1949         New file.
1950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
1951         New file.
1952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
1953         multiarch modf for PowerPC32.
1954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
1955         New file.
1956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
1957         New file.
1958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
1959         multiarch modff for PowerPC32.
1960
1961 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1962
1963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
1964         and lrintf multiarch implementations.
1965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
1966         New file.
1967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
1968         New file.
1969         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
1970         multiarch lrint for PowerPC32.
1971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
1972         file: multiarch lrintf for PowerPC32.
1973
1974 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1975
1976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
1977         and lroundf multiarch implementations.
1978         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
1979         New file.
1980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
1981         New file.
1982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
1983         New file.
1984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
1985         multiarch lround for PowerPC32.
1986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
1987         file: multiarch lroundf for PowerPC32.
1988
1989 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1990
1991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1992         copysign and copysignf multiarch implementations.
1993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
1994         New file.
1995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
1996         New file.
1997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
1998         file: multiarch copysign for PowerPC32.
1999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
2000         file: multiarch copysignf for PowerPC32.
2001
2002 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2003
2004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
2005         and truncf multiarch implementations.
2006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
2007         New file.
2008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
2009         file.
2010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
2011         multiarch trunc for PowerPC32.
2012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
2013         New file.
2014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
2015         New file.
2016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
2017         multiarch truncf for PowerPC32.
2018
2019 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2020
2021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
2022         and roundf multiarch implementations.
2023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
2024         New file.
2025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
2026         file.
2027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
2028         multiarch round for PowerPC32.
2029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
2030         New file.
2031         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
2032         New file.
2033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
2034         multiarch roundf for PowerPC32.
2035
2036 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2037
2038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
2039         and floorf multiarch implementations.
2040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
2041         New file.
2042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
2043         file.
2044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
2045         multiarch floor for PowerPC32.
2046         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
2047         New file.
2048         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
2049         New file.
2050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
2051         multiarch floorf for PowerPC32.
2052
2053 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2054
2055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
2056         and ceilf multiarch implementations.
2057         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
2058         New file.
2059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
2060         file.
2061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
2062         multiarch ceil for PowerPC32.
2063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
2064         New file.
2065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
2066         file.
2067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
2068         multiarch ceilf for PowerPC32.
2069
2070 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2071
2072         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
2073         is defined.
2074         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
2075         FINITEF is defined.
2076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
2077         and finitef multiarch implementations.
2078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2079         New file.
2080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
2081         file.
2082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
2083         multiarch finite for PowerPC32.
2084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2085         New file.
2086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
2087         file: multiarch finitef for PowerPC32.
2088
2089 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2090
2091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
2092         and isinff multiarch implementations.
2093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
2094         file.
2095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
2096         file.
2097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
2098         multiarch isinf for PowerPC32.
2099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2100         New file.
2101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
2102         multiarch isinff for PowerPC32.
2103
2104 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2105
2106         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
2107         alias when __isnan is defined.
2108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
2109         and isnanf multiarch implementations.
2110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
2111         file.
2112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
2113         file.
2114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
2115         file.
2116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
2117         file.
2118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
2119         multiarch isnan for PowerPC32.
2120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2121         New file.
2122         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
2123         New file.
2124         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
2125         multiarch isnanf for PowerPC32.
2126
2127 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2128
2129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
2130         and sqrtf multiarch implementations.
2131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
2132         file.
2133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
2134         file.
2135         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
2136         multiarch sqrt for PowerPC32.
2137         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
2138         file.
2139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
2140         file.
2141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
2142         multiarch sqrtf for PowerPC32.
2143
2144 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2145
2146         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
2147         and llroundf multiarch implementations.
2148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2149         New file.
2150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2151         New file.
2152         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2153         New file.
2154         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
2155         file: multiarch llround for PowerPC32.
2156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
2157         file: multiarch llroundf for PowerPC32.
2158
2159 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2160
2161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
2162         multiarch PowerPC32 fpu implementations.
2163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2164         New file.
2165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2166         New file.
2167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
2168         multiarch llrint for PowerPC32.
2169         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2170         New file.
2171         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2172         New file.
2173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
2174         file.
2175
2176 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2177
2178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
2179
2180 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2181
2182         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
2183         file.
2184         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
2185         file.
2186         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
2187         file.
2188         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
2189         multiarch wordcopy for PPC32.
2190         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2191         wordcopy objects.
2192         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2193         (__libc_ifunc_impl_list): Likewise.
2194         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
2195         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
2196         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
2197         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
2198         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
2199         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
2200
2201 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2202
2203         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
2204         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
2205         file.
2206         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
2207         file.
2208         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
2209         file.
2210         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
2211         multiarch wcscpy for PPC32.
2212         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2213         multiarch objects.
2214         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2215         (__libc_ifunc_impl_list): Likewise.
2216         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2217         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2218         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
2219         sysdeps/powerpc/power6/wcscpy.c.
2220
2221 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2222
2223         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
2224         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
2225         file.
2226         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
2227         file.
2228         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
2229         file.
2230         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
2231         multiarch wcsrchr for PPC32.
2232         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2233         multiarch objects.
2234         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2235         (__libc_ifunc_impl_list): Likewise.
2236         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2237         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2238         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
2239         sysdeps/powerpc/power6/wcsrchr.c.
2240
2241 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2242
2243         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
2244         file.
2245         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
2246         file.
2247         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
2248         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
2249         multiarch wcschr for PPc32.
2250         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2251         multiarch objects.
2252         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2253         (__libc_ifunc_impl_list): Likewise.
2254         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
2255         * sysdeps/powerpc/power6/wcschr.c: ... to here.
2256         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
2257         sysdeps/powerpc/power6/wcschr.c.
2258
2259 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2260
2261         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
2262         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
2263         file.
2264         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
2265         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
2266         file: multiarch strchr for PPC32.
2267         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
2268         multiarch objects.
2269         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2270         (__libc_ifunc_impl_list): Likewise.
2271
2272 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2273
2274         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
2275         name.
2276         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
2277         file.
2278         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
2279         file.
2280         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
2281         multiarch strchrnul for PPC32.
2282         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
2283         multiarch objects.
2284         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2285         (__libc_ifunc_impl_list): Likewise.
2286
2287 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2288
2289         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
2290         file.
2291         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
2292         multiarch strncasecmp for PPC32.
2293         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
2294         file.
2295         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
2296         multiarch strncasecmp_l for PPC32.
2297         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
2298         strncasecmp multiarch objects.
2299         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2300         (__libc_ifunc_impl_list): Likewise.
2301
2302 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2303
2304         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
2305         file.
2306         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
2307         multiarch strncasecmp for PPC32.
2308         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
2309         New file.
2310         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
2311         multiarch strcasecmp_l for PPC32.
2312         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
2313         multiarch objects.
2314         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2315         (__libc_ifunc_impl_list): Likewise.
2316
2317 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2318
2319         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
2320         file.
2321         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
2322         file.
2323         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
2324         multiarch strncmp for PPC32.
2325         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
2326         multiarch objects.
2327         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2328         (__libc_ifunc_impl_list): Likewise.
2329
2330 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2331
2332         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
2333         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
2334         file.
2335         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
2336         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
2337         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
2338         multiarch objects.
2339         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2340         (__libc_ifunc_impl_list): Likewise.
2341
2342 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2343
2344         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
2345         file.
2346         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
2347         file.
2348         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
2349         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
2350         multiarch objects.
2351         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2352         (__libc_ifunc_impl_list): Likewise.
2353
2354 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2355
2356         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
2357         file.
2358         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
2359         file.
2360         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
2361         multiarch rawmemchr for PPC32.
2362         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
2363         multiarch objects.
2364         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2365         (__libc_ifunc_impl_list): Likewise.
2366
2367 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2368
2369         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
2370         file.
2371         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
2372         file.
2373         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
2374         file: memrchr multiarch for PPC32.
2375         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
2376         multiarch objects.
2377         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2378         (__libc_ifunc_impl_list): Likewise.
2379
2380 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2381
2382         * string/memchr.c (__memchr): Using macro to redefine symbol name.
2383         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
2384         file.
2385         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
2386         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
2387         multiarch memchr for PPC32.
2388         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
2389         multiarch objects.
2390         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2391         (__libc_ifunc_impl_list): Likewise.
2392
2393 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2394
2395         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
2396         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
2397         file.
2398         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
2399         file.
2400         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
2401         file: multiarch mempcpy for PPC32.
2402         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
2403         multiarch objects.
2404         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2405         (__libc_ifunc_impl_list): Likewise.
2406
2407 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2408
2409         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
2410         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
2411         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
2412         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
2413         multiarch bzero for PPC32.
2414         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
2415         file.
2416         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
2417         file.
2418         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
2419         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
2420         file: multiarch memset for PPC32.
2421         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
2422         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
2423         memset multiarch objects.
2424         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2425         (__libc_ifunc_impl_list): Likewise.
2426
2427 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2428
2429         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
2430         file.
2431         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
2432         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
2433         memcmp for PPC32.
2434         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
2435         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
2436         multiarch objects.
2437         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2438         (__libc_ifunc_impl_list): Likewise.
2439
2440 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2441
2442         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
2443         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
2444         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
2445         file.
2446         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
2447         file.
2448         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
2449         file.
2450         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
2451         multiarch memcpy for PPC32.
2452         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
2453         multiarch objects.
2454         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2455         (__libc_ifunc_impl_list): Likewise.
2456
2457 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2458
2459         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
2460         support multiarch for POWER/PPC32.
2461         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2462         Likewise.
2463         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
2464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
2465         Implies file to make multiarch folder appers before the fpu and
2466         default folder for power4 configuration.
2467
2468 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2469
2470         * scripts/bench.pl: Append volatile keyword to type.
2471
2472 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2473
2474         * sysdeps/sh/sotruss-lib.c: New file.
2475         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
2476
2477 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2478
2479         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2480
2481 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
2482
2483         [BZ #6810]
2484         * math/w_tgamma.c: Include <errno.h>.
2485         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
2486         * math/w_tgammaf.c: Include <errno.h>.
2487         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
2488         * math/w_tgammal.c: Include <errno.h>.
2489         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
2490         * math/auto-libm-test-in: Do not allow missing errno on tgamma
2491         underflow.  Add more tgamma tests.
2492         * math/auto-libm-test-out: Regenerated.
2493         * sysdeps/i386/fpu/libm-test-ulps: Update.
2494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2495
2496         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
2497         sin, sinh, tan, tanh, tgamma, y0 and y1.
2498         * math/auto-libm-test-out: Regenerated.
2499         * math/libm-test.inc (TEST_COND_x86_64): New macro.
2500         (TEST_COND_x86): Likewise.
2501         (M_E2l): Remove macro.
2502         (M_E3l): Likewise.
2503         (M_2_SQRT_PIl): Likewise.
2504         (M_SQRT_PIl): Likewise.
2505         (M_1_DIV_El): Likewise.
2506         (log_test_data): Use AUTO_TESTS_f_f.
2507         (log10_test_data): Likewise.
2508         (log1p_test_data): Likewise.
2509         (log2_test_data): Likewise.
2510         (sin_test_data): Likewise.
2511         (sin_tonearest_test_data): Likewise.
2512         (sin_towardzero_test_data): Likewise.
2513         (sin_downward_test_data): Likewise.
2514         (sin_upward_test_data): Likewise.
2515         (sinh_test_data): Likewise.
2516         (sinh_tonearest_test_data): Likewise.
2517         (sinh_towardzero_test_data): Likewise.
2518         (sinh_downward_test_data): Likewise.
2519         (sinh_upward_test_data): Likewise.
2520         (tan_test_data): Likewise.
2521         (tan_tonearest_test_data): Likewise.
2522         (tan_towardzero_test_data): Likewise.
2523         (tan_downward_test_data): Likewise.
2524         (tan_upward_test_data): Likewise.
2525         (tanh_test_data): Likewise.
2526         (tgamma_test_data): Likewise.
2527         (y0_test_data): Likewise.
2528         (y1_test_data): Likewise.
2529         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
2530         (special_real_inputs): Add pi/4.
2531         * sysdeps/i386/fpu/libm-test-ulps: Update.
2532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2533
2534 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2535
2536         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
2537         "longjmp_target" static probes.
2538         (__longjmp): Rename to __longjmp_symbol.
2539         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2540         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
2541         on which longjmp to generate.
2542         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2543         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
2544         probe.
2545         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2546         (__sigjmp_save): Rename to __sigjmp_save_symbol.
2547         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2548         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
2549         and __sigjmp_save_symbol based on which sigsetjmp to generated.
2550         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
2551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
2552         __longjmp_symbol based on which __longjmp to generate.
2553         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
2554         probe.
2555         (setjmp): Rename to setjmp_symbol.
2556         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2557         (_setjmp): Rename to _setjmp_symbol.
2558         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2559         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
2560         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
2561         which setjmp to generate.
2562         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
2563         "longjmp_target" static probes.
2564
2565 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2566
2567         * benchtests/README: Add note about output arguments.
2568         * benchtests/bench-sincos.c: Remove file.
2569         * benchtests/sincos-inputs: New file.
2570         * scripts/bench.pl: Identify output arguments and define
2571         static variables for them.
2572
2573         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
2574
2575         [BZ #15941]
2576         * Makefile (INSTALL): Add install-plain.texi as the primary
2577         dependency.
2578         * manual/install-plain.texi: New file.
2579         * manual/install.texi: Include node directive only for
2580         non-plaintext output.
2581
2582 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2583
2584         * stdlib/longlong.h: Update from GCC.
2585
2586         [BZ #6807]
2587         [BZ #15901]
2588         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
2589         * math/w_j0f.c (y0f): Likewise.
2590         * math/w_j0l.c (__y0l): Likewise.
2591         * math/w_j1.c (y1): Likewise.
2592         * math/w_j1f.c (y1f): Likewise.
2593         * math/w_j1l.c (__y1l): Likewise
2594         * math/w_jn.c (yn): Likewise.
2595         * math/w_jnf.c (ynf): Likewise.
2596         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
2597         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
2598         value for Bessel function domain errors outside _SVID_ mode.
2599         Adjust sign of return value for yn (negative integer, 0).
2600         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
2601         by zero in return for negative x and set sign appropriately for
2602         negative n.
2603         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
2604         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2605         * math/libm-test.inc (y0_test_data): Add more tests and adjust
2606         expectations in error cases.
2607         (y1_test_data): Likewise.
2608         (yn_test_data): Likewise.
2609         * sysdeps/i386/fpu/libm-test-ulps: Update.
2610         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2611
2612 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2613
2614         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
2615         "64" to "64-v1".  Add "64-v2".
2616         (abi-64-options): Rename to ...
2617         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
2618         (abi-64-condition): Rename to ...
2619         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
2620         (abi-64-ld-soname): Rename to ...
2621         (abi-64-v1-ld-soname): ... this.
2622         (abi-64-v2-options): Define.
2623         (abi-64-v2-condition): Likewise.
2624         (abi-64-v2-ld-soname): Likewise.
2625         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
2626         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
2627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
2628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
2629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
2630
2631 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2632             Alan Modra  <amodra@gmail.com>
2633
2634         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
2635         New versions for use with the ELFv2 ABI.
2636         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
2637         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
2638         declaration.
2639         (struct La_ppc64v2_retval): Likewise.
2640         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
2641         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
2642         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
2643         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
2644         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
2645         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2646         Do not save or restore CR.
2647         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
2648         (_dl_profile_resolve): Do no save or restore CR.  Support extended
2649         return values for ELFv2 ABI.  Fix location of FPR return registers.
2650         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
2651         updated values for _CALL_ELF == 2.
2652         (La_regs, La_retval, int_retval): Likewise.
2653
2654 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2655
2656         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
2657         (FRAME_MIN_SIZE_PARM): Likewise.
2658         (FRAME_BACKCHAIN): Likewise.
2659         (FRAME_CR_SAVE): Likewise.
2660         (FRAME_LR_SAVE): Likewise.
2661         (FRAME_TOC_SAVE): Likewise.
2662         (FRAME_PARM_SAVE): Likewise.
2663         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2664         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2665         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2666         (call_mcount_parm_offset): New macro.
2667         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
2668         (PROF): Use symbolic stack frame offsets.
2669         (TAIL_CALL_SYSCALL_ERROR): Likewise.
2670         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
2671         Redefine in terms of FRAME_MIN_SIZE.
2672         (_dl_runtime_resolve): Use symbolic stack frame offsets.
2673         (_dl_profile_resolve): Likewise.  Update comment.
2674         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
2675         symbols stack frame offsets.
2676         (__sigsetjmp): Likewise.
2677         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2678         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
2679         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
2680         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
2681
2682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
2683         (FRAME_BACKCHAIN): Remove.
2684         (FRAME_CR_SAVE): Likewise.
2685         (FRAME_LR_SAVE): Likewise.
2686         (FRAME_COMPILER_DW): Likewise.
2687         (FRAME_LINKER_DW): Likewise.
2688         (FRAME_TOC_SAVE): Likewise.
2689         (FRAME_PARM_SAVE): Likewise.
2690         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2691         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2692         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
2694         (CHECK_SP): Use symbolic stack frame offsets.
2695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
2696         zone" instead of caller's parameter save area for temp storage.
2697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2698         Likewise.  Also, use symbolic stack frame offsets.
2699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
2700         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
2701         our own stack frame instead of the caller's.
2702         (__socket): Use symbolic stack frame offsets.
2703
2704 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2705             Alan Modra  <amodra@gmail.com>
2706
2707         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
2708         Define.
2709         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
2710         PPC64_LOCAL_ENTRY_OFFSET): Define.
2711         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
2712         New function.
2713         (elf_machine_fixup_plt): Call it.
2714         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
2715         reloc arguments.
2716         (elf_machine_rela): Update call to elf_machine_plt_conflict.
2717         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2718         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
2719         r2 before calling target.
2720
2721 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2722             Alan Modra  <amodra@gmail.com>
2723
2724         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
2725         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
2726         versions of macros to support ELFv2 ABI.
2727         (LOCALENTRY): New macro.
2728         (ENTRY, EALIGN): Use it.
2729         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
2730         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
2731         fall through into ENTRY entry point.
2732         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
2733         Only define if _CALL_ELF != 2.
2734
2735         (elf_machine_matches_host): Verify ABI version matches.
2736         (RTLD_START): Use LOCALENTRY.
2737         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
2738         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
2739         (PLT_ENTRY_WORDS): New macro.
2740         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
2741         (elf_machine_runtime_setup): Support ELFv2 ABI.
2742         (elf_machine_fixup_plt): Likewise.
2743         (elf_machine_plt_conflict): Likewise.
2744         (resolve_ifunc): Likewise.
2745         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
2746         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2747         Likewise.
2748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2749         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
2750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2751         (makecontext): Support ELFv2 ABI.
2752         * elf/elf.h (EF_PPC64_ABI): Define.
2753
2754 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2755
2756         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
2757         New assembler macro.
2758         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
2759         [ASSEMBLER] (ENTRY): ... but instead here ...
2760         [ASSEMBLER] (EALIGN): ... and here.
2761         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
2762         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
2763         [!ASSEMBLER] (ENTRY_2): Use it.
2764         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
2765         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
2766         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2767         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
2768         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
2769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
2770         Use PPC64_LOAD_FUNCPTR.
2771
2772 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2773
2774         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
2775
2776 2013-12-04  Alan Modra  <amodra@gmail.com>
2777
2778         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
2779         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
2780         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
2781         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
2782
2783         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
2784         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
2785         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
2786         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
2787         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
2788         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
2789
2790 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2791
2792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2793         (__makecontext): Fix incorrect CFI when backtracing out of
2794         context created via makecontext.
2795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
2796         (__setcontext): Fix incorrect CFI during switch to new context.
2797         (__novec_setcontext): Likewise.
2798
2799 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2800
2801         [BZ #4772]
2802         * time/strptime_l.c (__strptime_internal): Allow modifiers
2803         in strptime.
2804         * time/tst-strptime.c (day_tests): Add testcase.
2805
2806
2807 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2808
2809         * scripts/bench.pl: Skip over blank lines.
2810
2811 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2812
2813         [BZ #926]
2814         * manual/time.texi (Calendar Time): Clarify what timezone functions
2815         use.
2816
2817 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2818
2819         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2820
2821 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2822
2823         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
2824         implementation.
2825         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
2826         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
2827         * debug/memset_chk.c (__memset_chk): Likewise.
2828         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
2829         * debug/strncpy_chk.c: Likewise.
2830
2831 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2832
2833         [BZ #15268]
2834         [BZ #15425]
2835         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
2836         (__ieee754_exp): For possibly underflowing results, check size of
2837         result and force underflow exception if required.
2838         * math/auto-libm-test-in: Add more tests of exp.
2839         * math/auto-libm-test-out: Regenerated.
2840         * sysdeps/i386/fpu/libm-test-ulps: Update.
2841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2842
2843         [BZ #16283]
2844         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
2845         * math/w_exp2f.c (__exp2f): Likewise.
2846         * math/w_exp2l.c (__exp2l): Likewise.
2847         * math/auto-libm-test-in: Do not allow missing errno on exp2
2848         underflow.
2849         * math/auto-libm-test-out: Regenerated.
2850
2851 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
2852
2853         [BZ #16274]
2854         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
2855         handle filename validation.
2856         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
2857         (do_open): Delete.
2858
2859 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2860
2861         [BZ #6786]
2862         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
2863         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
2864         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
2865         <float.h>.
2866         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
2867         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
2868         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2869         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
2870         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2871         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
2872         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2873         * math/auto-libm-test-in: Don't allow missing errno from erfc.
2874         Add more erfc tests.
2875         * math/auto-libm-test-out: Regenerated.
2876         * sysdeps/i386/fpu/libm-test-ulps: Update.
2877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2878
2879         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
2880         exp2, expm1, j0 and j1.
2881         * math/auto-libm-test-out: Regenerated.
2882         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
2883         (erfc_test_data): Likewise.
2884         (exp_test_data): Likewise.
2885         (exp_tonearest_test_data): Likewise.
2886         (exp_towardzero_test_data): Likewise.
2887         (exp_downward_test_data): Likewise.
2888         (exp_upward_test_data): Likewise.
2889         (exp10_test_data): Likewise.
2890         (exp2_test_data): Likewise.
2891         (expm1_test_data): Likewise.
2892         (j0_test_data): Likewise.
2893         (j1_test_data): Likewise.
2894         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
2895         (input_flag_type): Add flag_xfail_rounding.
2896         (input_flags): Add xfail-rounding.
2897         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
2898         (output_for_one_input_case): Handle flag_xfail_rounding.
2899         * sysdeps/i386/fpu/libm-test-ulps: Update.
2900         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2901
2902 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
2903
2904         [BZ #16289]
2905         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
2906         division by 0.
2907
2908 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2909
2910         [BZ #16195]
2911         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2912         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
2913         (STAP_PROBE0): New macro.
2914         (STAP_PROBE1): Likewise.
2915         (STAP_PROBE2): Likewise.
2916         (STAP_PROBE3): Likewise.
2917         (STAP_PROBE4): Likewise.
2918
2919 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
2920
2921         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
2922
2923 2013-12-02  Steve Ellcey  <sellcey@mips.com>
2924
2925         * benchtests/Makefile (bench): Add sqrt.
2926         (LDLIBS-bench-sqrt): New.
2927         * benchtests/sqrt-input: New.
2928
2929 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
2930
2931         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
2932         (GAIH_EAI): Likewise.
2933         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
2934         (gaih_inet): Likewise.
2935         (getaddrinfo): Don't use GAIH_EAI.
2936
2937         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
2938         (struct gaih): Remove definition.
2939
2940 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2941
2942         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
2943         Use HERRNOP directly.
2944
2945 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2946
2947         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2948
2949 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
2950
2951         * math/gen-auto-libm-tests.c (test_functions): Add more
2952         single-argument functions.
2953         (special_fill_pi_2): New function.
2954         (special_fill_minus_pi_2): Likewise.
2955         (special_fill_pi_6): Likewise.
2956         (special_fill_minus_pi_6): Likewise.
2957         (special_fill_pi_3): Likewise.
2958         (special_fill_2pi_3): Likewise.
2959         (special_fill_e): Likewise.
2960         (special_fill_1_e): Likewise.
2961         (special_fill_e_minus_1): Likewise.
2962         (special_real_inputs): Add more special inputs.
2963         (output_for_one_input_case): Do not require ERANGE on underflow to
2964         zero if round-to-nearest result does not underflow to zero, unless
2965         exact results required.
2966         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
2967         atan, atanh, cbrt, cos and cosh.
2968         * math/auto-libm-test-out: Regenerated.
2969         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
2970         (acos_tonearest_test_data): Likewise.
2971         (acos_towardzero_test_data): Likewise.
2972         (acos_downward_test_data): Likewise.
2973         (acos_upward_test_data): Likewise.
2974         (acosh_test_data): Likewise.
2975         (asin_test_data): Likewise.
2976         (asin_tonearest_test_data): Likewise.
2977         (asin_towardzero_test_data): Likewise.
2978         (asin_upward_test_data): Likewise.
2979         (asinh_test_data): Likewise.
2980         (atan_test_data): Likewise.
2981         (atanh_test_data): Likewise.
2982         (cbrt_test_data): Likewise.
2983         (cos_test_data): Likewise.
2984         (cos_tonearest_test_data): Likewise.
2985         (cos_towardzero_test_data): Likewise.
2986         (cos_downward_test_data): Likewise.
2987         (cos_upward_test_data): Likewise.
2988         (cosh_test_data): Likewise.
2989         (cosh_tonearest_test_data): Likewise.
2990         (cosh_towardzero_test_data): Likewise.
2991         (cosh_downward_test_data): Likewise.
2992         (cosh_upward_test_data): Likewise.
2993         * sysdeps/i386/fpu/libm-test-ulps: Update.
2994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2995
2996 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
2997
2998         [BZ #6787]
2999         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
3000         * math/w_exp10f.c (__exp10f): Likewise.
3001         * math/w_exp10l.c (__exp10l): Likewise.
3002         * math/libm-test.inc (exp10_test_data): Add more tests and expect
3003         errno settings in existing tests.
3004
3005         [BZ #14032]
3006         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
3007         precision control set to double precision.
3008         * sysdeps/i386/fpu/w_sqrt.c: New file.
3009         * math/auto-libm-test-in: Add more tests.
3010         * math/auto-libm-test-out: Update.
3011
3012         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
3013         (sqrt_test_tonearest): New function.
3014         (sqrt_towardzero_test_data): New variable.
3015         (sqrt_test_towardzero): New function.
3016         (sqrt_downward_test_data): New variable.
3017         (sqrt_test_downward): New function.
3018         (sqrt_upward_test_data): New variable.
3019         (sqrt_test_upward): New function.
3020         (main): Call the new functions.
3021
3022         * math/gen-auto-libm-tests.c: New file.
3023         * math/auto-libm-test-in: Likewise.
3024         * math/auto-libm-test-out: New generated file.
3025         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
3026         variables.
3027         (%beautify): Add generated representations of zero.
3028         (top level): Set $auto_input and call parse_auto_input.
3029         (beautify): Remove trailing "f" from hex float constants.
3030         (parse_args): Handle XFAIL_TEST.
3031         (convert_condition): New function.
3032         (or_value): Likewise.
3033         (or_cond_value): Likewise.
3034         (generate_testfile): Handle AUTO_TESTS_* lines.
3035         (parse_auto_input): New function.
3036         * math/libm-test.inc (XFAIL_TEST): New macro.
3037         (ERRNO_UNCHANGED): Update value.
3038         (ERRNO_EDOM): Likewise.
3039         (ERRNO_ERANGE): Likewise.
3040         (IGNORE_RESULT): Likewise.
3041         (TEST_COND_flt_32): New macro.
3042         (TEST_COND_dbl_64): Likewise.
3043         (TEST_COND_ldbl_96_intel): Likewise.
3044         (TEST_COND_ldbl_96_m68k): Likewise.
3045         (TEST_COND_ldbl_128): Likewise.
3046         (TEST_COND_ldbl_128ibm): Likewise.
3047         (TEST_COND_long32): Likewise.
3048         (TEST_COND_long64): Likewise.
3049         (TEST_COND_before_rounding): Likewise.
3050         (TEST_COND_after_rounding): Likewise.
3051         (enable_test): Handle XFAIL_TEST flag.
3052         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
3053         with finite results.
3054         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
3055         auto-libm-test-out.
3056
3057 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3058             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3059
3060         [BZ #16214]
3061         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
3062         __tls_get_addr_internal instead of __tls_get_offset in order to
3063         avoid GOT pointer dependency.  Make rtld export
3064         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
3065         __tls_get_addr since we are a __tls_get_offset platform.
3066         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
3067         GOT pointer being set up before.
3068         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
3069
3070 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
3071
3072         * manual/math.texi (Errors in Math Functions): Document accuracy
3073         goals.
3074
3075         [BZ #15004]
3076         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
3077         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
3078         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3079         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3080         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3081         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3082         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3083         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3084         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3085         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3086         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3087         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3088         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3089         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3090         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3091         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3092
3093         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
3094         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
3095         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
3096         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
3097         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
3098         Likewise.
3099         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
3100         Likewise.
3101         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
3102         Likewise.
3103         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
3104         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3105         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
3106         atomic-feupdateenv and flt-rounds.
3107         * sysdeps/powerpc/nofpu/Versions (libc): Add
3108         __atomic_feholdexcept, __atomic_feclearexcept,
3109         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
3110         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
3111         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
3112         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
3113         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
3114         here.
3115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
3116         Update.
3117
3118         * manual/arith.texi (FP Exceptions): Document that exceptions may
3119         not be raised when matherr is used.
3120         (Math Error Reporting): Document overflow in directed rounding
3121         modes.  Document that errno may not be set when finite values are
3122         returned on overflow.  Document intent to set errno on underflow
3123         only for underflow to zero.
3124
3125         [BZ #16271]
3126         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
3127         round-to-nearest then adjust result for other rounding modes.
3128         * include/fenv.h (fegetround): Use libm_hidden_proto.
3129         * math/fegetround.c (fegetround): Use libm_hidden_def.
3130         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
3131         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
3132         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3133         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
3134         Likewise.
3135         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
3136         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3137         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
3138         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
3139
3140 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3141
3142         [BZ #16077]
3143         * nss/Versions (libnss_files): Add
3144         _nss_files_gethostbyname3_r.
3145         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
3146         New function.
3147         (HOST_DB_LOOKUP): Remove macro.
3148         (_nss_files_gethostbyname_r): Implement function without the
3149         HOST_DB_LOOKUP macro.
3150         (_nss_files_gethostbyname2_r): Likewise.
3151
3152 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
3153
3154         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
3155
3156 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
3157
3158         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
3159         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
3160         warning.
3161
3162 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3163
3164         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
3165         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
3166         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3167         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
3168         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
3169         __fe_nomask_env_priv and attribute_hidden.
3170         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
3171         (libc_feupdateenv_test_ppc): Likewise.
3172         (libc_feresetround_ppc): Likewise.
3173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3174         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
3175         compat_symbol macro.
3176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3177         (__fe_nomask_env): Likewise.
3178         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
3179
3180 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3181
3182         * string/Makefile: Remove ifunc tests.
3183         * string/test-string.h: Define TEST_IFUNC.
3184         * string/test-bcopy-ifunc.c: Remove.
3185         * string/test-bzero-ifunc.c: Likewise.
3186         * string/test-memccpy-ifunc.c: Likewise.
3187         * string/test-memchr-ifunc.c: Likewise.
3188         * string/test-memcmp-ifunc.c: Likewise.
3189         * string/test-memcpy-ifunc.c: Likewise.
3190         * string/test-memmem-ifunc.c: Likewise.
3191         * string/test-memmove-ifunc.c: Likewise.
3192         * string/test-mempcpy-ifunc.c: Likewise.
3193         * string/test-memrchr-ifunc.c: Likewise.
3194         * string/test-memset-ifunc.c: Likewise.
3195         * string/test-rawmemchr-ifunc.c: Likewise.
3196         * string/test-stpcpy-ifunc.c: Likewise.
3197         * string/test-stpncpy-ifunc.c: Likewise.
3198         * string/test-strcasecmp-ifunc.c: Likewise.
3199         * string/test-strcasestr-ifunc.c: Likewise.
3200         * string/test-strcat-ifunc.c: Likewise.
3201         * string/test-strchr-ifunc.c: Likewise.
3202         * string/test-strchrnul-ifunc.c: Likewise.
3203         * string/test-strcmp-ifunc.c: Likewise.
3204         * string/test-strcpy-ifunc.c: Likewise.
3205         * string/test-strcspn-ifunc.c: Likewise.
3206         * string/test-strlen-ifunc.c: Likewise.
3207         * string/test-strncasecmp-ifunc.c: Likewise.
3208         * string/test-strncat-ifunc.c: Likewise.
3209         * string/test-strncmp-ifunc.c: Likewise.
3210         * string/test-strncpy-ifunc.c: Likewise.
3211         * string/test-strnlen-ifunc.c: Likewise.
3212         * string/test-strpbrk-ifunc.c: Likewise.
3213         * string/test-strrchr-ifunc.c: Likewise.
3214         * string/test-strspn-ifunc.c: Likewise.
3215         * string/test-strstr-ifunc.c: Likewise.
3216
3217 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3218
3219         * benchtests/Makefile: Remove ifunc tests.
3220         * benchtests/bench-string.h: Define TEST_IFUNC.
3221         * benchtests/bench-bcopy-ifunc.c: Remove.
3222         * benchtests/bench-bzero-ifunc.c: Likewise.
3223         * benchtests/bench-memccpy-ifunc.c: Likewise.
3224         * benchtests/bench-memchr-ifunc.c: Likewise.
3225         * benchtests/bench-memcmp-ifunc.c: Likewise.
3226         * benchtests/bench-memcpy-ifunc.c: Likewise.
3227         * benchtests/bench-memmem-ifunc.c: Likewise.
3228         * benchtests/bench-memmove-ifunc.c: Likewise.
3229         * benchtests/bench-mempcpy-ifunc.c: Likewise.
3230         * benchtests/bench-memrchr-ifunc.c: Likewise.
3231         * benchtests/bench-memset-ifunc.c: Likewise.
3232         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
3233         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
3234         * benchtests/bench-stpcpy-ifunc.c: Likewise.
3235         * benchtests/bench-stpncpy-ifunc.c: Likewise.
3236         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
3237         * benchtests/bench-strcasestr-ifunc.c: Likewise.
3238         * benchtests/bench-strcat-ifunc.c: Likewise.
3239         * benchtests/bench-strchr-ifunc.c: Likewise.
3240         * benchtests/bench-strchrnul-ifunc.c: Likewise.
3241         * benchtests/bench-strcmp-ifunc.c: Likewise.
3242         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
3243         * benchtests/bench-strcpy-ifunc.c: Likewise.
3244         * benchtests/bench-strcspn-ifunc.c: Likewise.
3245         * benchtests/bench-strlen-ifunc.c: Likewise.
3246         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
3247         * benchtests/bench-strncat-ifunc.c: Likewise.
3248         * benchtests/bench-strncmp-ifunc.c: Likewise.
3249         * benchtests/bench-strncpy-ifunc.c: Likewise.
3250         * benchtests/bench-strnlen-ifunc.c: Likewise.
3251         * benchtests/bench-strpbrk-ifunc.c: Likewise.
3252         * benchtests/bench-strrchr-ifunc.c: Likewise.
3253         * benchtests/bench-strsep-ifunc.c: Likewise.
3254         * benchtests/bench-strspn-ifunc.c: Likewise.
3255         * benchtests/bench-strstr-ifunc.c: Likewise.
3256
3257 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3258
3259         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
3260
3261 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3262
3263         * resolv/netdb.h: Use __glibc_reserved instead __unused.
3264         * rt/aio.h: Likewise.
3265         * sysdeps/gnu/bits/utmp.h: Likewise.
3266         * sysdeps/gnu/bits/utmpx.h: Likewise.
3267         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3268         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
3269         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
3270         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
3271         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3272         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3273         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
3274         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
3275         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3276         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
3277         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
3278         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3279         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
3281         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3282         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
3283         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
3284         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
3285         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3286         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3287         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
3288         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
3289         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
3290         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
3291         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3292         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3293         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
3294         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
3295         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
3296         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3297         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3298         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3299         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
3300         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
3301         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3302         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
3303         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
3304         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
3305         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
3306         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
3307         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3308         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
3309
3310 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
3311
3312         [BZ #16245]
3313         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
3314         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
3315
3316 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
3317
3318         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
3319         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
3320         Likewise.
3321
3322 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3323
3324         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3325         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
3326         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
3327         (__fesetround): Remove define.
3328         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
3329         rounding and exceptions handling.
3330         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
3331         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
3332         (__fe_nomask_env): Likewise.
3333         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
3334         __fegetround instead of fegetround.
3335         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
3336         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
3337
3338 2013-11-21  Roland McGrath  <roland@hack.frob.com>
3339
3340         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
3341         it's there.
3342
3343         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
3344
3345 2013-11-21  Meador Inge  <meadori@codesourcery.com>
3346
3347         [BZ #11157]
3348         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
3349         (encrypt_r): Likewise.
3350         * malloc/obstack.h (obstack_free): Likewise.
3351         * posix/unistd.h (encrypt): Likewise.
3352
3353 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
3354
3355         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
3356         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
3357         DL_CALL_DT_FINI() that call the functions directly.
3358         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
3359         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
3360         * elf/dl-fini.c: Likewise.
3361
3362 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
3363
3364         * malloc/hooks.c (memalign_check): Add alignment rounding.
3365         * malloc/malloc.c (_mid_memalign): New function.
3366         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
3367         Implement by calling _mid_memalign.
3368         * manual/probes.texi (Memory Allocation Probes): Remove
3369         memory_valloc_retry and memory_pvalloc_retry.
3370
3371 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3372
3373         * locale/programs/locarchive.c (open_archive): Add const
3374         qualifier to ARCHIVEFNAME and copy default fname to
3375         DEFAULT_FNAME.
3376
3377         [BZ #15601]
3378         * libio/tst-widetext.input: Rename Oriya to Odia.
3379         * locale/iso-639.def: Likewise.
3380
3381         * manual/probes.texi (Mathematical Function Probes): Add
3382         documentation for sin, cos, asin and acos probes.
3383         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
3384         (__sin32): Add slowasin probe.
3385         (__cos32): Add slowacos probe.
3386         (__mpsin): Add slowsin probe.
3387         (__mpcos): Add slowcos probe.
3388
3389 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3390
3391         [BZ #15483]
3392         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
3393         thread-local __sim_exceptions_thread and global
3394         __sim_exceptions_global.
3395         (__sim_disabled_exceptions): Change to thread-local
3396         __sim_disabled_exceptions_thread and global
3397         __sim_disabled_exceptions_global.
3398         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3399         and global __sim_round_mode_global.
3400         (__simulate_exceptions): Use thread-local floating-point state and
3401         set global state from it as needed.
3402         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
3403         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
3404         __sim_round_mode_thread.
3405         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
3406         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
3407         and global __sim_exceptions_global.
3408         (__sim_disabled_exceptions): Change to thread-local
3409         __sim_disabled_exceptions_thread and global
3410         __sim_disabled_exceptions_global.
3411         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3412         and global __sim_round_mode_global.
3413         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
3414         (SIM_SET_GLOBAL): Likewise.
3415         * sysdeps/powerpc/soft-fp/sfp-machine.h
3416         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
3417         __sim_round_mode_thread.
3418         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
3419         __sim_disabled_exceptions_thread.
3420         (__sim_exceptions): Change to __sim_exceptions_thread.
3421         (__sim_disabled_exceptions): Change to
3422         __sim_disabled_exceptions_thread.
3423         (__sim_round_mode): Change to __sim_round_mode_thread.
3424         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
3425         thread-local floating-point state and set global state from it as
3426         needed.
3427         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
3428         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
3429         (__sim_disabled_exceptions): Remove extern declaration.
3430         (feenableexcept): Use thread-local floating-point state and set
3431         global state from it as needed.
3432         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
3433         extern declaration.
3434         (__sim_disabled_exceptions): Likewise.
3435         (__sim_round_mode): Likewise.
3436         (__fegetenv): Use thread-local floating-point state.
3437         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
3438         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3439         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
3440         floating-point state and set global state from it as needed.
3441         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
3442         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
3443         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
3444         Likewise.
3445         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
3446         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
3447         Likewise.
3448         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
3449         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
3450         Use __sim_round_mode_thread.
3451         * math/test-fenv-tls.c: New file.
3452         * math/Makefile (tests): Add test-fenv-tls.
3453         ($(objpfx)test-fenv-tls): Depend on
3454         $(common-objpfx)nptl/libpthread.so.
3455
3456 2013-11-19  Andreas Schwab  <schwab@suse.de>
3457
3458         * locale/programs/locale.c (show_info): Decode wordarray elements.
3459         * locale/categories.def (LC_MONETARY): Add element for
3460         _NL_MONETARY_CRNCYSTR.
3461         * locale/C-monetary.c (conversion_rate): New variable.
3462         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
3463         element.
3464
3465 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
3466
3467         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
3468         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
3469
3470 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3471
3472         * elf/Makefile (tst-auxv): New test.
3473         * elf/tst-auxv.c: New
3474         * elf/rtld.c (dl_main): Adjust AT_EXECFN
3475
3476 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
3477
3478         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
3479         (hidden_proto): Caller changed.
3480         (hidden_tls_proto): New macro.
3481         (libc_hidden_tls_proto): Likewise.
3482         (rtld_hidden_tls_proto): Likewise.
3483         (libm_hidden_tls_proto): Likewise.
3484         (libresolv_hidden_tls_proto): Likewise.
3485         (librt_hidden_tls_proto): Likewise.
3486         (libdl_hidden_tls_proto): Likewise.
3487         (libnss_files_hidden_tls_proto): Likewise.
3488         (libnsl_hidden_tls_proto): Likewise.
3489         (libnss_nisplus_hidden_tls_proto): Likewise.
3490         (libutil_hidden_tls_proto): Likewise.
3491
3492 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
3493
3494         [BZ #10253]
3495         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
3496         (decompose_rpath): Defer expansion to fillin_rpath.
3497         (_dl_init_paths): Pass linkmap to fillin_rpath.
3498
3499 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3500
3501         * benchtests/Makefile: Add strsep.
3502         * benchtests/bench-strsep.c: New file: strsep benchtest.
3503         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
3504
3505 2013-11-18  Andreas Schwab  <schwab@suse.de>
3506
3507         * locale/programs/locale.c (show_info) [case byte]: Check for
3508         '\377' instead of '\177'.
3509         * locale/C-monetary.c (not_available): Always use "\377".
3510         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
3511         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
3512         detect unavailable sign_posn locale elements.
3513         * locale/localeconv.c (__localeconv): For grouping and
3514         mon_grouping handle "\177" and "\377" like no grouping.
3515         (INT_ELEM): New macro.  Use it to set all numeric members.
3516         * locale/programs/ld-monetary.c (monetary_read)
3517         <tok_mon_grouping>: Normalize single -1 to the empty string.
3518         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
3519         Likewise.
3520
3521 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3522
3523         [BZ #16055]
3524         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
3525         when we match (nil).
3526         * stdio-common/tst-sscanf.c (struct test): Add testcase.
3527
3528 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
3529
3530         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
3531         (NO_TEST_INLINE): Update value.
3532         (ERRNO_UNCHANGED): Likewise.
3533         (ERRNO_EDOM): Likewise.
3534         (ERRNO_ERANGE): Likewise.
3535         (IGNORE_RESULT): Likewise.
3536         (check_float_internal): Check signs of NaN results if
3537         TEST_NAN_SIGN used.
3538         (check_complex): Pass TEST_NAN_SIGN flag through to second
3539         check_float_internal call.
3540         (copysign_test_data): Add tests with quiet NaNs as second
3541         argument.  Use TEST_NAN_SIGN.
3542         (fabs_test_data): Add test of negative quiet NaN argument.  Use
3543         TEST_NAN_SIGN.
3544         (signbit_test_data): Add tests of quiet NaN argument.
3545         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
3546
3547         * math/gen-libm-test.pl (show_exceptions): Take extra argument
3548         $ignore_result.
3549         (parse_args): Handle function results specified as IGNORE.
3550         * math/libm-test.inc (IGNORE_RESULT): New macro.
3551         (check_float_internal): Do not check numerical result if flag
3552         IGNORE_RESULT set.
3553         (check_complex): Pass through IGNORE_RESULT to second
3554         check_float_internal call.
3555         (check_int): Do not check numerical result if flag IGNORE_RESULT
3556         set.
3557         (check_long): Likewise.
3558         (check_bool): Likewise.
3559         (check_longlong): Likewise.
3560         (lrint_test_data): Add tests of infinite and NaN arguments.
3561         (lrint_tonearest_test_data): Likewise.
3562         (lrint_towardzero_test_data): Likewise.
3563         (lrint_downward_test_data): Likewise.
3564         (lrint_upward_test_data): Likewise.
3565         (llrint_test_data): Likewise.
3566         (llrint_tonearest_test_data): Likewise.
3567         (llrint_towardzero_test_data): Likewise.
3568         (llrint_downward_test_data): Likewise.
3569         (llrint_upward_test_data): Likewise.
3570         (lround_test_data): Likewise.
3571         (llround_test_data): Likewise.
3572
3573         * math/libm-test.inc (NO_TEST_INLINE): New macro.
3574         (ERRNO_UNCHANGED): Update value.
3575         (ERRNO_EDOM): Likewise.
3576         (ERRNO_ERANGE): Likewise.
3577         (NO_TEST_INLINE_FLOAT): New macro.
3578         (NO_TEST_INLINE_DOUBLE): Likewise.
3579         (enable_test): New function.
3580         (RUN_TEST_f_f): Check enable_test before running test.
3581         (RUN_TEST_2_f): Likewise.
3582         (RUN_TEST_fff_f): Likewise.
3583         (RUN_TEST_c_f): Likewise.
3584         (RUN_TEST_f_f1): Likewise.
3585         (RUN_TEST_fF_f1): Likewise.
3586         (RUN_TEST_fI_f1): Likewise.
3587         (RUN_TEST_ffI_f1): Likewise.
3588         (RUN_TEST_c_c): Likewise.
3589         (RUN_TEST_cc_c): Likewise.
3590         (RUN_TEST_f_i): Likewise.
3591         (RUN_TEST_f_i_tg): Likewise.
3592         (RUN_TEST_ff_i_tg): Likewise.
3593         (RUN_TEST_f_b): Likewise.
3594         (RUN_TEST_f_b_tg): Likewise.
3595         (RUN_TEST_f_l): Likewise.
3596         (RUN_TEST_f_L): Likewise.
3597         (RUN_TEST_fFF_11): Likewise.
3598         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
3599         conditionals.
3600         (cosh_test_data): Likewise.
3601         (exp_test_data): Likewise.
3602         (expm1_test_data): Likewise.
3603         (hypot_test_data): Likewise.
3604         (pow_test_data): Likewise.
3605         (sinh_test_data): Likewise.
3606         (tanh_test_data): Likewise.
3607         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
3608         flags argument.
3609
3610         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
3611         tests with quiet NaN input and output.
3612         (acosh_test_data): Likewise.
3613         (asin_test_data): Likewise.
3614         (asinh_test_data): Likewise.
3615         (atan_test_data): Likewise.
3616         (atanh_test_data): Likewise.
3617         (atan2_test_data): Likewise.
3618         (cbrt_test_data): Likewise.
3619         (cos_test_data): Likewise.
3620         (cosh_test_data): Likewise.
3621         (erf_test_data): Likewise.
3622         (erfc_test_data): Likewise.
3623         (exp_test_data): Likewise.
3624         (exp10_test_data): Likewise.
3625         (exp2_test_data): Likewise.
3626         (expm1_test_data): Likewise.
3627         (hypot_test_data): Likewise.
3628         (j0_test_data): Likewise.
3629         (j1_test_data): Likewise.
3630         (jn_test_data): Likewise.
3631         (lgamma_test_data): Likewise.
3632         (log_test_data): Likewise.
3633         (log10_test_data): Likewise.
3634         (log1p_test_data): Likewise.
3635         (log2_test_data): Likewise.
3636         (pow_test_data): Likewise.
3637         (scalb_test_data): Likewise.
3638         (sin_test_data): Likewise.
3639         (sincos_test_data): Likewise.
3640         (sinh_test_data): Likewise.
3641         (tan_test_data): Likewise.
3642         (tanh_test_data): Likewise.
3643         (tgamma_test_data): Likewise.
3644         (y0_test_data): Likewise.
3645         (y1_test_data): Likewise.
3646         (yn_test_data): Likewise.
3647
3648         [BZ #16167]
3649         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
3650         argument being NaN and avoid computations with second argument in
3651         that case.
3652         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3653         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3654         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3655
3656 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
3657
3658         * locale/iso-639.def: Add Chitwani Tharu (the).
3659
3660 2013-11-14  Andreas Schwab  <schwab@suse.de>
3661
3662         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
3663         word instead of empty string.
3664
3665 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3666
3667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3668         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
3669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3670         (__fe_nomask_env): Likewise.
3671
3672 2013-11-13  Steve Ellcey  <sellcey@mips.com>
3673
3674         * benchtests/bench-timing.h: Include time.h.
3675
3676 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3677
3678         [BZ #15997]
3679         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
3680         to 3.4.0 for x32.
3681         * sysdeps/unix/sysv/linux/configure: Regenerated.
3682
3683 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3684
3685         [BZ #16151]
3686         * stdlib/strtod_l.c (round_and_return): Do not consider
3687         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
3688         exponent one less than half the least subnormal exponent.
3689         * stdlib/test-strtod-round-data: Add more tests.
3690         * stdlib/tst-strtod-round.c (tests): Regenerated.
3691
3692 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3693
3694         [BZ #14143]
3695         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
3696         (__fe_mask_env): Likewise.
3697         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
3698         libm_hidden_proto and add function prototype.
3699         (__fe_mask_env): Add function prototype.
3700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3701         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
3702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3703         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
3704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3705         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
3706
3707 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3708
3709         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
3710         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
3711
3712 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3713
3714         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
3715         of htab_find_slot().
3716
3717 2013-11-11  David S. Miller  <davem@davemloft.net>
3718
3719         [BZ #16150]
3720         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
3721         symbol in the non-vis3 case in static builds.
3722         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
3723         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
3724         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
3725         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
3726
3727 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3728
3729         [BZ #387]
3730         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
3731         it is empty.
3732
3733 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3734
3735         * benchtests/Makefile: Add bench-strtod.
3736         * benchtests/bench-strtod.c: New file: strtod benchtest
3737
3738 2013-11-11  Andreas Schwab  <schwab@suse.de>
3739
3740         [BZ #16153]
3741         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
3742         terminating NUL in key length.
3743
3744 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3745
3746         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
3747         Add artificial ODP entry for vDSO symbol for PPC64.
3748         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
3749         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
3750
3751 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3752
3753         [BZ #15374]
3754         * nss/getent.c (services_keys): Recognize services starting with digit.
3755
3756 2013-11-06  David S. Miller  <davem@davemloft.net>
3757
3758         [BZ #15985]
3759         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
3760         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
3761
3762 2013-11-06  Will Newton  <will.newton@linaro.org>
3763
3764         * manual/memory.texi (Malloc Examples): Remove register
3765         keyword from examples.
3766
3767 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
3768
3769         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
3770
3771 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
3772
3773         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
3774         depending on [__GCC_IEC_559 > 0].
3775         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
3776         depending on [__GCC_IEC_559_COMPLEX > 0].
3777
3778 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
3779
3780         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
3781         to iso-639.def.
3782
3783 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
3784
3785         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
3786
3787 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
3788
3789         [BZ #16112]
3790         * malloc/malloc (malloc_info): Do not handle first bin as
3791         special case.
3792
3793 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
3794
3795         * locale/iso-639.def: Add Central Nahuatl (nhn).
3796
3797 2013-11-01  Bruno Haible  <bruno@clisp.org>
3798
3799         [BZ #7003]
3800         * manual/math.texi (BSD Random): Specify range upper bound as
3801         in POSIX.
3802
3803 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
3804
3805         * locale/iso-639.def: Add Meadow Mari (mhr).
3806
3807 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
3808
3809         [BZ #14752], [BZ #15763]
3810         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
3811         Validate name.
3812         * rt/tst_shm.c: Add test for escaping directory.
3813
3814 2013-10-31  Andreas Schwab  <schwab@suse.de>
3815
3816         [BZ #15917]
3817         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
3818         followed by 'x' as part of digit sequence.
3819         * stdio-common/tst-sscanf.c (double_tests2): New tests.
3820
3821 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3822
3823         [BZ #16037]
3824         * configure.ac: allow GNU Make 4.0 and greater.
3825         * configure: Regenerated.
3826
3827 2013-10-30  Will Newton  <will.newton@linaro.org>
3828
3829         [BZ #16038]
3830         * malloc/hooks.c (memalign_check): Limit alignment to the
3831         maximum representable power of two.
3832         * malloc/malloc.c (__libc_memalign): Likewise.
3833         * malloc/tst-memalign.c (do_test): Add test for very
3834         large alignment values.
3835         * malloc/tst-posix_memalign.c (do_test): Likewise.
3836
3837 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3838
3839         [BZ #11087]
3840         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
3841         (munmap_chunk): Likewise.
3842         (mremap_chunk): Likewise.
3843
3844 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3845
3846         [BZ #15799]
3847         * stdlib/div.c (div): Remove obsolete code.
3848         * stdlib/ldiv.c (ldiv): Likewise.
3849         * stdlib/lldiv.c (lldiv): Likewise.
3850
3851 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3852
3853         [BZ #16071]
3854         * nss/nss_files/files-XXX.c (get_contents_ret): New
3855         enumerator.
3856         (get_contents): New function.
3857         (internal_getent): Use it.  Expand size of LINEBUFLEN.
3858
3859 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
3860
3861         * configure.in: Moved to ...
3862         * configure.ac: ... here. Change reference to configure.in
3863         to configure.ac.
3864         * sysdeps/arm/preconfigure.ac: ... here.
3865         configure.in to configure.ac.
3866         * sysdeps/gnu/configure.in: Moved to ...
3867         * sysdeps/gnu/configure.ac: ... here.
3868         * sysdeps/i386/configure.in: Moved to ...
3869         * sysdeps/i386/configure.ac: ... here.
3870         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
3871         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
3872         * sysdeps/mach/configure.in: Moved to ...
3873         * sysdeps/mach/configure.ac: ... here.
3874         * sysdeps/mach/hurd/configure.in: Moved to ...
3875         * sysdeps/mach/hurd/configure.ac: ... here.
3876         * sysdeps/powerpc/configure.in: Moved to ...
3877         * sysdeps/powerpc/configure.ac: ... here.
3878         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
3879         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
3880         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
3881         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
3882         * sysdeps/s390/s390-32/configure.in: Moved to ...
3883         * sysdeps/s390/s390-32/configure.ac: ... here.
3884         * sysdeps/s390/s390-64/configure.in: Moved to ...
3885         * sysdeps/s390/s390-64/configure.ac: ... here.
3886         * sysdeps/sh/configure.in: Moved to ...
3887         * sysdeps/sh/configure.ac: ... here.
3888         * sysdeps/sparc/configure.in: Moved to ...
3889         * sysdeps/sparc/configure.ac: ... here.
3890         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
3891         * sysdeps/unix/sysv/linux/configure.ac: ... here.
3892         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
3893         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
3894         * sysdeps/x86_64/configure.in: Moved to ...
3895         * sysdeps/x86_64/configure.ac: ... here.
3896         * sysdeps/x86_64/preconfigure.in: Moved to ...
3897         * sysdeps/x86_64/preconfigure.ac: ... here.
3898         * aclocal.m4: Change reference to configure.in to configure.ac.
3899         * config.h.in: Likewise.
3900         * manual/install.texi: Likewise.
3901         * manual/maint.texi: Likewise.
3902         * Makefile: Likewise.
3903         * malloc/Makefile: Likewise.
3904         * nscd/Makefile: Likewise.
3905         * Makeconfig: Change reference to configure.in and
3906         preconfigure.in to configure.ac and preconfigure.ac
3907         respectively.
3908         * INSTALL: Regenerated.
3909         * configure: Likewise.
3910         * sysdeps/gnu/configure: Likewise.
3911         * sysdeps/i386/configure: Likewise.
3912         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
3913         * sysdeps/mach/configure: Likewise.
3914         * sysdeps/mach/hurd/configure: Likewise.
3915         * sysdeps/powerpc/configure: Likewise.
3916         * sysdeps/powerpc/powerpc32/configure: Likewise.
3917         * sysdeps/powerpc/powerpc64/configure: Likewise.
3918         * sysdeps/s390/s390-32/configure: Likewise.
3919         * sysdeps/s390/s390-64/configure: Likewise.
3920         * sysdeps/sh/configure: Likewise.
3921         * sysdeps/sparc/configure: Likewise.
3922         * sysdeps/unix/sysv/linux/configure: Likewise.
3923         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
3924         * sysdeps/x86_64/configure: Likewise.
3925         * sysdeps/x86_64/preconfigure: Likewise.
3926
3927 2013-10-29  Andreas Schwab  <schwab@suse.de>
3928
3929         * stdio-common/Makefile (tst-swscanf-ENV): Define.
3930
3931 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3932
3933         * benchtests/pow-inputs: Add new inputs.
3934
3935         * benchtests/exp-inputs: Add new inputs.
3936
3937         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
3938         conditional check for return value.
3939         (__cos32): Likewise.
3940
3941 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3942
3943         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
3944         to provide a boost for large inputs with word alignment.
3945         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
3946         implementation based on optimized PPC64 strcpy.
3947         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
3948         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
3949         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
3950         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
3951
3952 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3953
3954         [BZ #2801]
3955         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
3956
3957 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3958
3959         [BZ #14876]
3960         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
3961         * time/tst-strptime.c (day_tests): Add testcase.
3962
3963 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3964
3965         [BZ #14029]
3966         * manual/pattern.texi: Acknowledge that fnmatch can fail.
3967
3968 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
3969
3970         [BZ #16074]
3971         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
3972         MAP_FAILED on error.
3973
3974 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3975
3976         [BZ #16072]
3977         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
3978         heap for large requests.
3979
3980 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
3981
3982         [BZ #9954]
3983         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
3984         result if the result has no associated interface.
3985         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
3986         interface for all 127.X.Y.Z addresses.
3987
3988 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
3989
3990         * locale/iso-639.def: Add Ligurian (lij)
3991
3992 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
3993
3994         [BZ #15825]
3995         * sunrpc/rpc_main.c: Document rpcgen -5.
3996
3997 2013-10-19  Michael Stahl  <mstahl@redhat.com>
3998
3999         * elf/rtld.c (do_preload): Print the reason why preloading failed.
4000
4001 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4002
4003         [BZ #10278]
4004         * posix/glob.c: Match only directories when trailing slash is present.
4005         * posix/tst-gnuglob.c (my_opendir): Do not open files.
4006         (main): Add testcase.
4007
4008 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4009
4010         [BZ #15670]
4011         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
4012
4013 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
4014
4015         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
4016         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
4017         AUTH_DES and cindex for FIPS 140-2.
4018         (DES Encryption): Add cindex FIPS 46-3.
4019
4020         * locale/locarchive.h (struct locarhandle): Add fname.
4021         * locale/programs/localedef.c (main): Pass ARGV[remaining]
4022         if an optional argument was specified to --list-archive,
4023         otherwise NULL.
4024         * locale/programs/locarchive.c (show_archive_content): Take new
4025         argument fname and pass it via ah.fname to open_archive.
4026         * locale/programs/localedef.h: Update decl.
4027         (open_archive): If AH->fname is non-null, open that file
4028         rather than the default file name, and don't ignore ENOENT.
4029         (create_archive): Set AH.fname to NULL.
4030         (delete_locales_from_archive): Likewise.
4031         (add_locales_to_archive): Likewise.
4032         * locale/programs/locfile.c (write_all_categories): Likewise.
4033
4034 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
4035             Aldy Hernandez  <aldyh@redhat.com>
4036
4037         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
4038         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
4039         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
4040         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
4041         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
4042         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
4043         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
4044         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
4045         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
4046         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
4047         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
4048         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
4049         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
4050         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
4051         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
4052         Likewise.
4053         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
4054         Likewise.
4055         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
4056         Likewise.
4057         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
4058         Likewise.
4059         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
4060         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
4061         Likewise.
4062         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
4063         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
4064         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
4065         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
4066         Likewise.
4067         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
4068         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
4069         * sysdeps/powerpc/preconfigure: Likewise.
4070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4071         Likewise.
4072         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
4073         Replace contents of file by #include of <fenv_libc.h>.
4074         * sysdeps/powerpc/soft-fp/sfp-machine.h
4075         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
4076         and <sys/prctl.h>.
4077         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
4078         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
4079         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
4080         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
4081         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
4082         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
4083         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
4084         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
4085         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
4086         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
4087         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
4088         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
4089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
4090         Allow copysignl PLT reference to be missing.
4091
4092 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
4093             Joseph Myers  <joseph@codesourcery.com
4094
4095         [BZ #15948]
4096         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
4097         single character.
4098         (add_to_tablewc): Assert sequence of wide characters is nonempty.
4099
4100 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4101
4102         * elf/tst-tls-dlinfo.c: Don't include tls.h.
4103         * elf/tst-tls1.c: Likewise.
4104         * elf/tst-tls10.h: Likewise.
4105         * elf/tst-tls14.c: Likewise.
4106         * elf/tst-tls2.c: Likewise.
4107         * elf/tst-tls3.c: Likewise.
4108         * elf/tst-tls4.c: Likewise.
4109         * elf/tst-tls5.c: Likewise.
4110         * elf/tst-tls6.c: Likewise.
4111         * elf/tst-tls7.c: Likewise.
4112         * elf/tst-tls8.c: Likewise.
4113         * elf/tst-tls9.c: Likewise.
4114         * elf/tst-tlsmod1.c: Likewise.
4115         * elf/tst-tlsmod13.c: Likewise.
4116         * elf/tst-tlsmod13a.c: Likewise.
4117         * elf/tst-tlsmod14a.c: Likewise.
4118         * elf/tst-tlsmod16a.c: Likewise.
4119         * elf/tst-tlsmod16b.c: Likewise.
4120         * elf/tst-tlsmod2.c: Likewise.
4121         * elf/tst-tlsmod3.c: Likewise.
4122         * elf/tst-tlsmod4.c: Likewise.
4123         * elf/tst-tlsmod5.c: Likewise.
4124         * elf/tst-tlsmod6.c: Likewise.
4125
4126 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
4127
4128         [BZ #12486]
4129         * malloc/malloc.c: remove checks for statistics.
4130
4131 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4132
4133         [BZ #15277]
4134         * inet/inet_net.c (inet_network): Detect additional invalid strings.
4135         * inet/tst-network.c: Add testcase.
4136
4137 2013-10-17  Andreas Schwab  <schwab@suse.de>
4138
4139         [BZ #15218]
4140         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
4141         to determine canonical name.
4142
4143 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4144
4145         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
4146         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
4147         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4148         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4149         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4150         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4151         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4152         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4153         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4154         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4155         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4156         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4157         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4158         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4159         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4160         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4161         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4162         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4163         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4164         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4165         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4166         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4167         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4168         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
4169         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
4170         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4171         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4172         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
4173         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4174         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
4175         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4176         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4177         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4178         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4179         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4180         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4181         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4182         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4183         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4184         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4185         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4186         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4187         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4188         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4189         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4190         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4191         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4192         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4193         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4194         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4195         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4196         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4197         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4198         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4199         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4200         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4201         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4202         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4203
4204 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
4205
4206         [BZ #16041]
4207         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
4208         make result into a quiet NaN.
4209
4210 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
4211
4212         * soft-fp/adddf3.c: Fix horizontal whitespace.
4213         * soft-fp/addsf3.c: Likewise.
4214         * soft-fp/addtf3.c: Likewise.
4215         * soft-fp/divdf3.c: Likewise.
4216         * soft-fp/divsf3.c: Likewise.
4217         * soft-fp/divtf3.c: Likewise.
4218         * soft-fp/double.h: Likewise.
4219         * soft-fp/eqdf2.c: Likewise.
4220         * soft-fp/eqsf2.c: Likewise.
4221         * soft-fp/eqtf2.c: Likewise.
4222         * soft-fp/extenddftf2.c: Likewise.
4223         * soft-fp/extended.h: Likewise.
4224         * soft-fp/extendsfdf2.c: Likewise.
4225         * soft-fp/extendsftf2.c: Likewise.
4226         * soft-fp/extendxftf2.c: Likewise.
4227         * soft-fp/fixdfdi.c: Likewise.
4228         * soft-fp/fixdfsi.c: Likewise.
4229         * soft-fp/fixdfti.c: Likewise.
4230         * soft-fp/fixsfdi.c: Likewise.
4231         * soft-fp/fixsfsi.c: Likewise.
4232         * soft-fp/fixsfti.c: Likewise.
4233         * soft-fp/fixtfdi.c: Likewise.
4234         * soft-fp/fixtfsi.c: Likewise.
4235         * soft-fp/fixtfti.c: Likewise.
4236         * soft-fp/fixunsdfdi.c: Likewise.
4237         * soft-fp/fixunsdfsi.c: Likewise.
4238         * soft-fp/fixunsdfti.c: Likewise.
4239         * soft-fp/fixunssfdi.c: Likewise.
4240         * soft-fp/fixunssfsi.c: Likewise.
4241         * soft-fp/fixunssfti.c: Likewise.
4242         * soft-fp/fixunstfdi.c: Likewise.
4243         * soft-fp/fixunstfsi.c: Likewise.
4244         * soft-fp/fixunstfti.c: Likewise.
4245         * soft-fp/floatdidf.c: Likewise.
4246         * soft-fp/floatdisf.c: Likewise.
4247         * soft-fp/floatditf.c: Likewise.
4248         * soft-fp/floatsidf.c: Likewise.
4249         * soft-fp/floatsisf.c: Likewise.
4250         * soft-fp/floatsitf.c: Likewise.
4251         * soft-fp/floattidf.c: Likewise.
4252         * soft-fp/floattisf.c: Likewise.
4253         * soft-fp/floattitf.c: Likewise.
4254         * soft-fp/floatundidf.c: Likewise.
4255         * soft-fp/floatundisf.c: Likewise.
4256         * soft-fp/floatunditf.c: Likewise.
4257         * soft-fp/floatunsidf.c: Likewise.
4258         * soft-fp/floatunsisf.c: Likewise.
4259         * soft-fp/floatunsitf.c: Likewise.
4260         * soft-fp/floatuntidf.c: Likewise.
4261         * soft-fp/floatuntisf.c: Likewise.
4262         * soft-fp/floatuntitf.c: Likewise.
4263         * soft-fp/fmadf4.c: Likewise.
4264         * soft-fp/fmasf4.c: Likewise.
4265         * soft-fp/fmatf4.c: Likewise.
4266         * soft-fp/gedf2.c: Likewise.
4267         * soft-fp/gesf2.c: Likewise.
4268         * soft-fp/getf2.c: Likewise.
4269         * soft-fp/ledf2.c: Likewise.
4270         * soft-fp/lesf2.c: Likewise.
4271         * soft-fp/letf2.c: Likewise.
4272         * soft-fp/muldf3.c: Likewise.
4273         * soft-fp/mulsf3.c: Likewise.
4274         * soft-fp/multf3.c: Likewise.
4275         * soft-fp/negdf2.c: Likewise.
4276         * soft-fp/negsf2.c: Likewise.
4277         * soft-fp/negtf2.c: Likewise.
4278         * soft-fp/op-1.h: Likewise.
4279         * soft-fp/op-2.h: Likewise.
4280         * soft-fp/op-4.h: Likewise.
4281         * soft-fp/op-8.h: Likewise.
4282         * soft-fp/op-common.h: Likewise.
4283         * soft-fp/quad.h: Likewise.
4284         * soft-fp/single.h: Likewise.
4285         * soft-fp/soft-fp.h: Likewise.
4286         * soft-fp/sqrtdf2.c: Likewise.
4287         * soft-fp/sqrtsf2.c: Likewise.
4288         * soft-fp/sqrttf2.c: Likewise.
4289         * soft-fp/subdf3.c: Likewise.
4290         * soft-fp/subsf3.c: Likewise.
4291         * soft-fp/subtf3.c: Likewise.
4292         * soft-fp/truncdfsf2.c: Likewise.
4293         * soft-fp/trunctfdf2.c: Likewise.
4294         * soft-fp/trunctfsf2.c: Likewise.
4295         * soft-fp/trunctfxf2.c: Likewise.
4296         * soft-fp/unorddf2.c: Likewise.
4297         * soft-fp/unordsf2.c: Likewise.
4298         * soft-fp/unordtf2.c: Likewise.
4299
4300 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
4301
4302         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
4303         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
4304
4305 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
4306
4307         * elf/dl-libc.c: Clear initfini list after freeing.
4308
4309 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
4310
4311         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
4312         * soft-fp/addsf3.c: Likewise.
4313         * soft-fp/addtf3.c: Likewise.
4314         * soft-fp/divdf3.c: Likewise.
4315         * soft-fp/divsf3.c: Likewise.
4316         * soft-fp/divtf3.c: Likewise.
4317         * soft-fp/double.h: Likewise.
4318         * soft-fp/eqdf2.c: Likewise.
4319         * soft-fp/eqsf2.c: Likewise.
4320         * soft-fp/eqtf2.c: Likewise.
4321         * soft-fp/extenddftf2.c: Likewise.
4322         * soft-fp/extended.h: Likewise.
4323         * soft-fp/extendsfdf2.c: Likewise.
4324         * soft-fp/extendsftf2.c: Likewise.
4325         * soft-fp/extendxftf2.c: Likewise.
4326         * soft-fp/fixdfdi.c: Likewise.
4327         * soft-fp/fixdfsi.c: Likewise.
4328         * soft-fp/fixdfti.c: Likewise.
4329         * soft-fp/fixsfdi.c: Likewise.
4330         * soft-fp/fixsfsi.c: Likewise.
4331         * soft-fp/fixsfti.c: Likewise.
4332         * soft-fp/fixtfdi.c: Likewise.
4333         * soft-fp/fixtfsi.c: Likewise.
4334         * soft-fp/fixtfti.c: Likewise.
4335         * soft-fp/fixunsdfdi.c: Likewise.
4336         * soft-fp/fixunsdfsi.c: Likewise.
4337         * soft-fp/fixunsdfti.c: Likewise.
4338         * soft-fp/fixunssfdi.c: Likewise.
4339         * soft-fp/fixunssfsi.c: Likewise.
4340         * soft-fp/fixunssfti.c: Likewise.
4341         * soft-fp/fixunstfdi.c: Likewise.
4342         * soft-fp/fixunstfsi.c: Likewise.
4343         * soft-fp/fixunstfti.c: Likewise.
4344         * soft-fp/floatdidf.c: Likewise.
4345         * soft-fp/floatdisf.c: Likewise.
4346         * soft-fp/floatditf.c: Likewise.
4347         * soft-fp/floatsidf.c: Likewise.
4348         * soft-fp/floatsisf.c: Likewise.
4349         * soft-fp/floatsitf.c: Likewise.
4350         * soft-fp/floattidf.c: Likewise.
4351         * soft-fp/floattisf.c: Likewise.
4352         * soft-fp/floattitf.c: Likewise.
4353         * soft-fp/floatundidf.c: Likewise.
4354         * soft-fp/floatundisf.c: Likewise.
4355         * soft-fp/floatunsidf.c: Likewise.
4356         * soft-fp/floatunsisf.c: Likewise.
4357         * soft-fp/floatuntidf.c: Likewise.
4358         * soft-fp/floatuntisf.c: Likewise.
4359         * soft-fp/floatuntitf.c: Likewise.
4360         * soft-fp/fmadf4.c: Likewise.
4361         * soft-fp/fmasf4.c: Likewise.
4362         * soft-fp/fmatf4.c: Likewise.
4363         * soft-fp/gedf2.c: Likewise.
4364         * soft-fp/gesf2.c: Likewise.
4365         * soft-fp/getf2.c: Likewise.
4366         * soft-fp/ledf2.c: Likewise.
4367         * soft-fp/lesf2.c: Likewise.
4368         * soft-fp/letf2.c: Likewise.
4369         * soft-fp/muldf3.c: Likewise.
4370         * soft-fp/mulsf3.c: Likewise.
4371         * soft-fp/multf3.c: Likewise.
4372         * soft-fp/negdf2.c: Likewise.
4373         * soft-fp/negsf2.c: Likewise.
4374         * soft-fp/negtf2.c: Likewise.
4375         * soft-fp/op-1.h: Likewise.
4376         * soft-fp/op-2.h: Likewise.
4377         * soft-fp/op-4.h: Likewise.
4378         * soft-fp/op-8.h: Likewise.
4379         * soft-fp/op-common.h: Likewise.
4380         * soft-fp/quad.h: Likewise.
4381         * soft-fp/single.h: Likewise.
4382         * soft-fp/soft-fp.h: Likewise.
4383         * soft-fp/sqrtdf2.c: Likewise.
4384         * soft-fp/sqrtsf2.c: Likewise.
4385         * soft-fp/sqrttf2.c: Likewise.
4386         * soft-fp/subdf3.c: Likewise.
4387         * soft-fp/subsf3.c: Likewise.
4388         * soft-fp/subtf3.c: Likewise.
4389         * soft-fp/truncdfsf2.c: Likewise.
4390         * soft-fp/trunctfdf2.c: Likewise.
4391         * soft-fp/trunctfsf2.c: Likewise.
4392         * soft-fp/trunctfxf2.c: Likewise.
4393         * soft-fp/unorddf2.c: Likewise.
4394         * soft-fp/unordsf2.c: Likewise.
4395         * soft-fp/unordtf2.c: Likewise.
4396
4397 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
4398
4399         [BZ #15672]
4400         * misc/error.c (error_tail): Fix possible buffer overflow.
4401
4402 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
4403
4404         [BZ #13028]
4405         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
4406         address.
4407
4408 2013-10-14  P. J. McDermott  <pj@pehjota.net>
4409
4410         [BZ #832]
4411         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
4412         testing pipefail option.
4413
4414 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4415
4416         * soft-fp/double.h: Indent preprocessor directives inside #if.
4417         * soft-fp/extended.h: Likewise.
4418         * soft-fp/op-2.h: Likewise.
4419         * soft-fp/op-4.h: Likewise.
4420         * soft-fp/op-common.h: Likewise.
4421         * soft-fp/quad.h: Likewise.
4422         * soft-fp/single.h: Likewise.
4423         * soft-fp/soft-fp.h: Likewise.
4424
4425 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
4426
4427         * iconv/iconv_prog.c: Fix typos.
4428         * stdio-common/psiginfo-data.h: Likewise.
4429
4430 2013-10-12   Reuben Thomas <rrt@sc3d.org>
4431
4432         [BZ #15764]
4433         * locale/setlocale.c: Fix typo.
4434
4435 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4436
4437         [BZ #16036]
4438         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
4439         signaling NaN arguments.
4440         * soft-fp/unordsf2.c (__unordsf2): Likewise.
4441         * soft-fp/unordtf2.c (__unordtf2): Likewise.
4442
4443         [BZ #14910]
4444         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
4445         unordered operands.
4446         * soft-fp/gesf2.c (__gesf2): Likewise.
4447         * soft-fp/getf2.c (__getf2): Likewise.
4448         * soft-fp/ledf2.c (__ledf2): Likewise.
4449         * soft-fp/lesf2.c (__lesf2): Likewise.
4450         * soft-fp/letf2.c (__letf2): Likewise.
4451
4452         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
4453         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4454         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4455         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
4456         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
4457         * soft-fp/fixdfti.c (__fixdfti): Likewise.
4458         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
4459         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
4460         * soft-fp/fixsfti.c (__fixsfti): Likewise.
4461         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
4462         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
4463         * soft-fp/fixtfti.c (__fixtfti): Likewise.
4464         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
4465         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
4466         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
4467         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
4468         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
4469         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
4470         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
4471         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
4472         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
4473         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
4474         * soft-fp/floatdisf.c (__floatdisf): Likewise.
4475         * soft-fp/floatsisf.c (__floatsisf): Likewise.
4476         * soft-fp/floattidf.c (__floattidf): Likewise.
4477         * soft-fp/floattisf.c (__floattisf): Likewise.
4478         * soft-fp/floattitf.c (__floattitf): Likewise.
4479         * soft-fp/floatundidf.c (__floatundidf): Likewise.
4480         * soft-fp/floatundisf.c (__floatundisf): Likewise.
4481         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
4482         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
4483         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
4484         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
4485         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
4486         * soft-fp/gesf2.c (__gesf2): Likewise.
4487         * soft-fp/getf2.c (__getf2): Likewise.
4488         * soft-fp/ledf2.c (__ledf2): Likewise.
4489         * soft-fp/lesf2.c (__lesf2): Likewise.
4490         * soft-fp/letf2.c (__letf2): Likewise.
4491
4492         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4493         Undefine and redefine.
4494         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
4495         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
4496         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
4497         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
4498         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4499         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
4500         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4501         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
4502         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4503         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
4504         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4505         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
4506         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4507         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
4508         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4509
4510         [BZ #16032]
4511         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
4512         without decrementing exponent if mantissa >= that for the
4513         denominator, not >.
4514         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
4515         denominator, not >.  Decrement exponent in < case instead of
4516         incrementing in >= case.
4517         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
4518         without decrementing exponent if mantissa >= that for the
4519         denominator, not >.
4520
4521         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
4522         computing saturated result for unsigned overflow.
4523
4524 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4525             Jeff Law  <law@redhat.com>
4526
4527         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
4528         (atan2Mp): Add systemtap probe marker.
4529         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
4530         (__ieee754_log): Add systemtap probe marker.
4531         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
4532         (atanMp): Add systemtap probe marker.
4533         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
4534         (tanMp): Add systemtap probe marker.
4535         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
4536         (__slowexp): Add systemtap probe marker.
4537         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
4538         (__slowpow): Add systemtap probe marker.
4539         * manual/probes.texi: Document probes.
4540
4541 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
4542
4543         [BZ #15362]
4544         * libio/fileops.c (_IO_new_file_write): Return count of bytes
4545         written.
4546         (_IO_new_file_xsputn): Don't return EOF if nothing has been
4547         written.
4548         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
4549         written to buffer but not flushed.
4550         * libio/iofwrite_u.c:  Likewise.
4551         * libio/iopadn.c:  Return bytes returned even if EOF was
4552         encountered.
4553         * libio/iowpadn.c:  Likewise.
4554         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
4555         if _IO_padn does not write the whole buffer.
4556         [!COMPILE_WPRINTF] (PAD): Likewise.
4557
4558 2013-10-10  David S. Miller  <davem@davemloft.net>
4559
4560         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
4561         directory block.
4562
4563 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4564
4565         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
4566         instead of FSF address.
4567         * soft-fp/fixdfti.c: Likewise.
4568         * soft-fp/fixsfti.c: Likewise.
4569         * soft-fp/fixtfti.c: Likewise.
4570         * soft-fp/fixunsdfti.c: Likewise.
4571         * soft-fp/fixunssfti.c: Likewise.
4572         * soft-fp/fixunstfti.c: Likewise.
4573         * soft-fp/floattidf.c: Likewise.
4574         * soft-fp/floattisf.c: Likewise.
4575         * soft-fp/floattitf.c: Likewise.
4576         * soft-fp/floatuntidf.c: Likewise.
4577         * soft-fp/floatuntisf.c: Likewise.
4578         * soft-fp/floatuntitf.c: Likewise.
4579         * soft-fp/trunctfxf2.c: Likewise.
4580
4581         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
4582         * soft-fp/fixdfti.c: Likewise.
4583         * soft-fp/fixsfti.c: Likewise.
4584         * soft-fp/fixtfti.c: Likewise.
4585         * soft-fp/fixunsdfti.c: Likewise.
4586         * soft-fp/fixunssfti.c: Likewise.
4587         * soft-fp/fixunstfti.c: Likewise.
4588         * soft-fp/floattidf.c: Likewise.
4589         * soft-fp/floattisf.c: Likewise.
4590         * soft-fp/floattitf.c: Likewise.
4591         * soft-fp/floatuntidf.c: Likewise.
4592         * soft-fp/floatuntisf.c: Likewise.
4593         * soft-fp/floatuntitf.c: Likewise.
4594         * soft-fp/trunctfxf2.c: Likewise.
4595
4596 2013-10-10  David S. Miller  <davem@davemloft.net>
4597
4598         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4599
4600 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
4601
4602         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4603         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
4604         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
4605         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
4606         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
4607         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
4608         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
4609
4610         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
4611         for NaNs before doing comparisons on argument.
4612         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
4613         Likewise.
4614
4615 2013-10-10  Will Newton  <will.newton@linaro.org>
4616
4617         * malloc/hooks.c (memalign_check): Ensure the value of bytes
4618         passed to _int_memalign does not overflow.
4619
4620 2013-10-10  Torvald Riegel  <triegel@redhat.com>
4621
4622         * scripts/bench.pl: Add include-sources directive.
4623         * benchtests/README: Update documentation.
4624
4625 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4626
4627         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
4628         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
4629         instead of FP_INIT_ROUNDMODE.
4630         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
4631         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
4632
4633         [BZ #16034]
4634         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
4635         copy class of input value.
4636         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
4637         not handle exceptions.
4638         * soft-fp/negsf2.c (__negsf2): Likewise.
4639         * soft-fp/negtf2.c (__negtf2): Likewise.
4640         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
4641
4642 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
4643
4644         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
4645         semicolon.  From Linux kernel.
4646
4647 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
4648
4649         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
4650
4651 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
4652
4653         [BZ #156]
4654         * manual/socket.texi: Added statement about buffer
4655         for gethostbyname2_r.
4656
4657 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
4658
4659         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
4660         Use .p2align directive instead, throughout.
4661         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4662         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4663         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4664         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4665         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4666         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
4667         * sysdeps/x86_64/strchr.S: Likewise.
4668         * sysdeps/x86_64/strrchr.S: Likewise.
4669
4670 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4671
4672         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
4673
4674         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
4675
4676         * sysdeps/generic/math_private.h (__mpsin1): Remove
4677         declaration.
4678         (__mpcos1): Likewise.
4679         (__mpsin): New argument __range_reduce.
4680         (__mpcos): Likewise.
4681         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4682         (slow): Use __mpsin and __mpcos.
4683         (slow1): Likewise.
4684         (slow2): Likewise.
4685         (sloww): Likewise.
4686         (sloww1): Likewise.
4687         (sloww2): Likewise.
4688         (bsloww): Likewise.
4689         (bsloww1): Likewise.
4690         (bsloww2): Likewise.
4691         (cslow2): Likewise.
4692         (csloww): Likewise.
4693         (csloww1): Likewise.
4694         (csloww2): Likewise.
4695         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
4696         range_reduce.  Merge in __mpsin1.
4697         (__mpcos): Likewise.
4698         (__mpsin1): Remove.
4699         (__mpcos1): Likewise.
4700
4701 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
4702
4703         * locale/loadlocale.c (_nl_intern_locale_data): Use
4704         LOCFILE_ALIGNED_P.
4705         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
4706         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
4707         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
4708         obstack data is appropriately aligned.
4709         (obstack_int32_grow_fast): Likewise.
4710         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
4711         * locale/programs/locfile.c (add_locale_uint32): Likewise.
4712         (add_locale_uint32_array): Likewise.
4713
4714 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4715
4716         * benchtests/Makefile: Remove ARGLIST and RET variables.
4717         ($(objpfx)bench-%.c): Pass only function name to the script.
4718         * benchtests/README: Update documentation.
4719         * benchtests/acos-inputs: Add new directives.
4720         * benchtests/acosh-inputs: Likewise.
4721         * benchtests/asin-inputs: Likewise.
4722         * benchtests/asinh-inputs: Likewise.
4723         * benchtests/atan-inputs: Likewise.
4724         * benchtests/atanh-inputs: Likewise.
4725         * benchtests/cos-inputs: Likewise.
4726         * benchtests/cosh-inputs: Likewise.
4727         * benchtests/exp-inputs: Likewise.
4728         * benchtests/log-inputs: Likewise.
4729         * benchtests/pow-inputs: Likewise.
4730         * benchtests/rint-inputs: Likewise.
4731         * benchtests/sin-inputs: Likewise.
4732         * benchtests/sinh-inputs: Likewise.
4733         * benchtests/tan-inputs: Likewise.
4734         * benchtests/tanh-inputs: Likewise.
4735         * scripts/bench.pl: Add support for new directives.
4736
4737 2013-10-07  Alan Modra  <amodra@gmail.com>
4738
4739         * README: Fix careless merge.
4740
4741 2013-10-05  Alan Modra  <amodra@gmail.com>
4742
4743         * NEWS: Mention powerpc64le support and bugs fixed.
4744         * README: Both big-endian and little-endian powerpc64 supported.
4745
4746 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4747
4748         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
4749         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
4750         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
4751         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
4752
4753 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
4754
4755         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
4756         match prototype.
4757
4758 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
4759
4760         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
4761         Move -mhard-float appending from
4762         ports/sysdeps/powerpc/powerpc32/Makefile.
4763         [$(with-fp) = yes] (ASFLAGS): Likewise.
4764         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
4765         * sysdeps/powerpc/nofpu: Move directory from
4766         ports/sysdeps/powerpc/nofpu.
4767         * sysdeps/powerpc/soft-fp: Move directory from
4768         ports/sysdeps/powerpc/soft-fp.
4769         * sysdeps/powerpc/powerpc32/405: Move directory from
4770         ports/sysdeps/powerpc/powerpc32/405.
4771         * sysdeps/powerpc/powerpc32/440: Move directory from
4772         ports/sysdeps/powerpc/powerpc32/440.
4773         * sysdeps/powerpc/powerpc32/464: Move directory from
4774         ports/sysdeps/powerpc/powerpc32/464.
4775         * sysdeps/powerpc/powerpc32/476: Move directory from
4776         ports/sysdeps/powerpc/powerpc32/476.
4777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
4778         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
4779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
4780         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
4781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
4782         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
4783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
4784         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
4785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
4786         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
4787         * README: Update for powerpc-*-linux-gnu software floating point
4788         support in libc.
4789
4790         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
4791         case to powerpc/powerpc32*.
4792         * sysdeps/unix/sysv/linux/configure: Regenerated.
4793
4794         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
4795         (_FPU_MASK_OM): Define as 0x04.
4796         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
4797         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
4798         0x00c10080.
4799         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
4800         0x0000003c.
4801         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
4802
4803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4804         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4805         getcontext_e500.
4806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4807         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4808         setcontext_e500.
4809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4810         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
4811         and setcontext_e500.
4812
4813 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
4814
4815         * locale/iso-3166.def: Update iso-1366.def and related occurrences
4816
4817 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4818
4819         * manual/threads.texi (Default Thread Attributes): Fix typo.
4820
4821 2013-10-04  Will Newton  <will.newton@linaro.org>
4822
4823         * malloc/Makefile: Add tst-memalign.
4824         * malloc/tst-memalign.c: New file.
4825
4826         * malloc/tst-posix_memalign.c: Add comments.
4827         (do_test): Add comments and call free on all potentially
4828         allocated pointers. Add space after cast.
4829
4830         * malloc/tst-pvalloc.c: Add comments.
4831         (do_test): Add comments and call free on all potentially
4832         allocated pointers. Remove duplicate check for NULL pointer.
4833         Add space after cast.
4834
4835         * malloc/tst-valloc.c: Add comments.
4836         (do_test): Add comments and call free on all potentially
4837         allocated pointers. Remove duplicate check for NULL pointer.
4838         Add space after cast.
4839
4840 2013-10-04  Alan Modra  <amodra@gmail.com>
4841
4842         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4843         Use stdint types in rather than __attribute__((mode())).
4844         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4845
4846 2013-10-04  Alan Modra  <amodra@gmail.com>
4847
4848         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4849         Correct handling of unaligned relocs for little-endian.
4850         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4851
4852 2013-10-04  Alan Modra  <amodra@gmail.com>
4853
4854         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
4855         * configure: Regenerate.
4856         * nptl/shlib-versions: Powerpc*le starts at 2.18.
4857         * shlib-versions: Likewise.
4858
4859 2013-10-04  Alan Modra  <amodra@gmail.com>
4860
4861         * string/tester.c (test_memrchr): Increment reported test cycle.
4862
4863 2013-10-04  Alan Modra  <amodra@gmail.com>
4864
4865         * string/test-memcpy.c (do_one_test): When reporting errors, print
4866         string address and don't overrun end of string.
4867
4868 2013-10-04  Alan Modra  <amodra@gmail.com>
4869
4870         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
4871         insrdi.  Make better use of reg selection to speed exit slightly.
4872         Schedule entry path a little better.  Remove useless "are we done"
4873         checks on entry to main loop.  Handle wrapping around zero address.
4874         Correct main loop count.  Handle single left-over word from main
4875         loop inline rather than by using loop_small.  Remove extra word
4876         case in loop_small caused by wrong loop count.  Add little-endian
4877         support.
4878         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4879         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
4880         cache hint.
4881         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4882         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
4883         support.  Avoid rlwimi.
4884         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
4885
4886 2013-10-04  Alan Modra  <amodra@gmail.com>
4887
4888         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
4889         insrdi.  Formatting.
4890         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
4891         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4892         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
4893         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
4894         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
4895         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
4896
4897 2013-10-04  Alan Modra  <amodra@gmail.com>
4898
4899         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
4900         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4901         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
4902         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
4903         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4904         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4905         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4906         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
4907         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
4908         use of regs.  Use power7 mtocrf.  Tidy function tails.
4909
4910 2013-10-04  Alan Modra  <amodra@gmail.com>
4911
4912         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
4913         Formatting.  Consistently use rXXX register defines or rN defines.
4914         Use early exit labels that avoid restoring unused non-volatile regs.
4915         Make cr field use more consistent with rWORDn compares.  Rename
4916         regs used as shift registers for unaligned loop, using rN defines
4917         for short lifetime/multiple use regs.
4918         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4919         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
4920         addi 1,1,64 to pop stack frame.  Simplify return value code.
4921         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4922
4923 2013-10-04  Alan Modra  <amodra@gmail.com>
4924
4925         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
4926         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
4927         rather than rlwimi.
4928         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
4929         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
4930         little-endian support.  Correct typos.
4931         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
4932         rather than rlwimi.
4933         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
4934         in loop and entry code to keep "and." results.
4935         (strchr): Add little-endian support.  Comment.  Move cntlzd
4936         earlier in tail.
4937         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
4938
4939 2013-10-04  Alan Modra  <amodra@gmail.com>
4940
4941         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
4942         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
4943         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
4944         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
4945
4946 2013-10-04  Alan Modra  <amodra@gmail.com>
4947
4948         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
4949         (rTMP): Define as r11.
4950         (strcmp): Add little-endian support.  Optimise tail.
4951         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
4952         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4953         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4954         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4955         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4956         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4957         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4958
4959 2013-10-04  Alan Modra  <amodra@gmail.com>
4960
4961         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
4962         little-endian support.  Remove unnecessary "are we done" tests.
4963         Handle "s" wrapping around zero and extremely large "size".
4964         Correct main loop count.  Handle single left-over word from main
4965         loop inline rather than by using small_loop.  Correct comments.
4966         Delete "zero" tail, use "end_max" instead.
4967         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
4968
4969 2013-10-04  Alan Modra  <amodra@gmail.com>
4970
4971         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
4972         support.  Don't branch over align.
4973         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
4974         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
4975         support.  Rearrange tmp reg use to suit.  Comment.
4976         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
4977
4978 2013-10-04  Alan Modra  <amodra@gmail.com>
4979
4980         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
4981
4982 2013-10-04  Alan Modra  <amodra@gmail.com>
4983
4984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
4985         conditional form of branch and link when obtaining pc.
4986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4987
4988 2013-10-04  Alan Modra  <amodra@gmail.com>
4989
4990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
4991         HIWORD/LOWORD.
4992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
4993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
4994
4995 2013-10-04  Alan Modra  <amodra@gmail.com>
4996
4997         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
4998         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
4999         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5000         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
5001         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5002         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5003         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
5004         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5005         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5006         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
5007
5008 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5009             Alistair Popple <alistair@ozlabs.au.ibm.com>
5010             Alan Modra <amodra@gmail.com>
5011
5012         [BZ #15723]
5013         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
5014         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
5015         _dl_hwcap access for little-endian.
5016         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
5017         destroy vmx regs when saving unaligned.
5018         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
5019         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
5020         destroy vmx regs when saving unaligned.
5021
5022 2013-10-04  Alan Modra  <amodra@gmail.com>
5023
5024         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
5025         Don't use a union to pack hi/low value.
5026
5027 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5028
5029         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
5030         for little-endian.
5031         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
5032         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
5033         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
5034         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
5035         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
5036
5037 2013-10-04  Alan Modra  <amodra@gmail.com>
5038
5039         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
5040         constants to usual value for .cst8 section, and remove redundant
5041         high address load.
5042         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
5043         constant for 0x1p52.  Load little-endian words of double from
5044         correct stack offsets.
5045
5046 2013-10-04  Alan Modra  <amodra@gmail.com>
5047
5048         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
5049         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
5050         words of double from correct stack offsets.
5051         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
5052         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
5053         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
5054         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
5055         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
5056         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
5057         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
5058         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
5059         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
5060         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
5061         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
5062         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
5063         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5064         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5065         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5066         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
5067         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
5068
5069 2013-10-04  Alan Modra  <amodra@gmail.com>
5070
5071         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
5072         64-bit int/double union.
5073         (_FPU_SETCW): Likewise.
5074         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5075         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
5076
5077 2013-10-04  Alan Modra  <amodra@gmail.com>
5078
5079         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
5080         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
5081
5082 2013-10-04  Alan Modra  <amodra@gmail.com>
5083
5084         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
5085         use vector int constants.
5086         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
5087
5088 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5089
5090         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
5091         array with long long.
5092         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
5093         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
5094         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
5095         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
5096         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
5097         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
5098         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
5099         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
5100         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
5101         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
5102         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
5103         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
5104         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
5105
5106 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5107
5108         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
5109         (__signbit): Likewise.  Correct for little-endian.
5110         (__signbitl): Call __signbit.
5111         (lrint): Correct for little-endian.
5112         (lrintf): Call lrint.
5113
5114 2013-10-04  Alan Modra  <amodra@gmail.com>
5115
5116         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
5117         union 32-bit int array member with 64-bit int array.
5118         (t515, tm256): Double rather than long double.
5119         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
5120
5121 2013-10-04  Alan Modra  <amodra@gmail.com>
5122
5123         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
5124         Delete.
5125         (IEEE854_LONG_DOUBLE_BIAS): Delete.
5126         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
5127         version of math_ldbl.h.
5128
5129 2013-10-04  Alan Modra  <amodra@gmail.com>
5130
5131         [BZ #15734], [BZ #15735]
5132         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
5133         all uses of ieee875 long double macros and unions.  Simplify test
5134         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
5135         ldbl_extract_mantissa value for ix,iy exponents.  Properly
5136         normalize after ldbl_extract_mantissa, and don't add hidden bit
5137         already handled.  Don't treat low word of ieee854 mantissa like
5138         low word of IBM long double and mask off bit when testing for
5139         zero.
5140         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
5141         all uses of ieee875 long double macros and unions.  Simplify tests
5142         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
5143         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
5144         two1022, instead use their values.  Recognise that tests for large
5145         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
5146         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
5147         Rewrite all uses of ieee875 long double macros and unions.  Simplify
5148         test for 0.0L and nan.  Correct negation.
5149         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
5150         ieee875 long double macros and unions.  Correct output for large
5151         magnitude x.  Correct absolute value calculation.
5152         (__erfcl): Likewise.
5153         * math/libm-test.inc: Add tests for errors discovered in IBM long
5154         double versions of fmodl, remainderl, erfl and erfcl.
5155
5156 2013-10-04  Alan Modra  <amodra@gmail.com>
5157
5158         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
5159         all uses of ieee854 long double macros and unions.  Simplify tests
5160         for long doubles that are fully specified by the high double.
5161         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5162         Likewise.
5163         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
5164         Remove dead code too.
5165         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5166         (__ieee754_ynl): Likewise.
5167         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5168         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
5169         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
5170         Remove dead code too.
5171         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
5172         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
5173         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
5174         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
5175         Simplify.
5176         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
5177         Simplify.
5178         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
5179         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
5180         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
5181         Comment on variable precision.
5182         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
5183         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5184         Likewise.
5185         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5186         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5187         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5188         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
5189         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
5190
5191 2013-10-04  Alan Modra  <amodra@gmail.com>
5192
5193         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
5194         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
5195         all uses of ieee854 long double macros and unions.
5196         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
5197         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5198         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
5199         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
5200         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5201         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5202         Likewise.
5203         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
5204         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5205         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
5206         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5207         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
5208         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
5209         Simplify sign and nan test too.
5210         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
5211         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
5212         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
5213         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
5214         Likewise.
5215         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5216         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
5217         Likewise.
5218         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5219         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
5220         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
5221         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
5222         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
5223         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
5224
5225 2013-10-04  Alan Modra  <amodra@gmail.com>
5226
5227         * stdio-common/printf_size.c (__printf_size): Don't use
5228         union ieee854_long_double in fpnum union.
5229         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
5230         signbit macro to retrieve sign from long double.
5231         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
5232         retrieve sign from long double.
5233         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
5234         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
5235         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
5236         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5237         * math/test-misc.c (main): Don't use union ieee854_long_double.
5238
5239 2013-10-04  Alan Modra  <amodra@gmail.com>
5240
5241         [BZ #15680]
5242         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
5243         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5244         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
5245         calculation.  Remove unnecessary test for denormal exponent.
5246         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
5247         Correct handling of denormals.  Avoid undefined shift behaviour.
5248         Correct normalisation of low mantissa when low double is denormal.
5249         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
5250         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
5251         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
5252         Correct normalisation of low mantissa.  Test for overflow of high
5253         mantissa and normalise.
5254         (ldbl_nearbyint): Use more readable constant for two52.
5255         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5256         (__mpn_construct_long_double): Fix test for overflow of high
5257         mantissa and correct normalisation.  Avoid undefined shift.
5258
5259 2013-10-04  Alan Modra  <amodra@gmail.com>
5260
5261         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5262         (union ibm_extended_long_double): Define as an array of ieee754_double.
5263         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
5264         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
5265         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
5266         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5267         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5268         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
5269         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5270         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5271         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5272         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
5273         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5274
5275 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
5276
5277         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
5278         page size instead of calling getpagesize.
5279
5280         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
5281         (LOCFILE_ALIGN_MASK): Likewise.
5282         (LOCFILE_ALIGN_UP): Likewise.
5283         (LOCFILE_ALIGNED_P): Likewise.
5284         * locale/programs/ld-collate.c (collate_output): Use the new
5285         macros instead of __alignof__ (int32_t).
5286         * locale/weight.h (findidx): Likewise.
5287
5288 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
5289
5290         [BZ #431]
5291         * manual/string.texi: Fix strncat and wcsncat.
5292
5293 2013-10-03  Brooks Moses  <bmoses@google.com>
5294
5295         [BZ #15915]
5296         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
5297         * Makerules: ...here, and adjust associated comments.
5298
5299 2013-10-02  Will Newton  <will.newton@linaro.org>
5300
5301         * malloc/Makefile: Add tst-pvalloc.
5302         * malloc/tst-pvalloc.c: New file.
5303
5304 2013-10-02  Will Newton  <will.newton@linaro.org>
5305
5306         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
5307         improve test coverage.
5308
5309 2013-10-02  Will Newton  <will.newton@linaro.org>
5310
5311         * malloc/Makefile: Add tst-posix_memalign.
5312         * malloc/tst-posix_memalign.c: New file.
5313
5314 2013-10-01  Eric Blake  <eblake@redhat.com>
5315
5316         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
5317         Use __THROWNL rather than __THROW on static functions.
5318
5319 2013-09-30  Petr Machata  <pmachata@redhat.com>
5320
5321         * elf/elf.h (R_AARCH64_ABS16): New macro.
5322         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
5323         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
5324         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
5325         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
5326         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
5327         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
5328         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
5329         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
5330         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
5331         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
5332         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
5333         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
5334         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
5335         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
5336         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
5337         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
5338         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
5339         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
5340         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
5341         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
5342         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
5343         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
5344         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
5345         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
5346         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
5347         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
5348         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
5349         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
5350         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
5351         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
5352         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
5353         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
5354         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
5355         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
5356         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
5357         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
5358         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
5359         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
5360         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
5361         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
5362         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
5363         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
5364         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
5365         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
5366         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
5367         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
5368         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
5369         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
5370         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
5371         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
5372         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
5373         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
5374         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
5375         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
5376         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
5377         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
5378         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
5379         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
5380         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
5381         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
5382         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
5383         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
5384         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
5385         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
5386         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
5387         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
5388         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
5389         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
5390         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
5391         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
5392         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
5393         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
5394         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
5395         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
5396         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
5397         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
5398         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
5399         (R_AARCH64_TLSDESC_LDR): Likewise.
5400         (R_AARCH64_TLSDESC_ADD): Likewise.
5401         (R_AARCH64_TLSDESC_CALL): Likewise.
5402
5403 2013-09-30  Andreas Schwab  <schwab@suse.de>
5404
5405         [BZ #15048]
5406         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
5407         the nss database lookup.
5408         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5409         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5410
5411 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
5412
5413         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
5414
5415 2013-09-28  P. J. McDermott  <pj@pehjota.net>
5416
5417         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
5418         ${Bash-specific parameter/pattern/string} parameter expansion.
5419         * sysdeps/unix/make-syscalls.sh: Likewise.
5420
5421 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5422
5423         * sysdeps/sh/stackguard-macros.h: New file.
5424
5425 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
5426
5427         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
5428         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
5429         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
5430         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
5431         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5432         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
5433
5434 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5435
5436         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
5437         Fix thread ID register.
5438
5439 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
5440
5441         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
5442         [POSIX || UNIX98]: Require rather than permitting all symbols from
5443         <time.h>.
5444         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
5445         element of struct sched_param.
5446         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
5447         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
5448         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
5449         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
5450         constant.
5451
5452 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
5453
5454         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
5455         argument calculation.
5456
5457 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5458
5459         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
5460         Expect macro.
5461         [POSIX] (pthread_attr_t): Do not require type.
5462         [POSIX] (pthread_cond_t): Likewise.
5463         [POSIX] (pthread_condattr_t): Likewise.
5464         [POSIX] (pthread_key_t): Likewise.
5465         [POSIX] (pthread_mutex_t): Likewise.
5466         [POSIX] (pthread_mutexattr_t): Likewise.
5467         [POSIX] (pthread_once_t): Likewise.
5468         [POSIX] (pthread_t): Likewise.
5469         [POSIX-based standards] (pthread_atfork): Expect function.
5470
5471 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5472             Richard Sandiford  <richard@codesourcery.com>
5473
5474         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
5475         (swap_endianness_p): New extern variable.
5476         (set_big_endian): New inline function.
5477         (maybe_swap_uint32): Likewise.
5478         (maybe_swap_uint32_array): Likewise.
5479         (maybe_swap_uint32_obstack): Likewise.
5480         * locale/programs/locfile.c: Include <stdbool.h>.
5481         (swap_endianness_p): New variable.
5482         (add_locale_uint32): Call maybe_swap_uint32.
5483         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
5484         (write_locale_data): Call maybe_swap_uint32_array.
5485         * locale/programs/ld-collate.c (obstack_int32_grow): Call
5486         maybe_swap_uint32.
5487         (obstack_int32_grow_fast): Likewise.
5488         (output_weightwc): Call maybe_swap_uint32_obstack.
5489         (collate_output): Likewise.
5490         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
5491         (OPT_LITTLE_ENDIAN): Likewise.
5492         (options): Add --little-endian and --big-endian options.
5493         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
5494         * locale/programs/locarchive.c: Include "locfile.h".
5495         (GET): New macro.
5496         (SET): Likewise.
5497         (INC): Likewise.
5498         (create_archive): Use the new macros to access fields of
5499         structures directly mapped from or written to locale archives.
5500         (oldlocrecentcmp): Likewise.
5501         (enlarge_archive): Likewise.
5502         (insert_name): Likewise.
5503         (add_alias): Likewise.
5504         (add_locale): Likewise.
5505         (delete_locales_from_archive): Likewise.
5506         (show_archive_content): Likewise.
5507         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
5508         locale data.
5509
5510 2013-09-24  Roland McGrath  <roland@hack.frob.com>
5511
5512         * manual/freemanuals.texi: Updated from (newly) canonical copy at
5513         http://www.gnu.org/doc/freemanuals.texi.
5514         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
5515
5516 2013-09-24  Will Newton  <will.newton@linaro.org>
5517
5518         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
5519         macro.
5520
5521 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
5522
5523         * locale/hashval.h (compute_hashval): Interpret bytes of key as
5524         unsigned char.
5525
5526 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
5527
5528         * manual/threads.texi (POSIX Threads): Fix a typo.
5529
5530 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5531
5532         [BZ #14547]
5533         * string/tst-strcoll-overflow.c: New test case.
5534         * string/Makefile (xtests): Add tst-strcoll-overflow.
5535         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
5536         cache if string sizes may cause integer overflow.
5537
5538         [BZ #14547]
5539         * string/strcoll_l.c (coll_seq): New members rule, idx,
5540         save_idx and back_us.
5541         (get_next_seq_nocache): New function.
5542         (do_compare_nocache): New function.
5543         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
5544         when malloc fails.
5545
5546 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
5547
5548         [BZ #15754]
5549         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
5550         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
5551         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
5552
5553         [BZ #15754]
5554         * elf/Makefile (tests): Add tst-ptrguard1.
5555         (tests-static): Add tst-ptrguard1-static.
5556         (tst-ptrguard1-ARGS): Define.
5557         (tst-ptrguard1-static-ARGS): Define.
5558         * elf/tst-ptrguard1.c: New file.
5559         * elf/tst-ptrguard1-static.c: New file.
5560         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
5561         * sysdeps/i386/stackguard-macros.h: Likewise.
5562         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5563         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5564         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5565         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5566         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5567         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5568
5569 2013-09-23  Hector Marco  <hecmargi@upv.es>
5570             Ismael Ripoll  <iripoll@disca.upv.es>
5571             Carlos O'Donell  <carlos@redhat.com>
5572
5573         [BZ #15754]
5574         * sysdeps/generic/stackguard-macros.h: Define
5575         __pointer_chk_guard_local and POINTER_CHK_GUARD.
5576         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
5577         Define __pointer_chk_guard_local.
5578         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
5579         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
5580
5581 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
5582
5583         [BZ #15859]
5584         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
5585
5586 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
5587
5588         * include/string.h (__ffs): Declare as hidden.
5589         * string/ffs.c (__ffs): Define as hidden.
5590         * sysdeps/i386/ffs.c (__ffs): Likewise.
5591         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
5592         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
5593         * sysdeps/s390/ffs.c (__ffs): Likewise.
5594         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
5595
5596 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
5597
5598         * NEWS: Mention malloc probes.
5599
5600         * malloc/arena.c (new_heap): New memory_heap_new probe.
5601         (grow_heap): New memory_heap_more probe.
5602         (shrink_heap): New memory_heap_less probe.
5603         (heap_trim): New memory_heap_free probe.
5604         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
5605         (systrim): New memory_sbrk_less probe.
5606         * manual/probes.texi: Document them.
5607
5608         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
5609         * manual/probes.texi: Document it.
5610
5611         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
5612         (__libc_realloc): Add memory_realloc_retry probe.
5613         (__libc_memalign): Add memory_memalign_retry probe.
5614         (__libc_valloc): Add memory_valloc_retry probe.
5615         (__libc_pvalloc): Add memory_pvalloc_retry probe.
5616         (__libc_calloc): Add memory_calloc_retry probe.
5617         * manual/probes.texi: Document them.
5618
5619         * malloc/arena.c (get_free_list): Add probe
5620         memory_arena_reuse_free_list.
5621         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
5622         and memory_arena_reuse.
5623         (arena_get2) [!PER_THREAD]: Likewise.
5624         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
5625         memory_arena_reuse_realloc.
5626         * manual/probes.texi: Document them.
5627
5628         * malloc/malloc.c (__libc_free): Add
5629         memory_mallopt_free_dyn_thresholds probe.
5630         (__libc_mallopt): Add multiple memory_mallopt probes.
5631         * manual/probes.texi: Document them.
5632
5633         * malloc/malloc.c: Include stap-probe.h.
5634         (__libc_mallopt): Add memory_mallopt probe.
5635         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
5636         * manual/probes.texi: New.
5637         * manual/Makefile (chapters): Add probes.
5638         * manual/threads.texi: Set next node.
5639
5640 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
5641
5642         [BZ #15963, #13985]
5643         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
5644         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
5645         Add `Chinese' to `nan' entry name.
5646
5647 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5648
5649         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
5650         (POLYNOMIAL): Likewise.
5651         (TAYLOR_SINCOS): Likewise.
5652         (TAYLOR_SLOW): Likewise.
5653         (__sin): Use TAYLOR_SINCOS.
5654         (__cos): Likewise.
5655         (slow): Use TAYLOR_SLOW.
5656         (sloww): Likewise.
5657         (bsloww): Likewise.
5658         (csloww): Likewise.
5659
5660 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5661
5662         * stdlib/strtod_l.c: Fix buffer overrun.
5663
5664 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5665
5666         * benchtests/Makefile (bench): Add sincos.
5667         * benchtests/bench-sincos.c: New file.
5668
5669         * math/libm-test.inc (cos_test_data): New test inputs.
5670         (sin_test_data): Likewise.
5671
5672         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
5673         macro.
5674         (__sin): Use it.
5675         (__cos): Likewise.
5676         (slow1): Likewise.
5677         (slow2): Likewise.
5678         (sloww1): Likewise.
5679         (sloww2): Likewise.
5680         (bsloww1): Likewise.
5681         (bsloww2): Likewise.
5682         (cslow2): Likewise.
5683         (csloww1): Likewise.
5684         (csloww2): Likewise.
5685
5686         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
5687         function.
5688         (__sin): Use it.
5689         (__cos): Likewise.
5690
5691         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
5692         gotos.
5693         (__cos): Likewise.
5694
5695 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5696
5697         * config.h.in (HAVE_MIPS_NAN2008): New macro.
5698         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
5699         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
5700         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
5701         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
5702         * elf/cache.c (print_entry): Handle the new cache flags.
5703
5704 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5705             Aldy Hernandez  <aldyh@redhat.com>
5706
5707         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
5708         Change condition to [_SOFT_FLOAT].
5709         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
5710         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
5711         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
5712         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
5713         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
5714         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
5715         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
5716         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
5717         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
5718         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
5719         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
5720         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
5721         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
5722         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
5723         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
5724         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
5725         declaration.
5726
5727 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5728
5729         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
5730         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5731         (__longjmp): Use LOAD_GP to load saved GPRs.
5732         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
5733         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5734         (__sigsetjmp): Use SAVE_GP to save GPRs.
5735
5736         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
5737         Do not append -msoft-float.
5738         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
5739
5740 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5741
5742         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
5743
5744 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
5745
5746         [BZ #15966]
5747         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
5748         (_FPU_GETCW): Use initial "__" on variable and field names but not
5749         on macro parameter name.
5750         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
5751         parentheses around reference to macro parameter.
5752
5753 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
5754
5755         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
5756         prototype.
5757         (ctype_startup): Use uint32_t in cast and sizeof for
5758         ctype->charnames.
5759
5760 2013-09-11  Jia Liu  <proljc@gmail.com>
5761
5762         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
5763         __daddr_t_defined.
5764         [__FreeBSD__]: Likewise.
5765
5766 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
5767
5768         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
5769         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
5770         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
5771         (strchr): Remove __strchr_sse42 ifunc selection.
5772         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
5773         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
5774
5775 2013-09-11  Will Newton  <will.newton@linaro.org>
5776
5777         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
5778         parameter to RES. Remove hardcoded 1000 value.
5779         * benchtests/bench-skeleton.c (main): Pass RES parameter
5780         to TIMING_INIT and multiply result by 1000.
5781
5782 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5783
5784         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5785
5786 2013-09-11  Andreas Schwab  <schwab@suse.de>
5787
5788         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
5789         if not defined.
5790         (O_TMPFILE) [__USE_GNU]: Define.
5791         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
5792         Define.
5793
5794 2013-09-11  Will Newton  <will.newton@linaro.org>
5795
5796         [BZ #15857]
5797         * malloc/malloc.c (__libc_memalign): Check the value of bytes
5798         does not overflow.
5799
5800 2013-09-11  Will Newton  <will.newton@linaro.org>
5801
5802         [BZ #15856]
5803         * malloc/malloc.c (__libc_valloc): Check the value of bytes
5804         does not overflow.
5805
5806 2013-09-11  Will Newton  <will.newton@linaro.org>
5807
5808         [BZ #15855]
5809         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
5810         does not overflow.
5811
5812 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
5813
5814         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
5815         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5816         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5817         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5818         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5819
5820 2013-09-10  Allan McRae  <allan@archlinux.org>
5821
5822         [BZ #15748]
5823         * manual/arith.texi (Parsing of Floats): Clarify
5824         cross-reference.
5825
5826         [BZ #15849]
5827         * manual/install.texi (Running make install): Mention
5828         --enable-pt-chown.
5829         * INSTALL: Regenerated.
5830
5831 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
5832
5833         * csu/init-first.c (_init): Remove the !SHARED condition around
5834         FPU control word initialization.
5835         * elf/dl-support.c (_dl_fpu_control): New variable.
5836         (_dl_aux_init) <AT_FPUCW>: Initialize it.
5837         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
5838         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
5839         * math/test-fpucw-static.c: New file.
5840         * math/test-fpucw-ieee.c: New file.
5841         * math/test-fpucw-ieee-static.c: New file.
5842         * math/Makefile (tests): Add `test-fpucw-ieee' and
5843         `$(tests-static)'.
5844         (tests-static): New variable.
5845         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
5846         dependency to...
5847         [($(build-shared),yes)]
5848         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
5849         ... this.
5850         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
5851         New dependency.
5852
5853 2013-09-09  Allan McRae  <allan@archlinux.org>
5854
5855         [BZ #15939]
5856         * manual/string.texi (Collation Functions): Fix typo in
5857         strcoll example.
5858         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
5859
5860         [BZ #15893]
5861         * stdlib/isomac.c (get_null_defines): Fix memory leak.
5862
5863         [BZ #15892]
5864         * libio/memstream.c (open_memstream): Fix memory leak.
5865         * libio/wmemstream.c (open_wmemstream): Likewise.
5866
5867         [BZ #15895]
5868         * nscd/netgroupcache.c: Fix nesting of ifdefs.
5869
5870 2013-09-09  Will Newton  <will.newton@linaro.org>
5871
5872         * malloc/Makefile: Add tst-realloc to tests.
5873         * malloc/tst-realloc.c: New file.
5874
5875 2013-09-09  Allan McRae  <allan@archlinux.org>
5876
5877         [BZ #15844]
5878         * COPYING: Update from GNU website to fix FSF address.
5879         * COPYING.LIB: Likewise.
5880
5881 2013-09-06  David S. Miller  <davem@davemloft.net>
5882
5883         * po/zh_TW.po: Update Chinese (traditional) translation from
5884         translation project.
5885
5886 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
5887             Joseph Myers  <joseph@codesourcery.com>
5888
5889         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
5890         "localeinfo.h".
5891         (obstack_chunk_alloc): New macro.
5892         (obstack_chunk_free): Likewise.
5893         (record_offset): New function.
5894         (init_locale_data): Likewise.
5895         (align_locale_data): Likewise.
5896         (add_locale_empty): Likewise.
5897         (add_locale_raw_data): Likewise.
5898         (add_locale_raw_obstack): Likewise.
5899         (add_locale_string): Likewise.
5900         (add_locale_wstring): Likewise.
5901         (add_locale_uint32): Likewise.
5902         (add_locale_uint32_array): Likewise.
5903         (add_locale_char): Likewise.
5904         (start_locale_structure): Likewise.
5905         (end_locale_structure): Likewise.
5906         (start_locale_prelude): Likewise.
5907         (end_locale_prelude): Likewise.
5908         (write_locale_data): Take locale_file structure rather than an
5909         iovec.
5910         * locale/programs/locfile.h: Include "obstack.h".
5911         (struct locale_file): Change to store locale file contents instead
5912         of header.
5913         (init_locale_data): New prototype.
5914         (align_locale_data): Likewise.
5915         (add_locale_empty): Likewise.
5916         (add_locale_raw_data): Likewise.
5917         (add_locale_raw_obstack): Likewise.
5918         (add_locale_string): Likewise.
5919         (add_locale_wstring): Likewise.
5920         (add_locale_uint32): Likewise.
5921         (add_locale_uint32_array): Likewise.
5922         (add_locale_char): Likewise.
5923         (start_locale_structure): Likewise.
5924         (end_locale_structure): Likewise.
5925         (start_locale_prelude): Likewise.
5926         (end_locale_prelude): Likewise.
5927         (write_locale_data): Update prototype.
5928         * locale/programs/3level.h (struct TABLE): Remove result field.
5929         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
5930         Use new locale_file interface.
5931         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
5932         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
5933         * locale/programs/ld-address.c (address_output): Use new
5934         locale_file interface.
5935         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
5936         NO_ADD_LOCALE.
5937         (collate_finish): Don't call collseq_table_finalize.
5938         (collate_output): Use new locale_file interface.
5939         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
5940         in file.
5941         (NO_FINALIZE): Change to NO_ADD_LOCALE.
5942         (TABLE): Move defines earlier in file.
5943         (ELEMENT): Likewise.
5944         (DEFAULT): Likewise.
5945         (wctrans_table_add): Move macro and inline function earlier in
5946         file.
5947         (struct wctype_table): Move type earlier in file.
5948         (add_locale_wctype_table): New static prototype.
5949         (struct locale_ctype_t): Use logical types instead of struct iovec
5950         pointers for members.
5951         (ctype_output): Use new locale_file interface.
5952         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
5953         new locale_file interface.
5954         (allocate_arrays): Update for use of new locale_file interface.
5955         * locale/programs/ld-identification.c (identification_output): Use
5956         new locale_file interface.
5957         * locale/programs/ld-measurement.c (measurement_output): Likewise.
5958         * locale/programs/ld-messages.c (messages_output): Likewise.
5959         * locale/programs/ld-monetary.c (monetary_output): Likewise.
5960         * locale/programs/ld-name.c (name_output): Likewise.
5961         * locale/programs/ld-numeric.c (numeric_output): Likewise.
5962         * locale/programs/ld-paper.c (paper_output): Likewise.
5963         * locale/programs/ld-telephone.c (telephone_output): Likewise.
5964         * locale/programs/ld-time.c (time_output): Likewise.
5965
5966 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5967
5968         * benchtests/Makefile: Add memrchr benchmark.
5969         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
5970         benchmark as memrchr.
5971         * benchtests/bench-memrchr-ifunc.c: New file.
5972         * benchtests/bench-memrchr.c: New file.
5973
5974 2013-09-06   Will Newton  <will.newton@linaro.org>
5975
5976         * benchtests/Makefile (string-bench): Add memcpy.
5977
5978 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
5979             Cong Wang  <amwang@redhat.com>
5980
5981         [BZ #15850]
5982         * sysdeps/unix/sysv/linux/bits/in.h
5983         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
5984         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
5985         before __USE_KERNEL_IPV6_DEFS uses.
5986         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
5987         IPPROTO_BEETPH.
5988         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
5989         sockaddr_in6, or ipv6_mreq.
5990
5991 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5992
5993         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
5994         memory access for final bytes in some large inputs.
5995         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
5996
5997 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5998
5999         * string/test-memrchr.c: New file.
6000         * string/test-memrchr-ifunc.c: New file.
6001         * string/Makefile: Add new memrchr testcase.
6002
6003 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
6004
6005         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
6006         fanotify_init returns EPERM.
6007
6008 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6009
6010         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
6011         errors.
6012         (top level): Treat second token from macro or constant entries for
6013         allowed headers as allowed.
6014         * include/complex.h: Condition internal declarations on
6015         [!_ISOMAC].
6016         * include/fenv.h: Condition include of <stdbool.h> and internal
6017         declarations on [!_ISOMAC].
6018
6019 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
6020
6021         [BZ #15923]
6022         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
6023
6024 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6025
6026         * configure.in (--enable-versioning): Remove configure option.
6027         (libc_cv_asm_symver_directive): Remove configure test.
6028         (libc_cv_ld_version_script_option): Likewise.
6029         (VERSIONING): Remove variable and AC_SUBST.
6030         (DO_VERSIONING): Remove AC_DEFINE.
6031         * configure: Regenerated.
6032         * config.h.in (DO_VERSIONING): Remove macro.
6033         * Makerules [$(versioning) = yes]: Change conditionals to
6034         [$(build-shared) = yes].
6035         * config.make.in (versioning): Remove variable.
6036         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
6037         [$(build-shared) = yes].
6038         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
6039         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
6040         * elf/Makefile [$(versioning) = yes]: Change conditionals to
6041         [$(build-shared) = yes].
6042         * extra-lib.mk [$(versioning) = yes]: Likewise.
6043         * hurd/Makefile [$(versioning) = yes]: Likewise.
6044         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
6045         [SHARED].
6046         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
6047         [SHARED].
6048         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6049         [SHARED && !NO_HIDDEN].
6050         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
6051         [SHARED].
6052         [SHARED && DO_VERSIONING]: Likewise..
6053         * libio/Makefile [$(versioning) = yes]: Change conditionals to
6054         [$(build-shared) = yes].
6055         * manual/install.texi (--disable-versioning): Remove
6056         documentation.
6057         * INSTALL: Regenerated.
6058         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
6059         to [SHARED].
6060         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
6061         [$(build-shared) = yes].
6062         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
6063         * sysdeps/i386/i686/multiarch/strstr-c.c
6064         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6065         [SHARED && !NO_HIDDEN].
6066         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
6067         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
6068         * sysdeps/powerpc/powerpc32/dl-machine.c
6069         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
6070         * sysdeps/powerpc/powerpc32/sysdep.h
6071         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
6072         to [SHARED && PIC && !NO_HIDDEN].
6073         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
6074         conditional to [SHARED].
6075
6076 2013-09-04   Will Newton  <will.newton@linaro.org>
6077
6078         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
6079         * benchtests/bench-string.h: Include bench-timing.h instead
6080         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
6081         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
6082         call to HP_TIMING_DIFF_INIT.
6083         * benchtests/bench-memccpy.c: Use bench-timing.h macros
6084         instead of hp-timing.h macros.
6085         * benchtests/bench-memchr.c: Likewise.
6086         * benchtests/bench-memcmp.c: Likewise.
6087         * benchtests/bench-memcpy.c: Likewise.
6088         * benchtests/bench-memmem.c: Likewise.
6089         * benchtests/bench-memmove.c: Likewise.
6090         * benchtests/bench-memset.c: Likewise.
6091         * benchtests/bench-rawmemchr.c: Likewise.
6092         * benchtests/bench-strcasecmp.c: Likewise.
6093         * benchtests/bench-strcasestr.c: Likewise.
6094         * benchtests/bench-strcat.c: Likewise.
6095         * benchtests/bench-strchr.c: Likewise.
6096         * benchtests/bench-strcmp.c: Likewise.
6097         * benchtests/bench-strcpy.c: Likewise.
6098         * benchtests/bench-strcpy_chk.c: Likewise.
6099         * benchtests/bench-strlen.c: Likewise.
6100         * benchtests/bench-strncasecmp.c: Likewise.
6101         * benchtests/bench-strncat.c: Likewise.
6102         * benchtests/bench-strncmp.c: Likewise.
6103         * benchtests/bench-strncpy.c: Likewise.
6104         * benchtests/bench-strnlen.c: Likewise.
6105         * benchtests/bench-strpbrk.c: Likewise.
6106         * benchtests/bench-strrchr.c: Likewise.
6107         * benchtests/bench-strspn.c: Likewise.
6108         * benchtests/bench-strstr.c: Likewise.
6109
6110 2013-09-04  Will Newton  <will.newton@linaro.org>
6111
6112         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
6113
6114 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
6115
6116         [BZ #15427]
6117         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
6118         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
6119         * math/libm-test.inc (lgamma_test_data): Add more tests.
6120         * sysdeps/i386/fpu/libm-test-ulps: Update.
6121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6122
6123 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
6124
6125         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
6126         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
6127         Add ifunc.
6128         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6129         Add strcmp-sse2-unaligned
6130         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
6131
6132 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6133
6134         * Versions.def (libc): Add GLIBC_2.19.
6135
6136 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6137
6138         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
6139         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
6140
6141 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
6142
6143         [BZ #14155]
6144         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
6145         intermediate calculations in recurrence.
6146         (__ieee754_ynf): Likewise.
6147         * math/libm-test.inc (jn_test_data): Do not allow spurious
6148         underflow exception.  Add more tests.
6149         (yn_test_data): Add more tests.
6150         * sysdeps/i386/fpu/libm-test-ulps: Update.
6151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6152
6153 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
6154
6155         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
6156
6157 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6158
6159         * csu/init-first.c: Fix then/than typos.
6160         * locale/programs/ld-collate.c: Likewise.
6161         * locale/programs/linereader.h: Likewise.
6162         * manual/charset.texi: Likewise.
6163         * manual/filesys.texi: Likewise.
6164         * manual/stdio.texi: Likewise.
6165         * manual/string.texi: Likewise.
6166         * stdlib/fmtmsg.c: Likewise.
6167         * sysdeps/i386/stpncpy.S: Likewise.
6168         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6169         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
6170         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6171         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6172
6173 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6174
6175         * elf/dl-open.c: Fix typos.
6176         * iconvdata/gbbig5.c: Likewise.
6177         * iconvdata/iso-2022-jp.c: Likewise.
6178         * iconv/gconv_int.h: Likewise.
6179         * iconv/loop.c: Likewise.
6180         * nis/rpcsvc/nis.h: Likewise.
6181         * resolv/ns_name.c: Likewise.
6182         * stdio-common/vfscanf.c: Likewise.
6183         * streams/stropts.h: Likewise.
6184         * sunrpc/rpc_thread.c: Likewise.
6185         * sysdeps/i386/strpbrk.S: Likewise.
6186         * sysdeps/ieee754/k_standard.c: Likewise.
6187         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6188         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6189         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6190         * sysdeps/mach/hurd/profil.c: Likewise.
6191         * sysdeps/s390/dl-procinfo.h: Likewise.
6192         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6193         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6194         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6195         * sysdeps/x86_64/dl-trampoline.S: Likewise.
6196         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6197
6198 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
6199
6200         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
6201         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
6202
6203 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
6204
6205         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
6206         aix specific files.
6207         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
6208         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
6209         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
6210         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
6211         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
6212         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
6213         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
6214         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
6215
6216 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6217             Roland McGrath  <roland@hack.frob.com>
6218
6219         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
6220         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6221
6222 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6223
6224         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
6225         __executable_start symbol instead of _start.
6226
6227 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6228
6229         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
6230         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
6231         Move macros to...
6232         * sysdeps/gnu/ldsodefs.h: ... this new file.
6233
6234         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
6235         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
6236         instead of ELFOSABI_LINUX.
6237
6238         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
6239         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
6240         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
6241         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
6242         Likewise.
6243         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
6244         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
6245         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
6246         Likewise.
6247         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
6248         (ibm_extended_long_double): Add ieee_nan member.
6249         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
6250         (do_test): New function.
6251
6252         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
6253         TEST_TRUNC.
6254         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
6255         functions, renamed from truncdfsf_test, trunctfsf_test,
6256         trunctfdf_test.
6257         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
6258         functions.
6259         (do_test): Run all these.
6260
6261 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
6262
6263         * argp/argp-help.c: Fix typos.
6264         * argp/argp-parse.c: Likewise.
6265         * debug/backtracesyms.c: Likewise.
6266         * elf/elf.h: Likewise.
6267         * malloc/malloc.c: Likewise.
6268         * nis/nis_print.c: Likewise.
6269         * resolv/res_comp.c: Likewise.
6270         * stdlib/stdlib.h: Likewise.
6271         * sunrpc/clnt_tcp.c: Likewise.
6272         * sunrpc/clnt_udp.c: Likewise.
6273         * sunrpc/clnt_unix.c: Likewise.
6274         * sysdeps/unix/bsd/ptsname.c: Likewise.
6275         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6276         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
6277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
6278         Likewise.
6279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
6280         Likewise.
6281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
6282         Likewise.
6283         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6284
6285 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6286
6287         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
6288         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6289
6290 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
6291
6292         [BZ #15897]
6293         * dlfcn/Makefile (tests): Add bug-dl-leaf.
6294         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
6295         ($(objpfx)bug-dl-leaf): New rule.
6296         ($(objpfx)bug-dl-leaf.so): Likewise.
6297         ($(objpfx)bug-dl-leaf.out): Likewise.
6298         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
6299         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
6300         * dlfcn/bug-dl-leaf.c: New test.
6301         * dlfcn/bug-dl-leaf-lib.c: Likewise.
6302         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
6303         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
6304         (dlclose): Likewise.
6305         (dlmopen): Likewise.
6306
6307 2013-08-27  Roland McGrath  <roland@hack.frob.com>
6308
6309         * include/netdb.h [!_ISOMAC]:
6310         Don't include <tls.h>.
6311         (h_errno, __libc_h_errno): Move declaration and macros out of
6312         [_LIBC_REENTRANT].
6313
6314         * include/resolv.h [_RESOLV_H_]:
6315         Don't include <tls.h>.
6316         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
6317         * resolv/res_libc.c: Don't include <tls.h>.
6318         (_res): Use __attribute__ ((nocommon)) in place of
6319         __attribute__ ((section (".bss"))).
6320
6321         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
6322         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
6323
6324         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
6325
6326         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
6327         only under [SIOCGIFCONF && SIOCGIFNETMASK].
6328
6329         * resolv/res_mkquery.c: Include <sys/time.h>.
6330
6331         * inet/ifreq.c: Moved to ...
6332         * sysdeps/unix/ifreq.c: ... here.
6333         * inet/ifreq.c: New file, true stub version.
6334
6335         * socket/sa_len.c: New file.
6336         * socket/Makefile (aux): Add it.
6337         * sysdeps/unix/sysv/linux/Makefile
6338         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
6339         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
6340         and #include <socket/sa_len.c>.
6341         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
6342         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
6343
6344         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
6345         * bits/socket.h: ... here.
6346
6347         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
6348         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
6349         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
6350
6351 2013-08-27  Andreas Schwab  <schwab@suse.de>
6352
6353         [BZ #15736]
6354         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
6355         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
6356         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
6357         * string/test-strcasecmp.c (test_main): Run tests in several
6358         locales.
6359         * string/test-strncasecmp.c (test_main): Likewise.
6360
6361         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
6362         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
6363         to __strcasecmp_nonascii and __strncasecmp_nonascii.
6364         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
6365         (__strncasecmp_ssse3) [PIC]: Likewise.
6366
6367 2013-08-26  Roland McGrath  <roland@hack.frob.com>
6368
6369         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
6370
6371         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
6372         instead of explicitly declaring xdecrypt.
6373         * nis/nss_nis/nis-publickey.c: Likewise.
6374
6375 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6376
6377         [BZ #15890]
6378         * nscd/aicache.c: Include res_hconf.h.
6379         (addhstaiX): Initialize res_hconf.
6380
6381 2013-08-26  Andreas Schwab  <schwab@suse.de>
6382
6383         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
6384         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
6385
6386 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6387
6388         * nscd/aicache.c (addhstaiX): Fix indentation.
6389
6390 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
6391
6392         * configure.ac: Quote $build_pt_chown test.
6393         * configure: Regenerated.
6394
6395 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
6396
6397         [BZ #15532]
6398         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
6399         * math/s_cexpf.c (__cexpf): Likewise.
6400         * math/s_cexpl.c (__cexpl): Likewise.
6401         * math/libm-test.inc (cexp_test_data): Correct expected return
6402         value for NaN + i0.  Add another test.
6403
6404 2013-08-22  David S. Miller  <davem@davemloft.net>
6405
6406         * po/ca.po: Update Catalan translation from translation project.
6407         * po/uk.po: Add Ukrainian translations from translation project.
6408
6409 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
6410
6411         [BZ #15797]
6412         * math/s_fdim.c (__fdim): Check for infinite arguments if result
6413         is infinite, not alongside NaN test.
6414         * math/s_fdimf.c (__fdimf): Likewise.
6415         * math/s_fdiml.c (__fdiml): Likewise.
6416         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
6417         errno is unchanged.
6418
6419 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
6420
6421         * argp/argp-help.c: Fix typos.
6422         * crypt/speeds.c: Likewise.
6423         * csu/check_fds.c: Likewise.
6424         * elf/dl-load.c: Likewise.
6425         * elf/dl-open.c: Likewise.
6426         * elf/reldep3.c: Likewise.
6427         * elf/reldep.c: Likewise.
6428         * elf/sprof.c: Likewise.
6429         * iconv/iconv_charmap.c: Likewise.
6430         * iconv/skeleton.c: Likewise.
6431         * iconv/strtab.c: Likewise.
6432         * io/lockf64.c: Likewise.
6433         * libio/libioP.h: Likewise.
6434         * resolv/gai_notify.c: Likewise.
6435         * resolv/ns_name.c: Likewise.
6436         * resolv/ns_samedomain.c: Likewise.
6437         * resolv/res_send.c: Likewise.
6438         * stdlib/random.c: Likewise.
6439         * sunrpc/rpc/xdr.h: Likewise.
6440         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
6441         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6442         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6443         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6444         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6445         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6446         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6447         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6448         * sysdeps/mach/hurd/check_fds.c: Likewise.
6449         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6450         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6451         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6452         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6453         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6454         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6455         * sysdeps/pthread/aio_notify.c: Likewise.
6456         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6457         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
6458         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
6459         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6460         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
6461
6462 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6463
6464         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
6465         version if bit_Slow_SSE4_2 is set.
6466         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6467         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6468
6469 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6470
6471         [BZ #15867]
6472         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
6473         trampoline stack frame information.
6474         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
6475         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
6476         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
6477         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
6478         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
6479         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6480         (_libc_vdso_platform_setup): Initialize the signal trampolines.
6481         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
6482         sa_flags value.
6483         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
6484         interrupting a syscall and set with option SA_SIGINFO.
6485
6486 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6487
6488         [BZ #15531]
6489         * math/s_cproj.c (__cproj): Only return an infinity if one part of
6490         argument is infinite.
6491         * math/s_cprojf.c (__cprojf): Likewise.
6492         * math/s_cprojl.c (__cprojl): Likewise.
6493         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
6494         * math/libm-test.inc (cproj_test_data): Add more tests.
6495
6496         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
6497
6498         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
6499         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
6500         size.  Use __ffs to determine corresponding shift.
6501
6502 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6503             Roland McGrath  <roland@hack.frob.com>
6504
6505         * Makefile (INSTALL): Remove trailing blank lines from output of
6506         makeinfo.
6507
6508 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6509
6510         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
6511         Align 32 bit compat elf_greg to 8 bytes.
6512
6513 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6514
6515         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
6516
6517 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6518
6519         * string/strcoll_l.c (coll_seq): New structure.
6520         (get_next_seq_cached): New function.
6521         (get_next_seq): New function.
6522         (do_compare): New function.
6523         (STRCOLL): Use GNU style definition.  Simplify implementation
6524         by using get_next_seq, get_next_seq_cached and do_compare.
6525
6526 2013-08-16  Florian Weimer  <fweimer@redhat.com>
6527
6528         [BZ #14699]
6529         CVE-2013-4237
6530         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
6531         member.
6532         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
6533         member.
6534         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
6535         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
6536         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
6537         conditional.
6538         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
6539         GETDENTS_64BIT_ALIGNED.
6540         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6541         * manual/filesys.texi (Reading/Closing Directory): Document
6542         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
6543         strongly.
6544         * manual/conf.texi (Limits for Files): Add portability note to
6545         NAME_MAX, PATH_MAX.
6546         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
6547
6548 2013-08-13  Andreas Schwab  <schwab@suse.de>
6549
6550         [BZ #15749]
6551         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
6552         of fabs.
6553         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
6554         LDBL_MAX_EXP >= 16384]: Add tests for it.
6555
6556 2013-08-12  David S. Miller  <davem@davemloft.net>
6557
6558         * version.h (RELEASE): Set to "development".
6559         (VERSION): Set to "2.18.90".
6560         * NEWS: Add 2.19 section.
6561
6562 2013-08-03  David S. Miller  <davem@davemloft.net>
6563
6564         * po/ko.po: Update Korean translation from translation project.
6565
6566 2013-08-01  David S. Miller  <davem@davemloft.net>
6567
6568         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
6569         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
6570         Bilka.
6571
6572 2013-07-30  David S. Miller  <davem@davemloft.net>
6573
6574         * po/fr.po: Update French translation from translation project.
6575
6576 2013-07-28  David S. Miller  <davem@davemloft.net>
6577
6578         * po/cs.po: Update Czech translation from translation project.
6579
6580         * po/sv.po: Update Swedish translation from translation project.
6581
6582 2013-07-27  David S. Miller  <davem@davemloft.net>
6583
6584         * po/eo.po: Update Esperanto translation from translation project.
6585
6586         * po/vi.po: Update Vietnamese translation from translation project.
6587
6588         * po/de.po: Update German translation from translation project.
6589
6590 2013-07-26  David S. Miller  <davem@davemloft.net>
6591
6592         * po/bg.po: Update Bulgarian translation from translation project.
6593
6594         * po/nl.po: Update Dutch translation from translation project.
6595         * po/pl.po: Update Polish translation from translation project.
6596         * po/ru.po: Update Russian translation from translation project.
6597
6598 2013-07-24  David S. Miller  <davem@davemloft.net>
6599
6600         * po/libc.pot: Update.
6601
6602 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6603
6604         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
6605         variable page size.
6606         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
6607         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
6608         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
6609
6610 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6611
6612         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
6613
6614 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6615             Andreas Schwab  <schwab@suse.de>
6616             Roland McGrath  <roland@hack.frob.com>
6617             Joseph Myers  <joseph@codesourcery.com>
6618             Carlos O'Donell  <carlos@redhat.com>
6619
6620         [BZ #15755]
6621         * config.h.in: Define HAVE_PT_CHOWN.
6622         * config.make.in (build-pt-chown): New variable.
6623         * configure.in (--enable-pt_chown): New configure option.
6624         * configure: Regenerate.
6625         * login/Makefile: Include Makeconfig.  Build pt_chown only if
6626         build-pt-chown is enabled.
6627         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
6628         pt_chown to fix pty ownership.
6629         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
6630         CLOSE_ALL_FDS.
6631         * manual/install.texi (Configuring and compiling): Mention
6632         --enable-pt_chown. Add @findex for grantpt.
6633         * INSTALL: Regenerate.
6634
6635 2013-07-20  David S. Miller  <davem@davemloft.net>
6636
6637         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
6638         difference between 32-bit and 64-bit.
6639
6640 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
6641
6642         [BZ #15711]
6643         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
6644         Avoid system header dependency with -ffreestanding.
6645         ($(objpfx)bits/syscall%d): Likewise.
6646
6647 2013-07-13  David S. Miller  <davem@davemloft.net>
6648
6649         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
6650         underflows from atanl/atan2l due to bug 15319.
6651         (casinh_test_data): Likewise.
6652
6653 2013-07-07  David S. Miller  <davem@davemloft.net>
6654
6655         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
6656
6657 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
6658
6659         * sysdeps/i386/fpu/libm-test-ulps: Update.
6660         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6661
6662 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6663
6664         * configure.in (--enable-lock-elision): Fix message text.
6665         * INSTALL: Regenerate.
6666         * configure: Regenerate.
6667
6668 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6669
6670         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6671
6672 2013-07-03  Andreas Jaeger  <aj@suse.de>
6673
6674         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
6675         define.
6676         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
6677         (ptrace_peeksiginfo_args): Add.
6678         (__ptrace_peeksiginfo_flags): Add.
6679         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6680         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6681         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6682
6683 2013-07-03  Allan McRae  <allan@archlinux.org>
6684
6685         * sysdeps/i386/fpu/libm-test-ulps: Update.
6686
6687 2013-07-02  David S. Miller  <davem@davemloft.net>
6688
6689         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6690
6691 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
6692
6693         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6694
6695 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6696
6697         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6699
6700 2013-07-02  Andi Kleen <ak@linux.intel.com>
6701
6702         * config.h.in (ENABLE_LOCK_ELISION): Add.
6703         * configure.in (--enable-lock-elision): Add option.
6704         * manual/install.texi: Document --enable lock elision.
6705         * configure: Regenerate
6706         * INSTALL: Regenerate.
6707
6708 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6709
6710         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
6711         SSE4.2 strcasecmp for libc.a.
6712         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
6713
6714 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6715
6716         [BZ #13304]
6717         * soft-fp/op-common.h (_FP_FMA): New macro.
6718         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
6719         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
6720         (_FP_MUL_MEAT_1_imm): ... here.
6721         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
6722         (_FP_MUL_MEAT_1_wide): ... here.
6723         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
6724         (_FP_MUL_MEAT_1_hard): ... here.
6725         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
6726         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
6727         (_FP_MUL_MEAT_2_wide): ... here.
6728         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
6729         (_FP_MUL_MEAT_2_wide_3mul): ... here.
6730         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
6731         (_FP_MUL_MEAT_2_gmp): ... here.
6732         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
6733         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
6734         (_FP_MUL_MEAT_4_wide): ... here.
6735         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
6736         (_FP_MUL_MEAT_4_gmp): ... here.
6737         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
6738         (_FP_WFRACBITS_DW_S): Likewise.
6739         (_FP_WFRACXBITS_DW_S): Likewise.
6740         (_FP_HIGHBIT_DW_S): Likewise.
6741         (FP_FMA_S): Likewise.
6742         (_FP_FRAC_HIGH_DW_S): Likewise.
6743         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
6744         (_FP_WFRACBITS_DW_D): Likewise.
6745         (_FP_WFRACXBITS_DW_D): Likewise.
6746         (_FP_HIGHBIT_DW_D): Likewise.
6747         (FP_FMA_D): Likewise.
6748         (_FP_FRAC_HIGH_DW_D): Likewise.
6749         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
6750         (_FP_WFRACBITS_DW_E): Likewise.
6751         (_FP_WFRACXBITS_DW_E): Likewise.
6752         (_FP_HIGHBIT_DW_E): Likewise.
6753         (FP_FMA_E): Likewise.
6754         (_FP_FRAC_HIGH_DW_E): Likewise.
6755         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
6756         (_FP_WFRACBITS_DW_Q): Likewise.
6757         (_FP_WFRACXBITS_DW_Q): Likewise.
6758         (_FP_HIGHBIT_DW_Q): Likewise.
6759         (FP_FMA_Q): Likewise.
6760         (_FP_FRAC_HIGH_DW_Q): Likewise.
6761         * soft-fp/fmasf4.c: New file.
6762         * soft-fp/fmadf4.c: Likewise.
6763         * soft-fp/fmatf4.c: Likewise.
6764
6765 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6766
6767         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
6768         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
6769         Silvermont.
6770         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
6771         macro.
6772         (index_Slow_SSE4_2): Likewise.
6773         (index_Prefer_PMINUB_for_stringop): Likewise.
6774         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
6775         bit_Slow_SSE4_2 is set.
6776         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6777         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6778
6779 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6780
6781         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
6782         rtld_global._dl_hwcap2.
6783         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
6784         POWER8.
6785         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
6786         POWER8 feature descriptions defined in _dl_hwcap2.
6787         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
6788         string handling for POWER8 feature bits.
6789         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
6790         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
6791         _dl_powerpc_cap_flags.
6792         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
6793         * sysdeps/powerpc/rtld-global-offsets.sym
6794         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
6795         _dl_hwcap2 in the rtld_global_ro structure.
6796
6797 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6798
6799         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
6800         hardware capabilities in support of AT_HWCAP2.
6801         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
6802         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
6803         GLRO(dl_hwcap2).
6804         (_dl_show_auxv): Add support for calling _dl_procinfo to display
6805         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
6806         explicitly the unknown a_type display mechanism is used.
6807         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
6808         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
6809         struct member.
6810         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
6811         to macro prototype for AT_HWCAP2 support.
6812         * sysdeps/i386/dl-procinfo.h: Likewise.
6813         * sysdeps/s390/dl-procinfo.h: Likewise.
6814         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
6815         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
6816         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
6817         return -1 for unknown a_type display fallback.
6818         * sysdeps/sparc/dl-procinfo.h: Likewise.
6819         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6820         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
6821
6822 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
6823
6824         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
6825         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
6826
6827 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
6828
6829         [BZ #12492]
6830         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
6831         mprotect making __stack_prot writable.
6832
6833 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6834             Joseph Myers  <joseph@codesourcery.com>
6835
6836         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
6837         as being properly aligned.
6838
6839 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
6840
6841         * dlfcn/modstatic5.c: New file.
6842         * dlfcn/tststatic5.c: New file.
6843         * dlfcn/Makefile (tests): Add tststatic5.
6844         (tests-static): Likewise.
6845         (modules-names): Add modstatic5.
6846         (tststatic5-ENV): New variable.
6847         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
6848
6849         [BZ #15022]
6850         * elf/dl-support.c (_dl_main_map): New variable.
6851         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
6852         (_dl_nns, _dl_load_adds): Set to 1.
6853         (_dl_initial_searchlist): Refer to _dl_main_map.
6854         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
6855         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
6856         call to _dl_get_origin.
6857         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
6858         around call_map.
6859         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
6860         * dlfcn/modstatic3.c: New file.
6861         * dlfcn/tststatic3.c: New file.
6862         * dlfcn/tststatic4.c: New file.
6863         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
6864         (tests-static): Likewise.
6865         (modules-names): Add modstatic3.
6866         (tststatic3-ENV, tststatic4-ENV): New variables.
6867         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
6868         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
6869
6870 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
6871
6872         * configure.in (CC): Require GCC version 4.4 or later.
6873         * configure: Regenerated.
6874         * manual/install.texi (Tools for Compilation): Update GCC version
6875         requirement.
6876         * INSTALL: Regenerated.
6877
6878 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6879
6880         [BZ #15674]
6881         * string/test-memcmp.c (check2): New.
6882         (main): Call check2.
6883
6884         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
6885
6886 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
6887
6888         [BZ #15022]
6889         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
6890         over to...
6891         (dl_open_worker) [!SHARED]: ... here.
6892
6893 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6894
6895         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
6896
6897 2013-06-25  Richard Henderson  <rth@redhat.com>
6898
6899         * locale/programs/locarchive.c: Include <libc-internal.h>
6900
6901 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
6902
6903         * manual/texinfo.tex: Update to version 2013-06-21.17, with
6904         trailing whitespace removed.
6905
6906 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6907
6908         [BZ #10283]
6909         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
6910         * locale/programs/locarchive.c: Include libc-mmap.h.
6911         (prepare_address_space): Take two new outputs (the mmap base and len).
6912         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
6913         values.
6914         (create_archive): Declare new mmap base and len values for
6915         prepare_address_space, and store the result in ah.
6916         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
6917         (enlarge_archive): If ah->mmap_base is not NULL, use that and
6918         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6919         Declare new mmap base and len values for
6920         prepare_address_space, and store the result in new_ah.
6921         (open_archive): Declare new mmap base and len values for
6922         prepare_address_space, and store the result in ah.
6923         (close_archive): If ah->mmap_base is not NULL, use that and
6924         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6925         * sysdeps/generic/libc-mmap.h: New file.
6926
6927 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6928
6929         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
6930         (ALIGN_UP): Likewise.
6931         (PTR_ALIGN_DOWN): Likewise.
6932         (PTR_ALIGN_UP): Likewise.
6933
6934 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6935
6936         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
6937         entry mapped to PPC_PLATFORM_POWER8.
6938         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
6939         POWER8.
6940         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
6941         (_dl_string_platform): Add case for exporting platform position for
6942         POWER8.
6943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
6944         search path to sysdeps/powerpc/powerpc32/power8 directory.
6945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
6946         search path to sysdeps/powerpc/powerpc64/power8 directory.
6947         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
6948         power7 directories.
6949         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
6950         power7 directories.
6951
6952 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6953
6954         * INSTALL: Regenerate.
6955
6956         * nscd/connections.c (nscd_init): Fix comment.
6957
6958 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
6959
6960         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
6961
6962         [BZ #15667]
6963         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
6964         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
6965
6966 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6967
6968         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
6969         DL_DST_REQ_STATIC.
6970         (DL_DST_REQ_STATIC): Remove macro.
6971
6972 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
6973
6974         [BZ #7006]
6975         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
6976         with a shift of 0 bits.
6977
6978 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6979
6980         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
6981         $(tststatic-ENV).
6982
6983 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6984
6985         [BZ #15655]
6986         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
6987
6988 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6989
6990         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
6991         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
6992         accepts -fno-tree-loop-distribute-patterns.
6993         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
6994         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
6995         recursive call.
6996         * string/memset.c (memset): Likewise.
6997         * string/test-memmove.c (simple_memmove): Disable loop transformation
6998         to library calls.
6999         * string/test-memset.c (simple_memset): Likewise.
7000         * benchtests/bench-memmove.c (simple_memmove): Likewise.
7001         * benchtests/bench-memset.c (simple_memset): Likewise.
7002         * configure: Regenerated.
7003
7004 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
7005
7006         * math/test-misc.c (main): Ignore fesetround failure when failures
7007         of subsequent rounding tests would be ignored.
7008
7009         [BZ #15654]
7010         * math/fedisblxcpt.c (fedisableexcept): Return 0.
7011         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
7012         * math/fegetenv.c (__fegetenv): Return 0.
7013         * math/fegetexcept.c (fegetexcept): Return 0.
7014         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
7015         FE_TONEAREST.
7016         * math/feholdexcpt.c (feholdexcept): Return 0.
7017         * math/fesetenv.c (__fesetenv): Return 0.
7018         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
7019         argument FE_TONEAREST.
7020         * math/feupdateenv.c (__feupdateenv): Return 0.
7021         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
7022
7023 2013-06-18  Roland McGrath  <roland@hack.frob.com>
7024
7025         * elf/rtld-Rules (rtld-compile-command.S): New variable.
7026         (rtld-compile-command.s, rtld-compile-command.c): New variables.
7027         ($(objpfx)rtld-%.os rules): Use them.
7028
7029 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7030
7031         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
7032         fields.
7033
7034 2013-06-17  Roland McGrath  <roland@hack.frob.com>
7035
7036         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
7037         length of target pattern, then descending length of dependency pattern.
7038         * configure.in (AWK): Require gawk 3.1.2 or newer.
7039         * manual/install.texi (Tools for Compilation): Say that we do.
7040         * configure: Regenerated.
7041
7042         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
7043         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
7044         * scripts/sysd-rules.awk: ... this new script.
7045         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
7046         than a glob-style pattern.
7047
7048 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
7049
7050         * math/test-misc.c (main): Do not treat incorrectly rounded
7051         conversions as failure unless ROUNDING_TESTS passes.
7052
7053 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
7054
7055         [BZ #15631]
7056         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
7057         restore exception state around main square root computation, then
7058         check for inexactness explicitly.
7059
7060         * math/libm-test.inc (fma_test_data): Add another test.
7061
7062 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7063
7064         * manual/threads.texi (Non-POSIX Extensions): New document
7065         node.  Document pthread_getattr_default_np and
7066         pthread_setattr_default_np.
7067
7068         * Versions.def (libpthread): Add GLIBC_2.18.
7069         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
7070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7071         Likewise.
7072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7073         Likewise.
7074         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7075         Likewise.
7076         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7077         Likewise.
7078         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
7079         Likewise.
7080         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7081         Likewise.
7082         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7083         Likewise.
7084         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7085         Likewise.
7086         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7087         Likewise.
7088
7089 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7090
7091         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7092         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
7093
7094 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7095             H.J. Lu  <hjl.tools@gmail.com>
7096
7097         [BZ #15627]
7098         * sysdeps/x86_64/rtld-memset.c: Remove file.
7099         * sysdeps/x86_64/rtld-memset.S: New file.
7100
7101 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
7102
7103         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
7104         (test_in_one_mode): Take arguments for whether the rounding mode
7105         is supported for each floating-point type.
7106         (do_test): Pass new arguments to test_in_one_mode using
7107         ROUNDING_TESTS.
7108
7109 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7110
7111         * posix/tst-waitid.c (do_test): Distinguish different instances of
7112         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
7113         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
7114         before entering the kernel for waitpid.
7115
7116 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7117
7118         * NEWS: Fix note on clock function precision.  Text by Roland
7119         McGrath.
7120
7121 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7122
7123         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
7124         it into place only when and if the sanity check passes.
7125
7126 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
7127
7128         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
7129         output for whether conversion result is exact.  Take argument
7130         indicating whether type is IBM long double.
7131         (round_for_all): Change need_exact field to ibm_ld.
7132         * stdlib/tst-strtod-round.c (struct exactness): New type.
7133         (struct test): Change bool ld_ok field to struct exactness exact.
7134         (TEST): Update all definitions for change to field.
7135         (tests): Regenerate array contents.
7136         (test_in_one_mode): Take pointer to new field instead of old ld_ok
7137         field value.  Check for IBM long double here.
7138         (do_test): Update calls to test_in_one_mode.
7139
7140 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7141
7142         [BZ #12515]
7143         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
7144         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
7145
7146 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7147
7148         [BZ #15605]
7149         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
7150         generated by the compiler on loop optimizations.
7151         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
7152         general definitions.
7153
7154 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
7155
7156         * math/bug-nextafter.c: Include <math-tests.h>.
7157         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7158         the relevant type.
7159         * math/bug-nexttoward.c: Include <math-tests.h>.
7160         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7161         the relevant type.
7162         * math/test-misc.c: Include <math-tests.h>.
7163         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7164         the relevant type.
7165
7166 2013-06-12  Andreas Jaeger  <aj@suse.de>
7167
7168         * po/ia.po: Update Interlingua translation from translation
7169         project.
7170
7171 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7172
7173         * include/fenv.h: Include stdbool.h.
7174         (struct rm_ctx): New structure.
7175         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
7176         Define macro.
7177         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
7178         (SET_RESTORE_ROUNDF): Likewise.
7179         (SET_RESTORE_ROUNDL): Likewise.
7180         (SET_RESTORE_ROUND_NOEX): Likewise.
7181         (SET_RESTORE_ROUND_NOEXF): Likewise.
7182         (SET_RESTORE_ROUND_NOEXL): Likewise.
7183         (SET_RESTORE_ROUND_53BIT): Likewise.
7184         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
7185         (libc_feresetround_noexf_ctx): Likewise.
7186         (libc_feresetround_noexl_ctx): Likewise.
7187         (libc_feholdsetround_53bit_ctx): Likewise.
7188         (libc_feresetround_53bit_ctx): Likewise.
7189         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
7190         (libc_feholdexcept_setround_sse_ctx): New function.
7191         (libc_fesetenv_sse_ctx): Likewise.
7192         (libc_feupdateenv_sse_ctx): Likewise.
7193         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
7194         (libc_feholdexcept_setround_387_ctx): Likewise.
7195         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
7196         (libc_feholdsetround_387_prec_ctx): Likewise.
7197         (libc_feholdsetround_387_ctx): Likewise.
7198         (libc_feholdsetround_387_53bit_ctx): Likewise.
7199         (libc_feholdsetround_sse_ctx): Likewise.
7200         (libc_feresetround_sse_ctx): Likewise.
7201         (libc_feresetround_387_ctx): Likewise.
7202         (libc_feupdateenv_387_ctx): Likewise.
7203         (libc_feholdexcept_setroundf_ctx): Define macro.
7204         (libc_fesetenvf_ctx): Likewise.
7205         (libc_feupdateenvf_ctx): Likewise.
7206         (libc_feholdsetroundf_ctx): Likewise.
7207         (libc_feresetroundf_ctx): Likewise.
7208         (libc_feholdexcept_setround_ctx): Likewise.
7209         (libc_fesetenv_ctx): Likewise.
7210         (libc_feupdateenv_ctx): Likewise.
7211         (libc_feholdsetround_ctx): Likewise.
7212         (libc_feresetround_ctx): Likewise.
7213         (libc_feholdexcept_setroundl_ctx): Likewise.
7214         (libc_feupdateenvl_ctx): Likewise.
7215         (libc_feholdsetroundl_ctx): Likewise.
7216         (libc_feresetroundl_ctx): Likewise.
7217         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
7218         (libc_feresetround_53bit_ctx): Likewise.
7219
7220 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7221
7222         * locale/iso-639.def: Convert to UTF-8.
7223
7224 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
7225
7226         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
7227         (EXCEPTION_TESTS_double): Likewise.
7228         (EXCEPTION_TESTS_long_double): Likewise.
7229         (EXCEPTION_TESTS): Likewise.
7230         * math/libm-test.inc (test_exceptions): Only test exceptions if
7231         EXCEPTION_TESTS (FLOAT).
7232
7233 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7234
7235         * benchtests/Makefile (string-bench): Add strcpy_chk and
7236         stpcpy_chk.
7237         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
7238         * benchtests/bench-stpcpy_chk.c: New file.
7239         * benchtests/bench-strcpy_chk-ifunc.c: New file.
7240         * benchtests/bench-strcpy_chk.c: New file.
7241         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
7242         code.
7243         (do_test): Likewise.
7244
7245 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7246
7247         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
7248         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
7249         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
7250         with tabs where appropriate.
7251         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
7252         dl-procinfo.h.
7253         [PPC_PLATFORM_PPC440]: Likewise.
7254         [PPC_PLATFORM_PPC464]: Likewise.
7255         [PPC_PLATFORM_PPC476]: Likewise.
7256         (_dl_string_platform): Add support for detecting ppc405, ppc440,
7257         ppc464, and ppc476 platform strings merging from ports/
7258         dl-procinfo.h.
7259
7260 2013-06-11  Andreas Schwab  <schwab@suse.de>
7261
7262         [BZ #14991]
7263         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
7264         (from_ucs4_idx): Regenerate.
7265         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
7266         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
7267         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
7268         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
7269         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
7270         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
7271         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
7272         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
7273         from FROM_LOOP and TO_LOOP specific macros.
7274         (BODY): Handle combining characters.
7275         * iconvdata/BIG5HKSCS.irreversible: Update.
7276         * iconvdata/BIG5HKSCS.precomposed: New file.
7277         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
7278         characters.
7279         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
7280
7281 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7282
7283         * include/sys/time.h: Fix indentation and add copyright header.
7284
7285         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
7286         (do_test): Likewise.
7287         * string/test-memchr.c (do_one_test): Likewise.
7288         (do_test): Likewise.
7289         * string/test-memcmp.c (do_one_test): Likewise.
7290         (do_test): Likewise.
7291         * string/test-memcpy.c (do_one_test): Likewise.
7292         (do_test): Likewise.
7293         * string/test-memmem.c (do_one_test): Likewise.
7294         (do_test): Likewise.
7295         (do_random_tests): Likewise.
7296         * string/test-memmove.c (do_one_test): Likewise.
7297         (do_test): Likewise.
7298         * string/test-memset.c (do_one_test): Likewise.
7299         (do_test): Likewise.
7300         * string/test-rawmemchr.c (do_one_test): Likewise.
7301         (do_test): Likewise.
7302         * string/test-strcasecmp.c (do_one_test): Likewise.
7303         (do_test): Likewise.
7304         * string/test-strcasestr.c (do_one_test): Likewise.
7305         (do_test): Likewise.
7306         * string/test-strcat.c (do_one_test): Likewise.
7307         (do_test): Likewise.
7308         * string/test-strchr.c (do_one_test): Likewise.
7309         (do_test): Likewise.
7310         * string/test-strcmp.c (do_one_test): Likewise.
7311         (do_test): Likewise.
7312         * string/test-strcpy.c (do_one_test): Likewise.
7313         (do_test): Likewise.
7314         * string/test-string.h: Likewise.
7315         (test_init): Likewise.
7316         * string/test-strlen.c (do_one_test): Likewise.
7317         (do_test): Likewise.
7318         * string/test-strncasecmp.c (do_one_test): Likewise.
7319         (do_test): Likewise.
7320         * string/test-strncat.c (do_one_test): Likewise.
7321         (do_test): Likewise.
7322         * string/test-strncmp.c (do_one_test): Likewise.
7323         (do_test_limit): Likewise.
7324         (do_test): Likewise.
7325         * string/test-strncpy.c (do_one_test): Likewise.
7326         (do_test): Likewise.
7327         * string/test-strnlen.c (do_one_test): Likewise.
7328         (do_test): Likewise.
7329         * string/test-strpbrk.c (do_one_test): Likewise.
7330         (do_test): Likewise.
7331         * string/test-strrchr.c (do_one_test): Likewise.
7332         (do_test): Likewise.
7333         * string/test-strspn.c (do_one_test): Likewise.
7334         (do_test): Likewise.
7335         * string/test-strstr.c (do_one_test): Likewise.
7336         (do_test): Likewise.
7337
7338         * benchtests/Makefile (string-bench): Add string benchmarks.
7339         * benchtests/bench-bcopy-ifunc.c: New file.
7340         * benchtests/bench-bcopy.c: New file.
7341         * benchtests/bench-bzero-ifunc.c: New file.
7342         * benchtests/bench-bzero.c: New file.
7343         * benchtests/bench-memccpy-ifunc.c: New file.
7344         * benchtests/bench-memccpy.c: New file.
7345         * benchtests/bench-memchr-ifunc.c: New file.
7346         * benchtests/bench-memchr.c: New file.
7347         * benchtests/bench-memcmp-ifunc.c: New file.
7348         * benchtests/bench-memcmp.c: New file.
7349         * benchtests/bench-memmem-ifunc.c: New file.
7350         * benchtests/bench-memmem.c: New file.
7351         * benchtests/bench-memmove-ifunc.c: New file.
7352         * benchtests/bench-memmove.c: New file.
7353         * benchtests/bench-mempcpy-ifunc.c: New file.
7354         * benchtests/bench-mempcpy.c: New file.
7355         * benchtests/bench-memset-ifunc.c: New file.
7356         * benchtests/bench-memset.c: New file.
7357         * benchtests/bench-rawmemchr-ifunc.c: New file.
7358         * benchtests/bench-rawmemchr.c: New file.
7359         * benchtests/bench-stpcpy-ifunc.c: New file.
7360         * benchtests/bench-stpcpy.c: New file.
7361         * benchtests/bench-stpncpy-ifunc.c: New file.
7362         * benchtests/bench-stpncpy.c: New file.
7363         * benchtests/bench-strcasecmp-ifunc.c: New file.
7364         * benchtests/bench-strcasecmp.c: New file.
7365         * benchtests/bench-strcasestr-ifunc.c: New file.
7366         * benchtests/bench-strcasestr.c: New file.
7367         * benchtests/bench-strcat-ifunc.c: New file.
7368         * benchtests/bench-strcat.c: New file.
7369         * benchtests/bench-strchr-ifunc.c: New file.
7370         * benchtests/bench-strchr.c: New file.
7371         * benchtests/bench-strchrnul-ifunc.c: New file.
7372         * benchtests/bench-strchrnul.c: New file.
7373         * benchtests/bench-strcmp-ifunc.c: New file.
7374         * benchtests/bench-strcmp.c: New file.
7375         * benchtests/bench-strcpy-ifunc.c: New file.
7376         * benchtests/bench-strcpy.c: New file.
7377         * benchtests/bench-strcspn-ifunc.c: New file.
7378         * benchtests/bench-strcspn.c: New file.
7379         * benchtests/bench-strlen-ifunc.c: New file.
7380         * benchtests/bench-strlen.c: New file.
7381         * benchtests/bench-strncasecmp-ifunc.c: New file.
7382         * benchtests/bench-strncasecmp.c: New file.
7383         * benchtests/bench-strncat-ifunc.c: New file.
7384         * benchtests/bench-strncat.c: New file.
7385         * benchtests/bench-strncmp-ifunc.c: New file.
7386         * benchtests/bench-strncmp.c: New file.
7387         * benchtests/bench-strncpy-ifunc.c: New file.
7388         * benchtests/bench-strncpy.c: New file.
7389         * benchtests/bench-strnlen-ifunc.c: New file.
7390         * benchtests/bench-strnlen.c: New file.
7391         * benchtests/bench-strpbrk-ifunc.c: New file.
7392         * benchtests/bench-strpbrk.c: New file.
7393         * benchtests/bench-strrchr-ifunc.c: New file.
7394         * benchtests/bench-strrchr.c: New file.
7395         * benchtests/bench-strspn-ifunc.c: New file.
7396         * benchtests/bench-strspn.c: New file.
7397         * benchtests/bench-strstr-ifunc.c: New file.
7398         * benchtests/bench-strstr.c: New file.
7399
7400         * benchtests/Makefile: Disable parallel execution of targets.
7401         (string-bench): Add memcpy.
7402         (benchset): New variable to store a list of benchmark sets.
7403         (bench-func): Renamed from bench.
7404         (bench-set): New target.
7405         (bench): Depend on bench-func and bench-set.
7406         * benchtests/README: Add section on benchmark sets.
7407         * benchtests/bench-memcpy-ifunc.c: New file.
7408         * benchtests/bench-memcpy.c: New file.
7409         * benchtests/bench-string.h: New file.
7410
7411 2013-06-11  Andreas Schwab  <schwab@suse.de>
7412
7413         [BZ #15577]
7414         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
7415         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
7416         values in the triple.
7417         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
7418         terminator in the group key.
7419
7420 2013-06-11  Andreas Jaeger  <aj@suse.de>
7421
7422         * po/zh_TW.po: Update Chinese (traditional) translation from
7423         translation project.
7424
7425 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7426
7427         * include/time.h (__clock_gettime): Add libc_hidden_proto.
7428         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
7429         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
7430         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7431         (clock_getcpuclockid): Likewise.
7432         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
7433         Add weak_alias and libc_hidden_def.
7434         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
7435         * rt/clock_gettime.c (clock_gettime): Rename to
7436         __clock_gettime.  Add weak_alias and libc_hidden_def.
7437         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
7438         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
7439         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
7440         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
7441         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
7442         Likewise.
7443         * rt/clock_settime.c (clock_settime): Rename to
7444         __clock_settime.  Add weak_alias and libc_hidden_def.
7445         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
7446
7447 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
7448
7449         * mach/err_boot.sub: Remove trailing whitespace.
7450         * mach/err_ipc.sub: Likewise.
7451         * mach/err_mach.sub: Likewise.
7452
7453         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
7454         (ROUNDING_TESTS_double): Likewise.
7455         (ROUNDING_TESTS_long_double): Likewise.
7456         (ROUNDING_TESTS): Likewise.
7457         * math/libm-test.inc: Include <math-tests.h>.
7458         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
7459         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7460         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7461         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7462
7463 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7464
7465         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
7466         of assigning.
7467
7468 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
7469
7470         * sysdeps/gnu/errlist.awk: Do not generate space at end of
7471         otherwise empty TRANS lines.
7472         * sysdeps/gnu/errlist.c: Regenerated.
7473
7474         * catgets/gencat.c (error_print): Use (void) in function
7475         definition.
7476         * crypt/crypt_util.c (__init_des): Likewise.
7477         * crypt/speeds.c (Stop): Likewise.
7478         (main): Likewise.
7479         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
7480         * inet/ruserpass.c (token): Likewise.
7481         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
7482         * intl/localealias.c (extend_alias_table): Likewise.
7483         * intl/plural-exp.c (init_germanic_plural): Likewise.
7484         * libio/fcloseall.c (__fcloseall): Likewise.
7485         * libio/genops.c (_IO_flush_all): Likewise.
7486         (_IO_flush_all_linebuffered): Likewise.
7487         (_IO_cleanup): Likewise.
7488         (_IO_iter_begin): Likewise.
7489         (_IO_iter_end): Likewise.
7490         (_IO_list_lock): Likewise.
7491         (_IO_list_unlock): Likewise.
7492         (_IO_list_resetlock): Likewise.
7493         * libio/getchar.c (getchar): Likewise.
7494         * libio/getchar_u.c (getchar_unlocked): Likewise.
7495         * libio/getwchar.c (getwchar): Likewise.
7496         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7497         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
7498         * login/getpt.c (__getpt): Likewise.
7499         * login/tst-utmp.c (main): Likewise.
7500         * malloc/hooks.c (__malloc_check_init): Likewise.
7501         * malloc/malloc.c (__malloc_stats): Likewise.
7502         * malloc/mtrace.c (tr_break): Likewise.
7503         (mtrace): Likewise.
7504         (muntrace): Likewise.
7505         * misc/fstab.c (endfsent): Likewise.
7506         * misc/getclktck.c (__getclktck): Likewise.
7507         * misc/getdtsz.c (__getdtablesize): Likewise.
7508         * misc/gethostid.c (gethostid): Likewise.
7509         * misc/getpagesize.c (__getpagesize): Likewise.
7510         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
7511         (__get_nprocs): Likewise.
7512         (__get_phys_pages): Likewise.
7513         (__get_avphys_pages): Likewise.
7514         * misc/getttyent.c (getttyent): Likewise.
7515         (setttyent): Likewise.
7516         (endttyent): Likewise.
7517         * misc/getusershell.c (getusershell): Likewise.
7518         (endusershell): Likewise.
7519         (setusershell): Likewise.
7520         (initshells): Likewise.
7521         * misc/hsearch.c (__hdestroy): Likewise.
7522         * misc/sync.c (sync): Likewise.
7523         * misc/syslog.c (closelog_internal): Likewise.
7524         (closelog): Likewise.
7525         * misc/ttyslot.c (ttyslot): Likewise.
7526         * misc/vhangup.c (vhangup): Likewise.
7527         * posix/fork.c (__fork): Likewise.
7528         * posix/getegid.c (__getegid): Likewise.
7529         * posix/geteuid.c (__geteuid): Likewise.
7530         * posix/getgid.c (__getgid): Likewise.
7531         * posix/getpid.c (__getpid): Likewise.
7532         * posix/getppid.c (__getppid): Likewise.
7533         * posix/getuid.c (__getuid): Likewise.
7534         * posix/pause.c (pause): Likewise.
7535         * posix/setpgrp.c (setpgrp): Likewise.
7536         * posix/setsid.c (__setsid): Likewise.
7537         * posix/test-vfork.c (noop): Likewise.
7538         * resolv/gethnamaddr.c (_endhtent): Likewise.
7539         (_gethtent): Likewise.
7540         (ht_endhostent): Likewise.
7541         (gethostent): Likewise.
7542         (dns_service): Likewise.
7543         * stdlib/drand48.c (drand48): Likewise.
7544         * stdlib/lrand48.c (lrand48): Likewise.
7545         * stdlib/mrand48.c (mrand48): Likewise.
7546         * stdlib/rand.c (rand): Likewise.
7547         * stdlib/random.c (__random): Likewise.
7548         * stdlib/setenv.c (clearenv): Likewise.
7549         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
7550         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
7551         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
7552         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
7553         (__get_nprocs): Likewise.
7554         (__get_phys_pages): Likewise.
7555         (__get_avphys_pages): Likewise.
7556         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
7557         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
7558         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
7559         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
7560         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
7561         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
7562         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
7563         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
7564         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
7565         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
7566         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
7567         * sysdeps/mach/hurd/sync.c (sync): Likewise.
7568         * sysdeps/posix/clock.c (clock): Likewise.
7569         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
7570         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
7571         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
7572         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7573         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
7574         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7575         (__get_nprocs_conf): Likewise.
7576         (__get_phys_pages): Likewise.
7577         (__get_avphys_pages): Likewise.
7578         * time/clock.c (clock): Likewise.
7579         * time/tzset.c (__tzname_max): Likewise.
7580
7581 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
7582
7583         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
7584         (__bswap_32): Do not use "register".
7585         * crypt/crypt.c (_ufc_doit_r): Likewise.
7586         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7587         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7588         * gmon/gmon.c (__monstartup): Likewise.
7589         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
7590         * hurd/hurdmalloc.c (more_memory): Likewise.
7591         (malloc): Likewise.
7592         (free): Likewise.
7593         (realloc): Likewise.
7594         (malloc_fork_prepare): Likewise.
7595         (malloc_fork_parent): Likewise.
7596         (malloc_fork_child): Likewise.
7597         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
7598         (_svcauth_des): Likewise.
7599         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7600         * inet/inet_net.c (inet_network): Likewise.
7601         * inet/inet_netof.c (inet_netof): Likewise.
7602         * inet/rcmd.c (__validuser2_sa): Likewise.
7603         * io/fts.c (fts_open): Likewise.
7604         (fts_load): Likewise.
7605         (fts_close): Likewise.
7606         (fts_read): Likewise.
7607         (fts_children): Likewise.
7608         (fts_build): Likewise.
7609         (fts_stat): Likewise.
7610         (fts_sort): Likewise.
7611         (fts_alloc): Likewise.
7612         (fts_lfree): Likewise.
7613         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
7614         (_IO_file_xsgetn): Likewise.
7615         (_IO_file_xsgetn_mmap): Likewise.
7616         * libio/iofopncook.c (_IO_cookie_read): Likewise.
7617         (_IO_cookie_write): Likewise.
7618         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
7619         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
7620         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
7621         * malloc/obstack.c (_obstack_begin): Likewise.
7622         (_obstack_begin_1): Likewise.
7623         (_obstack_newchunk): Likewise.
7624         (_obstack_allocated_p): Likewise.
7625         (obstack_free): Likewise.
7626         (_obstack_memory_used): Likewise.
7627         * misc/getttyent.c (getttynam): Likewise.
7628         (getttyent): Likewise.
7629         (skip): Likewise.
7630         (value): Likewise.
7631         * misc/getusershell.c (initshells): Likewise.
7632         * misc/syslog.c (__vsyslog_chk): Likewise.
7633         * misc/ttyslot.c (ttyslot): Likewise.
7634         * nis/nis_hash.c (__nis_hash): Likewise.
7635         * posix/fnmatch_loop.c (FCT): Likewise.
7636         * posix/getconf.c (print_all): Likewise.
7637         (main): Likewise.
7638         * posix/getopt.c (exchange): Likewise.
7639         * posix/glob.c (globfree): Likewise.
7640         (prefix_array): Likewise.
7641         (__glob_pattern_type): Likewise.
7642         * resolv/arpa/nameser.h (NS_GET16): Likewise.
7643         (NS_GET32): Likewise.
7644         (NS_PUT16): Likewise.
7645         (NS_PUT32): Likewise.
7646         * resolv/gethnamaddr.c (getanswer): Likewise.
7647         (gethostbyname2): Likewise.
7648         (gethostbyaddr): Likewise.
7649         (_gethtent): Likewise.
7650         (_gethtbyname2): Likewise.
7651         (_gethtbyaddr): Likewise.
7652         * resolv/ns_print.c (dst_s_get_int16): Likewise.
7653         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
7654         * resolv/res_init.c (__res_vinit): Likewise.
7655         (net_mask): Likewise.
7656         * resolv/res_mkquery.c (outchar): Likewise.
7657         (PRINT): Likewise.
7658         * stdio-common/printf_fp.c (outchar): Likewise.
7659         (PRINT): Likewise.
7660         * stdio-common/printf_fphex.c (outchar): Likewise.
7661         (PRINT): Likewise.
7662         * stdio-common/printf_size.c (outchar): Likewise.
7663         (PRINT): Likewise.
7664         * stdio-common/test_rdwr.c (main): Likewise.
7665         * stdio-common/tfformat.c (matches): Likewise.
7666         * stdio-common/vfprintf.c (outchar): Likewise.
7667         (printf_unknown): Likewise.
7668         (buffered_vfprintf): Likewise.
7669         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7670         * stdio-common/xbug.c (AppendToBuffer): Likewise.
7671         (ReadFile): Likewise.
7672         * stdlib/qsort.c (SWAP): Likewise.
7673         (_quicksort): Likewise.
7674         * stdlib/setenv.c (__add_to_environ): Likewise.
7675         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7676         * stdlib/strtol_l.c (__strtol_l): Likewise.
7677         * stdlib/tst-strtod.c (main): Likewise.
7678         * stdlib/tst-strtol.c (main): Likewise.
7679         * stdlib/tst-strtoll.c (main): Likewise.
7680         * string/bits/string2.h (__strcmp_cc): Likewise.
7681         (__strcmp_cg): Likewise.
7682         (__strcspn_c1): Likewise.
7683         (__strcspn_c2): Likewise.
7684         (__strcspn_c3): Likewise.
7685         (__strspn_c1): Likewise.
7686         (__strspn_c2): Likewise.
7687         (__strspn_c3): Likewise.
7688         (__strsep_1c): Likewise.
7689         (__strsep_2c): Likewise.
7690         (__strsep_3c): Likewise.
7691         * string/memccpy.c (__memccpy): Likewise.
7692         * string/stpcpy.c (__stpcpy): Likewise.
7693         * string/strcmp.c (strcmp): Likewise.
7694         * string/strrchr.c (strrchr): Likewise.
7695         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
7696         Likewise.
7697         * sysdeps/mach/hurd/getcwd.c
7698         (_hurd_canonicalize_directory_name_internal): Likewise.
7699         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
7700         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
7701         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
7702         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
7703         Likewise, in both definitions.
7704         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
7705         definitions.
7706         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
7707         64] (__bswap_64): Likewise.
7708         * time/test_time.c (main): Likewise.
7709         * time/tzfile.c (__tzfile_read): Likewise.
7710         (__tzfile_compute): Likewise.
7711         * time/tzset.c (__tzset_parse_tz): Likewise.
7712         (tzset_internal): Likewise.
7713         (compute_change): Likewise.
7714         * wcsmbs/wcscat.c (__wcscat): Likewise.
7715         * wcsmbs/wcschr.c (wcschr): Likewise.
7716         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
7717         * wcsmbs/wcscspn.c (wcscspn): Likewise.
7718         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
7719         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
7720         * wcsmbs/wcsspn.c (wcsspn): Likewise.
7721         * wcsmbs/wcsstr.c (wcsstr): Likewise.
7722         * wcsmbs/wmemchr.c (wmemchr): Likewise.
7723         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7724         * wcsmbs/wmemset.c (wmemset): Likewise.
7725
7726 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
7727
7728         * scripts/config.guess: Update to version 2013-05-16.
7729         * scripts/config.sub: Update to version 2013-04-24.
7730         * scripts/install-sh: Update to version 2011-11-20.07.
7731         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
7732         * scripts/move-if-change: Update to version 2012-01-06 07:23.
7733
7734 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
7735
7736         * debug/fgetws_u_chk.c: Fix leading whitespaces.
7737         * elf/sln.c: Likewise.
7738         * hurd/hurd/ioctl.h: Likewise.
7739         * hurd/hurdmalloc.c: Likewise.
7740         * hurd/xattr.c: Likewise.
7741         * include/shlib-compat.h: Likewise.
7742         * inet/ruserpass.c: Likewise.
7743         * libio/iofgets_u.c: Likewise.
7744         * libio/iofgetws_u.c: Likewise.
7745         * locale/programs/ld-identification.c: Likewise.
7746         * locale/programs/ld-time.c: Likewise.
7747         * mach/msg-destroy.c: Likewise.
7748         * nss/nss_files/files-netgrp.c: Likewise.
7749         * resolv/res_data.c: Likewise.
7750         * soft-fp/op-1.h: Likewise.
7751         * soft-fp/op-2.h: Likewise.
7752         * soft-fp/op-4.h: Likewise.
7753         * soft-fp/op-common.h: Likewise.
7754         * stdio-common/printf_fphex.c: Likewise.
7755         * stdlib/strtod_l.c: Likewise.
7756         * sunrpc/rpc/clnt.h: Likewise.
7757         * sysdeps/generic/framestate.c: Likewise.
7758         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7759         * sysdeps/i386/bsd-setjmp.S: Likewise.
7760         * sysdeps/i386/__longjmp.S: Likewise.
7761         * sysdeps/i386/setjmp.S: Likewise.
7762         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7763         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7764         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7765         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7766         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7767         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7768         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7769         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7770         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7771         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
7772         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7773         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7774         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7775         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7776         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7777         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7778         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7779         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
7780         * sysdeps/ieee754/support.c: Likewise.
7781         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7782         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
7783         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
7784         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
7785         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
7786         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
7787         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
7788         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
7789         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
7790         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
7791         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
7792         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
7793         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
7794         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
7795         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
7796         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
7797         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
7799
7800 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
7801
7802         * posix/transbug.c: Remove executable mode.
7803
7804 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
7805
7806         * crypt/speeds.c: Remove trailing whitespace.
7807         * dlfcn/default.c: Likewise.
7808         * elf/ifuncdep2.c: Likewise.
7809         * elf/ifuncmain1.c: Likewise.
7810         * elf/ifuncmain1vis.c: Likewise.
7811         * elf/testobj.h: Likewise.
7812         * elf/tst-stackguard1.c: Likewise.
7813         * gmon/sys/gmon.h: Likewise.
7814         * hurd/hurdmsg.c: Likewise.
7815         * hurd/new-fd.c: Likewise.
7816         * hurd/ports-get.c: Likewise.
7817         * iconvdata/ibm1008_420.c: Likewise.
7818         * inet/tst-getni1.c: Likewise.
7819         * inet/tst-getni2.c: Likewise.
7820         * libio/ioungetc.c: Likewise.
7821         * libio/wfiledoalloc.c: Likewise.
7822         * manual/libm-err-tab.pl: Likewise.
7823         * math/w_dremf.c: Likewise.
7824         * misc/ftruncate.c: Likewise.
7825         * posix/bug-glob2.c: Likewise.
7826         * posix/tst-pcre.c: Likewise.
7827         * posix/wait4.c: Likewise.
7828         * resolv/README: Likewise.
7829         * resolv/res_debug.h: Likewise.
7830         * resolv/tst-inet_ntop.c: Likewise.
7831         * setjmp/bug269-setjmp.c: Likewise.
7832         * soft-fp/extended.h: Likewise.
7833         * soft-fp/op-1.h: Likewise.
7834         * soft-fp/op-2.h: Likewise.
7835         * soft-fp/op-4.h: Likewise.
7836         * soft-fp/op-8.h: Likewise.
7837         * soft-fp/testit.c: Likewise.
7838         * stdio-common/bug16.c: Likewise.
7839         * stdlib/random.c: Likewise.
7840         * sunrpc/rpcsvc/rquota.x: Likewise.
7841         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
7842         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7843         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7844         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7845         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7846         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7847         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7848         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7849         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7850         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7851         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7852         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7853         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7854         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7855         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7856         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7857         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7858         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7859         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7860         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7861         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7862         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7863         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
7864         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7865         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7866         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7867         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
7868         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7869         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7870         * sysdeps/ieee754/s_lib_version.c: Likewise.
7871         * sysdeps/mach/hurd/check_fds.c: Likewise.
7872         * sysdeps/mach/hurd/getsockname.c: Likewise.
7873         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
7874         * sysdeps/mach/hurd/recvfrom.c: Likewise.
7875         * sysdeps/powerpc/bits/link.h: Likewise.
7876         * sysdeps/powerpc/dl-procinfo.c: Likewise.
7877         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
7878         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
7879         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
7880         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
7881         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7882         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
7883         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
7884         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
7885         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
7886         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
7887         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
7888         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
7889         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
7890         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
7891         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
7892         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
7893         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
7894         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
7895         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
7896         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
7897         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
7898         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
7899         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
7900         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7901         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
7902         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
7903         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
7904         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
7905         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
7906         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
7907         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
7908         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7909         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7910         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
7911         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
7912         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
7913         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
7914         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
7915         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
7916         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
7917         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
7918         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
7919         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
7920         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
7921         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
7922         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
7923         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
7924         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
7925         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
7926         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7927         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7928         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7929         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7930         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
7931         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
7932         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
7933         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
7934         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
7935         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
7936         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
7937         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
7938         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
7939         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
7940         * sysdeps/powerpc/sysdep.h: Likewise.
7941         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7942         * sysdeps/s390/s390-64/sub_n.S: Likewise.
7943         * sysdeps/sh/dl-trampoline.S: Likewise.
7944         * sysdeps/sh/memset.S: Likewise.
7945         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
7946         * sysdeps/sh/strlen.S: Likewise.
7947         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
7948         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
7949         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
7950         * sysdeps/sparc/sparc32/rem.S: Likewise.
7951         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
7952         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
7953         * sysdeps/sparc/sparc32/strchr.S: Likewise.
7954         * sysdeps/sparc/sparc32/udiv.S: Likewise.
7955         * sysdeps/sparc/sparc32/urem.S: Likewise.
7956         * sysdeps/sparc/sparc64/add_n.S: Likewise.
7957         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7958         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
7959         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
7960         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
7961         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
7962         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
7963         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
7964         * sysdeps/unix/bsd/times.c: Likewise.
7965         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
7966         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
7967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
7968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
7969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
7970         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7971         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
7972         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
7973         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
7974         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
7975         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
7976         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
7977         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
7978         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7979         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
7980         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7981         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7982         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7983         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
7984         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
7985         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
7986         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
7987         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7988         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
7989         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
7990         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7991         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
7992         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7993         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
7994         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
7995         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
7996         * sysdeps/x86_64/strcspn.S: Likewise.
7997
7998 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7999
8000         * locale/C-translit.h: Revert #include <stdint.h> because this is a
8001         generated file.  Regenerate properly from gen-translit.pl.
8002         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
8003         locale/C-translit.h.
8004
8005 2013-06-05  Andreas Schwab  <schwab@suse.de>
8006
8007         [BZ #15100]
8008         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
8009         week as 6 instead of -1.
8010         * time/tst-strptime.c (day_tests): Add test case.
8011
8012 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8013
8014         * sysdeps/generic/math_private.h
8015         (libc_feholdexcept_setround_53bit): Replace with
8016         libc_feholdsetround_53bit.
8017         (libc_feupdateenv_53bit): Replace with
8018         libc_feresetround_53bit.
8019         (SET_RESTORE_ROUND_53BIT): Adjust.
8020
8021 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
8022
8023         * string/test-strchrnul.c: Add copyright header.
8024
8025         * posix/tst-getaddrinfo4.c: Increase test timeout.
8026
8027 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
8028
8029         [BZ #15536]
8030         * math/libm-test.inc (MAX_EXP): Remove
8031         (MIN_EXP): Define.
8032         (ulp): Use MIN_EXP - MANT_DIG.
8033         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
8034
8035 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
8036
8037         * po/be.po: Revert last change.
8038         * po/zh_CN.po: Likewise.
8039         * po/header.pot: Likewise.
8040
8041 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
8042
8043         * Makefile ($(common-objpfx)linkobj/libc.so): Define
8044         link-libc-deps to empty as target-specific variable.
8045         * Makerules (link-libc-args): New variable.
8046         (libc-for-link): Likewise.
8047         (link-libc-deps): Likewise.
8048         (lib%.so): Depend on $(link-libc-deps).  Link with
8049         $(link-libc-args).
8050         (build-module): Link with $(link-libc-args).
8051         (build-module-asneeded): Likewise.
8052         (build-module-helper-objlist): Filter out $(link-libc-deps) from
8053         list of objects.
8054         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
8055         target-specific variable.
8056         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
8057         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
8058         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
8059         libc.
8060         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
8061         libc and ld.so.
8062         ($(objpfx)libpcprofile.so): Likewise.
8063         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
8064         libc_nonshared.a.
8065         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
8066         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
8067         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
8068         $(link-libc-deps).
8069         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
8070         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
8071         * login/Makefile ($(objpfx)libutil.so): Likewise.
8072         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
8073         * math/Makefile ($(objpfx)libm.so): Likewise.
8074         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
8075         $(objpfx)libnsl.so): Define libc-for-link as target-specific
8076         variable instead of depending directly on libc.
8077         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
8078         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
8079         $(link-libc-deps).
8080         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
8081         libc.
8082         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
8083         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
8084         ($(objpfx)libanl.so): Likewise.
8085         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
8086         ld.so.
8087         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
8088         $(link-libc-deps).
8089         * sysdeps/i386/fpu/Makefile: Remove file.
8090         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
8091         ($(objpfx)libm.so): Remove dependency on ld.so.
8092
8093 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
8094
8095         [BZ # 15553]
8096         * nis/yp_xdr.c (XDRMAXNAME): Define.
8097         (XDRMAXRECORD): Define.
8098         (xdr_domainname): Use XDRMAXNAME.
8099         (xdr_mapname): Likewise.
8100         (xdr_peername): Likewise.
8101         (xdr_keydat): Use XDRMAXRECORD.
8102         (xdr_valdat): Likewise.
8103
8104 2013-05-30  Jeff Law  <law@redhat.com>
8105
8106         [BZ #14256]
8107         * manual/errno.texi (ESTALE): Update to account for more than
8108         just NFS file systems.
8109         * sysdeps/gnu/errlist.c: Regenerated.
8110
8111 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8112
8113         [BZ #15465]
8114         * elf/Makefile (tests): Add tst-null-argv.
8115         (modules-names):  Add tst-null-argv-lib.
8116         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
8117         (tst-null-argv-ENV): Set environment for tst-null-argv.
8118         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
8119         (RTLD_PROGNAME): New macro.
8120         * elf/tst-null-argv.c: New test case.
8121         * elf/tst-null-argv-lib.c: Library for test case.
8122         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
8123         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8124         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
8125         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
8126         * elf/dl-init.c (call_init): Likewise.
8127         (_dl_init): Likewise.
8128         * elf/dl-load.c (print_search_path): Likewise.
8129         (_dl_map_object): Likewise.
8130         * elf/dl-lookup.c (do_lookup_x): Likewise.
8131         (add_dependency): Likewise.
8132         (_dl_lookup_symbol_x): Likewise.
8133         (_dl_debug_bindings): Likewise.
8134         * elf/dl-open.c (_dl_show_scope): Likewise.
8135         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8136         * elf/dl-version.c (match_symbol): Likewise.
8137         (_dl_check_map_versions): Likewise.
8138         * elf/rtld.c (dl_main): Likewise.
8139         (print_unresolved): Use RTLD_PROGNAME.
8140         (print_missing_version): Likewise.
8141         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8142         (elf_machine_rela): Likewise.
8143         * sysdeps/powerpc/powerpc32/dl-machine.c
8144         (__process_machine_rela): Likewise.
8145         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8146         Likewise.
8147         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8148         Likewise.
8149         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
8150         Likewise.
8151         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8152         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8153         Likewise.
8154         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8155         Likewise.
8156         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8157
8158 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
8159
8160         * po/be.po: Add descriptive title.
8161         * po/zh_CN.po: Likewise.
8162         * po/header.pot: Likewise.
8163
8164 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
8165
8166         * locale/programs/locarchive.c (create_archive): Inlucde fname in
8167         error message.
8168         (enlarge_archive): Likewise.
8169
8170 2013-05-28  Ben North  <ben@redfrontdoor.org>
8171
8172         * manual/arith.texi (frexp): It is the magnitude of the return
8173         value which lies in [0.5, 1), not the return value itself.
8174
8175 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8176
8177         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8178
8179 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
8180
8181         * stdio-common/bug26.c (main): Correct fscanf template.
8182
8183         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
8184         declare _dl_skip_args.
8185
8186         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
8187         Don't declare.
8188
8189         * manual/platform.texi: Add missing @end deftypefun.
8190
8191 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8192
8193         [BZ #15529]
8194         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
8195         bit of mantissa of 2^16382.
8196         * math/libm-test.inc (hypot_test_data): Add more tests.
8197
8198         * math/libm-test.inc: Add drem and pow10 to list of tested
8199         functions.
8200         (pow10_test): New function.
8201         (drem_test): Likewise.
8202         (drem_test_tonearest): Likewise.
8203         (drem_test_towardzero): Likewise.
8204         (drem_test_downward): Likewise.
8205         (drem_test_upward): Likewise.
8206         (main): Call the new functions.
8207
8208         * math/libm-test.inc (finite_test_data): Remove.
8209         (finite_test): Run tests from isfinite_test_data.
8210         (gamma_test_data): Remove.
8211         (gamma_test): Run tests from lgamma_test_data.
8212         * sysdeps/i386/fpu/libm-test-ulps: Update.
8213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8214
8215 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8216
8217         * manual/platform.texi: Add PowerPC PPR function set documentation.
8218         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
8219         implementation.
8220
8221 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
8222
8223         * math/libm-test.inc (MAX_EXP): Define.
8224         (ULPDIFF): Define.
8225         (ulp): New function.
8226         (check_float_internal): Use ULPDIFF.
8227         (cpow_test): Disable failing test.
8228         (check_ulp): Test ulp() implemetnation.
8229         (main): Call check_ulp before starting tests.
8230
8231 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8232
8233         * math/gen-libm-test.pl (generate_testfile): Do not handle
8234         START_DATA and END_DATA.
8235         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
8236         END_DATA.
8237         (acos_tonearest_test_data): Likewise.
8238         (acos_towardzero_test_data): Likewise.
8239         (acos_downward_test_data): Likewise.
8240         (acos_upward_test_data): Likewise.
8241         (acosh_test_data): Likewise.
8242         (asin_test_data): Likewise.
8243         (asin_tonearest_test_data): Likewise.
8244         (asin_towardzero_test_data): Likewise.
8245         (asin_downward_test_data): Likewise.
8246         (asin_upward_test_data): Likewise.
8247         (asinh_test_data): Likewise.
8248         (atan_test_data): Likewise.
8249         (atanh_test_data): Likewise.
8250         (atan2_test_data): Likewise.
8251         (cabs_test_data): Likewise.
8252         (cacos_test_data): Likewise.
8253         (cacosh_test_data): Likewise.
8254         (carg_test_data): Likewise.
8255         (casin_test_data): Likewise.
8256         (casinh_test_data): Likewise.
8257         (catan_test_data): Likewise.
8258         (catanh_test_data): Likewise.
8259         (cbrt_test_data): Likewise.
8260         (ccos_test_data): Likewise.
8261         (ccosh_test_data): Likewise.
8262         (ceil_test_data): Likewise.
8263         (cexp_test_data): Likewise.
8264         (cimag_test_data): Likewise.
8265         (clog_test_data): Likewise.
8266         (clog10_test_data): Likewise.
8267         (conj_test_data): Likewise.
8268         (copysign_test_data): Likewise.
8269         (cos_test_data): Likewise.
8270         (cos_tonearest_test_data): Likewise.
8271         (cos_towardzero_test_data): Likewise.
8272         (cos_downward_test_data): Likewise.
8273         (cos_upward_test_data): Likewise.
8274         (cosh_test_data): Likewise.
8275         (cosh_tonearest_test_data): Likewise.
8276         (cosh_towardzero_test_data): Likewise.
8277         (cosh_downward_test_data): Likewise.
8278         (cosh_upward_test_data): Likewise.
8279         (cpow_test_data): Likewise.
8280         (cproj_test_data): Likewise.
8281         (creal_test_data): Likewise.
8282         (csin_test_data): Likewise.
8283         (csinh_test_data): Likewise.
8284         (csqrt_test_data): Likewise.
8285         (ctan_test_data): Likewise.
8286         (ctan_tonearest_test_data): Likewise.
8287         (ctan_towardzero_test_data): Likewise.
8288         (ctan_downward_test_data): Likewise.
8289         (ctan_upward_test_data): Likewise.
8290         (ctanh_test_data): Likewise.
8291         (ctanh_tonearest_test_data): Likewise.
8292         (ctanh_towardzero_test_data): Likewise.
8293         (ctanh_downward_test_data): Likewise.
8294         (ctanh_upward_test_data): Likewise.
8295         (erf_test_data): Likewise.
8296         (erfc_test_data): Likewise.
8297         (exp_test_data): Likewise.
8298         (exp_tonearest_test_data): Likewise.
8299         (exp_towardzero_test_data): Likewise.
8300         (exp_downward_test_data): Likewise.
8301         (exp_upward_test_data): Likewise.
8302         (exp10_test_data): Likewise.
8303         (exp2_test_data): Likewise.
8304         (expm1_test_data): Likewise.
8305         (fabs_test_data): Likewise.
8306         (fdim_test_data): Likewise.
8307         (finite_test_data): Likewise.
8308         (floor_test_data): Likewise.
8309         (fma_test_data): Likewise.
8310         (fma_towardzero_test_data): Likewise.
8311         (fma_downward_test_data): Likewise.
8312         (fma_upward_test_data): Likewise.
8313         (fmax_test_data): Likewise.
8314         (fmin_test_data): Likewise.
8315         (fmod_test_data): Likewise.
8316         (fpclassify_test_data): Likewise.
8317         (frexp_test_data): Likewise.
8318         (gamma_test_data): Likewise.
8319         (hypot_test_data): Likewise.
8320         (ilogb_test_data): Likewise.
8321         (isfinite_test_data): Likewise.
8322         (isgreater_test_data): Likewise.
8323         (isgreaterequal_test_data): Likewise.
8324         (isinf_test_data): Likewise.
8325         (isless_test_data): Likewise.
8326         (islessequal_test_data): Likewise.
8327         (islessgreater_test_data): Likewise.
8328         (isnan_test_data): Likewise.
8329         (isnormal_test_data): Likewise.
8330         (issignaling_test_data): Likewise.
8331         (isunordered_test_data): Likewise.
8332         (j0_test_data): Likewise.
8333         (j1_test_data): Likewise.
8334         (jn_test_data): Likewise.
8335         (ldexp_test_data): Likewise.
8336         (lgamma_test_data): Likewise.
8337         (lrint_test_data): Likewise.
8338         (lrint_tonearest_test_data): Likewise.
8339         (lrint_towardzero_test_data): Likewise.
8340         (lrint_downward_test_data): Likewise.
8341         (lrint_upward_test_data): Likewise.
8342         (llrint_test_data): Likewise.
8343         (llrint_tonearest_test_data): Likewise.
8344         (llrint_towardzero_test_data): Likewise.
8345         (llrint_downward_test_data): Likewise.
8346         (llrint_upward_test_data): Likewise.
8347         (log_test_data): Likewise.
8348         (log10_test_data): Likewise.
8349         (log1p_test_data): Likewise.
8350         (log2_test_data): Likewise.
8351         (logb_test_data): Likewise.
8352         (logb_downward_test_data): Likewise.
8353         (lround_test_data): Likewise.
8354         (llround_test_data): Likewise.
8355         (modf_test_data): Likewise.
8356         (nearbyint_test_data): Likewise.
8357         (nextafter_test_data): Likewise.
8358         (nexttoward_test_data): Likewise.
8359         (pow_test_data): Likewise.
8360         (pow_tonearest_test_data): Likewise.
8361         (pow_towardzero_test_data): Likewise.
8362         (pow_downward_test_data): Likewise.
8363         (pow_upward_test_data): Likewise.
8364         (remainder_test_data): Likewise.
8365         (remainder_tonearest_test_data): Likewise.
8366         (remainder_towardzero_test_data): Likewise.
8367         (remainder_downward_test_data): Likewise.
8368         (remainder_upward_test_data): Likewise.
8369         (remquo_test_data): Likewise.
8370         (rint_test_data): Likewise.
8371         (rint_tonearest_test_data): Likewise.
8372         (rint_towardzero_test_data): Likewise.
8373         (rint_downward_test_data): Likewise.
8374         (rint_upward_test_data): Likewise.
8375         (round_test_data): Likewise.
8376         (scalb_test_data): Likewise.
8377         (scalbn_test_data): Likewise.
8378         (scalbln_test_data): Likewise.
8379         (signbit_test_data): Likewise.
8380         (sin_test_data): Likewise.
8381         (sin_tonearest_test_data): Likewise.
8382         (sin_towardzero_test_data): Likewise.
8383         (sin_downward_test_data): Likewise.
8384         (sin_upward_test_data): Likewise.
8385         (sincos_test_data): Likewise.
8386         (sinh_test_data): Likewise.
8387         (sinh_tonearest_test_data): Likewise.
8388         (sinh_towardzero_test_data): Likewise.
8389         (sinh_downward_test_data): Likewise.
8390         (sinh_upward_test_data): Likewise.
8391         (sqrt_test_data): Likewise.
8392         (tan_test_data): Likewise.
8393         (tan_tonearest_test_data): Likewise.
8394         (tan_towardzero_test_data): Likewise.
8395         (tan_downward_test_data): Likewise.
8396         (tan_upward_test_data): Likewise.
8397         (tanh_test_data): Likewise.
8398         (tgamma_test_data): Likewise.
8399         (trunc_test_data): Likewise.
8400         (y0_test_data): Likewise.
8401         (y1_test_data): Likewise.
8402         (yn_test_data): Likewise.
8403         (significand_test_data): Likewise.
8404
8405         * math/gen-libm-test.pl (@functions): Remove variable.
8406         (generate_testfile): Don't handle START and END lines.
8407         * math/libm-test.inc (START): New macro.
8408         (END): Likewise.
8409         (END_COMPLEX): Likewise.
8410         (acos_test): Use END macro without arguments.
8411         (acos_test_tonearest): Likewise.
8412         (acos_test_towardzero): Likewise.
8413         (acos_test_downward): Likewise.
8414         (acos_test_upward): Likewise.
8415         (acosh_test): Likewise.
8416         (asin_test): Likewise.
8417         (asin_test_tonearest): Likewise.
8418         (asin_test_towardzero): Likewise.
8419         (asin_test_downward): Likewise.
8420         (asin_test_upward): Likewise.
8421         (asinh_test): Likewise.
8422         (atan_test): Likewise.
8423         (atanh_test): Likewise.
8424         (atan2_test): Likewise.
8425         (cabs_test): Likewise.
8426         (cacos_test): Use END_COMPLEX macro without arguments.
8427         (cacosh_test): Likewise.
8428         (carg_test): Use END macro without arguments.
8429         (casin_test): Use END_COMPLEX macro without arguments.
8430         (casinh_test): Likewise.
8431         (catan_test): Likewise.
8432         (catanh_test): Likewise.
8433         (cbrt_test): Use END macro without arguments.
8434         (ccos_test): Use END_COMPLEX macro without arguments.
8435         (ccosh_test): Likewise.
8436         (ceil_test): Use END macro without arguments.
8437         (cexp_test): Use END_COMPLEX macro without arguments.
8438         (cimag_test): Use END macro without arguments.
8439         (clog_test): Use END_COMPLEX macro without arguments.
8440         (clog10_test): Likewise.
8441         (conj_test): Likewise.
8442         (copysign_test): Use END macro without arguments.
8443         (cos_test): Likewise.
8444         (cos_test_tonearest): Likewise.
8445         (cos_test_towardzero): Likewise.
8446         (cos_test_downward): Likewise.
8447         (cos_test_upward): Likewise.
8448         (cosh_test): Likewise.
8449         (cosh_test_tonearest): Likewise.
8450         (cosh_test_towardzero): Likewise.
8451         (cosh_test_downward): Likewise.
8452         (cosh_test_upward): Likewise.
8453         (cpow_test): Use END_COMPLEX macro without arguments.
8454         (cproj_test): Likewise.
8455         (creal_test): Use END macro without arguments.
8456         (csin_test): Use END_COMPLEX macro without arguments.
8457         (csinh_test): Likewise.
8458         (csqrt_test): Likewise.
8459         (ctan_test): Likewise.
8460         (ctan_test_tonearest): Likewise.
8461         (ctan_test_towardzero): Likewise.
8462         (ctan_test_downward): Likewise.
8463         (ctan_test_upward): Likewise.
8464         (ctanh_test): Likewise.
8465         (ctanh_test_tonearest): Likewise.
8466         (ctanh_test_towardzero): Likewise.
8467         (ctanh_test_downward): Likewise.
8468         (ctanh_test_upward): Likewise.
8469         (erf_test): Use END macro without arguments.
8470         (erfc_test): Likewise.
8471         (exp_test): Likewise.
8472         (exp_test_tonearest): Likewise.
8473         (exp_test_towardzero): Likewise.
8474         (exp_test_downward): Likewise.
8475         (exp_test_upward): Likewise.
8476         (exp10_test): Likewise.
8477         (exp2_test): Likewise.
8478         (expm1_test): Likewise.
8479         (fabs_test): Likewise.
8480         (fdim_test): Likewise.
8481         (finite_test): Likewise.
8482         (floor_test): Likewise.
8483         (fma_test): Likewise.
8484         (fma_test_towardzero): Likewise.
8485         (fma_test_downward): Likewise.
8486         (fma_test_upward): Likewise.
8487         (fmax_test): Likewise.
8488         (fmin_test): Likewise.
8489         (fmod_test): Likewise.
8490         (fpclassify_test): Likewise.
8491         (frexp_test): Likewise.
8492         (gamma_test): Likewise.
8493         (hypot_test): Likewise.
8494         (ilogb_test): Likewise.
8495         (isfinite_test): Likewise.
8496         (isgreater_test): Likewise.
8497         (isgreaterequal_test): Likewise.
8498         (isinf_test): Likewise.
8499         (isless_test): Likewise.
8500         (islessequal_test): Likewise.
8501         (islessgreater_test): Likewise.
8502         (isnan_test): Likewise.
8503         (isnormal_test): Likewise.
8504         (issignaling_test): Likewise.
8505         (isunordered_test): Likewise.
8506         (j0_test): Likewise.
8507         (j1_test): Likewise.
8508         (jn_test): Likewise.
8509         (ldexp_test): Likewise.
8510         (lgamma_test): Likewise.
8511         (lrint_test): Likewise.
8512         (lrint_test_tonearest): Likewise.
8513         (lrint_test_towardzero): Likewise.
8514         (lrint_test_downward): Likewise.
8515         (lrint_test_upward): Likewise.
8516         (llrint_test): Likewise.
8517         (llrint_test_tonearest): Likewise.
8518         (llrint_test_towardzero): Likewise.
8519         (llrint_test_downward): Likewise.
8520         (llrint_test_upward): Likewise.
8521         (log_test): Likewise.
8522         (log10_test): Likewise.
8523         (log1p_test): Likewise.
8524         (log2_test): Likewise.
8525         (logb_test): Likewise.
8526         (logb_test_downward): Likewise.
8527         (lround_test): Likewise.
8528         (llround_test): Likewise.
8529         (modf_test): Likewise.
8530         (nearbyint_test): Likewise.
8531         (nextafter_test): Likewise.
8532         (nexttoward_test): Likewise.
8533         (pow_test): Likewise.
8534         (pow_test_tonearest): Likewise.
8535         (pow_test_towardzero): Likewise.
8536         (pow_test_downward): Likewise.
8537         (pow_test_upward): Likewise.
8538         (remainder_test): Likewise.
8539         (remainder_test_tonearest): Likewise.
8540         (remainder_test_towardzero): Likewise.
8541         (remainder_test_downward): Likewise.
8542         (remainder_test_upward): Likewise.
8543         (remquo_test): Likewise.
8544         (rint_test): Likewise.
8545         (rint_test_tonearest): Likewise.
8546         (rint_test_towardzero): Likewise.
8547         (rint_test_downward): Likewise.
8548         (rint_test_upward): Likewise.
8549         (round_test): Likewise.
8550         (scalb_test): Likewise.
8551         (scalbn_test): Likewise.
8552         (scalbln_test): Likewise.
8553         (signbit_test): Likewise.
8554         (sin_test): Likewise.
8555         (sin_test_tonearest): Likewise.
8556         (sin_test_towardzero): Likewise.
8557         (sin_test_downward): Likewise.
8558         (sin_test_upward): Likewise.
8559         (sincos_test): Likewise.
8560         (sinh_test): Likewise.
8561         (sinh_test_tonearest): Likewise.
8562         (sinh_test_towardzero): Likewise.
8563         (sinh_test_downward): Likewise.
8564         (sinh_test_upward): Likewise.
8565         (sqrt_test): Likewise.
8566         (tan_test): Likewise.
8567         (tan_test_tonearest): Likewise.
8568         (tan_test_towardzero): Likewise.
8569         (tan_test_downward): Likewise.
8570         (tan_test_upward): Likewise.
8571         (tanh_test): Likewise.
8572         (tgamma_test): Likewise.
8573         (trunc_test): Likewise.
8574         (y0_test): Likewise.
8575         (y1_test): Likewise.
8576         (yn_test): Likewise.
8577         (significand_test): Likewise.
8578
8579 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
8580
8581         [BZ #15381]
8582         * libio/genops.c (_IO_no_init): Initialize wide struct info.
8583
8584 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8585
8586         [BZ #14894]
8587         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
8588         __ppc_mdoio and __ppc_mdoom.
8589         * manual/platform.texi: Document new functions __ppc_yield,
8590         __ppc_mdoio and __ppc_mdoom.
8591
8592 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
8593
8594         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
8595         (main): Mention "tls" pseudo-hwcap is legacy.
8596         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
8597
8598 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8599
8600         * math/gen-libm-test.pl (parse_args): Output only string of
8601         arguments as text for test name, not full call or descriptions of
8602         tests for extra outputs.
8603         (generate_testfile): Do not pass function name to parse_args.
8604         Generate this_func variable from START.
8605         * math/libm-test.inc (struct test_f_f_data): Rename test_name
8606         field to arg_str.
8607         (struct test_ff_f_data): Likewise.
8608         (test_ff_f_data_nexttoward): Likewise.
8609         (struct test_fi_f_data): Likewise.
8610         (struct test_fl_f_data): Likewise.
8611         (struct test_if_f_data): Likewise.
8612         (struct test_fff_f_data): Likewise.
8613         (struct test_c_f_data): Likewise.
8614         (struct test_f_f1_data): Likewise.  Remove field extra_name.
8615         (struct test_fF_f1_data): Likewise.
8616         (struct test_ffI_f1_data): Likewise.
8617         (struct test_c_c_data): Rename test_name field to arg_str.
8618         (struct test_cc_c_data): Likewise.
8619         (struct test_f_i_data): Likewise.
8620         (struct test_ff_i_data): Likewise.
8621         (struct test_f_l_data): Likewise.
8622         (struct test_f_L_data): Likewise.
8623         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
8624         and extra2_name.
8625         (COMMON_TEST_SETUP): New macro.
8626         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
8627         (COMMON_TEST_CLEANUP): Likewise.
8628         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
8629         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
8630         macros.
8631         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
8632         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
8633         macros.
8634         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
8635         (RUN_TEST_fff_f): Take argument string.  Call new setup and
8636         cleanup macros.
8637         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
8638         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
8639         macros.
8640         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
8641         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
8642         macros.
8643         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8644         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
8645         cleanup macros.
8646         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8647         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
8648         cleanup macros.
8649         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8650         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
8651         cleanup macros.
8652         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8653         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
8654         macros.
8655         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
8656         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
8657         macros.
8658         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
8659         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
8660         macros.
8661         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
8662         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
8663         cleanup macros.
8664         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
8665         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
8666         cleanup macros.
8667         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
8668         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
8669         macros.
8670         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
8671         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
8672         cleanup macros.
8673         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
8674         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
8675         macros.
8676         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
8677         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
8678         macros.
8679         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
8680         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
8681         cleanup macros.
8682         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
8683
8684 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8685
8686         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
8687         to _sifields.sigfault.
8688         (si_addr_lsb): Define new macro.
8689         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8690         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8691         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
8692
8693 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
8694
8695         [BZ #15441]
8696         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
8697         returns -1.
8698         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
8699         null return -1.
8700         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
8701         loading the domain.
8702
8703 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8704
8705         * math/gen-libm-test.pl (parse_args): Do not include expected
8706         result in test name.
8707         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
8708         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8709         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8710         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8711         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8713
8714 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8715
8716         * benchtests/Makefile: Sort function entries.
8717
8718         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
8719         tanh, asinh, acosh, atanh.
8720         * benchtests/acos-inputs: New file.
8721         * benchtests/acosh-inputs: New file.
8722         * benchtests/asin-inputs: New file.
8723         * benchtests/asinh-inputs: New file.
8724         * benchtests/atanh-inputs: New file.
8725         * benchtests/cosh-inputs: New file.
8726         * benchtests/log-inputs: New file.
8727         * benchtests/sinh-inputs: New file.
8728         * benchtests/tanh-inputs: New file.
8729
8730 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
8731
8732         [BZ #15339]
8733         * posix/tst-getaddrinfo4.c: New test.
8734         * posix/Makefile (tests): Add it.
8735
8736 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8737
8738         [BZ #15339]
8739         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
8740         when no services were used.
8741         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
8742         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
8743
8744 2013-05-21  Andreas Schwab  <schwab@suse.de>
8745
8746         [BZ #15014]
8747         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
8748         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
8749         successful.
8750         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8751         redundant variable declarations and reallocation of buffer when
8752         parsing as IPv6 address.  Always set NSS status when called from
8753         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
8754         buffer too small.  Correct computation of needed size.
8755         * nss/Makefile (tests): Add test-digits-dots.
8756         * nss/test-digits-dots.c: New test.
8757
8758 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8759
8760         * benchtests/Makefile: Remove instructions for adding
8761         benchmark tests.
8762         * benchtests/README: New file to explain how to execute and
8763         enhance the benchmark tests.
8764
8765 2013-05-21  Andreas Schwab  <schwab@suse.de>
8766
8767         [BZ #15493]
8768         * setjmp/Makefile (tests): Add tst-sigsetjmp.
8769         * setjmp/tst-sigsetjmp.c: New test.
8770
8771 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8772
8773         * sysdeps/x86_64/memset.S (memset): New implementation.
8774         (__bzero): Likewise.
8775         (__memset_tail): New function.
8776
8777 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8778
8779         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
8780         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
8781         __memcpy_sse2_unaligned ifunc selection.
8782         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
8783         Add memcpy-sse2-unaligned.S.
8784         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8785         Add: __memcpy_sse2_unaligned.
8786
8787 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
8788
8789         [BZ #15490]
8790         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8791         math_force_eval before restoring floating-point envrionment.
8792         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
8793         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8794         Likewise.
8795         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
8796         <math_private.h>.
8797         (__nearbyintl): Use math_force_eval before restoring
8798         floating-point environment.
8799         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
8800
8801         * math/gen-libm-test.pl (special_functions): Remove.
8802         (parse_args): Don't handle TEST_extra.  Handle functions with no
8803         return value.
8804         * math/libm-test.inc (struct test_sincos_data): Replace with
8805         struct test_fFF_11_data.
8806         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
8807         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
8808         (sincos_test_data): Change element type to struct
8809         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
8810         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
8811         RUN_TEST_LOOP_sincos.
8812         * math/README.libm-test: Don't mention special handling of
8813         individual functions.
8814         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
8815         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8816         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8817         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8818         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8820
8821         * math/gen-libm-test.pl (get_variable): Remove function.
8822         (parse_args): Don't show pointer parameters to call in test
8823         names.  Use "extra output N" in test names for extra outputs
8824         rather than naming variables.
8825
8826 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
8827
8828         [BZ #15488]
8829         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
8830         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
8831         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
8832         double tests.
8833         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
8834         disable.
8835         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
8836         check_long_double.
8837
8838         * math/gen-libm-test.pl (@tests): Remove variable.
8839         ($count): Likewise.
8840         (new_test): Remove function.
8841         (show_exceptions): New function.
8842         (special_functions): Use show_exceptions instead of new_test.
8843         (parse_args): Likewise.
8844         (generate_testfile): Pass only function name in generated call to
8845         print_max_error or print_complex_max_error.
8846         (get_ulps): Do not handle complex tests specially.
8847         (output_test): Rename to ...
8848         (get_all_ulps_for_test): ... this.  Return a string rather than
8849         printing to a file.  Require ulps to be present.
8850         (output_ulps): Generate arrays rather than #defines.
8851         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
8852         (struct ulp_data): New type.
8853         (BUILD_COMPLEX_ULP): Remove macro.
8854         (compare_ulp_data): New function.
8855         (find_ulps): Likewise.
8856         (find_test_ulps): Likewise.
8857         (find_function_ulps): Likewise.
8858         (find_complex_function_ulps): Likewise.
8859         (print_max_error): Determine allowed ulps using
8860         find_function_ulps.
8861         (print_complex_max_error): Determine allowed ulps using
8862         find_complex_function_ulps.
8863         (check_float_internal): Determine max ulps using find_test_ulps.
8864         (check_float): Do not take max_ulp parameter.  Update call to
8865         check_float_internal.
8866         (check_complex): Likewise.
8867         (check_int): Do not take max_ulp parameter.
8868         (check_long): Likewise.
8869         (check_bool): Likewise.
8870         (check_longlong): Likewise.
8871         (struct test_f_f_data): Remove max_ulp field.
8872         (struct test_ff_f_data): Likewise.
8873         (struct test_ff_f_data_nexttoward): Likewise.
8874         (struct test_fi_f_data): Likewise.
8875         (struct test_fl_f_data): Likewise.
8876         (struct test_if_f_data): Likewise.
8877         (struct test_fff_f_data): Likewise.
8878         (struct test_c_f_data): Likewise.
8879         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
8880         (struct test_fF_f1_data): Likewise.
8881         (struct test_ffI_f1_data): Likewise.
8882         (struct test_c_c_data): Remove max_ulp field.
8883         (struct test_cc_c_data): Likewise.
8884         (struct test_f_i_data): Likewise.
8885         (struct test_ff_i_data): Likewise.
8886         (struct test_f_l_data): Likewise.
8887         (struct test_f_L_data): Likewise.
8888         (struct test_sincos_data): Likewise.
8889         (RUN_TEST_f_f): Do not handle ulps.
8890         (RUN_TEST_LOOP_f_f): Likewise.
8891         (RUN_TEST_2_f): Likewise.
8892         (RUN_TEST_LOOP_2_f): Likewise.
8893         (RUN_TEST_fff_f): Likewise.
8894         (RUN_TEST_LOOP_fff_f): Likewise.
8895         (RUN_TEST_c_f): Likewise.
8896         (RUN_TEST_LOOP_c_f): Likewise.
8897         (RUN_TEST_f_f1): Likewise.
8898         (RUN_TEST_LOOP_f_f1): Likewise.
8899         (RUN_TEST_fF_f1): Likewise.
8900         (RUN_TEST_LOOP_fF_f1): Likewise.
8901         (RUN_TEST_fI_f1): Likewise.
8902         (RUN_TEST_LOOP_fI_f1): Likewise.
8903         (RUN_TEST_ffI_f1): Likewise.
8904         (RUN_TEST_LOOP_ffI_f1): Likewise.
8905         (RUN_TEST_c_c): Likewise.
8906         (RUN_TEST_LOOP_c_c): Likewise.
8907         (RUN_TEST_cc_c): Likewise.
8908         (RUN_TEST_LOOP_cc_c): Likewise.
8909         (RUN_TEST_f_i): Likewise.
8910         (RUN_TEST_LOOP_f_i): Likewise.
8911         (RUN_TEST_f_i_tg): Likewise.
8912         (RUN_TEST_LOOP_f_i_tg): Likewise.
8913         (RUN_TEST_ff_i_tg): Likewise.
8914         (RUN_TEST_LOOP_ff_i_tg): Likewise.
8915         (RUN_TEST_f_b): Likewise.
8916         (RUN_TEST_LOOP_f_b): Likewise.
8917         (RUN_TEST_f_b_tg): Likewise.
8918         (RUN_TEST_LOOP_f_b_tg): Likewise.
8919         (RUN_TEST_f_l): Likewise.
8920         (RUN_TEST_LOOP_f_l): Likewise.
8921         (RUN_TEST_f_L): Likewise.
8922         (RUN_TEST_LOOP_f_L): Likewise.
8923         (RUN_TEST_sincos): Likewise.
8924         (RUN_TEST_LOOP_sincos): Likewise.
8925
8926 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
8927
8928         [BZ #15480]
8929         [BZ #15485]
8930         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
8931         main case of finite arguments, set rounding mode to FE_TONEAREST
8932         and discard exceptions.
8933         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
8934         exceptions.
8935         (remainder_tonearest_test_data): New variable.
8936         (remainder_test_tonearest): New function.
8937         (remainder_towardzero_test_data): New variable.
8938         (remainder_test_towardzero): New function.
8939         (remainder_downward_test_data): New variable.
8940         (remainder_test_downward): New function.
8941         (remainder_upward_test_data): New variable.
8942         (remainder_test_upward): New function.
8943         (main): Call the new test functions.
8944
8945         * math/libm-test.inc (struct test_f_f1_data): Remove field
8946         extra_init.
8947         (struct test_fF_f1_data): Likewise.
8948         (struct test_ffI_f1_data): Likewise.
8949         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
8950         based on value of EXTRA_EXPECTED.
8951         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8952         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
8953         EXTRA_VAR based on value of EXTRA_EXPECTED.
8954         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8955         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
8956         EXTRA_VAR based on value of EXTRA_EXPECTED.
8957         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8958         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
8959         EXTRA_VAR based on value of EXTRA_EXPECTED.
8960         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8961         * math/gen-libm-test.pl (parse_args): Don't output initializers
8962         for extra output values.
8963
8964         * math/libm-test.inc (check_int): Expect result to be exactly
8965         equal to expected value and do not handle ulps.
8966         (check_long): Likewise.
8967         (check_longlong): Likewise.
8968
8969         * math/libm-test.inc (ceil_test_data): Test for "inexact"
8970         exceptions.
8971         (cimag_test_data): Likewise.
8972         (conj_test_data): Likewise.
8973         (copysign_test_data): Likewise.
8974         (cproj_test_data): Likewise.
8975         (creal_test_data): Likewise.
8976         (fabs_test_data): Likewise.
8977         (fdim_test_data): Likewise.
8978         (finite_test_data): Likewise.
8979         (floor_test_data): Likewise.
8980         (fmax_test_data): Likewise.
8981         (fmin_test_data): Likewise.
8982         (fmod_test_data): Likewise.
8983         (fpclassify_test_data): Likewise.
8984         (frexp_test_data): Likewise.
8985         (ilogb_test_data): Likewise.
8986         (isfinite_test_data): Likewise.
8987         (isgreater_test_data): Likewise.
8988         (isgreaterequal_test_data): Likewise.
8989         (isinf_test_data): Likewise.
8990         (isless_test_data): Likewise.
8991         (islessequal_test_data): Likewise.
8992         (islessgreater_test_data): Likewise.
8993         (isnan_test_data): Likewise.
8994         (isnormal_test_data): Likewise.
8995         (issignaling_test_data): Likewise.
8996         (isunordered_test_data): Likewise.
8997         (ldexp_test_data): Likewise.
8998         (lrint_test_data): Likewise.
8999         (lrint_test_data) [TEST_FLOAT]: Disable one test.
9000         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
9001         (lrint_tonearest_test_data): Test for "inexact" exceptions.
9002         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9003         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
9004         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9005         test input.
9006         (lrint_towardzero_test_data): Test for "inexact" exceptions.
9007         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9008         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
9009         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
9010         that test input.
9011         (lrint_downward_test_data): Test for "inexact" exceptions.
9012         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9013         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
9014         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9015         test input.
9016         (lrint_upward_test_data): Test for "inexact" exceptions.
9017         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
9018         test input.
9019         (llrint_test_data): Test for "inexact" exceptions.
9020         (llrint_test_data) [TEST_FLOAT]: Disable one test.
9021         (llrint_tonearest_test_data): Test for "inexact" exceptions.
9022         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9023         (llrint_towardzero_test_data): Test for "inexact" exceptions.
9024         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9025         (llrint_downward_test_data): Test for "inexact" exceptions.
9026         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9027         (llrint_upward_test_data): Test for "inexact" exceptions.
9028         (logb_test_data): Likewise.
9029         (logb_downward_test_data): Likewise.
9030         (nextafter_test_data): Likewise.
9031         (nexttoward_test_data): Likewise.
9032         (remainder_test_data): Likewise.
9033         (remquo_test_data): Likewise.
9034         (scalbn_test_data): Likewise.
9035         (scalbln_test_data): Likewise.
9036         (signbit_test_data): Likewise.
9037         (sqrt_test_data): Likewise.
9038         (significand_test_data): Likewise.
9039
9040 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9041
9042         [BZ #15424]
9043         * benchtests/bench-modf.c (struct args): Mark arg0 as
9044         volatile.
9045         * scripts/bench.pl: Mark members of struct args as volatile.
9046
9047 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9048
9049         [BZ # 15497]
9050         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
9051         negative infinity on POWER6 or lower.
9052         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
9053
9054 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
9055
9056         [BZ #15442]
9057         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
9058         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
9059         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
9060         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
9061         (_FP_SETQNAN): New macro.
9062         (_FP_SETQNAN_SEMIRAW): Likewise.
9063         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
9064         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
9065         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
9066         (FP_EXTEND): Use _FP_FRAC_SNANP.
9067         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
9068         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
9069         into account.
9070         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9071         New macro.
9072         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9073         Likewise.
9074
9075 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9076
9077         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
9078         with DIVIDE_BY_ZERO_EXCEPTION.
9079         (gamma_test_data): Likewise.
9080         (lgamma_test_data): Likewise.
9081         (log_test_data): Likewise.
9082         (log10_test_data): Likewise.
9083         (log2_test_data): Likewise.
9084         (tgamma_test_data): Likewise.
9085
9086         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
9087         (acos_test_tonearest): Likewise.
9088         (acos_test_towardzero): Likewise.
9089         (acos_test_downward): Likewise.
9090         (acos_test_upward): Likewise.
9091         (acosh_test): Likewise.
9092         (asin_test): Likewise.
9093         (asin_test_tonearest): Likewise.
9094         (asin_test_towardzero): Likewise.
9095         (asin_test_downward): Likewise.
9096         (asin_test_upward): Likewise.
9097         (asinh_test): Likewise.
9098         (atan_test): Likewise.
9099         (atanh_test): Likewise.
9100         (atan2_test): Likewise.
9101         (cabs_test): Likewise.
9102         (cacos_test): Likewise.
9103         (cacosh_test): Likewise.
9104         (casin_test): Likewise.
9105         (casinh_test): Likewise.
9106         (catan_test): Likewise.
9107         (catanh_test): Likewise.
9108         (cbrt_test): Likewise.
9109         (ccos_test): Likewise.
9110         (ccosh_test): Likewise.
9111         (cexp_test): Likewise.
9112         (clog_test): Likewise.
9113         (clog10_test): Likewise.
9114         (cos_test): Likewise.
9115         (cos_test_tonearest): Likewise.
9116         (cos_test_towardzero): Likewise.
9117         (cos_test_downward): Likewise.
9118         (cos_test_upward): Likewise.
9119         (cosh_test): Likewise.
9120         (cosh_test_tonearest): Likewise.
9121         (cosh_test_towardzero): Likewise.
9122         (cosh_test_downward): Likewise.
9123         (cosh_test_upward): Likewise.
9124         (cpow_test): Likewise.
9125         (csin_test): Likewise.
9126         (csinh_test): Likewise.
9127         (csqrt_test): Likewise.
9128         (ctan_test): Likewise.
9129         (ctan_test_tonearest): Likewise.
9130         (ctan_test_towardzero): Likewise.
9131         (ctan_test_downward): Likewise.
9132         (ctan_test_upward): Likewise.
9133         (ctanh_test): Likewise.
9134         (ctanh_test_tonearest): Likewise.
9135         (ctanh_test_towardzero): Likewise.
9136         (ctanh_test_downward): Likewise.
9137         (ctanh_test_upward): Likewise.
9138         (erf_test): Likewise.
9139         (erfc_test): Likewise.
9140         (exp_test): Likewise.
9141         (exp_test_tonearest): Likewise.
9142         (exp_test_towardzero): Likewise.
9143         (exp_test_downward): Likewise.
9144         (exp_test_upward): Likewise.
9145         (exp10_test): Likewise.
9146         (exp2_test): Likewise.
9147         (expm1_test): Likewise.
9148         (fmod_test): Likewise.
9149         (gamma_test): Likewise.
9150         (hypot_test): Likewise.
9151         (j0_test): Likewise.
9152         (j1_test): Likewise.
9153         (jn_test): Likewise.
9154         (lgamma_test): Likewise.
9155         (log_test): Likewise.
9156         (log10_test): Likewise.
9157         (log1p_test): Likewise.
9158         (log2_test): Likewise.
9159         (logb_test_downward): Likewise.
9160         (pow_test): Likewise.
9161         (pow_test_tonearest): Likewise.
9162         (pow_test_towardzero): Likewise.
9163         (pow_test_downward): Likewise.
9164         (pow_test_upward): Likewise.
9165         (remainder_test): Likewise.
9166         (remquo_test): Likewise.
9167         (sin_test): Likewise.
9168         (sin_test_tonearest): Likewise.
9169         (sin_test_towardzero): Likewise.
9170         (sin_test_downward): Likewise.
9171         (sin_test_upward): Likewise.
9172         (sincos_test): Likewise.
9173         (sinh_test): Likewise.
9174         (sinh_test_tonearest): Likewise.
9175         (sinh_test_towardzero): Likewise.
9176         (sinh_test_downward): Likewise.
9177         (sinh_test_upward): Likewise.
9178         (sqrt_test): Likewise.
9179         (tan_test): Likewise.
9180         (tan_test_tonearest): Likewise.
9181         (tan_test_towardzero): Likewise.
9182         (tan_test_downward): Likewise.
9183         (tan_test_upward): Likewise.
9184         (tanh_test): Likewise.
9185         (tgamma_test): Likewise.
9186         (y0_test): Likewise.
9187         (y1_test): Likewise.
9188         (yn_test): Likewise.
9189
9190         * math/gen-libm-test.pl (adjust_arg): Remove function.
9191         (special_function): Remove argument $in_func.  Only handle
9192         generating output for tables of tests, not inside functions.
9193         (parse_args): Likewise.
9194         (generate_testfile): Remove variable $in_func.  Update call to
9195         parse_args.
9196         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
9197         (MINUS_ZERO_INIT): Rename macro to minus_zero.
9198         (PLUS_INFTY_INIT): Rename macro to plus_infty.
9199         (MINUS_INFTY_INIT): Rename macro to minus_infty.
9200         (QNAN_VALUE_INIT): Rename macro to qnan_value.
9201         (MAX_VALUE_INIT): Rename macro to max_value.
9202         (MIN_VALUE_INIT): Rename macro to min_value.
9203         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
9204         (plus_zero): Remove variable.
9205         (minus_zero): Likewise.
9206         (plus_infty): Likewise.
9207         (minus_infty): Likewise.
9208         (qnan_value): Likewise.
9209         (max_value): Likewise.
9210         (min_value): Likewise.
9211         (min_subnorm_value): Likewise.
9212
9213 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9214
9215         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
9216         uint64_t or uint32_t usage.
9217         * crypt/sha256-block.c: Likewise.
9218         * crypt/sha256-crypt.c: Likewise.
9219         * crypt/sha256.c: Likewise.
9220         * crypt/sha512-block.c: Likewise.
9221         * crypt/sha512-crypt.c: Likewise.
9222         * crypt/sha512.c: Likewise.
9223         * debug/backtrace-tst.c: Likewise.
9224         * debug/pcprofiledump.c: Likewise.
9225         * elf/cache.c: Likewise.
9226         * elf/dl-cache.c: Likewise.
9227         * elf/dl-misc.c: Likewise.
9228         * elf/dl-profile.c: Likewise.
9229         * elf/dl-support.c: Likewise.
9230         * elf/ldconfig.c: Likewise.
9231         * elf/sprof.c: Likewise.
9232         * iconv/dummy-repertoire.c: Likewise.
9233         * iconv/iconv_charmap.c: Likewise.
9234         * iconv/skeleton.c: Likewise.
9235         * iconvdata/8bit-generic.c: Likewise.
9236         * iconvdata/cp737.h: Likewise.
9237         * iconvdata/cp775.h: Likewise.
9238         * iconvdata/ibm1008.h: Likewise.
9239         * iconvdata/ibm1025.h: Likewise.
9240         * iconvdata/ibm1046.h: Likewise.
9241         * iconvdata/ibm1097.h: Likewise.
9242         * iconvdata/ibm1112.h: Likewise.
9243         * iconvdata/ibm1122.h: Likewise.
9244         * iconvdata/ibm1123.h: Likewise.
9245         * iconvdata/ibm1124.h: Likewise.
9246         * iconvdata/ibm1129.h: Likewise.
9247         * iconvdata/ibm1130.h: Likewise.
9248         * iconvdata/ibm1132.h: Likewise.
9249         * iconvdata/ibm1133.h: Likewise.
9250         * iconvdata/ibm1137.h: Likewise.
9251         * iconvdata/ibm1140.h: Likewise.
9252         * iconvdata/ibm1141.h: Likewise.
9253         * iconvdata/ibm1142.h: Likewise.
9254         * iconvdata/ibm1143.h: Likewise.
9255         * iconvdata/ibm1144.h: Likewise.
9256         * iconvdata/ibm1145.h: Likewise.
9257         * iconvdata/ibm1146.h: Likewise.
9258         * iconvdata/ibm1147.h: Likewise.
9259         * iconvdata/ibm1148.h: Likewise.
9260         * iconvdata/ibm1149.h: Likewise.
9261         * iconvdata/ibm1153.h: Likewise.
9262         * iconvdata/ibm1154.h: Likewise.
9263         * iconvdata/ibm1155.h: Likewise.
9264         * iconvdata/ibm1156.h: Likewise.
9265         * iconvdata/ibm1157.h: Likewise.
9266         * iconvdata/ibm1158.h: Likewise.
9267         * iconvdata/ibm1160.h: Likewise.
9268         * iconvdata/ibm1161.h: Likewise.
9269         * iconvdata/ibm1162.h: Likewise.
9270         * iconvdata/ibm1163.h: Likewise.
9271         * iconvdata/ibm1164.h: Likewise.
9272         * iconvdata/ibm1166.h: Likewise.
9273         * iconvdata/ibm1167.h: Likewise.
9274         * iconvdata/ibm12712.h: Likewise.
9275         * iconvdata/ibm1390.h: Likewise.
9276         * iconvdata/ibm1399.h: Likewise.
9277         * iconvdata/ibm16804.h: Likewise.
9278         * iconvdata/ibm4517.h: Likewise.
9279         * iconvdata/ibm4899.h: Likewise.
9280         * iconvdata/ibm4909.h: Likewise.
9281         * iconvdata/ibm4971.h: Likewise.
9282         * iconvdata/ibm5347.h: Likewise.
9283         * iconvdata/ibm803.h: Likewise.
9284         * iconvdata/ibm856.h: Likewise.
9285         * iconvdata/ibm901.h: Likewise.
9286         * iconvdata/ibm902.h: Likewise.
9287         * iconvdata/ibm9030.h: Likewise.
9288         * iconvdata/ibm9066.h: Likewise.
9289         * iconvdata/ibm921.h: Likewise.
9290         * iconvdata/ibm922.h: Likewise.
9291         * iconvdata/ibm9448.h: Likewise.
9292         * iconvdata/isiri-3342.h: Likewise.
9293         * iconvdata/jis0201.h: Likewise.
9294         * include/link.h: Likewise.
9295         * include/netdb.h: Likewise.
9296         * inet/check_native.c: Likewise.
9297         * inet/check_pf.c: Likewise.
9298         * inet/getipv4sourcefilter.c: Likewise.
9299         * inet/getnameinfo.c: Likewise.
9300         * inet/getsourcefilter.c: Likewise.
9301         * inet/htonl.c: Likewise.
9302         * inet/setipv4sourcefilter.c: Likewise.
9303         * inet/setsourcefilter.c: Likewise.
9304         * inet/test-inet6_opt.c: Likewise.
9305         * inet/tst-network.c: Likewise.
9306         * locale/C-collate.c: Likewise.
9307         * locale/C-ctype.c: Likewise.
9308         * locale/C-time.c: Likewise.
9309         * locale/C-translit.h: Likewise.
9310         * locale/loadarchive.c: Likewise.
9311         * locale/programs/3level.h: Likewise.
9312         * locale/programs/charmap.c: Likewise.
9313         * locale/programs/charmap.h: Likewise.
9314         * locale/programs/ld-address.c: Likewise.
9315         * locale/programs/ld-collate.c: Likewise.
9316         * locale/programs/ld-ctype.c: Likewise.
9317         * locale/programs/ld-identification.c: Likewise.
9318         * locale/programs/ld-measurement.c: Likewise.
9319         * locale/programs/ld-messages.c: Likewise.
9320         * locale/programs/ld-monetary.c: Likewise.
9321         * locale/programs/ld-name.c: Likewise.
9322         * locale/programs/ld-numeric.c: Likewise.
9323         * locale/programs/ld-paper.c: Likewise.
9324         * locale/programs/ld-telephone.c: Likewise.
9325         * locale/programs/ld-time.c: Likewise.
9326         * locale/programs/linereader.c: Likewise.
9327         * locale/programs/locale.c: Likewise.
9328         * locale/programs/locarchive.c: Likewise.
9329         * locale/programs/locfile.h: Likewise.
9330         * locale/programs/repertoire.c: Likewise.
9331         * locale/programs/simple-hash.c: Likewise.
9332         * locale/programs/simple-hash.h: Likewise.
9333         * malloc/memusage.c: Likewise.
9334         * malloc/memusagestat.c: Likewise.
9335         * nis/nis_defaults.c: Likewise.
9336         * nis/nis_hash.c: Likewise.
9337         * nis/nis_print.c: Likewise.
9338         * nis/nis_xdr.c: Likewise.
9339         * nscd/connections.c: Likewise.
9340         * nscd/hstcache.c: Likewise.
9341         * nscd/nscd_gethst_r.c: Likewise.
9342         * nscd/nscd_getserv_r.c: Likewise.
9343         * nscd/nscd_helper.c: Likewise.
9344         * nscd/servicescache.c: Likewise.
9345         * nss/makedb.c: Likewise.
9346         * nss/nss_db/db-XXX.c: Likewise.
9347         * nss/nss_db/db-initgroups.c: Likewise.
9348         * nss/nss_db/db-netgrp.c: Likewise.
9349         * nss/nss_files/files-network.c: Likewise.
9350         * nss/nss_files/files-parse.c: Likewise.
9351         * posix/bug-regex5.c: Likewise.
9352         * posix/fnmatch_loop.c: Likewise.
9353         * posix/regcomp.c: Likewise.
9354         * posix/regexec.c: Likewise.
9355         * posix/tst-rfc3484-2.c: Likewise.
9356         * posix/tst-rfc3484-3.c: Likewise.
9357         * posix/tst-rfc3484.c: Likewise.
9358         * resolv/nss_dns/dns-canon.c: Likewise.
9359         * resolv/nss_dns/dns-network.c: Likewise.
9360         * resolv/res_init.c: Likewise.
9361         * resolv/res_mkquery.c: Likewise.
9362         * resolv/tst-aton.c: Likewise.
9363         * stdlib/cxa_atexit.c: Likewise.
9364         * stdlib/cxa_finalize.c: Likewise.
9365         * stdlib/gen-fpioconst.c: Likewise.
9366         * stdlib/strtol_l.c: Likewise.
9367         * string/tst-endian.c: Likewise.
9368         * sunrpc/auth_des.c: Likewise.
9369         * sunrpc/clnt_udp.c: Likewise.
9370         * sunrpc/rtime.c: Likewise.
9371         * sunrpc/svcauth_des.c: Likewise.
9372         * sunrpc/xdr.c: Likewise.
9373         * sunrpc/xdr_intXX_t.c: Likewise.
9374         * sunrpc/xdr_rec.c: Likewise.
9375         * sysdeps/generic/ldconfig.h: Likewise.
9376         * sysdeps/generic/ldsodefs.h: Likewise.
9377         * sysdeps/generic/memusage.h: Likewise.
9378         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9379         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
9380         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
9381         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9382         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9383         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9384         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9385         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9386         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9387         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
9388         * sysdeps/posix/getaddrinfo.c: Likewise.
9389         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9390         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9391         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9392         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9393         * sysdeps/powerpc/test-gettimebase.c: Likewise.
9394         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
9395         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
9396         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
9397         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
9398         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
9399         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9400         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9401         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
9402         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
9403         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
9404         * sysdeps/x86_64/dl-tls.h: Likewise.
9405         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
9406         * time/alt_digit.c: Likewise.
9407         * time/era.c: Likewise.
9408         * wcsmbs/tst-c16c32-1.c: Likewise.
9409
9410 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9411
9412         * math/libm-test.inc (struct test_sincos_data): New type.
9413         (RUN_TEST_LOOP_sincos): New macro.
9414         (sincos_test_data): New variable.
9415         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
9416
9417 2013-05-16  Richard Henderson  <rth@redhat.com>
9418
9419         * math/atest-exp2.c (LIMB64): New macro.
9420         (CONSTSZ): New macro.
9421         (mp_exp1, mp_exp_m1, mp_log2): New variables.
9422         (hexdig): Move ...
9423         (print_mpn_fp): ... to function scope.
9424         (read_mpn_hex): Remove.
9425         (get_log2): Remove.
9426         (exp2_mpn): Use mp_log2.
9427         (main): Use mp_exp1.
9428
9429 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9430
9431         * math/libm-test.inc: Remove comment about not testing "inexact"
9432         exceptions.
9433         (INEXACT_EXCEPTION): New macro.
9434         (NO_INEXACT_EXCEPTION): Likewise.
9435         (INVALID_EXCEPTION_OK): Update value.
9436         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9437         (OVERFLOW_EXCEPTION_OK): Likewise.
9438         (UNDERFLOW_EXCEPTION_OK): Likewise.
9439         (IGNORE_ZERO_INF_SIGN): Likewise.
9440         (ERRNO_UNCHANGED): Likewise.
9441         (ERRNO_EDOM): Likewise.
9442         (ERRNO_ERANGE): Likewise.
9443         (test_exceptions): Handle testing "inexact" exceptions.
9444         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
9445         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
9446         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
9447         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
9448         INEXACT_EXCEPTION.
9449         (rint_towardzero_test_data): Likewise.
9450         (rint_downward_test_data): Likewise.
9451         (rint_upward_test_data): Likewise.
9452
9453         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
9454         with OVERFLOW_EXCEPTION.
9455         (exp10_test_data): Likewise.
9456         (exp2_test_data): Likewise.
9457         (expm1_test_data): Likewise.
9458         (lgamma_test_data): Likewise.
9459         (pow_test_data): Likewise.
9460         (tgamma_test_data): Likewise.
9461         (yn_test_data): Remove duplicate test of overflow.
9462
9463         * math/libm-test.inc (struct test_cc_c_data): New type.
9464         (RUN_TEST_LOOP_cc_c): New macro.
9465         (cpow_test_data): New variable.
9466         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
9467
9468         * math/libm-test.inc (struct test_f_L_data): New type.
9469         (RUN_TEST_LOOP_f_L): New macro.
9470         (llrint_test_data): New variable.
9471         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
9472         (llrint_tonearest_test_data): New variable.
9473         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
9474         (llrint_towardzero_test_data): New variable.
9475         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
9476         (llrint_downward_test_data): New variable.
9477         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
9478         (llrint_upward_test_data): New variable.
9479         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
9480         (llround_test_data): New variable.
9481         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
9482
9483 2013-05-13  Peter Collingbourne  <pcc@google.com>
9484
9485         * math/atest-exp2.c (get_log2): Remove const attribute.
9486
9487 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9488
9489         * math/libm-test.inc (struct test_f_l_data): New type.
9490         (RUN_TEST_LOOP_f_l): New macro.
9491         (lrint_test_data): New variable.
9492         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
9493         (lrint_tonearest_test_data): New variable.
9494         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
9495         (lrint_towardzero_test_data): New variable.
9496         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
9497         (lrint_downward_test_data): New variable.
9498         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
9499         (lrint_upward_test_data): New variable.
9500         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
9501         (lround_test_data): New variable.
9502         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
9503
9504 2013-05-15  Peter Collingbourne  <pcc@google.com>
9505
9506         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
9507         (EXTRACT_WORDS64) Use where appropriate.
9508         (INSERT_WORDS64) Likewise.
9509
9510         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
9511         constraints with x constraints.
9512         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
9513
9514         * malloc/obstack.c (_obstack_compat): Add initializer.
9515
9516 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
9517
9518         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
9519         si_trapno and add si_addr_lsb to _sifields.sigfault.
9520         (si_trapno): Remove macro.
9521         (si_addr_lsb): Define new macro.
9522         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
9523
9524 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9525
9526         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
9527         instead of TEST_f_l.
9528         (llrint_test_tonearest): Likewise.
9529         (llrint_test_towardzero): Likewise.
9530         (llrint_test_downward): Likewise.
9531         (llrint_test_upward): Likewise.
9532         (llround_test): Likewise.
9533
9534         * math/libm-test.inc (struct test_f_i_data): Add comment.
9535         (RUN_TEST_LOOP_f_b): New macro.
9536         (RUN_TEST_LOOP_f_b_tg): Likewise.
9537         (finite_test_data): New variable.
9538         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
9539         (isfinite_test_data): New variable.
9540         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9541         (isinf_test_data): New variable.
9542         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9543         (isnan_test_data): New variable.
9544         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9545         (isnormal_test_data): New variable.
9546         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9547         (issignaling_test_data): New variable.
9548         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9549         (signbit_test_data): New variable.
9550         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9551
9552         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
9553         with INVALID_EXCEPTION.
9554         (acosh_test_data): Likewise.
9555         (asin_test_data): Likewise.
9556         (atanh_test_data): Likewise.
9557         (fmod_test_data): Likewise.
9558         (log_test_data): Likewise.
9559         (log10_test_data): Likewise.
9560         (log2_test_data): Likewise.
9561         (pow_test_data): Likewise.
9562         (sqrt_test_data): Likewise.
9563         (y0_test_data): Likewise.
9564         (y1_test_data): Likewise.
9565         (yn_test_data): Likewise.
9566
9567         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
9568         function contents.
9569
9570         * math/libm-test.inc (struct test_ff_i_data): New type.
9571         (RUN_TEST_LOOP_ff_i_tg): New macro.
9572         (isgreater_test_data): New variable.
9573         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9574         (isgreaterequal_test_data): New variable.
9575         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9576         (isless_test_data): New variable.
9577         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9578         (islessequal_test_data): New variable.
9579         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9580         (islessgreater_test_data): New variable.
9581         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9582         (isunordered_test_data): New variable.
9583         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9584
9585 2013-05-14  David S. Miller  <davem@davemloft.net>
9586
9587         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9588
9589 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
9590
9591         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
9592
9593         * math/libm-test.inc (struct test_fF_f1_data): Change type of
9594         extra_test to int.
9595         (struct test_f_i_data): Change type of max_ulp to int.
9596
9597         * math/libm-test.inc (test_ffI_f1_data): New type.
9598         (RUN_TEST_LOOP_ffI_f1): New macro.
9599         (remquo_test_data): New variable.
9600         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
9601
9602         * setjmp/tst-setjmp-fp.c: New file.
9603         * setjmp/Makefile (tests): Add tst-setjmp-fp.
9604         (link-libm): New variable.
9605         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
9606
9607         * math/libm-test.inc (struct test_f_i_data): New type.
9608         (RUN_TEST_LOOP_f_i): New macro.
9609         (RUN_TEST_LOOP_f_i_tg): Likewise.
9610         (fpclassify_test_data): New variable.
9611         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
9612         (ilogb_test_data): New variable.
9613         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
9614
9615         * math/libm-test.inc (scalbln_test): Correct function name in END
9616         call.
9617
9618         * math/libm-test.inc (struct test_f_f1_data): Add comment.
9619         (RUN_TEST_LOOP_fI_f1): New macro.
9620         (frexp_test_data): New variable.
9621         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
9622
9623         * math/libm-test.inc (struct test_fF_f1_data): New type.
9624         (RUN_TEST_LOOP_fF_f1): New macro.
9625         (modf_test_data): New variable.
9626         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
9627
9628         * math/libm-test.inc (struct test_f_f1_data): New type.
9629         (RUN_TEST_LOOP_f_f1): New macro.
9630         (gamma_test_data): New variable.
9631         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9632         (lgamma_test_data): New variable.
9633         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9634
9635 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
9636
9637         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
9638         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
9639         (main): Comment "tls" pseudo-hwcap.
9640
9641 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
9642
9643         * math/libm-test.inc (struct test_fl_f_data): New type.
9644         (RUN_TEST_LOOP_fl_f): New variable.
9645         (scalbln_test_data): New variable.
9646         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
9647
9648         * math/libm-test.inc (struct test_fi_f_data): New type.
9649         (RUN_TEST_LOOP_fi_f): New macro.
9650         (ldexp_test_data): New variable.
9651         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
9652         (scalbn_test_data): New variable.
9653         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
9654
9655         * math/libm-test.inc (struct test_c_f_data): New type.
9656         (RUN_TEST_LOOP_c_f): New macro.
9657         (cabs_test_data): New variable.
9658         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
9659         (carg_test_data): New variable.
9660         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
9661         (cimag_test_data): New variable.
9662         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
9663         (creal_test_data): New variable.
9664         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
9665
9666         * math/libm-test.inc (struct test_if_f_data): New type.
9667         (RUN_TEST_LOOP_if_f): New macro.
9668         (jn_test_data): New variable.
9669         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
9670         (yn_test_data): New variable.
9671         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9672
9673         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
9674
9675 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9676
9677         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
9678         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
9679
9680 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9681
9682         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9683         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
9684         (bench-deps): Add bench-timing.h.
9685         * benchtests-bench-skeleton.c: Include bench-timing.h.
9686         (main): Use TIMING_* macros instead of clock_gettime.
9687         * benchtests/bench-timing.h: New file.
9688
9689         [BZ #14582]
9690         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
9691         Renamed from _LIB_VERSION.
9692         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
9693
9694 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
9695
9696         * math/libm-test.inc (struct test_fff_f_data): New type.
9697         (RUN_TEST_LOOP_fff_f): New macro.
9698         (fma_test_data): New variable.
9699         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
9700         (fma_towardzero_test_data): New variable.
9701         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
9702         (fma_downward_test_data): New variable.
9703         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
9704         (fma_upward_test_data): New variable.
9705         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
9706
9707         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
9708         (struct test_c_c_data): New type.
9709         (RUN_TEST_LOOP_c_c): New macro.
9710         (cacos_test_data): New variable.
9711         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
9712         (cacosh_test_data): New variable.
9713         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
9714         (casin_test_data): New variable.
9715         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
9716         (casinh_test_data): New variable.
9717         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
9718         (catan_test_data): New variable.
9719         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
9720         (catanh_test_data): New variable.
9721         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
9722         (ccos_test_data): New variable.
9723         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
9724         (ccosh_test_data): New variable.
9725         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
9726         (cexp_test_data): New variable.
9727         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
9728         (clog_test_data): New variable.
9729         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
9730         (clog10_test_data): New variable.
9731         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
9732         (conj_test_data): New variable.
9733         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
9734         (cproj_test_data): New variable.
9735         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
9736         (csin_test_data): New variable.
9737         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
9738         (csinh_test_data): New variable.
9739         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
9740         (csqrt_test_data): New variable.
9741         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
9742         (ctan_test_data): New variable.
9743         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
9744         (ctan_tonearest_test_data): New variable.
9745         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9746         (ctan_towardzero_test_data): New variable.
9747         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9748         (ctan_downward_test_data): New variable.
9749         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9750         (ctan_upward_test_data): New variable.
9751         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9752         (ctanh_test_data): New variable.
9753         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
9754         (ctanh_tonearest_test_data): New variable.
9755         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9756         (ctanh_towardzero_test_data): New variable.
9757         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9758         (ctanh_downward_test_data): New variable.
9759         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9760         (ctanh_upward_test_data): New variable.
9761         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9762         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
9763         of BUILD_COMPLEX.
9764
9765         * math/libm-test.inc (struct test_ff_f_data): New type.
9766         (struct test_ff_f_data_nexttoward): Likewise.
9767         (RUN_TEST_LOOP_2_f): New macro.
9768         (RUN_TEST_LOOP_ff_f): Likewise.
9769         (atan2_test_data): New variable.
9770         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
9771         (copysign_test_data): New variable.
9772         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
9773         (fdim_test_data): New variable.
9774         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
9775         (fmax_test_data): New variable.
9776         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
9777         (fmin_test_data): New variable.
9778         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
9779         (fmod_test_data): New variable.
9780         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
9781         (hypot_test_data): New variable.
9782         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
9783         (nextafter_test_data): New variable.
9784         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
9785         (nexttoward_test_data): New variable.
9786         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
9787         (pow_test_data): New variable.
9788         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
9789         (pow_tonearest_test_data): New variable.
9790         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
9791         (pow_towardzero_test_data): New variable.
9792         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
9793         (pow_downward_test_data): New variable.
9794         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
9795         (pow_upward_test_data): New variable.
9796         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
9797         (remainder_test_data): New variable.
9798         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
9799         (scalb_test_data): New variable.
9800         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
9801         * sysdeps/i386/fpu/libm-test-ulps: Update.
9802
9803 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
9804
9805         * math/libm-test.inc (fma_test): Use max_value instead of local
9806         variable fltmax.
9807         (nextafter_test): Likewise.
9808
9809         * math/libm-test.inc (acos_towardzero_test_data): New variable.
9810         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9811         (acos_downward_test_data): New variable.
9812         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9813         (acos_upward_test_data): New variable.
9814         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9815         (acosh_test_data): New variable.
9816         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
9817         (asin_test_data): New variable.
9818         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
9819         (asin_tonearest_test_data): New variable.
9820         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9821         (asin_towardzero_test_data): New variable.
9822         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9823         (asin_downward_test_data): New variable.
9824         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9825         (asin_upward_test_data): New variable.
9826         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9827         (asinh_test_data): New variable.
9828         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
9829         (atan_test_data): New variable.
9830         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
9831         (atanh_test_data): New variable.
9832         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
9833         (cbrt_test_data): New variable.
9834         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
9835         (ceil_test_data): New variable.
9836         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
9837         (cos_test_data): New variable.
9838         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
9839         (cos_tonearest_test_data): New variable.
9840         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9841         (cos_towardzero_test_data): New variable.
9842         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9843         (cos_downward_test_data): New variable.
9844         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9845         (cos_upward_test_data): New variable.
9846         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9847         (cosh_test_data): New variable.
9848         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
9849         (cosh_tonearest_test_data): New variable.
9850         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9851         (cosh_towardzero_test_data): New variable.
9852         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9853         (cosh_downward_test_data): New variable.
9854         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9855         (cosh_upward_test_data): New variable.
9856         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9857         (erf_test_data): New variable.
9858         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
9859         (erfc_test_data): New variable.
9860         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
9861         (exp_test_data): New variable.
9862         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
9863         (exp_tonearest_test_data): New variable.
9864         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9865         (exp_towardzero_test_data): New variable.
9866         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9867         (exp_downward_test_data): New variable.
9868         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9869         (exp_upward_test_data): New variable.
9870         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9871         (exp10_test_data): New variable.
9872         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
9873         (exp2_test_data): New variable.
9874         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
9875         (expm1_test_data): New variable.
9876         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
9877         (fabs_test_data): New variable.
9878         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
9879         (floor_test_data): New variable.
9880         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
9881         (j0_test_data): New variable.
9882         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
9883         (j1_test_data): New variable.
9884         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
9885         (log_test_data): New variable.
9886         (log_test): Run tests with RUN_TEST_LOOP_f_f.
9887         (log10_test_data): New variable.
9888         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
9889         (log1p_test_data): New variable.
9890         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
9891         (log2_test_data): New variable.
9892         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
9893         (logb_test_data): New variable.
9894         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
9895         (logb_downward_test_data): New variable.
9896         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9897         (nearbyint_test_data): New variable.
9898         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
9899         (rint_test_data): New variable.
9900         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
9901         (rint_tonearest_test_data): New variable.
9902         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9903         (rint_towardzero_test_data): New variable.
9904         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9905         (rint_downward_test_data): New variable.
9906         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9907         (rint_upward_test_data): New variable.
9908         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9909         (round_test_data): New variable.
9910         (round_test): Run tests with RUN_TEST_LOOP_f_f.
9911         (sin_test_data): New variable.
9912         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
9913         (sin_tonearest_test_data): New variable.
9914         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9915         (sin_towardzero_test_data): New variable.
9916         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9917         (sin_downward_test_data): New variable.
9918         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9919         (sin_upward_test_data): New variable.
9920         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9921         (sinh_test_data): New variable.
9922         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
9923         (sinh_tonearest_test_data): New variable.
9924         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9925         (sinh_towardzero_test_data): New variable.
9926         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9927         (sinh_downward_test_data): New variable.
9928         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9929         (sinh_upward_test_data): New variable.
9930         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9931         (sqrt_test_data): New variable.
9932         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
9933         (tan_test_data): New variable.
9934         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
9935         (tan_tonearest_test_data): New variable.
9936         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9937         (tan_towardzero_test_data): New variable.
9938         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9939         (tan_downward_test_data): New variable.
9940         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9941         (tan_upward_test_data): New variable.
9942         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9943         (tanh_test_data): New variable.
9944         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
9945         (tgamma_test_data): New variable.
9946         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
9947         (trunc_test_data): New variable.
9948         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
9949         (y0_test_data): New variable.
9950         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
9951         (y1_test_data): New variable.
9952         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
9953         (significand_test_data): New variable.
9954         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
9955
9956 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
9957
9958         [BZ #12387]
9959         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
9960
9961 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9962
9963         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
9964
9965 2013-05-10  Andreas Jaeger  <aj@suse.de>
9966
9967         [BZ #15448]
9968         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
9969         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
9970
9971 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
9972
9973         * math/gen-libm-test.pl (adjust_arg): New function.
9974         (special_functions): Handle generating output in both functions
9975         and arrays.
9976         (parse_args): Likewise.
9977         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
9978         $in_func argument to parse_args.
9979         * math/libm-test.inc (struct test_f_f_data): New type.
9980         (IF_ROUND_INIT_): New macro.
9981         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
9982         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
9983         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9984         (IF_ROUND_INIT_FE_UPWARD): Likewise.
9985         (ROUND_RESTORE_): Likewise.
9986         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
9987         (ROUND_RESTORE_FE_TONEAREST): Likewise.
9988         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
9989         (ROUND_RESTORE_FE_UPWARD): Likewise.
9990         (RUN_TEST_LOOP_f_f): New macro.
9991         (acos_test_data): New variable.
9992         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
9993         (acos_tonearest_test_data): New variable.
9994         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9995
9996 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9997
9998         * benchtests/bench-skeleton.c (startup): Fix coding style.
9999
10000 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10001
10002         [BZ #6809]
10003         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
10004         negative infinity argument.
10005         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
10006         negative infinity argument.
10007         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
10008         negative infinity argument.
10009         * math/libm-test.inc (tgamma_test): Expect errno to be set for
10010         domain errors.
10011
10012 2013-05-10  Florian Weimer  <fweimer@redhat.com>
10013
10014         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
10015         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
10016         * iconv/iconv_prog.c (main): Likewise.
10017         * locale/programs/charmap-dir.c (charmap_readdir)
10018         (fopen_uncompressed): Likewise.
10019         * locale/programs/locfile.c (siblings_uncached)
10020         (write_locale_data): Use lstat64 instead of lstat.
10021         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
10022         stat.
10023
10024 2013-05-10  Andreas Jaeger  <aj@suse.de>
10025
10026         [BZ #15395]
10027         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
10028         localization.
10029         Include <locale.h>.
10030
10031 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
10032
10033         * elf/dl-close.c (_dl_close_worker): Add comments.
10034
10035 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
10036
10037         [BZ #15359]
10038         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
10039         high part of pi/2.
10040         (__ieee754_rem_pio2l): Update comments.
10041
10042         [BZ #15429]
10043         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
10044         high part of pi/2.
10045         (__ieee754_rem_pio2l): Update comments.
10046
10047         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
10048         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
10049
10050         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
10051         M_PI_4l.
10052
10053         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
10054         (M_PI_34_LOG10El): Likewise.
10055         (M_PI2_LOG10El): Likewise.
10056         (M_PI4_LOG10El): Likewise.
10057         (M_PI_LOG10El): Likewise.
10058
10059 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10060
10061         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10062
10063 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
10064
10065         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
10066         (MINUS_ZERO_INIT): Likewise.
10067         (PLUS_INFTY_INIT): Likewise.
10068         (MINUS_INFTY_INIT): Likewise.
10069         (QNAN_VALUE_INIT): Likewise.
10070         (MAX_VALUE_INIT): Likewise.
10071         (MIN_VALUE_INIT): Likewise.
10072         (MIN_SUBNORM_VALUE_INIT): Likewise.
10073         (plus_zero): Initialize with PLUS_ZERO_INIT.
10074         (minus_zero): Initialize with MINUS_ZERO_INIT.
10075         (plus_infty): Initialize with PLUS_INFTY_INIT.
10076         (minus_infty): Initialize with MINUS_INFTY_INIT.
10077         (qnan_value): Initialize with QNAN_VALUE_INIT.
10078         (max_value): Initialize with MAX_VALUE_INIT.
10079         (min_value): Initialize with MIN_VALUE_INIT.
10080         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
10081
10082         * math/libm-test.inc (RUN_TEST_if_f): New macro.
10083         (jn_test): Use TEST_if_f instead of TEST_ff_f.
10084         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
10085         (yn_test): Use TEST_if_f instead of TEST_ff_f.
10086
10087         * math/libm-test.inc (RUN_TEST_f_f): New macro.
10088         (RUN_TEST_2_f): Likewise.
10089         (RUN_TEST_ff_f): Likewise.
10090         (RUN_TEST_fi_f): Likewise.
10091         (RUN_TEST_fl_f): Likewise.
10092         (RUN_TEST_fff_f): Likewise.
10093         (RUN_TEST_c_f): Likewise.
10094         (RUN_TEST_f_f1): Likewise.
10095         (RUN_TEST_fF_f1): Likewise.
10096         (RUN_TEST_fI_f1): Likewise.
10097         (RUN_TEST_ffI_f1): Likewise.
10098         (RUN_TEST_c_c): Likewise.
10099         (RUN_TEST_cc_c): Likewise.
10100         (RUN_TEST_f_i): Likewise.
10101         (RUN_TEST_f_i_tg): Likewise.
10102         (RUN_TEST_ff_i_tg): Likewise.
10103         (RUN_TEST_f_b): Likewise.
10104         (RUN_TEST_f_b_tg): Likewise.
10105         (RUN_TEST_f_l): Likewise.
10106         (RUN_TEST_f_L): Likewise.
10107         (RUN_TEST_sincos): Likewise.
10108         * math/gen-libm-test.pl (new_test): Take new argument to indicate
10109         whether to show exceptions.  Do not include ");\n" in return
10110         value.
10111         (special_functions): Output call to RUN_TEST_sincos instead of
10112         check_float calls.  Update calls to new_test.
10113         (parse_args): Output call to single RUN_TEST_* macro instead of
10114         check_* calls and other assignments.  Update calls to new_test.
10115
10116         [BZ #2546]
10117         [BZ #2560]
10118         [BZ #5159]
10119         [BZ #15426]
10120         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
10121         input to result for tgamma overflow.
10122         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
10123         (gamma_coeff): New variable.
10124         (NCOEFF): New macro.
10125         (gamma_positive): New function.
10126         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
10127         underflow here.  Use gamma_positive instead of exp (lgamma) for
10128         other arguments.
10129         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
10130         (gamma_coeff): New variable.
10131         (NCOEFF): New macro.
10132         (gammaf_positive): New function.
10133         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
10134         underflow here.  Use gamma_positive instead of exp (lgamma) for
10135         other arguments.
10136         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
10137         (gamma_coeff): New variable.
10138         (NCOEFF): New macro.
10139         (gammal_positive): New function.
10140         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
10141         underflow here.  Use gamma_positive instead of exp (lgamma) for
10142         other arguments.
10143         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
10144         (gamma_coeff): New variable.
10145         (NCOEFF): New macro.
10146         (gammal_positive): New function.
10147         (__ieee754_gammal_r): Handle positive infinity, overflow and
10148         underflow here.  Handle NaN the same as positive infinity.  Remove
10149         check x < 0xffffffff for negative integers.  Use gamma_positive
10150         instead of exp (lgamma) for other arguments.
10151         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
10152         (gamma_coeff): New variable.
10153         (NCOEFF): New macro.
10154         (gammal_positive): New function.
10155         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
10156         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
10157         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10158         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
10159         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
10160         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10161         * sysdeps/generic/math_private.h (__gamma_productf): New
10162         prototype.
10163         (__gamma_product): Likewise.
10164         (__gamma_productl): Likewise.
10165         * math/Makefile (libm-calls): Add gamma_product.
10166         * math/libm-test.inc (tgamma_test): Add more tests.
10167         * sysdeps/i386/fpu/libm-test-ulps: Update.
10168         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10169
10170 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
10171
10172         * benchtests/bench-skeleton.c (main): Preheat CPU.
10173
10174 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
10175
10176         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
10177
10178 2013-05-07  Roland McGrath  <roland@hack.frob.com>
10179
10180         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
10181         and _dl_skip_args_internal.
10182
10183 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
10184
10185         * manual/message.texi (Message Translation): Talk about users.
10186         Message to key mapping impacts design.
10187
10188 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10189
10190         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
10191
10192         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
10193
10194         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
10195         * sysdeps/wordsize-64/glob64.c: ... here.
10196
10197         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
10198         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
10199         New macros.
10200
10201         * debug/getlogin_r_chk.c: Moved to ...
10202         * login/getlogin_r_chk.c: ... here.
10203         * debug/Makefile (routines): Move getlogin_r_chk to ...
10204         * login/Makefile (routines): ... here.
10205         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
10206         * login/Versions (libc: GLIBC_2.4): ... here.
10207
10208         * io/poll.c (__poll): Renamed from poll.
10209         Add libc_hidden_def.
10210         (poll): Define as weak alias.
10211
10212         * debug/ptsname_r_chk.c: Moved to ...
10213         * login/ptsname_r_chk.c: ... here.
10214         * debug/Makefile (routines): Move ptsname_r_chk to ...
10215         * login/Makefile (routines): ... here.
10216         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
10217         * login/Versions (libc: GLIBC_2.4): ... here.
10218
10219         * posix/getlogin.c: Moved to ...
10220         * login/getlogin.c: ... here.
10221         * posix/getlogin_r.c: Moved to ...
10222         * login/getlogin_r.c: ... here.
10223         * posix/getlogin_r.c: Moved to ...
10224         * login/getlogin_r.c: ... here.
10225         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
10226         * login/Makefile (routines): ... here.
10227         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
10228         * login/Versions (libc: GLIBC_2.0): ... here.
10229
10230         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
10231         (setrlimit): Define as weak alias.
10232
10233         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
10234         Call __ names for open, ftruncate, and close.
10235         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
10236         (truncate): Define as weak alias.
10237
10238 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
10239
10240         * math/gen-libm-test.pl (parse_args): Initialize x before each
10241         test of frexp, modf and remquo.
10242
10243         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
10244         test signgam value.
10245
10246 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10247
10248         [BZ #15418]
10249         [BZ #15419]
10250         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
10251         internal tests.
10252         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10253
10254 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10255
10256         * elf/dl-writev.h: New file.
10257         * elf/dl-misc.c: Include it.
10258         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
10259         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
10260
10261 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
10262
10263         * math/libm-test.inc (noXFails): Remove variable.
10264         (noXPasses): Likewise.
10265         (BUILD_COMPLEX_INT): Remove macro.
10266         (print_screen): Remove xfail argument.
10267         (print_screen_max_error): Likewise.
10268         (update_stats): Likewise.
10269         (print_max_error): Likewise.  Update calls to other affected
10270         functions.
10271         (print_complex_max_error): Likewise.
10272         (test_single_exception): Update calls to print_screen.
10273         (test_single_errno): Likewise.
10274         (check_float_internal): Remove xfail argument.  Update calls to
10275         other affected functions.
10276         (check_float): Likewise.
10277         (check_complex): Likewise.
10278         (check_int): Likewise.
10279         (check_long): Likewise.
10280         (check_bool): Likewise.
10281         (check_longlong): Likewise.
10282         (main): Don't print noXFails and noXPasses.
10283         * math/gen-libm-test.pl (top level): Don't mention expected
10284         failure handling in comment.
10285         (new_test): Don't handle expected failures.
10286         (parse_args): Don't mention expected failure handling in comment.
10287         (generate_testfile): Don't handle expected failures.
10288         (parse_ulps): Likewise.
10289         (print_ulps_file): Likewise.
10290         (get_failure): Remove function.
10291         (output_test): Don't handle expected failures.
10292         * make/README.libm-test: Don't mention expected failure handling.
10293
10294         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
10295         (minus_zero): Likewise.
10296         (plus_infty): Likewise.
10297         (minus_infty): Likewise.
10298         (qnan_value): Likewise.
10299         (max_value): Likewise.
10300         (min_value): Likewise.
10301         (min_subnorm_value): Likewise.
10302         (initialize): Do not initialize those variables dynamically.
10303
10304 2013-05-03  Roland McGrath  <roland@hack.frob.com>
10305
10306         * io/open.c (__open_2): Moved to ...
10307         * io/open_2.c: ... this new file.
10308         * io/open64.c (__open64_2): Moved to ...
10309         * io/open64_2.c: ... this new file.
10310         * io/openat.c (__openat_2): Moved to ...
10311         * io/openat_2.c: ... this new file.
10312         * io/openat64.c (__openat64_2): Moved to ...
10313         * io/openat64_2.c: ... this new file.
10314         * io/Makefile (routines): Add them.
10315         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
10316         * sysdeps/unix/sysv/linux/open_2.c: File removed.
10317         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
10318         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
10319         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
10320         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
10321         (__openat64): Add hidden_ver.
10322         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
10323         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
10324
10325         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10326         Separately conditionalize setting of GLRO(dl_sysinfo) so
10327         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
10328         as well, but the actual setting is only under [NEED_DL_SYSINFO].
10329
10330 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10331
10332         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
10333         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
10334         definition.
10335         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
10336         * sysdeps/unix/sysv/linux/powerpc/init-first.c
10337         (_libc_vdso_platform_setup): Add __vdso_time initialization.
10338         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
10339         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
10340
10341 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
10342
10343         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
10344         test signgam value.
10345
10346         * math/libm-test.inc (hypot_test): Do not use
10347         IGNORE_ZERO_INF_SIGN.
10348
10349 2013-05-03  Andreas Jaeger  <aj@suse.de>
10350
10351         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
10352         Linux 3.9.
10353         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
10354         (PF_MAX): Adjust for VSOCK change.
10355
10356 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10357
10358         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10359
10360 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
10361
10362         [BZ #15264]
10363         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
10364         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
10365         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
10366
10367 2013-05-02  David S. Miller  <davem@davemloft.net>
10368
10369         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10370
10371 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
10372
10373         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
10374
10375 2013-05-01  Roland McGrath  <roland@hack.frob.com>
10376
10377         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
10378
10379 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
10380
10381         [BZ #14952]
10382         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
10383         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10384         Use __attribute__ ((__gnu_inline__)).
10385         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10386         Don't use __attribute__ ((__gnu_inline__)).
10387
10388 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
10389
10390         [BZ #15423]
10391         * math/s_catan.c (__catan): Handle small real or imaginary part of
10392         input specially to avoid spurious underflow.
10393         * math/s_catanf.c (__catanf): Likewise.
10394         * math/s_catanh.c (__catanh): Likewise.
10395         * math/s_catanhf.c (__catanhf): Likewise.
10396         * math/s_catanhl.c (__catanhl): Likewise.
10397         * math/s_catanl.c (__catanl): Likewise.
10398         * math/libm-test.inc (catan_test): Add more tests.
10399         (catanh_test): Likewise.
10400         * sysdeps/i386/fpu/libm-test-ulps: Update.
10401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10402
10403 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10404
10405         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10406
10407 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
10408
10409         [BZ #15416]
10410         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
10411         accurately for denominator in atan2.
10412         * math/s_catanf.c (__catanf): Likewise.
10413         * math/s_catanh.c (__catanh): Likewise.
10414         * math/s_catanhf.c (__catanhf): Likewise.
10415         * math/s_catanhl.c (__catanhl): Likewise.
10416         * math/s_catanl.c (__catanl): Likewise.
10417         * math/libm-test.inc (catan_test): Add more tests.
10418         (catanh_test): Likewise.
10419         * sysdeps/i386/fpu/libm-test-ulps: Update.
10420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10421
10422 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10423
10424         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
10425
10426         * benchtests/Makefile (bench): Remove slow benchmarks.
10427         * benchtests/atan-inputs: Add slow benchmark inputs.
10428         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
10429         (BENCH_FUNC): Accept variant offset.
10430         (VARIANT): Define.
10431         * benchtests/bench-skeleton.c (main): Run benchmark for each
10432         variant.
10433         * benchtests/cos-inputs: Add slow benchmark inputs.
10434         * benchtests/exp-inputs: Likewise.
10435         * benchtests/pow-inputs: Likewise.
10436         * benchtests/sin-inputs: Likewise.
10437         * benchtests/slowatan-inputs: Remove.
10438         * benchtests/slowatan.c: Remove.
10439         * benchtests/slowcos-inputs: Remove.
10440         * benchtests/slowcos.c: Remove.
10441         * benchtests/slowexp-inputs: Remove.
10442         * benchtests/slowexp.c: Remove.
10443         * benchtests/slowpow-inputs: Remove.
10444         * benchtests/slowpow.c: Remove.
10445         * benchtests/slowsin-inputs: Remove.
10446         * benchtests/slowsin.c: Remove.
10447         * benchtests/slowtan-inputs: Remove.
10448         * benchtests/slowtan.c: Remove.
10449         * benchtests/tan-inputs: Add slow benchmark inputs.
10450         * scripts/bench.pl: Parse comments and directives.
10451
10452         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
10453         in CPPFLAGS.
10454         ($(objpfx)bench-%.c): Remove *-ITER.
10455         * benchtests/bench-modf.c: Remove definition of ITER.
10456         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
10457         (main): Loop for DURATION seconds instead of fixed number of
10458         iterations.
10459         * scripts/bench.pl: Don't expect iterations in parameters.
10460
10461 2013-04-29  Roland McGrath  <roland@hack.frob.com>
10462
10463         * io/fchdir.c (__fchdir): Renamed from fchdir.
10464         (fchdir): Define as weak alias.
10465
10466 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10467
10468         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
10469         (ERRNO_EDOM): Likewise.
10470         (ERRNO_ERANGE): Likewise.
10471         (noErrnoTests): New variable.
10472         (init_max_error): Set errno to 0.
10473         (test_single_errno): New function.
10474         (test_errno): Likewise.
10475         (check_float_internal): Call test_errno.  Set errno to 0.
10476         (check_complex): Refer to errno tests in comment.
10477         (check_int): Call test_errno.  Set errno to 0.
10478         (check_long): Likewise.
10479         (check_bool): Likewise.
10480         (check_longlong): Likewise.
10481         (cos_test): Use ERRNO_* flags for errno tests instead of
10482         check_int.
10483         (expm1_test): Likewise.
10484         (fmod_test): Likewise.
10485         (ilogb_test): Likewise.
10486         (lgamma_test): Likewise.
10487         (pow_test): Likewise.
10488         (remainder_test): Likewise.
10489         (sin_test): Likewise.
10490         (tan_test): Likewise.
10491         (yn_test): Likewise.
10492         (initialize): Set errno to 0.
10493         (main): Print number of errno tests.
10494         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
10495
10496 2013-04-29  Andreas Jaeger  <aj@suse.de>
10497
10498         [BZ #15084]
10499         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
10500         and RES_USEVC.
10501
10502         [BZ #15085]
10503         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
10504         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
10505         unimplemented.
10506
10507         [BZ #15380]
10508         * stdlib/random.c (__initstate): Return NULL if
10509         __initstate fails.
10510
10511         [BZ #15086]
10512         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
10513         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
10514         RES_SNGLKUPREOP.
10515
10516 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10517
10518         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10519
10520 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10521
10522         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
10523         of individual tests.
10524         (casin_test): Likewise.
10525         (casinh_test): Likewise.
10526
10527 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
10528
10529         [BZ #15409]
10530         * math/s_catan.c (__catan): Handle arguments with large real or
10531         imaginary part separately without squaring.
10532         * math/s_catanf.c (__catanf): Likewise.
10533         * math/s_catanh.c (__catanh): Likewise.
10534         * math/s_catanhf.c (__catanhf): Likewise.
10535         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10536         and redefine.
10537         (__catanhl): Handle arguments with large real or imaginary part
10538         separately without squaring.
10539         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10540         and redefine.
10541         (__catanl): Handle arguments with large real or imaginary part
10542         separately without squaring.
10543         * math/libm-test.inc (catan_test): Add more tests.
10544         (catanh_test): Likewise.
10545         * sysdeps/i386/fpu/libm-test-ulps: Update.
10546         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10547
10548 2013-04-27  Andreas Jaeger  <aj@suse.de>
10549
10550         [BZ #15007]
10551         * stdlib/stdlib.h: Update guards for qecvt.
10552         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
10553         <stdlib.h>.
10554
10555 2013-04-27  Allan McRae  <allan@archlinux.org>
10556
10557         * sysdeps/i386/fpu/libm-test-ulps: Update.
10558
10559 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
10560
10561         [BZ #15406]
10562         * math/s_catan.c: Include <float.h>.
10563         (__catan): Ensure underflow exception occurs for underflowed
10564         result.
10565         * math/s_catanf.c: Include <float.h>.
10566         (__catanf): Ensure underflow exception occurs for underflowed
10567         result.
10568         * math/s_catanh.c: Include <float.h>.
10569         (__catanh): Ensure underflow exception occurs for underflowed
10570         result.
10571         * math/s_catanhf.c: Include <float.h>.
10572         (__catanhf): Ensure underflow exception occurs for underflowed
10573         result.
10574         * math/s_catanhl.c: Include <float.h>.
10575         (__catanhl): Ensure underflow exception occurs for underflowed
10576         result.
10577         * math/s_catanl.c: Include <float.h>.
10578         (__catanl): Ensure underflow exception occurs for underflowed
10579         result.
10580         * math/libm-test.inc (catan_test): Add more tests.
10581         (catanh_test): Likewise.
10582
10583         [BZ #15405]
10584         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
10585         underflowed result.
10586         * math/s_ccoshf.c (__ccoshf): Likewise.
10587         * math/s_ccoshl.c (__ccoshl): Likewise.
10588         * math/s_csin.c (__csin): Likewise.
10589         * math/s_csinf.c (__csinf): Likewise.
10590         * math/s_csinh.c (__csinh): Likewise.
10591         * math/s_csinhf.c (__csinhf): Likewise.
10592         * math/s_csinhl.c (__csinhl): Likewise.
10593         * math/s_csinl.c (__csinl): Likewise.
10594         * math/libm-test.inc (ccos_test): Add more tests.
10595         (ccosh_test): Likewise.
10596         (csin_test): Likewise.
10597         (csinh_test): Likewise.
10598
10599 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10600
10601         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
10602         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
10603         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
10604         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
10605         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
10606         powerpc/power5+/fpu folders.
10607         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
10608
10609
10610 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10611
10612         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10613
10614 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
10615
10616         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
10617         additions to variable.
10618         [$(config-machine) = x86_64] (modules-names): Likewise.
10619         ($(objpfx)tst-audit3): Remove dependency.
10620         ($(objpfx)tst-audit3.out): Likewise.
10621         ($(objpfx)tst-audit4): Likewise.
10622         ($(objpfx)tst-audit4.out): Likewise.
10623         ($(objpfx)tst-audit5): Likewise.
10624         ($(objpfx)tst-audit5.out): Likewise.
10625         ($(objpfx)tst-audit6): Likewise.
10626         ($(objpfx)tst-audit6.out): Likewise.
10627         ($(objpfx)tst-audit7): Likewise.
10628         ($(objpfx)tst-audit7.out): Likewise.
10629         (tst-audit3-ENV): Remove variable.
10630         (tst-audit4-ENV): Likewise.
10631         (tst-audit5-ENV): Likewise.
10632         (tst-audit6-ENV): Likewise.
10633         (tst-audit7-ENV): Likewise.
10634         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
10635         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
10636         addition to variable.
10637         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
10638         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
10639         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
10640         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
10641         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
10642         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
10643         tst-audit3, tst-audit4 and tst-audit5.
10644         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
10645         tst-audit6 and tst-audit7.
10646         [$(subdir) = elf] (modules-names): Add audit modules for those
10647         tests.
10648         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
10649         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
10650         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
10651         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
10652         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
10653         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
10654         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
10655         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
10656         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
10657         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
10658         [$(subdir) = elf] (tst-audit3-ENV): New variable.
10659         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
10660         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
10661         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
10662         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
10663         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
10664         Likewise.
10665         [$(subdir) = elf && $(config-cflags-avx) = yes]
10666         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
10667         [$(subdir) = elf && $(config-cflags-avx) = yes]
10668         (CFLAGS-tst-auditmod4a.c): Likewise.
10669         [$(subdir) = elf && $(config-cflags-avx) = yes]
10670         (CFLAGS-tst-auditmod4b.c): Likewise.
10671         [$(subdir) = elf && $(config-cflags-avx) = yes]
10672         (CFLAGS-tst-auditmod6b.c): Likewise.
10673         [$(subdir) = elf && $(config-cflags-avx) = yes]
10674         (CFLAGS-tst-auditmod6c.c): Likewise.
10675         [$(subdir) = elf && $(config-cflags-avx) = yes]
10676         (CFLAGS-tst-auditmod7b.c): Likewise.
10677         * elf/tst-audit3.c: Move to ...
10678         * sysdeps/x86_64/tst-audit3.c: ... here.
10679         * elf/tst-audit4.c: Move to ...
10680         * sysdeps/x86_64/tst-audit4.c: ... here.
10681         * elf/tst-audit5.c: Move to ...
10682         * sysdeps/x86_64/tst-audit5.c: ... here.
10683         * elf/tst-audit6.c: Move to ...
10684         * sysdeps/x86_64/tst-audit6.c: ... here.
10685         * elf/tst-audit7.c: Move to ...
10686         * sysdeps/x86_64/tst-audit7.c: ... here.
10687         * elf/tst-auditmod3a.c: Move to ...
10688         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
10689         * elf/tst-auditmod3b.c: Move to ...
10690         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
10691         * elf/tst-auditmod4a.c: Move to ...
10692         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
10693         * elf/tst-auditmod4b.c: Move to ...
10694         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
10695         * elf/tst-auditmod5a.c: Move to ...
10696         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
10697         * elf/tst-auditmod5b.c: Move to ...
10698         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
10699         * elf/tst-auditmod6a.c: Move to ...
10700         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
10701         * elf/tst-auditmod6b.c: Move to ...
10702         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
10703         * elf/tst-auditmod6c.c: Move to ...
10704         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
10705         * elf/tst-auditmod7a.c: Move to ...
10706         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
10707         * elf/tst-auditmod7b.c: Move to ...
10708         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
10709
10710 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10711
10712         [BZ #15366]
10713         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
10714         define unconditionally.
10715         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
10716         define unconditionally.
10717         (INT8_C, INT16_C, etc.): Likewise.
10718
10719 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
10720
10721         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
10722         __ehdr_start with hidden visibility.
10723
10724         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
10725
10726 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
10727
10728         * math/libm-test.inc (cos_test): Use accurate hex constants.
10729         (sincost_test): Likewise.
10730
10731 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
10732
10733         * math/libm-test.inc (catan_test): Add more tests.
10734         (catanh_test): Likewise.
10735
10736         * math/s_catanf.c (__catanf): Use suffixed floating-point
10737         constants.
10738         * math/s_catanhf.c (__catanhf): Likewise.
10739         * math/s_catanhl.c (__catanhl): Likewise.
10740         * math/s_catanl.c (__catanl): Likewise.
10741
10742         [BZ #15394]
10743         * math/s_catan.c (__catan): Calculate imaginary part of result
10744         with log1p not log unless computing log of number close to 0.
10745         * math/s_catanf.c (__catanf): Likewise.
10746         * math/s_catanl.c (__catanl): Likewise.
10747         * math/s_catanh.c (__catanh): Calculate real part of result with
10748         log1p not log unless computing log of number close to 0.
10749         * math/s_catanhf.c (__catanhf): Likewise.
10750         * math/s_catanhl.c (__catanhl): Likewise.
10751         * math/libm-test.inc (catan_test): Add more tests.
10752         (catanh_test): Likewise.
10753         * sysdeps/i386/fpu/libm-test-ulps: Update.
10754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10755
10756 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10757
10758         * benchtests/Makefile: Mention files in which fast and slow
10759         paths of math functions are implemented.
10760
10761 2013-04-23  Roland McGrath  <roland@hack.frob.com>
10762
10763         * sysdeps/posix/timespec_get.c: New file.
10764
10765 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10766
10767         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
10768         POWER.
10769         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
10770         for POWER.
10771         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
10772         powerpc/power5/fpu folders.
10773         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
10774         * benchtests/Makefile: Add modf testcase.
10775         * benchtests/bench-modf.c: New file: Benchmark test for mo
10776
10777 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
10778
10779         [BZ #14888]
10780         * time/Makefile (tests): Add tst-strptime-whitespace.
10781         * time/strptime_l.c (get_number): Use ISSPACE.
10782         (__strptime_internal): Likewise.
10783         * time/tst-strptime-whitespace.c: New test case.
10784
10785 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
10786
10787         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
10788         member.
10789         (_nss_files_init): Set it here.
10790
10791 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
10792
10793         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
10794         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
10795         unsigned.
10796
10797 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
10798
10799         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
10800
10801 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10802
10803         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
10804         size just once.
10805
10806 2013-04-21  David S. Miller  <davem@davemloft.net>
10807
10808         * po/ru.po: Update Russion translation from translation project.
10809
10810 2013-04-17  Adam Conrad  <adconrad@0c3.net>
10811
10812         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
10813         and setfsgid.
10814
10815 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
10816
10817         * configure.in: Remove i386 configure warning. Remove i386 case.
10818         * configure: Regenerate.
10819         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
10820         Add example to error message.
10821         * sysdeps/i386/configure: Regenerate.
10822
10823 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10824
10825         * benchtests/Makefile (bench): Add cos, tan, slowcos and
10826         slowtan.
10827         * benchtests/cos-inputs: New file.
10828         * benchtests/slowcos-inputs: New file.
10829         * benchtests/slowcos.c: New file.
10830         * benchtests/slowtan-inputs: New file.
10831         * benchtests/slowtan.c: New file.
10832         * benchtests/tan-inputs: New file.
10833
10834 2013-04-16  Roland McGrath  <roland@hack.frob.com>
10835
10836         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
10837         considered kosher.
10838
10839 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10840
10841         * benchtests/Makefile: Include cppflags-iterator.mk to add
10842         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
10843
10844         * Makefile.in (bench-clean): New target.
10845         * benchtests/Makefile (bench-clean): Likewise.
10846
10847 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
10848
10849         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
10850
10851 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10852
10853         * stdio-common/tstdiomisc.c: Fix coding-style violation.
10854
10855 2013-04-15  Andreas Schwab  <schwab@suse.de>
10856
10857         * nscd/grpcache.c (cache_addgr): Properly check for short write.
10858         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10859         * nscd/pwdcache.c (cache_addpw): Likewise.
10860         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
10861         more than recsize.
10862
10863 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10864
10865         * benchtests/Makefile (bench): Write all output to
10866         bench-out.tmp together.
10867
10868 2013-04-15  Andreas Schwab  <schwab@suse.de>
10869
10870         * nscd/nscd.c (main): Don't fork again after closing files.
10871
10872 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10873
10874         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
10875
10876         * benchtests/Rules (bench-deps): Collect dependencies into a
10877         single variable.  Add Makefile to dependencies.
10878         ($(objpfx)bench-%.c): Depend on bench-deps.
10879
10880 2013-04-12  Roland McGrath  <roland@hack.frob.com>
10881             Xavier Roche  <roche+kml2@exalead.com>
10882
10883         [BZ #15361]
10884         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
10885         just that it's a file descriptor.
10886         * manual/llio.texi (Synchronizing AIO Operations): Update description
10887         for EBADF error from aio_fsync.
10888
10889 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10890
10891         * Rules (bench): Move target definition...
10892         * benchtests/Makefile: ... here.
10893
10894 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
10895
10896         * math/libm-test.inc (cos_test): Fix PI/2 test.
10897         (sincos_test): Likewise.
10898         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
10899         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
10900
10901 2013-04-11  Andreas Schwab  <schwab@suse.de>
10902
10903         [BZ #13988]
10904         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
10905         accept exponent character only when digits were seen.
10906         * stdio-common/Makefile (tests): Add bug26.
10907         * stdio-common/bug26.c: New file.
10908
10909         [BZ #14293]
10910         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
10911         non-freeable.
10912
10913 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10914
10915         * Makeconfig (rtld-prefix): Define built linker prefix.
10916         * Rules (run-bench): Use it.
10917         * math/Makefile (run-regen-ulps): Likewise.
10918
10919         * Rules (bench): Remove eval.
10920
10921 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10922             Roland McGrath  <roland@hack.frob.com>
10923             Ondrej Bilka  <neleai@seznam.cz>
10924
10925         [BZ #15346]
10926         * time/getdate.c: Include ctype.h and alloca.h.
10927         (__getdate_r): Trim leading and trailing spaces of input.
10928         * time/tst-getdate.c (tests): Add tests with leading and
10929         trailing spaces.
10930
10931 2013-04-08  Roland McGrath  <roland@hack.frob.com>
10932
10933         [BZ #14280]
10934         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
10935         when computing value.
10936
10937 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10938
10939         * math/README.libm-test (How can I generate "libm-test-ulps"?):
10940         Use testrun.sh to run libm tests.
10941
10942         [BZ #15309]
10943         * elf/dl-open.c (dl_open_worker): memset all of seen array.
10944
10945 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
10946
10947         [BZ #15264]
10948         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
10949
10950 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10951
10952         * Makefile.in (regen-ulps): New target.
10953         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
10954         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
10955         [ifneq (no,$(PERL)] (regen-ulps): New target.
10956         [ifeq (no,$(PERL)] (regen-ulps): New target.
10957         * math/libm-test.inc (ulps_file_name): Define.
10958         (output_dir): New variable.
10959         (options): Add "output-dir" option.
10960         (parse_opt): Handle 'o' case.
10961         (main): If output_dir is non-NULL use it as a prefix
10962         otherwise use "".
10963         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
10964
10965 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10966
10967         [BZ #10060, #10062]
10968         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
10969         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
10970         fail configure if __sync_val_compare_and_swap is not inlined.
10971         * sysdeps/i386/configure: Regenerate.
10972         * configure.in: Build for i686 when configured for i386.
10973         * configure: Regenerate.
10974         * README: Remove i386 reference.
10975
10976 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10977
10978         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
10979         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10980
10981 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10982
10983         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
10984         (lmsnanval): New variables.
10985         (F): Add conversion tests.
10986         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
10987         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
10988
10989         * stdio-common/tstdiomisc.c (F): Properly collect individual
10990         tests' results.
10991
10992         [BZ #14686, #15336]
10993         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
10994         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
10995         Instead, use input NaN values or generate a qNaN by arithmetic
10996         operation.  Also fix bugs to comply with the standard.
10997         * math/libm-test.inc (remainder_test): Add more tests.
10998
10999         [BZ #15335, #15342]
11000         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
11001         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
11002         input NaN values or generate a qNaN by arithmetic operation.
11003
11004         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
11005         unreachable code.
11006
11007         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
11008         definitions.
11009
11010 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
11011
11012         [BZ #14478]
11013         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
11014         underflowed result.
11015         * math/s_cexpf.c (__cexpf): Likewise.
11016         * math/s_cexpl.c (__cexpl): Likewise.
11017         * math/libm-test.inc (cexp_test): Add more tests.
11018
11019 2013-04-03  Andreas Schwab  <schwab@suse.de>
11020
11021         [BZ #15330]
11022         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
11023         order arrays from heap if bigger than alloca cutoff.
11024
11025 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
11026
11027         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
11028         (SNAN_TESTS_double): Refer to GCC PR56831.
11029         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
11030         GCC PR56828.
11031
11032 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11033
11034         * Rules (bench): Move bench.out after the run is complete.
11035
11036         * Rules (bench): Echo currently running benchmark.
11037
11038         * benchtests/Makefile (bench): Add atan and slowatan.
11039         * benchtests/atan-inputs: New file.
11040         * benchtests/slowatan-inputs: New file.
11041         * benchtests/slowatan.c: New file.
11042
11043         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
11044         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
11045         its value.
11046
11047         [BZ #15305]
11048         * sysdeps/unix/sysv/linux/kernel-features.h
11049         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
11050         __ASSUME_XFS_RESTRICTED_CHOWN.
11051         * sysdeps/unix/sysv/linux/pathconf.c
11052         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
11053         Save and restore errno.
11054
11055 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
11056
11057         [BZ #15327]
11058         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
11059         arguments using __kernel_casinh.
11060         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
11061         arguments using __kernel_casinhf.
11062         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
11063         arguments using __kernel_casinhl.
11064         * math/libm-test.inc (cacosh_test): Add more tests.
11065         * sysdeps/i386/fpu/libm-test-ulps: Update.
11066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11067
11068 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11069
11070         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
11071         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
11072
11073         * bench/Makefile (bench): Add sin and slowsin.
11074         * benchtests/sin-inputs: New file.
11075         * benchtests/slowsin-inputs: New file.
11076         * benchtests/slowsin.c: New file.
11077
11078         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
11079         (bench): Add slowexp and slowpow.
11080         (exp-ITER): Increase iterations.
11081         (pow-ITER): Likewise.
11082         * benchtests/exp-inputs: Change input.
11083         * benchtests/pow-inputs: Likewise.
11084         * benchtests/slowexp-inputs: New file.
11085         * benchtests/slowexp.c: New file.
11086         * benchtests/slowpow-inputs: New file.
11087         * benchtests/slowpow.c: New file.
11088
11089 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11090
11091         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
11092         instructions.
11093         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11094         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
11095         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11096         * benchtests/Makefile: Add rint benchtest.
11097         * benchtests/rint-inputs: Input for rint benchtest.
11098
11099 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11100
11101         * Versions.def (libm): Add GLIBC_2.18.
11102         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
11103         hidden libm prototypes.
11104         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
11105         * math/Makefile (libm-calls): Add s_issignaling.
11106         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
11107         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
11108         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
11109         declaration.
11110         * math/math.h [__USE_GNU] (issignaling): New macro.
11111         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
11112         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
11113         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
11114         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
11115         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11116         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
11117         * manual/arith.texi (issignaling): New section.
11118         * manual/libm-err-tab.pl (@all_functions): Update comment.
11119         * math/gen-libm-test.pl (parse_args): Apply special handling for
11120         issignaling.
11121         * math/libm-test.inc (print_float, issignaling_test): New
11122         functions.
11123         (check_float_internal): Add issignaling checks.
11124         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
11125         default definition.
11126         * sysdeps/powerpc/math-tests.h: New file.
11127         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
11128         tests.
11129         * math/test-snan.c (TEST_FUNC): Likewise.
11130
11131 2013-03-30  David S. Miller  <davem@davemloft.net>
11132
11133         * po/de.po: Update from translation team.
11134
11135 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
11136
11137         [BZ #10357]
11138         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11139         imaginary part less than 1.0 and real part less than 0.5
11140         specially.
11141         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11142         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11143         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
11144         (cacos_test): Add more tests.
11145         (casin_test): Likewise.
11146         (casinh_test): Likewise.
11147         * sysdeps/i386/fpu/libm-test-ulps: Update.
11148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11149
11150 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11151
11152         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
11153         ONE with its value.
11154
11155         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
11156         (__pow_mp): Replace ONE and MONE with their values.
11157         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11158         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
11159         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11160         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
11161         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11162         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11163
11164         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
11165
11166         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
11167         (__pow_mp): Replace ZERO and MZERO with their values.
11168         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11169         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11170         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11171         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11172         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11173         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
11174         (__sqr): Likewise.
11175
11176         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
11177
11178         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
11179
11180 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11181
11182         * include/stdlib.h [!SHARED] (__call_tls_dtors):
11183         Declare with __attribute__ ((weak)).
11184         * stdlib/exit.c (__libc_atexit) [!SHARED]:
11185         Call __call_tls_dtors only if it's not NULL.
11186
11187 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11188
11189         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
11190         didn't do it already, then set _dl_phdr and _dl_phnum based on the
11191         magic __ehdr_start linker symbol if it's defined.
11192         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
11193         them up here if it was already done.
11194
11195         * elf/dl-support.c (_dl_phdr): Make pointer to const.
11196         (_dl_aux_init): Use const in cast when setting it.
11197         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
11198         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
11199         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
11200
11201         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
11202         Declare them here.
11203         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
11204         * csu/libc-tls.c: Nor here.
11205         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
11206
11207         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
11208         (__libc_message): Never call vsyslog.
11209
11210 2013-03-28  Alan Modra  <amodra@gmail.com>
11211
11212         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
11213         Define as empty.
11214         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
11215         Likewise.
11216
11217 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11218
11219         [BZ #15214]
11220         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
11221         underflow.
11222         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11223
11224 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11225
11226         [BZ #15304]
11227         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
11228         Don't add gid passed as argument.
11229
11230         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
11231
11232 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
11233
11234         [BZ #15307]
11235         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11236         imaginary part between 1.0 and 1.5 and real part less than 0.5
11237         specially.
11238         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11239         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11240         * math/libm-test.inc (cacos_test): Add more tests.
11241         (casin_test): Likewise.
11242         (casinh_test): Likewise.
11243         * sysdeps/i386/fpu/libm-test-ulps: Update.
11244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11245
11246 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11247
11248         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
11249         constants.
11250         (norm): Likewise.
11251         (denorm): Likewise.
11252         (__dbl_mp): Likewise.
11253         (add_magnitudes): Likewise.
11254         (sub_magnitudes): Likewise.
11255         (__add): Likewise.
11256         (__sub): Likewise.
11257         (__mul): Likewise.
11258         (__sqr): Likewise.
11259         (__inv): Likewise.
11260         (__dvd): Likewise.
11261
11262         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
11263         commented code.
11264         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
11265         (__dubcos): Likewise.
11266         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
11267         (__ieee754_acos): Likewise.
11268         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11269         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
11270         (__exp1): Likewise.
11271         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11272         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11273         (log1): Likewise.
11274         (my_log2): Likewise.
11275         (checkint): Likewise.
11276         * sysdeps/ieee754/dbl-64/e_remainder.c
11277         (__ieee754_remainder): Likewise.
11278         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11279         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11280         (bsloww): Likewise.
11281         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11282
11283         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11284         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
11285         MANTISSA_STORE_T to store computations on mantissa.  Use
11286         macros for rounding and division.
11287         (denorm): Likewise.
11288         (__dbl_mp): Likewise.
11289         (add_magnitudes): Likewise.
11290         (sub_magnitudes): Likewise.
11291         (__mul): Likewise.
11292         (__sqr): Likewise.
11293         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11294         powers of two in terms of TWOPOW macro.
11295         (mp_no): Make type of mantissa as MANTISSA_T.
11296         [!RADIXI]: Define RADIXI.
11297         [!TWO52]: Define TWO52.
11298         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11299
11300 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11301
11302         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
11303         llroundl symbol when building for PPC32.
11304
11305 2013-03-24  Mark H Weaver  <mhw@netris.org>
11306
11307         * manual/arith.texi (Normalization Functions): Fix prototypes for
11308         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
11309
11310 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11311
11312         [BZ #13889]
11313         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
11314         high value to check if expl overflow.
11315         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
11316         to check for underflow and overflow.
11317         * math/libm-test.inc: Add exp test.
11318
11319 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
11320
11321         [BZ #11120]
11322         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
11323         with NOT_IN_libc.
11324
11325 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11326
11327         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
11328         symbol.
11329
11330 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11331
11332         * math/gen-libm-test.pl (parse_args, special_functions): Properly
11333         wrap blocks consisting of several statements.
11334
11335         * sysdeps/generic/math-tests.h: New file.
11336         * sysdeps/i386/fpu/math-tests.h: Likewise.
11337         * math/test-snan.c: Include it.
11338         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
11339
11340 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11341
11342         [BZ #15285]
11343         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
11344         (__ieee754_j0l): Do not improve calculations using cos of twice
11345         input for inputs above LDBL_MAX / 2.0L.
11346         (__ieee754_y0l): Likewise.
11347         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
11348         (__ieee754_j1l): Do not improve calculations using cos of twice
11349         input for inputs above LDBL_MAX / 2.0L.
11350         (__ieee754_y1l): Likewise.
11351         * math/libm-test.inc (j0_test): Add another test.
11352         (j1_test): Likewise.
11353         (y0_test): Likewise.
11354         (y1_test): Likewise.
11355         * sysdeps/i386/fpu/libm-test-ulps: Update.
11356
11357 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11358
11359         * Rules ($(objpfx)bench-%.c): Include code from a C source
11360         file.
11361
11362 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11363
11364         [BZ #15287]
11365         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11366         imaginary part 1.0 and real part less than 0.5 specially.
11367         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11368         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11369         * math/libm-test.inc (cacos_test): Add more tests.
11370         (casin_test): Likewise.
11371         (casinh_test): Likewise.
11372         * sysdeps/i386/fpu/libm-test-ulps: Update.
11373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11374
11375 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11376
11377         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
11378         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
11379
11380 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
11381
11382         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
11383         * config.make.in (config-cflags-sse4): Remove variable.
11384         (config-cflags-avx): Likewise.
11385         (config-cflags-sse2avx): Likewise.
11386         (config-cflags-novzeroupper): Likewise.
11387         (config-asflags-i686): Likewise.
11388         (have-mfma4): Likewise.
11389         (have-as-vis3): Likewise.
11390         (MIG): Likewise.
11391         * configure.in (MIG): Do not AC_SUBST.
11392         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
11393         (libc_cv_cc_sse4): Do not AC_SUBST.
11394         (libc_cv_cc_avx): Likewise.
11395         (libc_cv_cc_sse2avx): Likewise.
11396         (libc_cv_cc_novzeroupper): Likewise.
11397         (libc_cv_cc_fma4): Likewise.
11398         (libc_cv_as_i686): Likewise.
11399         (libc_cv_sparc_as_vis3): Likewise.
11400         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
11401         LIBC_CONFIG_VAR.
11402         (config-asflags-i686): Likewise.
11403         (config-cflags-avx): Likewise.
11404         (config-cflags-sse2avx): Likewise.
11405         (have-mfma4): Likewise.
11406         (config-cflags-novzeroupper): Likewise.
11407         * sysdeps/mach/configure.in (MIG): Likewise.
11408         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
11409         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
11410         LIBC_CONFIG_VAR.
11411         (config-cflags-avx): Likewise.
11412         (config-cflags-sse2avx): Likewise.
11413         (have-mfma4): Likewise.
11414         (config-cflags-novzeroupper): Likewise.
11415         * configure: Regenerated.
11416         * sysdeps/i386/configure: Likewise.
11417         * sysdeps/mach/configure: Likewise.
11418         * sysdeps/sparc/configure: Likewise.
11419         * sysdeps/x86_64/configure: Likewise.
11420
11421 2013-03-20  Roland McGrath  <roland@hack.frob.com>
11422
11423         [BZ #14812]
11424         * locale/programs/localedef.c (options): Put N_ translation marker
11425         on argument names, not just descriptions.
11426
11427 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11428
11429         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
11430
11431 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
11432
11433         [BZ #14176]
11434         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
11435
11436 2013-03-19  Roland McGrath  <roland@hack.frob.com>
11437
11438         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
11439         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
11440         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
11441         [!BEFORE_ABORT] (before_abort): New function.
11442         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
11443         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
11444         (writev_for_fatal): New function.
11445         (WRITEV_FOR_FATAL): New macro; call that.
11446         (backtrace_and_maps): New function.
11447         (BEFORE_ABORT): New macro; call that.
11448         (struct str_list): Type removed.
11449         (__libc_message, __libc_fatal): Functions removed.
11450         Include <sysdeps/posix/libc_fatal.c> instead.
11451
11452 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
11453
11454         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
11455         constants.
11456         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
11457         double constants.
11458
11459 2013-03-19  Andreas Schwab  <schwab@suse.de>
11460
11461         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
11462         * sysdeps/gnu/configure: Regenerate.
11463
11464         * configure.in: Substitute libc_cv_rtlddir.
11465         * configure: Regenerate.
11466         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
11467         * Makeconfig (rtlddir, inst_rtlddir): New variables.
11468         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
11469         * elf/Makefile (install-others, CFLAGS-interp.c)
11470         (ldso_install, common-ldd-rewrite): Likewise.
11471         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
11472         $(inst_slibdir)/$(rtld-installed-name).
11473         * scripts/rellns-sh: Add -p option.
11474         * Makerules (make-shlib-link): Use rellns-sh to get relative name
11475         for source.
11476
11477 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11478
11479         * manual/nptl.texi: Renamed to ...
11480         * manual/threads.texi: ... this.
11481         * manual/Makefile (chapters): Update.
11482
11483 2013-03-18  Roland McGrath  <roland@hack.frob.com>
11484
11485         [BZ #14812]
11486         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
11487         on argument names, not just descriptions.
11488         * malloc/memusagestat.c (options): Likewise.
11489         * nss/getent.c (options): Likewise.
11490
11491 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
11492
11493         [BZ #14812]
11494         * iconv/iconv_prog.c (options): Put N_ translation marker
11495         on argument names, not just descriptions.
11496         * iconv/iconvconfig.c (options): Likewise.
11497
11498 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
11499
11500         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
11501         implementation which is faster on all x86_64 architectures.
11502         Tested on AMD, Intel Nehalem, SNB, IVB.
11503         * sysdeps/x86_64/strnlen.S: Likewise.
11504
11505         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
11506         Remove all multiarch strlen and strnlen versions.
11507         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11508         Remove strlen and strnlen related parts.
11509
11510         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
11511         Inline strlen part.
11512         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
11513
11514         * sysdeps/x86_64/multiarch/strlen.S: Remove.
11515         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
11516         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
11517         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
11518         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11519         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
11520
11521 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
11522
11523         * manual/memory.texi (Malloc Tunable Parameters):
11524         Sort parameters alphabetically. Add comments for missing entries.
11525
11526 2013-03-17  David S. Miller  <davem@davemloft.net>
11527
11528         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11529
11530 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
11531
11532         [BZ #15283]
11533         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
11534         for arguments at most half maximum finite value.
11535         * math/libm-test.inc (j0_test): Add more tests.
11536         (j1_test): Likewise.
11537         (y0_test): Likewise.
11538         (y1_test): Likewise.
11539         * sysdeps/i386/fpu/libm-test-ulps: Update.
11540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11541
11542         [BZ #14155]
11543         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
11544         1 / x and functions P and Q for arguments above 0x1p256L.
11545         (__ieee754_y0l): Likewise.
11546         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11547         (__ieee754_y1l): Likewise.
11548         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
11549         (j1_test): Likewise.
11550         (y0_test): Likewise.
11551         (y1_test): Likewise.
11552
11553 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11554
11555         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
11556         variable.
11557
11558 2013-03-15  Roland McGrath  <roland@hack.frob.com>
11559
11560         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
11561         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
11562         zero since it's initialized to EXEC_PAGESIZE.
11563
11564         * sysdeps/unix/sysv/linux/ldsodefs.h
11565         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
11566         * sysdeps/generic/ldsodefs.h: ... here.
11567
11568 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
11569
11570         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
11571
11572         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
11573         math/test-snan.c.
11574         * math/test-snan.c: Renamed from
11575         sysdeps/powerpc/fpu/test-powerpc-snan.c.
11576         * math/Makefile (tests): Add test-snan.
11577         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
11578         test-powerpc-snan.
11579
11580         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
11581         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
11582         functions.
11583         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
11584         __builtin_nan family of functions.
11585         * math/libm-test.inc (initialize): Initialize qnan_value with
11586         __builtin_nan family of functions.
11587         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
11588         Remove variables.
11589         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
11590         Remove functions.
11591         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
11592         storage class.  Initialize qNaN_var and sNaN_var with
11593         __builtin_nan and __builtin_nans families of functions,
11594         respectively.
11595
11596         * math/libm-test.inc (acosh_test): Also test with qNaN input.
11597         (sqrt_test): Remove duplicate test with qNaN input.
11598         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
11599         (round_test, signbit_test, significand_test): Note missing +/-Inf
11600         as well as qNaN tests.
11601
11602         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
11603         qNaN_var.  Fix a few strings, too.
11604         * math/libm-test.inc (nan_value): Rename to qnan_value.
11605         * math/gen-libm-test.pl (%beautify): Adjust to that.
11606         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
11607         * math/test-misc.c (main): Likewise.
11608         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
11609         to __qnan_bytes, and __qnan_union, respectively.
11610         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
11611         Likewise.
11612         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
11613         and lqnanval, respectively.
11614         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
11615         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
11616         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
11617         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
11618
11619         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
11620         * math/test-misc.c (main) [__x86_64__]: Enable test for long
11621         doubles.
11622
11623         * math/test-misc.c (main): Fix copy'n'pastos.
11624         * misc/tst-efgcvt.c (special): Likewise.
11625
11626         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
11627         Remove declarations.
11628
11629 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11630
11631         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
11632         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
11633         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
11634         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
11635
11636 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11637
11638         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
11639         macro to return vdso values correctly in IFUNC implementations.
11640         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
11641         Optimization by using IFUNC.
11642
11643 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11644             Richard Henderson  <rth@redhat.com>
11645             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11646
11647         * Makefile.in (bench): New target.
11648         * NEWS: Mention the benchmark framework.
11649         * Rules (bench): Likewise.
11650         (binaries-bench): Generate binaries for functions to
11651         benchmark.
11652         * benchtests/Makefile: New makefile for benchmark tests.
11653         * benchtests/bench-skeleton.c: New skeleton file for benchmark
11654         programs.
11655         * benchtests/exp-inputs: New input file for EXP function.
11656         * benchtests/pow-inputs: New input file for POW function.
11657         * scripts/bench.pl: New script to generate source files for
11658         benchmark programs.
11659
11660 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11661
11662         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11663         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
11664         computations on mantissa.  Use macros for rounding and
11665         division.
11666         (denorm): Likewise.
11667         (__dbl_mp): Likewise.
11668         (add_magnitudes): Likewise.
11669         (sub_magnitudes): Likewise.
11670         (__mul): Likewise.
11671         (__sqr): Likewise.
11672         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11673         powers of two in terms of TWOPOW macro.
11674         (mp_no): Make type of mantissa as MANTISSA_T.
11675         [!RADIXI]: Define RADIXI.
11676         [!TWO52]: Define TWO52.
11677         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11678
11679         * manual/nptl.texi (cindex): Modify threads to pthreads.
11680
11681 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
11682
11683         * sysdeps/x86_64/preconfigure: Regenerated.
11684
11685 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
11686
11687         [BZ #14155]
11688         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
11689         0x1p28 and above.
11690         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
11691         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
11692         0x1p28 and above.
11693         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
11694         * math/libm-test.inc (j0_test): Do not allow one spurious
11695         underflow exception.
11696         (y1_test): Likewise.
11697
11698 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11699
11700         * manual/Makefile (chapters): Add nptl.
11701         * manual/debug.texi (Debugging Support): Add link to Threads
11702         chapter.
11703         * manual/nptl.texi: New file.
11704
11705         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
11706
11707 2013-03-14  Petr Baudis  <pasky@ucw.cz>
11708
11709         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
11710         for non-NULL pointer before the memory validity test. Pointed
11711         out by Holger Brunck <holger.brunck@keymile.com>.
11712
11713 2013-03-13  Andreas Schwab  <schwab@suse.de>
11714
11715         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
11716         instead of .os.
11717
11718 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
11719
11720         * timezone/zic.c: Update from tzcode 2013b.
11721
11722 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
11723
11724         * manual/install.texi (Configuring and compiling):
11725         Mention i686 and i586.
11726         * INSTALL: Regenerate.
11727
11728 2013-03-12  Roland McGrath  <roland@hack.frob.com>
11729
11730         * sysdeps/init_array/elf-init.c: New file.
11731         * csu/elf-init.c
11732         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
11733         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
11734
11735         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
11736         __gmon_start__ as global, but as static with a .preinit_array pointer.
11737         * sysdeps/init_array/gmon-start.c: New file.  Use that.
11738         * sysdeps/init_array/crti.S: New file, empty except for comments.
11739         * sysdeps/init_array/crtn.S: Likewise.
11740
11741 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
11742
11743         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
11744         definining bcopy.
11745         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11746         Remove Prefer_SSE_for_memop.
11747         * sysdeps/x86_64/multiarch/init-arch.h: Remove
11748         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
11749         HAS_PREFER_SSE_FOR_MEMOP.
11750         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11751         memset-x86-64.
11752         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
11753         Remove bzero, memset ifunc support.
11754         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
11755         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
11756         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11757         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11758
11759 2013-03-11  Andreas Schwab  <schwab@suse.de>
11760
11761         [BZ #15234]
11762         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
11763         by SHLIB_COMPAT.
11764         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
11765         (GLIBC_2.16): Remove pthread_atfork.
11766
11767 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
11768
11769         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
11770         (ptestcases.h): Likewise.
11771
11772 2013-03-08  Roland McGrath  <roland@hack.frob.com>
11773
11774         * Makeconfig ($(common-objpfx)config.status): Depend on
11775         sysdeps/*/preconfigure{,.in} too.
11776
11777 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
11778
11779         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
11780         (__free_hook): Use void * instead of __malloc_ptr_t.
11781         (__malloc_hook): Likewise.
11782         (__realloc_hook): Likewise.
11783         (__memalign_hook): Likewise.
11784         (__after_morecore_hook): Likewise.
11785         * malloc/arena.c (save_malloc_hook): Likewise.
11786         (save_free_hook): Likewise.
11787         * malloc/hooks.c (malloc_hook_ini): Likewise.
11788         (realloc_hook_ini): Likewise.
11789         (memalign_hook_ini): Likewise.
11790         * malloc/malloc.c (malloc_hook_ini): Likewise.
11791         (realloc_hook_ini): Likewise.
11792         (memalign_hook_ini): Likewise.
11793         (__free_hook): Likewise.
11794         (__malloc_hook): Likewise.
11795         (__realloc_hook): Likewise.
11796         (__memalign_hook): Likewise.
11797         (__libc_malloc): Likewise.
11798         (__libc_free): Likewise.
11799         (__libc_realloc): Likewise.
11800         (__libc_memalign): Likewise.
11801         (__libc_valloc): Likewise.
11802         (__libc_pvalloc): Likewise.
11803         (__libc_calloc): Likewise.
11804         (__posix_memalign): Likewise.
11805         * malloc/morecore.c (__sbrk): Likewise.
11806         (__default_morecore): Likewise.
11807
11808         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
11809
11810         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
11811         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
11812         __malloc_ptrdiff_t.
11813
11814         * malloc/malloc.h (__malloc_size_t): Remove macro.
11815         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
11816         __malloc_size_t.
11817         (old_memalign_hook): Likewise.
11818         (old_realloc_hook): Likewise.
11819         (struct hdr): Likewise.
11820         (flood): Likewise.
11821         (mallochook): Likewise.
11822         (memalignhook): Likewise.
11823         (reallochook): Likewise.
11824         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
11825         (tr_old_realloc_hook): Likewise.
11826         (tr_old_memalign_hook): Likewise.
11827         (tr_mallochook): Likewise.
11828         (tr_reallochook): Likewise.
11829         (tr_memalignhook): Likewise.
11830
11831 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11832
11833         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
11834         default_ldbl_pack and using as default implementation.
11835         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
11836         implementation.
11837         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
11838         redundant definition.
11839         (ldbl_insert_mantissa): Likewise.
11840         (ldbl_canonicalize): Likewise.
11841         (ldbl_nearbyint): Likewise.
11842         (ldbl_pack): Rename to ldbl_pack_ppc.
11843         (ldbl_unpack): Rename to ldbl_unpack_ppc.
11844         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
11845         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
11846
11847 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11848
11849         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
11850         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
11851         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
11852         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
11853         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
11854         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
11855         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
11856         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
11857
11858 2013-03-07  Andreas Jaeger  <aj@suse.de>
11859
11860         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11861         bits/mman-linux.h.
11862
11863 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11864
11865         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
11866         Include mpa.h and declare __MPEXP.
11867         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
11868         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11869         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11870         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
11871         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11872         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11873         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
11874
11875         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
11876         (__slowpow): Use long double EXPL and LOGL functions to
11877         compute POW.
11878         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11879         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11880         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
11881         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11882         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11883         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
11884
11885         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
11886         intermediate variable to calculate exponent.
11887         (__sqr): Likewise.
11888         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
11889         Likewise.
11890         (__sqr): Likewise.
11891
11892         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
11893         [!NO__SQR]: Define __sqr.
11894         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
11895         and NO__SQR.  Remove all code except __mul and __sqr.  Include
11896         sysdeps/ieee754/dbl-64/mpa.c.
11897         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11898
11899         [BZ #12723]
11900         * posix/Makefile (tests): Add tst-pathconf.
11901         * posix/tst-pathconf.c: New test case.
11902         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
11903         _PC_PIPE_BUF.
11904         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11905
11906 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
11907
11908         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
11909
11910 2013-03-06  Andreas Jaeger  <aj@suse.de>
11911
11912         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
11913         definition via __MAP_ANONYMOUS.
11914
11915         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
11916         it's not part of Linux headers.
11917
11918         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
11919         (MAP_HUGE_MASK): Define.
11920
11921         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11922         Define.
11923         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11924         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11925         Define.
11926         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11927         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11928         Define.
11929         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11930         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
11931         Define.
11932         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11933
11934         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
11935         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
11936         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
11937         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
11938         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
11939         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
11940
11941         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11942         Handle f2fs.
11943
11944         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11945         Handle f2fs and efivarfs.
11946
11947         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
11948         f2fs.
11949
11950         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
11951         (EFIVARFS_MAGIC): Add.
11952         (F2FS_LINK_MAX): Add.
11953
11954 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11955
11956         * stdio-common/vfprintf.c: Replace __builtin_expect with
11957         __glibc_unlikely.
11958
11959 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
11960
11961         [BZ #13550]
11962         * sysdeps/generic/bp-sym.h: Remove file.
11963         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
11964         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
11965         <bp-sym.h> and <bp-asm.h>.
11966         (__longjmp): Don't use BP_SYM.
11967         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
11968         and <bp-asm.h>.
11969         (memcpy): Don't use BP_SYM.
11970         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
11971         <bp-sym.h> and <bp-asm.h>.
11972         (memcpy): Don't use BP_SYM.
11973         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
11974         <bp-asm.h>.
11975         (memcpy): Don't use BP_SYM.
11976         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
11977         <bp-asm.h>.
11978         (memset): Don't use BP_SYM.
11979         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11980         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11981         (__bzero): Don't use BP_SYM.
11982         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11983         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11984         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
11985         <bp-sym.h> and <bp-asm.h>.
11986         (memcmp): Don't use BP_SYM.  Remove comment about bounded
11987         pointers.
11988         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
11989         <bp-sym.h> and <bp-asm.h>.
11990         (memcpy): Don't use BP_SYM.
11991         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
11992         <bp-sym.h> and <bp-asm.h>.
11993         (memset): Don't use BP_SYM.
11994         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11995         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11996         (__bzero): Don't use BP_SYM.
11997         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11998         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11999         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
12000         <bp-sym.h> and <bp-asm.h>.
12001         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12002         pointers.
12003         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
12004         <bp-sym.h> and <bp-asm.h>.
12005         (memcpy): Don't use BP_SYM.
12006         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
12007         <bp-sym.h> and <bp-asm.h>.
12008         (memset): Don't use BP_SYM.
12009         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12010         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12011         (__bzero): Don't use BP_SYM.
12012         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12013         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12014         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
12015         <bp-sym.h> and <bp-asm.h>.
12016         (__memchr): Don't use BP_SYM.
12017         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
12018         <bp-sym.h> and <bp-asm.h>.
12019         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12020         pointers.
12021         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
12022         <bp-sym.h> and <bp-asm.h>.
12023         (memcpy): Don't use BP_SYM.
12024         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
12025         <bp-sym.h> and <bp-asm.h>.
12026         (__mempcpy): Don't use BP_SYM.
12027         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
12028         <bp-sym.h> and <bp-asm.h>.
12029         (__memrchr): Don't use BP_SYM.
12030         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
12031         <bp-sym.h> and <bp-asm.h>.
12032         (memset): Don't use BP_SYM.
12033         (__bzero): Likewise.
12034         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
12035         <bp-sym.h> and <bp-asm.h>.
12036         (__rawmemchr): Don't use BP_SYM.
12037         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
12038         <bp-sym.h> and <bp-asm.h>.
12039         (__STRCMP): Don't use BP_SYM.
12040         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
12041         <bp-sym.h> and <bp-asm.h>.
12042         (strchr): Don't use BP_SYM.
12043         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
12044         <bp-sym.h> and <bp-asm.h>.
12045         (__strchrnul): Don't use BP_SYM.
12046         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
12047         <bp-sym.h> and <bp-asm.h>.
12048         (strlen): Don't use BP_SYM.
12049         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
12050         <bp-sym.h> and <bp-asm.h>.
12051         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12052         pointers.
12053         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
12054         <bp-sym.h> and <bp-asm.h>.
12055         (__strnlen): Don't use BP_SYM.
12056         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
12057         <bp-sym.h> and <bp-asm.h>.
12058         (__GI__setjmp): Don't use BP_SYM.
12059         (_setjmp): Likewise.
12060         (__sigsetjmp): Likewise.
12061         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
12062         (L(start_addresses)): Don't use BP_SYM.
12063         (_start): Likewise.
12064         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
12065         <bp-asm.h>.
12066         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
12067         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
12068         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12069         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12070         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
12071         <bp-asm.h>.
12072         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
12073         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
12074         about bounded pointers.
12075         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12076         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12077         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
12078         <bp-asm.h>.
12079         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12080         about bounded pointers.  Remove GKM FIXME comments.
12081         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12082         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
12083         <bp-asm.h>.
12084         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
12085         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
12086         Remove GKM FIXME comments.
12087         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12088         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12089         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
12090         <bp-asm.h>.
12091         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12092         about bounded pointers.  Remove GKM FIXME comment.
12093         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
12094         and <bp-asm.h>.
12095         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12096         pointers.
12097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
12098         <bp-sym.h> and <bp-asm.h>.
12099         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
12101         <bp-sym.h> and <bp-asm.h>.
12102         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12103         comment.
12104
12105 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12106
12107         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
12108         call free(NULL).
12109
12110 2013-03-05  David S. Miller  <davem@davemloft.net>
12111
12112         * po/es.po: Update from translation team.
12113
12114 2013-03-05  Andreas Jaeger  <aj@suse.de>
12115
12116         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
12117         <bits/mman-linux.h>.
12118         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12119         is fine.
12120         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
12121         <bits/mman-linux.h> to end of file.
12122         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12123         is fine.
12124         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
12125         <bits/mman-linux.h> to end of file.
12126         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12127         is fine.
12128         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
12129         <bits/mman-linux.h> to end of file.
12130
12131         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
12132         (MCL_CURRENT, MCL_FUTURE): Define here.
12133
12134 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12135
12136         [BZ #15232]
12137         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
12138         attribute_hidden.
12139         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
12140
12141 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12142
12143         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
12144         fourth parameter needed for rt_sigprocmask syscall.
12145         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
12146         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
12147         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
12148         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
12149         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
12150         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
12151
12152 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
12153
12154         [BZ #13550]
12155         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
12156         comment about bounded pointers.
12157         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
12158         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
12159
12160 2013-03-04  Andreas Jaeger  <aj@suse.de>
12161
12162         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
12163         common definitions.
12164
12165         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
12166         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
12167         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
12168         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12169         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12170         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12171
12172 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12173
12174         [BZ #15055]
12175         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
12176         __ieee754_sqrl instead of __sqrl.
12177
12178 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
12179
12180         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
12181         * sysdeps/powerpc/fpu_control.h: ... here.
12182         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
12183         * sysdeps/powerpc/bits/fenvinline.h: ... here.
12184         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
12185         * sysdeps/powerpc/bits/mathinline.h: ... here.
12186
12187 2013-03-01  Roland McGrath  <roland@hack.frob.com>
12188
12189         * elf/dl-hwcaps.c (_dl_important_hwcaps):
12190         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
12191         to just [NEED_DL_SYSINFO_DSO].
12192         * elf/dl-support.c: Likewise.
12193         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
12194         * elf/rtld.c (dl_main): Likewise.
12195         * elf/setup-vdso.h (setup_vdso): Likewise.
12196         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
12197         * sysdeps/unix/sysv/linux/dl-sysdep.c
12198         (_dl_discover_osversion): Likewise.
12199
12200 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
12201
12202         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
12203         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12204
12205 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12206
12207         * NEWS: Mention libm performance improvements and non-x86 PI
12208         futex support.
12209
12210         * csu/libc-start.c (__pthread_initialize_minimal): Change
12211         function arguments.
12212         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12213
12214 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
12215
12216         [BZ #13550]
12217         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
12218         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
12219         <bp-sym.h> and <bp-asm.h>.
12220         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12221         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
12222         and <bp-asm.h>.
12223         (memcpy): Don't use BP_SYM.
12224         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
12225         <bp-asm.h>.
12226         (__mpn_add_n): Don't use BP_SYM.
12227         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
12228         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
12229         and <bp-asm.h>.
12230         (__mpn_addmul_1): Don't use BP_SYM.
12231         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12232         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
12233         <bp-sym.h>.
12234         (_setjmp): Don't use BP_SYM.
12235         (__novmx_setjmp): Likewise.
12236         (__GI__setjmp): Likewise.
12237         (__vmx_setjmp): Likewise.
12238         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
12239         <bp-sym.h>.
12240         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
12241         (__bzero): Don't use BP_SYM.
12242         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12243         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12244         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
12245         <bp-sym.h> and <bp-asm.h>.
12246         (memcpy): Don't use BP_SYM.
12247         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
12248         <bp-sym.h> and <bp-asm.h>.
12249         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12250         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
12251         <bp-sym.h> and <bp-asm.h>.
12252         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12253         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
12254         <bp-asm.h>.
12255         (__mpn_lshift): Don't use BP_SYM.
12256         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12257         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
12258         <bp-asm.h>.
12259         (memset): Don't use BP_SYM.
12260         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12261         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12262         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
12263         <bp-asm.h>.
12264         (__mpn_mul_1): Don't use BP_SYM.
12265         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12266         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
12267         <bp-sym.h> and <bp-asm.h>.
12268         (memcmp): Don't use BP_SYM.
12269         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
12270         <bp-sym.h> and <bp-asm.h>.
12271         (memcpy): Don't use BP_SYM.
12272         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
12273         <bp-sym.h> and <bp-asm.h>.
12274         (memset): Don't use BP_SYM.
12275         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
12276         <bp-sym.h> and <bp-asm.h>.
12277         (strncmp): Don't use BP_SYM.
12278         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
12279         <bp-sym.h> and <bp-asm.h>.
12280         (memcpy): Don't use BP_SYM.
12281         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
12282         <bp-sym.h> and <bp-asm.h>.
12283         (memset): Don't use BP_SYM.
12284         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
12285         <bp-sym.h> and <bp-asm.h>.
12286         (__memchr): Don't use BP_SYM.
12287         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
12288         <bp-sym.h> and <bp-asm.h>.
12289         (memcmp): Don't use BP_SYM.
12290         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
12291         <bp-sym.h> and <bp-asm.h>.
12292         (memcpy): Don't use BP_SYM.
12293         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
12294         <bp-sym.h> and <bp-asm.h>.
12295         (__mempcpy): Don't use BP_SYM.
12296         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
12297         <bp-sym.h> and <bp-asm.h>.
12298         (__memrchr): Don't use BP_SYM.
12299         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
12300         <bp-sym.h> and <bp-asm.h>.
12301         (memset): Don't use BP_SYM.
12302         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
12303         <bp-sym.h> and <bp-asm.h>.
12304         (__rawmemchr): Don't use BP_SYM.
12305         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
12306         <bp-sym.h> and <bp-asm.h>.
12307         (__STRCMP): Don't use BP_SYM.
12308         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
12309         <bp-sym.h> and <bp-asm.h>.
12310         (strchr): Don't use BP_SYM.
12311         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
12312         <bp-sym.h> and <bp-asm.h>.
12313         (__strchrnul): Don't use BP_SYM.
12314         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
12315         <bp-sym.h> and <bp-asm.h>.
12316         (strlen): Don't use BP_SYM.
12317         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
12318         <bp-sym.h> and <bp-asm.h>.
12319         (strncmp): Don't use BP_SYM.
12320         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
12321         <bp-sym.h> and <bp-asm.h>.
12322         (__strnlen): Don't use BP_SYM.
12323         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
12324         <bp-asm.h>.
12325         (__mpn_rshift): Don't use BP_SYM.
12326         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12327         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
12328         <bp-sym.h> and <bp-asm.h>.
12329         (__sigsetjmp): Don't use BP_SYM.
12330         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
12331         (L(start_addresses)): Don't use BP_SYM.
12332         (_start): Likewise.
12333         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
12334         <bp-asm.h>.
12335         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
12336         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12337         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12338         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
12339         <bp-asm.h>.
12340         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
12341         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12342         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12343         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
12344         <bp-asm.h>.
12345         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12346         comments.
12347         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12348         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
12349         <bp-asm.h>.
12350         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
12351         FIXME comments.
12352         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12353         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12354         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
12355         <bp-asm.h>.
12356         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12357         comment.
12358         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
12359         and <bp-asm.h>.
12360         (strncmp): Don't use BP_SYM,
12361         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
12362         <bp-asm.h>.
12363         (__mpn_sub_n): Don't use BP_SYM.
12364         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12365         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
12366         and <bp-asm.h>.
12367         (__mpn_submul_1): Don't use BP_SYM.
12368         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
12370         <bp-sym.h> and <bp-asm.h>.
12371         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
12373         <bp-sym.h> and <bp-asm.h>.
12374         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12375         comment.
12376
12377 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12378
12379         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
12380         Use ZK to minimize writes to Z.
12381         (sub_magnitudes): Simplify code a bit.
12382         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
12383         Use ZK to minimize writes to Z.
12384         (sub_magnitudes): Simplify code a bit.
12385
12386 2013-02-27  Roland McGrath  <roland@hack.frob.com>
12387
12388         * csu/gmon-start.c: Add special exception to license text.
12389
12390 2013-02-27  Richard Henderson  <rth@redhat.com>
12391
12392         * scripts/config.guess: Update from config.git.
12393         * scripts/config.sub: Likewise.
12394
12395 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12396
12397         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
12398
12399         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
12400
12401         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
12402
12403         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
12404
12405         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
12406
12407 2013-02-26  Roland McGrath  <roland@hack.frob.com>
12408
12409         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
12410         [$(build-shared = yes].
12411
12412 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12413
12414         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
12415         (__mul): Reduce iterations for calculating mantissa.
12416
12417         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
12418         MPTWO.
12419         (__mpranred): Likewise.
12420
12421         [BZ #15160]
12422         * malloc/memusagestat.c (main): Draw graphs for heap and stack
12423         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
12424
12425 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12426
12427         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
12428         Define __attribute__.
12429
12430 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12431
12432         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
12433         unused.
12434         * posix/regex_internal.h (__attribute): Remove.
12435         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
12436         (re_string_context_at): Likewise.
12437         (bitset_not): Use __attribute__ and mark function as possibly
12438         unused.
12439         (bitset_merge): Likewise.
12440         (bitset_mask): Likewise.
12441         (re_string_char_size_at): Likewise.
12442         (re_string_wchar_at): Likewise.
12443         (re_string_elem_size_at): Likewise.
12444
12445 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12446
12447         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
12448         code.
12449         (cc32): Likewise.
12450
12451         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
12452         (__acr): Likewise.
12453         (__cpy): Likewise.
12454         (norm): Likewise.
12455         (denorm): Likewise.
12456         (__dbl_mp): Likewise.
12457         (add_magnitudes): Likewise.
12458         (sub_magnitudes): Likewise.
12459         (__mul): Likewise.
12460         (__inv): Likewise.
12461
12462         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
12463         style.
12464
12465         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
12466         style.
12467
12468         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
12469         code.
12470
12471         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
12472         up changes with default code.
12473         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
12474         Likewise.
12475
12476 2013-02-24  Allan McRae  <allan@archlinux.org>
12477
12478         * manual/socket.texi (The Internet Namespace): Order menu items
12479         to match that in the file.
12480
12481         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
12482         node listing of the info page menu.
12483
12484 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
12485
12486         [BZ #13550]
12487         * sysdeps/i386/bp-asm.h: Remove file.
12488         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12489         (PARMS): Do not use macros from bp-asm.h.
12490         (S1): Likewise.
12491         (S2): Likewise.
12492         (SIZE): Likewise.
12493         (__mpn_add_n): Do not use BP_SYM
12494         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
12495         "bp-asm.h".
12496         (PARMS): Do not use macros from bp-asm.h.
12497         (S1): Likewise.
12498         (SIZE): Likewise.
12499         (__mpn_addmul_1): Do not use BP_SYM
12500         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
12501         "bp-asm.h".
12502         (PARMS): Do not use macros from bp-asm.h.
12503         (SIGMSK): Likewise.
12504         (_setjmp): Likewise.  Do not use BP_SYM.
12505         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
12506         "bp-asm.h".
12507         (PARMS): Do not use macros from bp-asm.h.
12508         (SIGMSK): Likewise.
12509         (setjmp): Likewise.  Do not use BP_SYM.
12510         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
12511         "bp-asm.h".
12512         (PARMS): Do not use macros from bp-asm.h.
12513         (__frexp): Do not use BP_SYM.
12514         (frexp): Likewise.
12515         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
12516         "bp-asm.h".
12517         (PARMS): Do not use macros from bp-asm.h.
12518         (__frexpf): Do not use BP_SYM.
12519         (frexpf): Likewise.
12520         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
12521         "bp-asm.h".
12522         (PARMS): Do not use macros from bp-asm.h.
12523         (__frexpl): Do not use BP_SYM.
12524         (frexpl): Likewise.
12525         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
12526         "bp-asm.h".
12527         (PARMS): Do not use macros from bp-asm.h.
12528         (__remquo): Do not use BP_SYM.
12529         (remquo): Likewise.
12530         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
12531         "bp-asm.h".
12532         (PARMS): Do not use macros from bp-asm.h.
12533         (__remquof): Do not use BP_SYM.
12534         (remquof): Likewise.
12535         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
12536         "bp-asm.h".
12537         (PARMS): Do not use macros from bp-asm.h.
12538         (__remquol): Do not use BP_SYM.
12539         (remquol): Likewise.
12540         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
12541         "bp-asm.h".
12542         (PARMS): Do not use macros from bp-asm.h.
12543         (DEST): Likewise.
12544         (SRC): Likewise.
12545         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
12546         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
12547         "bp-asm.h".
12548         (PARMS): Do not use macros from bp-asm.h.
12549         (strlen): Do not use BP_SYM.
12550         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
12551         "bp-asm.h".
12552         (PARMS): Do not use macros from bp-asm.h.
12553         (S1): Likewise.
12554         (S2): Likewise.
12555         (SIZE): Likewise.
12556         (__mpn_add_n): Do not use BP_SYM.
12557         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
12558         "bp-asm.h".
12559         (PARMS): Do not use macros from bp-asm.h.
12560         (S1): Likewise.
12561         (SIZE): Likewise.
12562         (__mpn_addmul_1): Do not use BP_SYM.
12563         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
12564         weak_alias.
12565         (bzero): Likewise.
12566         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
12567         "bp-asm.h".
12568         (PARMS): Do not use macros from bp-asm.h.
12569         (S): Likewise.
12570         (SIZE): Likewise.
12571         (__mpn_lshift): Do not use BP_SYM.
12572         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
12573         "bp-asm.h".
12574         (PARMS): Do not use macros from bp-asm.h.
12575         (DEST): Likewise.
12576         (SRC): Likewise.
12577         (LEN): Likewise.
12578         (memcpy): Likewise.  Do not use BP_SYM.
12579         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
12580         libc_hidden_def and weak_alias.
12581         (mempcpy): Do not use BP_SYM in weak_alias.
12582         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
12583         "bp-asm.h".
12584         (PARMS): Do not use macros from bp-asm.h.
12585         (DEST): Likewise.
12586         (LEN): Likewise.
12587         [!BZERO_P] (CHR): Likewise.
12588         (memset): Likewise.  Do not use BP_SYM.
12589         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
12590         "bp-asm.h".
12591         (PARMS): Do not use macros from bp-asm.h.
12592         (S1): Likewise.
12593         (SIZE): Likewise.
12594         (__mpn_mul_1): Do not use BP_SYM.
12595         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
12596         "bp-asm.h".
12597         (PARMS): Do not use macros from bp-asm.h.
12598         (S): Likewise.
12599         (SIZE): Likewise.
12600         (__mpn_rshift): Do not use BP_SYM.
12601         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
12602         "bp-asm.h".
12603         (PARMS): Do not use macros from bp-asm.h.
12604         (STR): Likewise.
12605         (CHR): Likewise.
12606         (strchr): Likewise.  Do not use BP_SYM.
12607         (index): Do not use BP_SYM in weak_alias.
12608         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
12609         "bp-asm.h".
12610         (PARMS): Do not use macros from bp-asm.h.
12611         (DEST): Likewise.
12612         (SRC): Likewise.
12613         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
12614         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
12615         "bp-asm.h".
12616         (PARMS): Do not use macros from bp-asm.h.
12617         (strlen): Do not use BP_SYM.
12618         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
12619         "bp-asm.h".
12620         (PARMS): Do not use macros from bp-asm.h.
12621         (S1): Likewise.
12622         (S2): Likewise.
12623         (SIZE): Likewise.
12624         (__mpn_sub_n): Do not use BP_SYM.
12625         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
12626         "bp-asm.h".
12627         (PARMS): Do not use macros from bp-asm.h.
12628         (S1): Likewise.
12629         (SIZE): Likewise.
12630         (__mpn_submul_1): Do not use BP_SYM.
12631         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
12632         "bp-asm.h".
12633         (PARMS): Do not use macros from bp-asm.h.
12634         (S1): Likewise.
12635         (S2): Likewise.
12636         (SIZE): Likewise.
12637         (__mpn_add_n): Do not use BP_SYM.
12638         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
12639         weak_alias.
12640         (bzero): Likewise.
12641         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
12642         "bp-asm.h".
12643         (PARMS): Do not use macros from bp-asm.h.
12644         (BLK2): Likewise.
12645         (LEN): Likewise.
12646         (memcmp): Do not use BP_SYM.
12647         (bcmp): Do not use BP_SYM in weak_alias.
12648         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
12649         "bp-asm.h".
12650         (PARMS): Do not use macros from bp-asm.h.
12651         (DEST): Likewise.
12652         (SRC): Likewise.
12653         (LEN): Likewise.
12654         (memcpy): Likewise.  Do not use BP_SYM.
12655         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
12656         "bp-asm.h".
12657         (PARMS): Do not use macros from bp-asm.h.
12658         (DEST): Likewise.
12659         (SRC): Likewise.
12660         (LEN): Likewise.
12661         (memmove): Likewise.  Do not use BP_SYM.
12662         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
12663         "bp-asm.h".
12664         (PARMS): Do not use macros from bp-asm.h.
12665         (DEST): Likewise.
12666         (SRC): Likewise.
12667         (LEN): Likewise.
12668         (__mempcpy): Likewise.  Do not use BP_SYM.
12669         (mempcpy): Do not use BP_SYM in weak_alias.
12670         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
12671         "bp-asm.h".
12672         (PARMS): Do not use macros from bp-asm.h.
12673         (DEST): Likewise.
12674         (LEN): Likewise.
12675         [!BZERO_P] (CHR): Likewise.
12676         (memset): Likewise.  Do not use BP_SYM.
12677         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
12678         "bp-asm.h".
12679         (PARMS): Do not use macros from bp-asm.h.
12680         (STR2): Likewise.
12681         (strcmp): Do not use BP_SYM.
12682         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
12683         "bp-asm.h".
12684         (PARMS): Do not use macros from bp-asm.h.
12685         (STR): Likewise.
12686         (DELIM): Likewise.
12687         [USE_AS_STRTOK_R] (SAVE): Likewise.
12688         (FUNCTION): Likewise.  Do not use BP_SYM.
12689         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
12690         aliases.
12691         (strtok_r): Likewise.
12692         (__GI___strtok_r): Likewise.
12693         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12694         (PARMS): Do not use macros from bp-asm.h.
12695         (S): Likewise.
12696         (SIZE): Likewise.
12697         (__mpn_lshift): Do not use BP_SYM.
12698         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12699         (PARMS): Do not use macros from bp-asm.h.
12700         (STR): Likewise.
12701         (CHR): Likewise.
12702         (__memchr): Do not use BP_SYM.
12703         (memchr): Do not use BP_SYM in weak_alias.
12704         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12705         (PARMS): Do not use macros from bp-asm.h.
12706         (BLK2): Likewise.
12707         (LEN): Likewise.
12708         (memcmp): Do not use BP_SYM.
12709         (bcmp): Do not use BP_SYM in weak_alias.
12710         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
12711         (PARMS): Do not use macros from bp-asm.h.
12712         (S1): Likewise.
12713         (SIZE): Likewise.
12714         (__mpn_mul_1): Do not use BP_SYM.
12715         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
12716         "bp-asm.h".
12717         (PARMS): Do not use macros from bp-asm.h.
12718         (STR): Likewise.
12719         (CHR): Likewise.
12720         (__rawmemchr): Do not use BP_SYM.
12721         (rawmemchr): Do not use BP_SYM in weak_alias.
12722         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12723         (PARMS): Do not use macros from bp-asm.h.
12724         (S): Likewise.
12725         (SIZE): Likewise.
12726         (__mpn_rshift): Do not use BP_SYM.
12727         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12728         (PARMS): Do not use macros from bp-asm.h.
12729         (SIGMSK): Likewise.
12730         (__sigsetjmp): Likewise.  Do not use BP_SYM.
12731         * sysdeps/i386/start.S: Do not include "bp-sym.h".
12732         (_start): Do not use BP_SYM.
12733         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
12734         (PARMS): Do not use macros from bp-asm.h.
12735         (DEST): Likewise.
12736         (SRC): Likewise.
12737         (__stpcpy): Likewise.  Do not use BP_SYM.
12738         (stpcpy): Do not use BP_SYM in weak_alias.
12739         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
12740         "bp-asm.h".
12741         (PARMS): Do not use macros from bp-asm.h.
12742         (DEST): Likewise.
12743         (SRC): Likewise.
12744         (LEN): Likewise.
12745         (__stpncpy): Likewise.  Do not use BP_SYM.
12746         (stpncpy): Do not use BP_SYM in weak_alias.
12747         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12748         (PARMS): Do not use macros from bp-asm.h.
12749         (STR): Likewise.
12750         (CHR): Likewise.
12751         (strchr): Likewise.  Do not use BP_SYM.
12752         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
12753         "bp-asm.h".
12754         (PARMS): Do not use macros from bp-asm.h.
12755         (STR): Likewise.
12756         (CHR): Likewise.
12757         (__strchrnul): Likewise.  Do not use BP_SYM.
12758         (strchrnul): Do not use BP_SYM in weak_alias.
12759         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
12760         "bp-asm.h".
12761         (PARMS): Do not use macros from bp-asm.h.
12762         (STOP): Likewise.
12763         (strcspn): Do not use BP_SYM.
12764         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
12765         "bp-asm.h".
12766         (PARMS): Do not use macros from bp-asm.h.
12767         (STR): Likewise.
12768         (STOP): Likewise.
12769         (strpbrk): Likewise.  Do not use BP_SYM.
12770         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
12771         "bp-asm.h".
12772         (PARMS): Do not use macros from bp-asm.h.
12773         (STR): Likewise.
12774         (CHR): Likewise.
12775         (strrchr): Likewise.  Do not use BP_SYM.
12776         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
12777         (PARMS): Do not use macros from bp-asm.h.
12778         (SKIP): Likewise.
12779         (strspn): Do not use BP_SYM.
12780         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
12781         (PARMS): Do not use macros from bp-asm.h.
12782         (STR): Likewise.
12783         (DELIM): Likewise.
12784         (SAVE): Likewise.
12785         (FUNCTION): Likewise.  Do not use BP_SYM.
12786         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
12787         aliases.
12788         (strtok_r): Likewise.
12789         (__GI___strtok_r): Likewise.
12790         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12791         (PARMS): Do not use macros from bp-asm.h.
12792         (S1): Likewise.
12793         (S2): Likewise.
12794         (SIZE): Likewise.
12795         (__mpn_sub_n): Do not use BP_SYM.
12796         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
12797         "bp-asm.h".
12798         (PARMS): Do not use macros from bp-asm.h.
12799         (S1): Likewise.
12800         (SIZE): Likewise.
12801         (__mpn_submul_1): Do not use BP_SYM.
12802         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
12803         <bp-sym.h>.
12804         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
12805         and <bp-asm.h>.
12806         (PARMS): Do not use macros from bp-asm.h.
12807         (FLAGS): Likewise.
12808         (PTID): Likewise.
12809         (TLS): Likewise.
12810         (CTID): Likewise.
12811         (__clone): Do not use BP_SYM.
12812         (clone): Do not use BP_SYM in weak_alias.
12813         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
12814         and <bp-asm.h>.
12815         (PARMS): Do not use macros from bp-asm.h.
12816         (LEN): Likewise.
12817         (__mmap64): Do not use BP_SYM.
12818         (mmap64): Do not use BP_SYM in weak_alias.
12819         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
12820         <bp-sym.h> and <bp-asm.h>.
12821         (PARMS): Do not use macros from bp-asm.h.
12822         (__posix_fadvise64_l64): Do not use BP_SYM.
12823         * sysdeps/unix/sysv/linux/i386/semtimedop.S
12824         (PARMS): Do not use macros from bp-asm.h.
12825         (NSOPS): Likewise.
12826         (semtimedop): Do not use BP_SYM.
12827         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
12828         and <bp-asm.h>.
12829
12830 2013-02-21  Allan McRae  <allan@archlinux.org>
12831
12832         * manual/message.texi (Charset conversion in gettext):
12833         Move @end statement to beginning of line.
12834
12835 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12836
12837         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
12838         static.
12839         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
12840         Likewise.
12841
12842         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
12843         (denorm): Likewise.
12844         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
12845         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
12846
12847 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12848
12849         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
12850         tail-call to the resolved function if pltexit isn't needed.
12851
12852 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12853
12854         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
12855         or Y being zero as being unlikely.
12856         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12857         Likewise.
12858
12859 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
12860
12861         * manual/nss.texi (System Databases and Name Service Switch):
12862         Remove frobnicate @pxref.
12863
12864 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12865
12866         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12867         __attribute__ ((unused)) to __attribute__ ((__unused__)).
12868
12869 2013-02-20  Petr Machata  <pmachata@redhat.com>
12870
12871         * elf/elf.h (R_ARM_TARGET1): New macro.
12872         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
12873         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
12874         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
12875         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
12876         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
12877         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
12878         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
12879         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
12880         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
12881         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
12882         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
12883         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
12884         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
12885         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
12886         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
12887         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
12888         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
12889         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
12890         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
12891         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
12892         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
12893         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
12894         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
12895         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
12896         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
12897         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
12898         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
12899         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
12900         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
12901         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
12902         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
12903         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
12904         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
12905         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
12906         (R_ARM_THM_GOT_BREL12): Likewise.
12907         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
12908         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
12909         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
12910         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
12911         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
12912         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
12913         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
12914         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
12915         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
12916
12917 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12918
12919         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12920         __attribute_used__ to __attribute__ ((unused)).
12921
12922 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12923
12924         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
12925         powerpc mpa.c.
12926         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
12927         comment formatting.
12928         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
12929
12930 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
12931
12932         [BZ #13550]
12933         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
12934         Remove macro.
12935         (ENTER): Remove both macro definitions.
12936         (LEAVE): Likewise.
12937         (CHECK_BOUNDS_LOW): Likewise.
12938         (CHECK_BOUNDS_HIGH): Likewise.
12939         (CHECK_BOUNDS_BOTH): Likewise.
12940         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
12941         (RETURN_BOUNDED_POINTER): Likewise.
12942         (RETURN_NULL_BOUNDED_POINTER): Likewise.
12943         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
12944         (POP_ERRNO_LOCATION_RETURN): Likewise.
12945         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
12946         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12947         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
12948         macros.
12949         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12950         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
12951         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
12952         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
12953         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
12954         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
12955         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
12956         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
12957         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
12958         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
12959         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
12960         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
12961         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12962         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
12963         removed macros.
12964         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12965         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
12966         macros.
12967         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12968         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
12969         * sysdeps/i386/i586/memset.S (memset): Likewise.
12970         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
12971         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12972         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
12973         macros.
12974         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12975         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
12976         Change uses of L(2) to L(out).
12977         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
12978         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
12979         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
12980         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12981         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
12982         removed macros.
12983         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12984         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
12985         macros.
12986         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12987         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
12988         (RETURN): Do not use macro LEAVE.
12989         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
12990         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
12991         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
12992         * sysdeps/i386/i686/memset.S (memset): Likewise.
12993         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
12994         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
12995         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12996         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
12997         Likewise.
12998         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12999         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
13000         L(1_2) and L(1_3) into L(1).
13001         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13002         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
13003         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13004         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
13005         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
13006         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
13007         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
13008         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13009         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
13010         macros.
13011         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
13012         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13013         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
13014         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
13015         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
13016         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
13017         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
13018         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
13019         * sysdeps/i386/strcspn.S (strcspn): Likewise.
13020         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
13021         * sysdeps/i386/strrchr.S (strrchr): Likewise.
13022         * sysdeps/i386/strspn.S (strspn): Likewise.
13023         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
13024         conditional code.
13025         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13026         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
13027         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13028         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
13029         L(1_3) into L(1_1).
13030         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
13031         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13032         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
13033         macros.
13034         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13035
13036 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
13037
13038         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
13039         macro.
13040
13041 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13042
13043         * math/atest-exp.c (exp_mpn): Remove ROUND.
13044         * math/atest-exp2.c (exp_mpn): Likewise.
13045         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
13046
13047         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
13048         * stdlib/tst-tls-atexit-lib.c: Likewise.
13049         * stdlib/tst-tls-atexit.c: Likewise.
13050
13051 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13052
13053         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
13054         and __attribute_alloc_size__.
13055
13056 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13057
13058         * include/programs/xmalloc.h: Change __attribute_alloc_size to
13059         __attribute_alloc_size__.
13060         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
13061         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
13062
13063 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13064
13065         * include/programs/xmalloc.h: New file.
13066         * catgets/gencat.c: Include it.
13067         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
13068         * elf/pldd.c: Likewise.
13069         * iconv/iconv_charmap.c: Likewise.
13070         * iconv/iconvconfig.c: Likewise.
13071         * iconv/strtab.c: Likewise.
13072         * locale/programs/locale.c: Likewise.
13073         * locale/programs/localedef.h: Likewise.
13074         * locale/programs/simple-hash.c: Likewise.
13075         * nscd/nscd.h: Likewise.
13076         * nss/makedb.c: Likewise.
13077         * sysdeps/generic/ldconfig.h: Likewise.
13078
13079 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13080
13081         * Versions.def: Add GLIBC_2.18.
13082         * include/link.h (struct link_map): New member l_tls_dtor_count.
13083         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
13084         (__call_tls_dtors): Likewise.
13085         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
13086         __cxa_thread_atexit_impl.
13087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13088         Likewise.
13089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13090         Likewise.
13091         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
13092         Likewise.
13093         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
13094         Likewise.
13095         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13096         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
13097         Likewise.
13098         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
13099         Likewise.
13100         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13101         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13102         Likewise.
13103         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
13104         (tests): Add test case tst-tls-atexit.
13105         (modules-names): Add shared library for tst-tls-atexit.
13106         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
13107         (GLIBC_PRIVATE): Add __call_tls_dtors.
13108         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
13109         for libstdc++.
13110         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
13111         * stdlib/tst-tls-atexit.c: New test case.
13112         * stdlib/tst-tls-atexit-lib.c: New test case.
13113
13114         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
13115
13116         * elf/Versions (ld): Add _dl_find_dso_for_object.
13117         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
13118         * elf/dl-open.c (_dl_find_dso_for_object): New function.
13119         (dl_open_worker): Use _dl_find_dso_for_object.
13120         * elf/dl-sym.c (do_sym): Likewise.
13121         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
13122
13123 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13124
13125         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
13126         Syntactic changes only.
13127         (_dl_runtime_profile): Do a tail-call to the resolved function.
13128
13129 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
13130
13131         [BZ #13550]
13132         * sysdeps/x86_64/bp-asm.h: Remove file.
13133         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
13134         <bp-sym.h> and <bp-asm.h>.
13135         (__clone): Do not use BP_SYM.
13136         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
13137         <bp-sym.h> and <bp-asm.h>.
13138         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13139         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
13140         "bp-asm.h".
13141         (_setjmp): Do not use BP_SYM.
13142         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
13143         "bp-asm.h".
13144         (setjmp): Do not use BP_SYM.
13145         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
13146         libc_hidden_def.
13147         (mempcpy): Do not use BP_SYM in weak_alias.
13148         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
13149         "bp-asm.h".
13150         (strchr): Do not use BP_SYM.
13151         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
13152         "bp-asm.h".
13153         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
13154         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
13155         (_start): Do not use BP_SYM.
13156         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
13157         "bp-asm.h".
13158         (strcat): Do not use BP_SYM.
13159         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
13160         "bp-asm.h".
13161         (STRCMP): Do not use BP_SYM.
13162         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
13163         "bp-asm.h".
13164         (STRCPY): Do not use BP_SYM.
13165         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
13166         "bp-asm.h".
13167         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
13168         "bp-asm.h".
13169         (FUNCTION): Do not use BP_SYM.
13170         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
13171         weak_alias.
13172         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
13173
13174 2013-02-17  Andreas Jaeger  <aj@suse.de>
13175
13176         * time/Versions: Sort entries.
13177         * string/Versions: Likewise.
13178         * resolv/Versions: Likewise.
13179         * posix/Versions: Likewise.
13180         * iconv/Versions: Likewise.
13181         * elf/Versions: Likewise.
13182         * wcsmbs/Versions: Likewise.
13183
13184 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13185
13186         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
13187         loop termination condition.
13188
13189         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
13190         variable to calculate EZ.
13191         (__sqr): Likewise.
13192
13193         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
13194         the lower precision input.
13195
13196 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
13197
13198         [BZ #13550]
13199         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
13200         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
13201         (run-via-rtld-prefix): Do not handle %-bp tests.
13202         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
13203         (all-object-suffixes): Remove .ob.
13204         (bppfx): Remove variable.
13205         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
13206         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
13207         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
13208         [$(build-bounded) = yes] (libtype.ob): Likewise.
13209         * Makerules (elide-routines.ob): Remove variable.
13210         (do-tests-clean): Do not handle *-bp.out.
13211         (common-mostlyclean): Do not handle *-bp and *-bp.out.
13212         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
13213         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
13214         (tests): Do not include $(tests-bp.out).
13215         (xtests): Do not include $(xtests-bp.out).
13216         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
13217         [$(build-bounded) = yes] ($(addprefix
13218         $(objpfx),$(binaries-bounded))): Remove rule.
13219         ($(objpfx)%-bp.out): Remove rule.
13220         * config.make.in (build-bounded): Remove variable.
13221         * crypt/Makefile [$(build-bounded) = yes]
13222         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
13223         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
13224         append to variable.
13225         [$(build-bounded) = yes] (install-lib): Likewise.
13226         [$(build-bounded) = yes] (generated): Likewise.
13227         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
13228         Remove rule.
13229         * intl/Makefile [$(build-bounded) = yes]
13230         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
13231         * math/Makefile [$(build-bounded) = yes]
13232         ($(tests:%=$(objpfx)%-bp): Likewise.
13233         * misc/Makefile [$(build-bounded) = yes]
13234         ($(objpfx)tst-tsearch-bp): Likewise.
13235         * nptl/Makeconfig (bounded-thread-library): Remove variable.
13236         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
13237         Remove dependency.
13238         * string/Makefile (o-objects.ob): Remove variable.
13239         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
13240         (CFLAGS-.ob): Remove variable.
13241         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
13242         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
13243         both definitions of variable.
13244         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
13245         (ASFLAGS-.ob): Remove variable.
13246
13247 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
13248
13249         [BZ #13550]
13250         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
13251         Remove __BOUNDED_POINTERS__ from condition.
13252         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
13253         * string/bits/string2.h [!__NO_STRING_INLINES &&
13254         !__BOUNDED_POINTERS__]: Likewise.
13255         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
13256         Likewise.
13257         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
13258         Remove conditional code.
13259         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
13260         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
13261         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
13262         condition.
13263
13264         [BZ #13550]
13265         * csu/libc-start.c: Do not include <bp-sym.h>.
13266         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
13267         * elf/dl-open.c: Do not include <bp-sym.h>.
13268         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
13269         * math/fegetenv.c: Do not include <bp-sym.h>.
13270         (fegetenv): Do not use BP_SYM in versioned symbols.
13271         * nptl/sysdeps/pthread/bits/libc-lockP.h
13272         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
13273         <bp-sym.h>.
13274         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13275         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
13276         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13277         (__pthread_mutex_destroy): Likewise.
13278         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13279         (__pthread_mutex_lock): Likewise.
13280         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13281         (__pthread_mutex_trylock): Likewise.
13282         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13283         (__pthread_mutex_unlock): Likewise.
13284         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13285         (__pthread_mutexattr_init): Likewise.
13286         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13287         (__pthread_mutexattr_destroy): Likewise.
13288         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13289         (__pthread_mutexattr_settype): Likewise.
13290         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13291         (__pthread_rwlock_init): Likewise.
13292         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13293         (__pthread_rwlock_destroy): Likewise.
13294         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13295         (__pthread_rwlock_rdlock): Likewise.
13296         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13297         (__pthread_rwlock_tryrdlock): Likewise.
13298         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13299         (__pthread_rwlock_wrlock): Likewise.
13300         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13301         (__pthread_rwlock_trywrlock): Likewise.
13302         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13303         (__pthread_rwlock_unlock): Likewise.
13304         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13305         (__pthread_key_create): Likewise.
13306         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13307         (__pthread_setspecific): Likewise.
13308         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13309         (__pthread_getspecific): Likewise.
13310         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
13311         Likewise.
13312         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13313         (_pthread_cleanup_push_defer): Likewise.
13314         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13315         (_pthread_cleanup_pop_restore): Likewise.
13316         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13317         (pthread_setcancelstate): Likewise.
13318         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
13319         <bp-sym.h>.
13320         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
13321         (memchr): Do not use BP_SYM in weak_alias.
13322         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
13323         (fegetenv): Do not use BP_SYM in versioned symbols.
13324         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
13325         (fesetenv): Do not use BP_SYM in versioned symbols.
13326         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13327         (feupdateenv): Do not use BP_SYM in versioned symbols.
13328         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13329         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13330         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
13331         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
13332         (open64): Do not use BP_SYM in weak_alias.
13333         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
13334         (fegetenv): Do not use BP_SYM in versioned symbols.
13335         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
13336         (fesetenv): Do not use BP_SYM in versioned symbols.
13337         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13338         (feupdateenv): Do not use BP_SYM in versioned symbols.
13339         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
13340         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
13341         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
13342         (feraiseexcept): Do not use BP_SYM in versioned symbols.
13343         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13344         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13345         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
13346         <bp-sym.h>.
13347         (__libc_start_main): Do not use BP_SYM.
13348
13349 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13350
13351         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
13352         redundant return line.
13353         (norm): Likewise.
13354         (denorm): Likewise.
13355         (dbl_mp): Likewise.
13356         (sub_magnitudes): Likewise.
13357         (__add): Likewise.
13358         (__sub): Likewise.
13359         (__mul): Likewise.
13360         (__inv): Likewise.
13361         (__dvd): Likewise.
13362         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
13363         (norm): Likewise.
13364         (denorm): Likewise.
13365         (dbl_mp): Likewise.
13366         (sub_magnitudes): Likewise.
13367         (__add): Likewise.
13368         (__sub): Likewise.
13369         (__mul): Likewise.
13370         (__inv): Likewise.
13371         (__dvd): Likewise.
13372
13373         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
13374         instead of __mul.
13375         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13376         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
13377         (cc32): Likewise.
13378
13379         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
13380         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
13381         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
13382         of __mul for squares.
13383         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
13384         function
13385         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
13386         Likewise.
13387         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
13388         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13389
13390 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
13391
13392         [BZ #13550]
13393         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
13394         code.
13395         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
13396         prototype or function definition.  Rename ubp_* variables and
13397         parameters.  Remove argv definitions conditional on
13398         [__BOUNDED_POINTERS__].
13399         * debug/backtrace.c (__backtrace): Do not use __unbounded.
13400         * elf/dl-runtime.c (_dl_fixup): Likewise.
13401         * include/set-hooks.h (RUN_HOOK): Likewise.
13402         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
13403         definition.
13404         * string/strcpy.c (strcpy): Do not use __unbounded.
13405         * sysdeps/generic/frame.h (struct layout): Likewise.
13406         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
13407         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
13408         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
13409         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
13410         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
13411         (__backtrace): Likewise.
13412         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
13413         use __ptrvalue.
13414         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13415         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13416         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
13417         Likewise.
13418         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
13419         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
13420         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
13421         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13422         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
13423         Do not use __unbounded.
13424         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
13425         Rename __unboundedrlimits parameter to rlimits in prototype.
13426         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
13427         Do not use __unbounded.
13428         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
13429         not use __ptrvalue.
13430         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13431         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
13432         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13433         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
13434         __ptrvalue or __unbounded.
13435         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
13436         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
13437         use __unbounded.
13438         (__new_msgctl): Do not use __ptrvalue.
13439         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
13440         __unbounded.
13441         (__libc_msgrcv): Do not use __ptrvalue.
13442         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
13443         startup_info): Do not use __unbounded.
13444         (__libc_start_main): Likewise.  Rename ubp_* variables and
13445         parameters.  Remove argv definitions conditional on
13446         [__BOUNDED_POINTERS__].
13447         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
13448         __ptrvalue.
13449         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
13450         use __unbounded.
13451         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
13452         or __ptrvalue.
13453         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
13454         use __unbounded.
13455         (__new_shmctl): Do not use __ptrvalue.
13456         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
13457         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
13458         Likewise.
13459         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
13460         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
13461         (__libc_sigaction): Likewise.
13462         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
13463         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
13464         Likewise.
13465         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13466
13467 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
13468
13469         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
13470
13471         * string/mempcpy.c: Implement by calling memcpy.
13472
13473 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13474
13475         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
13476
13477         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
13478         evaluation.
13479
13480         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
13481         values in the mantissa.
13482
13483         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
13484         minimize writes to Z.
13485         (sub_magnitudes): Simplify code a bit.
13486
13487 2013-02-12  Roland McGrath  <roland@hack.frob.com>
13488
13489         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
13490         from the message.  The linker prefixes all warnings with that already.
13491
13492 2013-02-12  Andreas Schwab  <schwab@suse.de>
13493
13494         [BZ #15078]
13495         * posix/regexec.c (extend_buffers): Add parameter min_len.
13496         (check_matching): Pass minimum needed length.
13497         (clean_state_log_if_needed): Likewise.
13498         (get_subexp): Likewise.
13499         * posix/Makefile (tests): Add bug-regex34.
13500         (bug-regex34-ENV): Define.
13501         * posix/bug-regex34.c: New file.
13502
13503         [BZ #11561]
13504         * posix/regcomp.c (parse_bracket_exp): When looking up collating
13505         elements compare against the byte sequence of it, not its name.
13506         * posix/Makefile (tests): Add bug-regex35.
13507         (bug-regex35-ENV): Define.
13508         * posix/bug-regex35.c: New file.
13509
13510 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13511
13512         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
13513         comment.
13514         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
13515         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
13516         (CHECK_EOL): Add undef.
13517
13518 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
13519
13520         * bits/stdlib-bsearch.h: New file.
13521         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
13522         * stdlib/stdlib.h: Likewise.
13523
13524 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13525
13526         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
13527         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
13528         declaration.
13529         * manual/search.texi (Array Search Function): Add missing const in
13530         lfind prototype.
13531         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
13532         declaration to use rlim_t.
13533         (Basic Scheduling Functions): Remove erroneous const from
13534         sched_getparam prototype.  Remove erroneous * from
13535         sched_get_priority_max and sched_get_priority_min prototypes.
13536         (Resource Usage): Fix summary @comment on vtimes to refer to
13537         sys/vtimes.h rather than vtimes.h.
13538         Add missing *s in vtimes prototype.
13539         (Limits on Resources): Fix ulimit prototype to return long int.
13540         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
13541         prototypes to use long int rather than double.
13542         (BSD Random): Fix initstate and setstate to use char *, not void *.
13543         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
13544         prototype to make second argument 'struct aiocb64 *const[]'.
13545         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
13546         (Status of AIO Operations): Remove erroneous const in aio_return and
13547         aio_return64 prototypes.
13548         (Synchronizing I/O): Fix sync prototype to return void.
13549         * manual/startup.texi (Suboptions): Remove an erroneous const in
13550         getsubopt prototype.
13551         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
13552         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
13553         use size_t rather than int.
13554         (Scanning All Users): Likewise for getpwent_r.
13555         (Setting Groups): Add missing const to setgroups prototype.
13556         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
13557         * manual/socket.texi (Host Names): Fix gethostbyaddr and
13558         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
13559         'const void *' rather than 'const char *'.
13560         (Host Address Functions): Likewise for inet_ntop.
13561         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
13562         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
13563         ssize_t for return value.
13564         (Sending Data): Likewise for send, sendto, sendmsg.
13565         (Socket Option Functions): Add a missing const in setsockopt prototype.
13566         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
13567         use wchar_t for the argument.
13568         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
13569         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
13570         take no arguments.
13571         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
13572         double/float/long double for second argument.
13573         Fix return types of significand, significandf, significandl.
13574         * manual/filesys.texi (Setting Permissions): Use mode_t for second
13575         argument in fchmod prototype.
13576         (File Owner): Use uid_t and gid_t in fchown prototype.
13577         (File Times): Add const to utimes, futimes, and lutimes prototypes.
13578         (Making Special Files): Use mode_t and dev_t in mknod prototype.
13579         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
13580         use 'const struct dirent **' as argument types to CMP function pointer
13581         argument.
13582         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
13583         (File Times): Fix summary magic @comment for struct utimbuf and utime
13584         to refer to utime.h, not time.h.
13585         * manual/string.texi (Argz Functions): Add missing const in
13586         argz_extract and argz_next prototypes.
13587         (Finding Tokens in a String): Likewise for basename.
13588         (String/Array Comparison): Fix typo in wcscasecmp prototype.
13589         (Copying and Concatenation): Fix typo in wmemmove prototype.
13590         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
13591         (Signal Stack): Remove erroneous const in sigstack prototype.
13592         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
13593         prototype.
13594         (Simple Calendar Time): Likewise for stime.
13595         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
13596         prototype.
13597         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
13598         say sys/sysctl.h instead.
13599         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
13600         and vsyslog prototypes.
13601
13602 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13603
13604         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
13605         Remove.
13606
13607 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13608
13609         * misc/sys/mman.h: Fix typo in mremap comment.
13610
13611 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13612
13613         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
13614         the '\0' terminator.
13615
13616 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13617
13618         [BZ #13550]
13619         * debug/segfault.c: Don't include <bp-checks.h>.
13620         * sysdeps/generic/bp-checks.h: Remove file.
13621         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
13622         (__GETDENTS): Don't use CHECK_N.
13623         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
13624         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
13625         (__getgroups): Don't use CHECK_N.
13626         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
13627         (setgroups): Don't use CHECK_N.
13628         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
13629         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13630         (__libc_msgrcv): Don't use CHECK_N.
13631         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
13632         (__libc_msgsnd): Don't use CHECK_N.
13633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
13634         <bp-checks.h>.
13635         (__libc_pread): Don't use CHECK_N.
13636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
13637         include <bp-checks.h>.
13638         (__libc_pread64): Don't use CHECK_N.
13639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
13640         include <bp-checks.h>.
13641         (__libc_pwrite): Don't use CHECK_N.
13642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
13643         include <bp-checks.h>.
13644         (__libc_pwrite64): Don't use CHECK_N.
13645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
13646         <bp-checks.h>.
13647         (__libc_pread): Don't use CHECK_N.
13648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
13649         include <bp-checks.h>.
13650         (__libc_pread64): Don't use CHECK_N.
13651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
13652         include <bp-checks.h>.
13653         (__libc_pwrite): Don't use CHECK_N.
13654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
13655         include <bp-checks.h>.
13656         (__libc_pwrite64): Don't use CHECK_N.
13657         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
13658         (do_pread): Don't use CHECK_N.
13659         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
13660         (do_pread64): Don't use CHECK_N.
13661         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
13662         (do_pwrite): Don't use CHECK_N.
13663         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
13664         (do_pwrite64): Don't use CHECK_N.
13665         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
13666         (__libc_readv): Don't use CHECK_N.
13667         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
13668         (semop): Don't use CHECK_N.
13669         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
13670         <bp-checks.h>.
13671         (semtimedop): Don't use CHECK_N.
13672         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
13673         (__libc_pread): Don't use CHECK_N.
13674         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
13675         <bp-checks.h>.
13676         (__libc_pread64): Don't use CHECK_N.
13677         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
13678         <bp-checks.h>.
13679         (__libc_pwrite): Don't use CHECK_N.
13680         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
13681         <bp-checks.h>.
13682         (__libc_pwrite64): Don't use CHECK_N.
13683         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
13684         <bp-checks.h>.
13685         (__libc_msgrcv): Don't use CHECK_N.
13686         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
13687         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
13688         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
13689         (__libc_writev): Don't use CHECK_N.
13690
13691 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13692
13693         * string/strcpy.c: Removed unused variable.
13694
13695         * Makeconfig (+sysdep-includes): Define with := rather than =.
13696         Use an existing include/ subdir of each sysdeps dir before it.
13697
13698 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13699
13700         * nscd/connection.c (register_traced_file): Comment function.
13701         [HAVE_INOTIFY] (union __inev): Define.
13702         [HAVE_INOTIFY] (inotify_check_files): New function.
13703         [HAVE_INOTIFY] (clear_db_cache): Likewise.
13704         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
13705         clear_db_cache.
13706         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
13707
13708 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13709
13710         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
13711         loaded if not already and that a failure is permanent.
13712
13713 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13714
13715         [BZ #15006]
13716         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
13717         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
13718
13719 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13720
13721         [BZ #13550]
13722         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
13723         (CHECK_1_NULL_OK): Likewise.
13724         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
13725         (__fxstat): Do not use CHECK_1.
13726         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
13727         <bp-checks.h>.
13728         (___fxstat64): Do not use CHECK_1.
13729         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
13730         <bp-checks.h>.
13731         (__fxstatat): Do not use CHECK_1.
13732         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
13733         <bp-checks.h>.
13734         (__fxstatat64): Do not use CHECK_1.
13735         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
13736         <bp-checks.h>.
13737         (__fxstat): Do not use CHECK_1.
13738         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
13739         <bp-checks.h>.
13740         (__fxstatat): Do not use CHECK_1.
13741         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13742         <bp-checks.h>.
13743         (__getresgid): Do not use CHECK_1.
13744         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13745         <bp-checks.h>.
13746         (__getresuid): Do not use CHECK_1.
13747         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
13748         <bp-checks.h>.
13749         (__lxstat): Do not use CHECK_1.
13750         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13751         <bp-checks.h>.
13752         (__old_msgctl): Do not use CHECK_1.
13753         (__new_msgctl): Likewise.
13754         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
13755         <bp-checks.h>.
13756         (__new_setrlimit): Do not use CHECK_1.
13757         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13758         <bp-checks.h>.
13759         (__old_shmctl): Do not use CHECK_1.
13760         (__new_shmctl): Likewise.
13761         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
13762         <bp-checks.h>.
13763         (__xstat): Do not use CHECK_1.
13764         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
13765         (__lxstat): Do not use CHECK_1.
13766         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
13767         <bp-checks.h>.
13768         (___lxstat64): Do not use CHECK_1.
13769         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
13770         (__old_msgctl): Do not use CHECK_1.
13771         (__new_msgctl): Likewise.
13772         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
13773         <bp-checks.h>.
13774         (__gettimeofday): Do not use CHECK_1.
13775         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
13776         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
13777         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
13778         <bp-checks.h>.
13779         (__gettimeofday): Do not use CHECK_1.
13780         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
13781         (__old_shmctl): Do not use CHECK_1_NULL_OK.
13782         (__new_shmctl): Do not use CHECK_1.
13783         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
13784         <bp-checks.h>.
13785         (do_sigtimedwait): Do not use CHECK_1.
13786         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
13787         <bp-checks.h>.
13788         (do_sigwaitinfo): Do not use CHECK_1.
13789         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
13790         <bp-checks.h>.
13791         (msgctl): Do not use CHECK_1.
13792         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
13793         <bp-checks.h>.
13794         (shmctl): Do not use CHECK_1.
13795         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
13796         (ustat): Do not use CHECK_1.
13797         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
13798         <bp-checks.h>.
13799         (__fxstat): Do not use CHECK_1.
13800         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
13801         <bp-checks.h>.
13802         (__fxstatat): Do not use CHECK_1.
13803         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
13804         <bp-checks.h>.
13805         (__lxstat): Do not use CHECK_1.
13806         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
13807         <bp-checks.h>.
13808         (__xstat): Do not use CHECK_1.
13809         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
13810         (__xstat): Do not use CHECK_1.
13811         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
13812         (___xstat64): Do not use CHECK_1.
13813
13814         [BZ #13550]
13815         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
13816         definitions.
13817         (CHECK_BOUNDS_HIGH): Likewise.
13818         * string/strcpy.c: Do not include <bp-checks.h>.
13819         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
13820
13821 2013-02-07  Roland McGrath  <roland@hack.frob.com>
13822
13823         * nscd/nscd-client.h (__nscd_drop_map_ref):
13824         Add __attribute__ ((unused)).
13825         * nis/nss-nisplus.h (niserr2nss): Likewise.
13826
13827         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
13828         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
13829
13830         * csu/libc-tls.c (init_static_tls, init_slotinfo):
13831         Remove inline keyword.
13832         * include/rounding-mode.h (round_away): Likewise.
13833         * libio/wfileops.c (adjust_wide_data): Likewise.
13834         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
13835         (__m128i_strloadu_tolower): Likewise.
13836         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
13837         (__m128i_strloadu_tolower): Likewise.
13838         * time/mktime.c (ydhms_diff): Likewise.
13839         * locale/elem-hash.h (elem_hash): Likewise.
13840         * locale/setlocale.c (setdata): Likewise.
13841         * posix/regex_internal.h (re_string_char_size_at): Likewise.
13842         (re_string_wchar_at): Likewise.
13843         (bitset_not, bitset_merge, bitset_mask): Likewise.
13844         [!(__GNUC__ > 3)] (inline): Remove macro.
13845         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
13846         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
13847         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
13848         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
13849         * string/memcmp.c (memcmp_bytes): Likewise.
13850         * locale/programs/locarchive.c (compute_hashval): Likewise.
13851         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
13852         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
13853         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
13854         * nss/getent.c (print_rpc, print_protocols): Likewise.
13855         (print_passwd, print_group, print_aliases): Likewise.
13856         * nis/nss-nisplus.h (niserr2nss): Likewise.
13857         * nscd/connections.c (restart_p): Likewise.
13858         Change return type to bool.
13859
13860 2013-02-05  Roland McGrath  <roland@hack.frob.com>
13861
13862         * Makeconfig (all-Depend-files): Add existing
13863         $(sorted-subdirs:=/Depend) files.
13864         (all-subdirs): Remove nss.
13865         * sysdeps/unix/inet/Subdirs: Add it here instead.
13866         * hesiod/Depend: New file.
13867
13868         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
13869         instead of calling alloca.
13870
13871         * io/lseek.c (__lseek): Rename to __libc_lseek.
13872         Define __lseek as an alias.
13873
13874         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
13875
13876 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
13877
13878         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
13879         else clause and remove check for non-standard endianness.
13880
13881 2013-02-04  David S. Miller  <davem@davemloft.net>
13882
13883         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13884
13885 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
13886
13887         [BZ #13550]
13888         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
13889         (__ubp_memchr): Remove prototype.
13890         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
13891         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13892         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
13893         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13894         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
13895         Remove alias.
13896         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
13897         (__ubp_memchr): Likewise.
13898         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
13899         (__ubp_memchr): Likewise.
13900         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
13901         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
13902         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
13903         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
13904         CHECK_STRING.
13905         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
13906         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
13907         (__getcwd): Do not use CHECK_STRING.
13908         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13909         <bp-checks.h>.
13910         (__real_chown): Do not use CHECK_STRING.
13911         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
13912         <bp-checks.h>.
13913         (fchownat): Do not use CHECK_STRING.
13914         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
13915         CHECK_STRING.
13916         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13917         <bp-checks.h>.
13918         (__lchown): Do not use CHECK_STRING.
13919         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13920         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13921         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13922         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
13923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13924         include <bp-checks.h>.
13925         (truncate64): Do not use CHECK_STRING.
13926         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13927         <bp-checks.h>.
13928         (__real_chown): Do not use CHECK_STRING.
13929         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13930         <bp-checks.h>.
13931         (__lchown): Do not use CHECK_STRING.
13932         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13933         <bp-checks.h>.
13934         (__chown): Do not use CHECK_STRING.
13935         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
13936         <bp-checks.h>.
13937         (truncate64): Do not use CHECK_STRING.
13938         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
13939         Likewise.
13940         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
13941         (__xmknod): Do not use CHECK_STRING.
13942         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
13943         <bp-checks.h>.
13944         (__xmknodat): Do not use CHECK_STRING.
13945         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13946         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
13947
13948 2013-02-04  Andreas Schwab  <schwab@suse.de>
13949
13950         [BZ #14142]
13951         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
13952         * include/netdb.h: Likewise for h_errno.
13953         * elf/tst-stackguard1.c: Include <tls.h>.
13954
13955 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13956
13957         * elf/link.h (struct link_map): Extend the l_addr comment.
13958         * include/link.h (struct link_map): Likewise.
13959
13960 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
13961
13962         [BZ #13550]
13963         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
13964         (BOUNDED_1): Remove macro.
13965         * debug/backtrace.c: Don't include <bp-checks.h>.
13966         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
13967         (__backtrace): Likewise.
13968         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
13969         <bp-checks.h>.
13970         (__backtrace): Don't use BOUNDED_1.
13971         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
13972         <bp-checks.h>.
13973         (__backtrace): Don't use BOUNDED_1.
13974         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
13975         (__backtrace): Don't use BOUNDED_1.
13976         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
13977         (shmat): Don't use BOUNDED_N.
13978
13979 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
13980
13981         [BZ #13550]
13982         * sysdeps/generic/bp-start.h: Remove file.
13983         * csu/libc-start.c: Don't include <bp-start.h>.
13984         (LIBC_START_MAIN): Set up __environ directly instead of using
13985         INIT_ARGV_and_ENVIRON.
13986         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
13987         <bp-start.h>.
13988
13989         [BZ #13550]
13990         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
13991         definitions.
13992         (CHECK_FCNTL): Likewise.
13993         (CHECK_N_PAGES): Likewise.
13994
13995         [BZ #13550]
13996         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
13997         definitions.
13998         (CHECK_SIGSET_NULL_OK): Likewise.
13999         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
14000         <bp-checks.h>.
14001         (sigpending): Don't use CHECK_SIGSET.
14002         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
14003         <bp-checks.h>.
14004         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14005         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
14006         <bp-checks.h>.
14007         (do_sigsuspend): Don't use CHECK_SIGSET.
14008         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
14009         use CHECK_SIGSET.
14010         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
14011         (do_sigwait): Don't use CHECK_SIGSET.
14012         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
14013         use CHECK_SIGSET.
14014         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
14015         include <bp-checks.h>.
14016         (sigpending): Don't use CHECK_SIGSET.
14017         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
14018         include <bp-checks.h>.
14019         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14020         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
14021         <bp-checks.h>.
14022         (sigpending): Don't use CHECK_SIGSET.
14023         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
14024         <bp-checks.h>.
14025         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14026
14027         [BZ #13550]
14028         * sysdeps/generic/bp-semctl.h: Remove file.
14029         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
14030         <bp-checks.h> and <bp-semctl.h>.
14031         (__old_semctl): Don't use CHECK_SEMCTL.
14032         (__new_semctl): Likewise.
14033         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
14034         and <bp-semctl.h>.
14035         (__old_semctl): Don't use CHECK_SEMCTL.
14036         (__new_semctl): Likewise.
14037         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
14038         <bp-checks.h> and <bp-semctl.h>.
14039         (__old_semctl): Don't use CHECK_SEMCTL.
14040         (__new_semctl): Likewise.
14041         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
14042         <bp-checks.h> and <bp-semctl.h>.
14043         (semctl): Don't use CHECK_SEMCTL.
14044
14045         [BZ #13550]
14046         * Makerules (elide-bp-thunks): Remove variable.
14047         (elide-routines.oS): Don't use $(elide-bp-thunks).
14048         (elide-routines.os): Likewise.
14049         (elide-routines.o): Likewise.
14050         (elide-routines.op): Likewise.
14051         (elide-routines.og): Likewise.
14052         (objects): Don't use $(bp-thunks).
14053         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
14054         include.
14055         (common-generated): Do not add s-proto-bp.d.
14056         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
14057         (int): Likewise.
14058         (typ): Likewise.
14059         Do not generate makefile rules for bounded-pointer thunks.
14060         * sysdeps/generic/bp-thunks.h: Remove file.
14061         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
14062         * sysdeps/unix/s-proto-bp.S: Likewise.
14063
14064         [BZ #15062]
14065         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
14066         parts of result separately when argument is not close to line from
14067         -i to i and one part of argument is small.
14068         * math/k_casinhf.c (__kernel_casinhf): Likewise.
14069         * math/k_casinhl.c (__kernel_casinhl): Likewise.
14070         * math/libm-test.inc (cacos_test): Add more tests.
14071         (casin_test): Likewise.
14072         (casinh_test): Likewise.
14073         * sysdeps/i386/fpu/libm-test-ulps: Update.
14074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14075
14076 2013-01-31  David S. Miller  <davem@davemloft.net>
14077
14078         * po/de.po: Update from translation team.
14079
14080 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
14081
14082         * time/tzfile.c: Include stdint.h for SIZE_MAX.
14083
14084 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
14085
14086         * configure.in (_AC_PROG_CC_C89): New definition.
14087         * configure: Regenerate.
14088
14089         * configure.in (AC_PROG_CPP): New definition.
14090         * configure: Regenerate.
14091
14092 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14093
14094         * debug/tst-backtrace.h: New file.
14095         * debug/tst-backtrace2.c: Include tst-backtrace.h.
14096         (ret): Remove variable.
14097         (x): Likewise.
14098         (FAIL): Remove macro.
14099         (NO_INLINE): Likewise.
14100         (fn1): Use match function instead of strstr.
14101         * debug/tst-backtrace3.c: Include tst-backtrace.h.
14102         (ret): Remove variable.
14103         (x): Likewise.
14104         (FAIL): Remove macro.
14105         (NO_INLINE): Likewise.
14106         (fn): Use match function instead of strstr.
14107         * debug/tst-backtrace4.c: Include tst-backtrace.h.
14108         (ret): Remove variable.
14109         (x): Likewise.
14110         (FAIL): Remove macro.
14111         (NO_INLINE): Likewise.
14112         (handle_signal): Use match function instead of strstr.
14113         * debug/tst-backtrace5.c: Include tst-backtrace.h.
14114         (ret): Remove variable.
14115         (x): Likewise.
14116         (FAIL): Remove macro.
14117         (NO_INLINE): Likewise.
14118         (handle_signal): Use match function instead of strstr.
14119
14120 2013-01-23  Roland McGrath  <roland@hack.frob.com>
14121
14122         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
14123
14124 2013-01-23  David S. Miller  <davem@davemloft.net>
14125
14126         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
14127         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
14128         argument of CAS if possible.
14129         * sysdeps/sparc/sparc64/bits/atomic.h
14130         (__arch_compare_and_exchange_val_32_acq): Likewise.
14131         (__arch_compare_and_exchange_val_64_acq): Likewise.
14132
14133 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
14134
14135         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
14136         * sysdeps/posix/ulimit.c: ... this.
14137         Include <limits.h>.
14138         * sysdeps/unix/bsd/ulimit.c: Remove file.
14139
14140 2013-01-23  Adam Conrad  <adconrad@0c3.net>
14141
14142         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
14143         (LDFLAGS-tst-array5): Likewise.
14144
14145 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14146
14147         [BZ #15036]
14148         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
14149         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
14150         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
14151         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
14152
14153 2013-01-21  David S. Miller  <davem@davemloft.net>
14154
14155         * sysdeps/sparc/backtrace.c: New file.
14156         * sysdeps/sparc/sparc32/backtrace.h: New file.
14157         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
14158         * sysdeps/sparc/sparc64/backtrace.h: New file.
14159         * sysdeps/sparc/sparc64/backtrace.c: Delete.
14160         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
14161         -funwind-tables.
14162
14163 2013-01-21  Andreas Schwab  <schwab@suse.de>
14164
14165         [BZ #15020]
14166         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
14167         closed its stdout.
14168
14169 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
14170
14171         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
14172         "mpa2.h".
14173         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14174
14175 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
14176             Mark Mitchell  <mark@codesourcery.com>
14177             Tom de Vries  <tom@codesourcery.com>
14178             Paul Pluzhnikov  <ppluzhnikov@google.com>
14179
14180         * debug/tst-backtrace2.c: New file.
14181         * debug/tst-backtrace3.c: Likewise.
14182         * debug/tst-backtrace4.c: Likewise.
14183         * debug/tst-backtrace5.c: Likewise.
14184         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
14185         (CFLAGS-tst-backtrace3.c): Likewise.
14186         (CFLAGS-tst-backtrace4.c): Likewise.
14187         (CFLAGS-tst-backtrace5.c): Likewise.
14188         (LDFLAGS-tst-backtrace2): Likewise.
14189         (LDFLAGS-tst-backtrace3): Likewise.
14190         (LDFLAGS-tst-backtrace4): Likewise.
14191         (LDFLAGS-tst-backtrace5): Likewise.
14192         (tests): Add new tests tst-backtrace2, tst-backtrace3,
14193         tst-backtrace4 and tst-backtrace5.
14194
14195 2013-01-18  Anton Blanchard  <anton@samba.org>
14196             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14197
14198         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
14199         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
14200         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
14201         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
14202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14203         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
14204         "+r" and remove output regs list as redundant.  Add explicit inline
14205         asm to specify register of return val to work around compiler codegen
14206         bug.  Remove (int) cast on return value.  Add return type parameter to
14207         use in macro so that this macro does not truncate return value for
14208         64-bit values.
14209         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
14210         pass to INTERNAL_VSYSCALL_NCS.
14211         (INLINE_VSYSCALL): Add 'long int' as return type to
14212         INTERNAL_VSYSCALL_NCS macro invocation.
14213         (INTERNAL_VSYSCALL): Add 'long int' as return type to
14214         INTERNAL_VSYSCALL_NCS macro invocation.
14215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14216
14217 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14218
14219         [BZ #14496]
14220         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
14221         Fix application of SIMD FP exception mask.
14222
14223         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
14224         mp_no from a power of two.
14225         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
14226         __mpexp_twomm1.  Use __pow_mp.
14227
14228         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
14229         multiplication.
14230
14231 2013-01-17  David S. Miller  <davem@davemloft.net>
14232
14233         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14234
14235 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14236
14237         [BZ #15023]
14238         * include/complex.h: Condition contents on [!_COMPLEX_H].
14239         (__kernel_casinhf): New prototype.
14240         (__kernel_casinh): Likewise.
14241         (__kernel_casinhl): Likewise.
14242         * math/Makefile (libm_calls): Add k_casinh.
14243         * math/k_casinh.c: New file.
14244         * math/k_casinhf.c: Likewise.
14245         * math/k_casinhl.c: Likewise.
14246         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
14247         finite nonzero arguments.
14248         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
14249         finite nonzero arguments.
14250         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
14251         finite nonzero arguments.
14252         * math/s_casinh.c: Do not include <float.h>.
14253         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
14254         * math/s_casinhf.c: Do not include <float.h>.
14255         (__casinhf): Move code for finite nonzero arguments to
14256         k_casinhf.c.
14257         * math/s_casinhl.c: Do not include <float.h>.
14258         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
14259         redefine.
14260         (__casinhl): Move code for finite nonzero arguments to
14261         k_casinhl.c.
14262         * math/libm-test.inc (cacos_test): Add more tests.
14263         * sysdeps/i386/fpu/libm-test-ulps: Update.
14264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14265
14266 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
14267
14268         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
14269         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
14270         [!HAVE_MREMAP]: Remove [defined linux] case.
14271         * malloc/arena.c: Do not include <malloc-sysdep.h>.
14272
14273 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
14274
14275         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
14276
14277 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14278
14279         * elf/elf.h (R_386_SIZE32): New relocation.
14280         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
14281         R_386_SIZE32.
14282         (elf_machine_rela): Likewise.
14283         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14284         R_X86_64_SIZE64 and R_X86_64_SIZE32.
14285
14286 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14287
14288         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
14289         (FP_FAST_FMA): Do not define.
14290         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
14291         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
14292         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
14293         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
14294         !_SOFT_FLOAT]: Likewise.
14295         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
14296         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
14297         value.
14298         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
14299         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
14300         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
14301         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
14302         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
14303         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
14304         file.
14305
14306 2013-01-16  Andreas Schwab  <schwab@suse.de>
14307
14308         [BZ #14327]
14309         * include/stdlib.h (__mktemp): Add declaration.
14310         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
14311         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
14312
14313 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14314
14315         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
14316         definitions.
14317         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14318         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
14319         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
14320         definitions here.
14321         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
14322         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
14323         definitions.
14324         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
14325         and ONE.
14326         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
14327         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
14328         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
14329         definitions.
14330         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
14331         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
14332         definitions.
14333         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14334
14335         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
14336
14337 2013-01-15  David S. Miller  <davem@davemloft.net>
14338
14339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14340         trunc{,f} to libm-sysdep_routes.
14341         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
14343         file.
14344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
14345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
14346         file.
14347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
14348         file.
14349         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
14350         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
14351         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
14352         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
14353         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
14354         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
14355         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
14356         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
14357
14358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14359         nearbyint{,f} to libm-sysdep_routes.
14360         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
14362         New file.
14363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
14364         file.
14365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
14366         New file.
14367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
14368         file.
14369         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
14370         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
14371         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
14372         file.
14373         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
14374         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
14375         file.
14376         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
14377         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
14378         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
14379
14380         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
14381         libc_feholdexcept and libc_fesetenv.
14382
14383 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
14384
14385         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
14386
14387 2013-01-14  David S. Miller  <davem@davemloft.net>
14388
14389         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
14390         (SPARC_ASM_VIS2_IFUNC): Likewise.
14391         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
14392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
14393         use of 'siam' instruction.
14394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
14395         Likewise.
14396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
14397         Likewise.
14398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
14399         Likewise.
14400         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
14401         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
14402         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
14403         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
14404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
14405         file.
14406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
14407         file.
14408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
14409         file.
14410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
14411         file.
14412         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
14413         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
14414         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
14415         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
14416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
14417         new VIS2 routines.
14418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14421         Likewise.
14422         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14423         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14424         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14425         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
14427         routines to libm-sysdep_routines.
14428         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14429
14430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14431         fdim/fdimf to libm-sysdep_routines.
14432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
14433         file.
14434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
14435         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
14436         file.
14437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
14438         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
14439         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
14440         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
14441         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
14442         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
14443         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
14444
14445 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14446
14447         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
14448         to optimize copies.
14449
14450         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
14451         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14452         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14453
14454         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
14455         local variable MPTWO.
14456         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
14457         Likewise.
14458
14459 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14460
14461         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
14462         GLOB_NOESCAPE.
14463
14464 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14465
14466         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
14467
14468 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14469
14470         * manual/pattern.texi (glob_t): Document gl_flags.
14471         (glob64_t): Likewise.
14472
14473 2013-01-11  David S. Miller  <davem@davemloft.net>
14474
14475         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
14476         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
14477         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
14478         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
14479         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
14480         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
14481         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
14482         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
14483         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
14484         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
14485         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
14486         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
14487         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
14488
14489         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14490         sparc V9 rather than using V8 code.
14491         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14492         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14493
14494         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14495         Move to...
14496         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
14497         Here.
14498
14499 2013-01-11  Roland McGrath  <roland@hack.frob.com>
14500
14501         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
14502         not in the main loop.
14503         * configure: Regenerated.
14504
14505 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
14506
14507         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
14508         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
14509         to just #else.
14510         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
14511         [!__GLIBC_HAVE_LONG_LONG] case.
14512         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
14513         condition to just #else.
14514         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
14515         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
14516         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
14517         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
14518         unconditional.
14519         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
14520         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14521         #elif condition to just #else.
14522         * sysdeps/unix/sysv/linux/sys/sysmacros.h
14523         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
14524         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14525         #elif condition to just #else.
14526
14527 2013-01-11  Steve Ellcey  <sellcey@mips.com>
14528
14529         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
14530         (EF_MIPS_ARCH_64): Fix value.
14531         (EF_MIPS_ARCH_32R2): New.
14532         (EF_MIPS_ARCH_64R2): New.
14533
14534 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14535
14536         * Makeconfig (+link-pie-before-libc): New.
14537         (+link-pie-after-libc): Likewise.
14538         (+link-pie-tests): Likewise.
14539         (+link-pie): Rewritten.
14540         (link-before-libc): Remove $(config-LDFLAGS).
14541         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
14542         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
14543         (config-LDFLAGS): Renamed to ...
14544         (rtld-LDFLAGS): This.
14545         (rtld-tests-LDFLAGS): New macro.
14546         (link-libc-rpath-link): Likewise.
14547         (link-libc-tests-rpath-link): Likewise.
14548         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
14549         (link-libc): Prepand $(link-libc-rpath-link).
14550         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
14551         (test-program-prefix): New macro.
14552         (test-via-rtld-prefix): Likewise.
14553         (test-program-cmd): Likewise.
14554         (host-test-program-cmd): Likewise.
14555         * Makefile ($(common-objpfx)testrun.sh): Replace
14556         $(run-program-prefix) with $(test-program-prefix).
14557         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
14558         $(rtld-LDFLAGS).
14559         ($(common-objpfx)shlib.lds): Likewise.
14560         (build-module-helper): Likewise.
14561         ($(common-objpfx)format.lds): Likewise.
14562         * Rules (binaries-pie-tests): New.
14563         (binaries-pie-notests): Likewise.
14564         (binaries-pie): Rewritten.
14565         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
14566         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
14567         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
14568         (make-test-out): Replace $(host-built-program-cmd) with
14569         $(host-test-program-cmd).
14570         * config.make.in (build-hardcoded-path-in-tests): New variable.
14571         * configure.in (--enable-hardcoded-path-in-tests): New configure
14572         option.
14573         (hardcoded_path_in_tests): New AC_SUBST.
14574         * configure: Regenerated.
14575         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
14576         $(built-program-cmd) with $(test-program-cmd).
14577         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
14578         (test_program_cmd): This.
14579         * elf/Makefile ($(objpfx)order.out): Run test with
14580         $(test-program-prefix).
14581         ($(objpfx)order2.out): Likewise.
14582         ($(objpfx)tst-initorder.out): Likewise.
14583         ($(objpfx)tst-initorder2.out): Likewise.
14584         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
14585         $(test-program-cmd).
14586         ($(objpfx)tst-array1-static.out): Likewise.
14587         ($(objpfx)tst-array2.out): Likewise.
14588         ($(objpfx)tst-array3.out): Likewise.
14589         ($(objpfx)tst-array4.out): Likewise.
14590         ($(objpfx)tst-array5.out): Likewise.
14591         ($(objpfx)tst-array5-static.out): Likewise.
14592         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
14593         $(test-program-cmd).
14594         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
14595         $(run-program-prefix) with $(test-program-prefix).
14596         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
14597         (test_program_prefix): This.
14598         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
14599         $(run-program-prefix) with $(test-program-prefix).
14600         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
14601         (test_program_prefix): This.
14602         * iconvdata/tst-tables.sh: Likewise.
14603         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
14604         $(run-program-prefix) with $(test-program-prefix).
14605         ($(objpfx)tst-translit.out): Likewise.
14606         ($(objpfx)tst-gettext2.out): Likewise.
14607         ($(objpfx)tst-gettext4.out): Likewise.
14608         ($(objpfx)tst-gettext6.out): Likewise.
14609         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
14610         (test_program_prefix): This.
14611         * intl/tst-gettext2.sh: Likewise.
14612         * intl/tst-gettext4.sh  Likewise.
14613         * intl/tst-gettext6.sh: Likewise.
14614         * intl/tst-translit.sh: Likewise.
14615         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
14616         with $(test-program-cmd).
14617         * libio/Makefile ($(objpfx)test-freopen.out): Replace
14618         $(run-program-prefix) with $(test-program-prefix).
14619         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
14620         (test_program_prefix): This.
14621         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
14622         $(run-program-prefix) with $(test-program-prefix).
14623         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
14624         (test_program_prefix): This.
14625         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
14626         * posix/Makefile ($(objpfx)globtest.out): Replace
14627         $(run-via-rtld-prefix) and $(test-wrapper) with
14628         $(test-program-prefix) and $(test-via-rtld-prefix).
14629         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
14630         $(test-program-prefix).
14631         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
14632         $(host-test-program-cmd).
14633         (tst-spawn-ARGS): Likewise.
14634         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
14635         $(test-program-prefix).
14636         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
14637         (test_via_rtld_prefix): This.
14638         (test_wrapper): Renamed to ...
14639         (test_program_prefix): This.
14640         (run_program_prefix): Replaced by test_program_prefix.
14641         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
14642         (test_program_prefix): This.
14643         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
14644         with $(host-test-program-cmd).
14645         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
14646         $(run-program-prefix) with $(test-program-prefix).
14647         ($(objpfx)tst-printf.out): Likewise.
14648         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
14649         $(test-program-cmd).
14650         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
14651         (test_program_prefix): This.
14652         * stdio-common/tst-unbputc.sh: Likewise.
14653         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
14654         $(run-program-prefix) with $(test-program-prefix).
14655         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
14656         (test_program_prefix): This.
14657         * string/Makefile ($(objpfx)tst-svc.out):  Replace
14658         $(built-program-cmd) with $(test-program-cmd).
14659
14660 2013-01-11  Andreas Jaeger  <aj@suse.de>
14661
14662         [BZ #15003]
14663         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
14664         value. Sync with Linux 3.7.
14665
14666 2013-01-10  David S. Miller  <davem@davemloft.net>
14667
14668         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
14669         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14670         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14671
14672 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14673
14674         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
14675         never set.
14676         * configure: Regenerated.
14677
14678 2013-01-10  David S. Miller  <davem@davemloft.net>
14679
14680         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14681         sparc V9 rather than using V8 code.
14682         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14683         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14684
14685 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14686
14687         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
14688         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
14689         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
14690         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
14691         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
14692         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
14693         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
14694         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
14695         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
14696         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
14697         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
14698         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
14699         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
14700         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
14701         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
14702         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
14703         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
14704         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
14705         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
14706         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
14707         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
14708         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
14709         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
14710         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
14711         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
14712         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
14713         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
14714
14715 2013-01-10  David S. Miller  <davem@davemloft.net>
14716
14717         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14718
14719 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14720
14721         * posix/Makefile (tests-static): New variable.
14722         (tests): Add $(tests-static).
14723         (tst-exec-static-ARGS): New variable.
14724         (tst-spawn-static-ARGS): Likewise.
14725         * posix/tst-exec-static.c: New file.
14726         * posix/tst-spawn-static.c: Likewise.
14727         * posix/tst-exec.c: Support run directly.
14728         * posix/tst-spawn.c: Likewise.
14729
14730 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
14731
14732         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
14733         long.
14734         * math/bits/mathcalls.h (llrint): Likewise.
14735         (llround): Likewise.
14736         * stdlib/stdlib.h (struct drand48_data): Likewise.
14737         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
14738         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
14739         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
14740         Likewise.
14741         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
14742         Likewise.
14743         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
14744         (elf_greg_t): Likewise.
14745         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
14746         (__jmp_buf): Likewise.
14747         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
14748         definitions.
14749         (llrint): Likewise, for all definitions.
14750         (llrintl): Likewise.
14751
14752         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
14753         Remove [__GNUC__] condition.
14754         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
14755         condition to just [__USE_ISOC99].
14756         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
14757
14758 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14759
14760         [BZ #14200]
14761         * sysdeps/unix/sysv/linux/x86/bits/environments.h
14762         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
14763         defined.
14764         (_POSIX_V6_ILP32_OFF32): Likewise.
14765         (_XBS5_ILP32_OFF32): Likewise.
14766         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
14767         (__ILP32_OFFBIG_LDFLAGS): Likewise.
14768
14769 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14770
14771         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
14772
14773         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
14774         doubles __mpexp_twomm1.  Adjust usage.
14775         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
14776         Remove.
14777
14778 2013-01-10  Andreas Schwab  <schwab@suse.de>
14779
14780         [BZ #14964]
14781         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
14782         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
14783
14784 2013-01-09  David S. Miller  <davem@davemloft.net>
14785
14786         [BZ #15003]
14787         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
14788         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
14789         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
14790         TCP_FASTOPEN): Define.
14791         (tcp_repair_opt): New structure.
14792         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
14793         enum values.
14794         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
14795         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
14796         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
14797         (tcp_cookie_transactions): New structure.
14798
14799 2013-01-09  Anton Blanchard  <anton@samba.org>
14800
14801         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
14802         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
14803         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
14804         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
14805
14806 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
14807
14808         * include/features.h (__USE_ANSI): Remove.
14809
14810 2013-01-09  Roland McGrath  <roland@hack.frob.com>
14811
14812         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
14813
14814         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
14815
14816 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
14817
14818         * sysdeps/s390/fpu/libm-test-ulps: Update.
14819
14820         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14821
14822         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
14823         (__acr): Likewise.
14824         (__cpy): Likewise.
14825         (norm): Likewise.
14826         (denorm): Likewise.
14827         (__mp_dbl): Likewise.
14828         (__dbl_mp): Likewise.
14829         (add_magnitudes): Likewise.
14830         (sub_magnitudes): Likewise.
14831         (__add): Likewise.
14832         (__sub): Likewise.
14833         (__mul): Likewise.
14834         (__inv): Likewise.
14835         (__dvd): Likewise.
14836         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
14837         (__acr): Likewise.
14838         (__cpy): Likewise.
14839         (norm): Likewise.
14840         (denorm): Likewise.
14841         (__mp_dbl): Likewise.
14842         (__dbl_mp): Likewise.
14843         (add_magnitudes): Likewise.
14844         (sub_magnitudes): Likewise.
14845         (__add): Likewise.
14846         (__sub): Likewise.
14847         (__mul): Likewise.
14848         (__inv): Likewise.
14849         (__dvd): Likewise.
14850         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
14851         (__acr): Likewise.
14852         (__cpy): Likewise.
14853         (norm): Likewise.
14854         (denorm): Likewise.
14855         (__mp_dbl): Likewise.
14856         (__dbl_mp): Likewise.
14857         (add_magnitudes): Likewise.
14858         (sub_magnitudes): Likewise.
14859         (__add): Likewise.
14860         (__sub): Likewise.
14861         (__mul): Likewise.
14862         (__inv): Likewise.
14863         (__dvd): Likewise.
14864
14865 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
14866
14867         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
14868         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
14869         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
14870         2 && __USE_EXTERN_INLINES]: Likewise.
14871
14872 2013-01-08  Andreas Jaeger  <aj@suse.de>
14873
14874         [BZ# 14985]
14875         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
14876         Remove.
14877         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14878         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14879
14880 2013-01-07  Anton Blanchard  <anton@samba.org>
14881
14882         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
14883         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
14884         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
14885         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
14886         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14887         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
14888         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
14889         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14890         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14891         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14892         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14893         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14894         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
14895         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14896         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
14897         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14898         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14899         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14900         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
14901         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14902         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
14903         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
14904         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14905         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
14906         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
14907         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14908         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14909         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
14910         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
14911         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
14912         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
14913         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14914         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14915         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14916         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14917         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14918         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14919         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
14920         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
14921         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
14922         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
14923         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14924         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14925
14926 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
14927
14928         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
14929         (__MALLOC_PMT): Likewise.
14930         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
14931         [__GNUC__], only on [_LIBC].
14932         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14933         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
14934         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14935         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
14936         forward declaration.
14937         (realloc_hook_ini): Likewise.
14938         (memalign_hook_ini): Likewise.
14939         (__libc_memalign): Do not use __MALLOC_PMT in variable
14940         declaration.
14941         (__libc_valloc): Likewise.
14942         (__libc_pvalloc): Likewise.
14943         (__libc_calloc): Likewise.
14944         (__posix_memalign): Likewise.
14945
14946         [BZ #14996]
14947         * math/s_casinh.c: Include <float.h>.
14948         (__casinh): Do not do computation with squaring and square root
14949         for large arguments.
14950         * math/s_casinhf.c: Include <float.h>.
14951         (__casinhf): Do not do computation with squaring and square root
14952         for large arguments.
14953         * math/s_casinhl.c: Include <float.h>.
14954         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
14955         (__casinhl): Do not do computation with squaring and square root
14956         for large arguments.
14957         * math/libm-test.inc (casin_test): Add more tests.
14958         (casinh_test): Likewise.
14959         * sysdeps/i386/fpu/libm-test-ulps: Update.
14960         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14961
14962 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
14963
14964         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
14965         (__x86_64_raw_data_cache_size): Likewise.
14966         (__x86_64_data_cache_size_half): Likewise.
14967         (__x86_64_raw_data_cache_size_half): Likewise.
14968         (__x86_64_shared_cache_size): Likewise.
14969         (__x86_64_raw_shared_cache_size): Likewise.
14970         (__x86_64_shared_cache_size_half): Likewise.
14971         (__x86_64_raw_shared_cache_size_half): Likewise.
14972         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
14973         to ...
14974         (__x86_data_cache_size): This.
14975         (__x86_64_raw_data_cache_size): Renamed to ...
14976         (__x86_raw_data_cache_size): This.
14977         (__x86_64_data_cache_size_half): Renamed to ...
14978         (__x86_data_cache_size_half): This.
14979         (__x86_64_raw_data_cache_size_half): Renamed to ...
14980         (__x86_raw_data_cache_size_half): This.
14981         (__x86_64_shared_cache_size): Renamed to ...
14982         (__x86_shared_cache_size): This.
14983         (__x86_64_raw_shared_cache_size): Renamed to ...
14984         (__x86_raw_shared_cache_size): This.
14985         (__x86_64_shared_cache_size_half): Renamed to ...
14986         (__x86_shared_cache_size_half): This.
14987         (__x86_64_raw_shared_cache_size_half): Renamed to ...
14988         (__x86_raw_shared_cache_size_half): This.
14989         * sysdeps/x86_64/memcpy.S: Updated.
14990         * sysdeps/x86_64/memset.S: Likewise.
14991         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
14992         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14993         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14994
14995 2013-01-04  David S. Miller  <davem@davemloft.net>
14996
14997         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14998
14999 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
15000
15001         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
15002         1 to avoid redefinition warning.
15003         (__USE_GNU): Don't define.
15004         (init_signaling_nan): Protoize.
15005
15006         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15007
15008 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15009
15010         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
15011         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
15012         (__cpymn): Likewise.
15013         (norm): Remove commented code.
15014         (denorm): Likewise.
15015         (__mp_dbl): Likewise.
15016         (__inv): Likewise.
15017         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
15018         (__cpymn): Likewise.
15019         (norm): Remove commented code.
15020         (denorm): Likewise.
15021         (__mp_dbl): Likewise.
15022         (__inv): Likewise.
15023
15024         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
15025         mp_no value for 1.0 and 2.0.
15026         (norm): Use RADIXI instead of radixi.d.
15027         (denorm): Likewise.
15028         (__mul): Use 0.0 instead of zero.d.
15029         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
15030         mp_no value for 1.0 and 2.0.
15031         (norm): Use RADIXI instead of radixi.d.
15032         (denorm): Likewise.
15033         (__mul): Use 0.0 instead of zero.d.
15034
15035 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
15036
15037         [BZ #14994]
15038         * math/s_casinh.c (__casinh): Reduce finite argument to first
15039         quadrant then set signs of results at the end.
15040         * math/s_casinhf.c (__casinhf): Likewise.
15041         * math/s_casinhl.c (__casinhl): Likewise.
15042         * math/libm-test.inc (casin_test): Add more tests.
15043         (casinh_test): Likewise.
15044         * sysdeps/i386/fpu/libm-test-ulps: Update.
15045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15046
15047 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15048
15049         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
15050
15051         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
15052
15053         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
15054         declarations.
15055         (denorm): Likewise.
15056         (__mp_dbl): Likewise.
15057         (__inv): Likewise.
15058
15059         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
15060         and adjust the header comment.
15061
15062         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
15063         variable name from declaration.
15064
15065 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15066
15067         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15068         Initialize COMMON_CPUID_INDEX_7 element.
15069         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
15070         (CPUID_RTM): Likewise.
15071         (HAS_RTM): Likewise.
15072         (COMMON_CPUID_INDEX_7): New enum.
15073
15074 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
15075
15076         [BZ #14981]
15077         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
15078         size is zero, record memory as freed.
15079
15080 2013-01-03  Andreas Jaeger  <aj@suse.de>
15081
15082         * po/ia.po: Add new Interlingua translation.
15083
15084 2012-01-03  Allan McRae  <allan@archlinux.org>
15085
15086         * locale/programs/localedef.c: Fix description of '--posix' flag.
15087
15088 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
15089
15090         * NEWS: Update dates in second copyright notice.
15091         * README: Update copyright dates in example.
15092         * manual/libc.texinfo: Update copyright dates.
15093         * scripts/test-installation.pl: Update copyright date in --version
15094         output.
15095
15096         * hurd/ctty-input.c: Fix copyright notice formatting.
15097         * hurd/ctty-output.c: Likewise.
15098         * hurd/dtable.c: Likewise.
15099         * hurd/hurd-raise.c: Likewise.
15100         * hurd/hurdprio.c: Likewise.
15101         * hurd/msgportdemux.c: Likewise.
15102         * misc/sys/file.h: Likewise.
15103         * misc/sys/ioctl.h: Likewise.
15104         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
15105         * sysdeps/mach/hurd/chdir.c: Likewise.
15106         * sysdeps/mach/hurd/fchdir.c: Likewise.
15107         * sysdeps/mach/hurd/rename.c: Likewise.
15108         * sysdeps/mach/hurd/rmdir.c: Likewise.
15109         * sysdeps/mach/hurd/seekdir.c: Likewise.
15110         * sysdeps/mach/hurd/setsid.c: Likewise.
15111         * sysdeps/posix/wait3.c: Likewise.
15112
15113         * All files with FSF copyright notices: Update copyright dates
15114         using scripts/update-copyrights.
15115         * intl/plural.c: Regenerated.
15116         * locale/programs/charmap-kw.h: Likewise.
15117         * locale/programs/locfile-kw.h: Likewise.
15118
15119 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
15120
15121         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
15122         four values.
15123
15124         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
15125         calculation loop and add branch prediction.
15126
15127         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
15128         check access beyond bounds of m1np.
15129
15130         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15131         MPTWO.
15132         (__inv): Remove local variable MPTWO to use the global
15133         constant.
15134         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
15135         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15136         variable MPTWO.
15137         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
15138         MP3HALFS static const.
15139
15140 2013-01-01  David S. Miller  <davem@davemloft.net>
15141
15142         * po/ca.po: Update from translation team.
15143
15144 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
15145
15146         * scripts/update-copyrights: New file.
15147         * Makeconfig: Reformat copyright notice.
15148         * ctype/ctype.h: Likewise.
15149         * debug/swprintf_chk.c: Likewise.
15150         * elf/dl-cache.c: Likewise.
15151         * elf/dl-debug.c: Likewise.
15152         * elf/dl-object.c: Likewise.
15153         * grp/initgroups.c: Likewise.
15154         * hurd/Makefile: Likewise.
15155         * hurd/hurd/signal.h: Likewise.
15156         * hurd/hurdfault.c: Likewise.
15157         * hurd/hurdioctl.c: Likewise.
15158         * hurd/hurdlookup.c: Likewise.
15159         * hurd/intr-msg.c: Likewise.
15160         * iconv/gconv_open.c: Likewise.
15161         * libio/swprintf.c: Likewise.
15162         * locale/lc-ctype.c: Likewise.
15163         * locale/nl_langinfo.c: Likewise.
15164         * mach/Machrules: Likewise.
15165         * mach/Makefile: Likewise.
15166         * malloc/obstack.h: Likewise.
15167         * manual/Makefile: Likewise.
15168         * manual/tsort.awk: Likewise.
15169         * misc/bits/stab.def: Likewise.
15170         * nis/nis_print_group_entry.c: Likewise.
15171         * nis/nis_table.c: Likewise.
15172         * nis/nss_compat/compat-pwd.c: Likewise.
15173         * nis/nss_compat/compat-spwd.c: Likewise.
15174         * po/Makefile: Likewise.
15175         * posix/fnmatch.c: Likewise.
15176         * posix/regex.h: Likewise.
15177         * resolv/Makefile: Likewise.
15178         * resolv/nss_dns/dns-network.c: Likewise.
15179         * resolv/res_hconf.c: Likewise.
15180         * scripts/gen-sorted.awk: Likewise.
15181         * soft-fp/soft-fp.h: Likewise.
15182         * stdio-common/printf.h: Likewise.
15183         * stdlib/monetary.h: Likewise.
15184         * stdlib/random.c: Likewise.
15185         * stdlib/random_r.c: Likewise.
15186         * sysdeps/generic/Makefile: Likewise.
15187         * sysdeps/gnu/Makefile: Likewise.
15188         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15189         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15190         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15191         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15192         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15193         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15194         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15195         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15196         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15197         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15198         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15199         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15200         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15201         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15202         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15203         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15204         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15205         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15206         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15207         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15208         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15209         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15210         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15211         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15212         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
15213         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15214         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
15215         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
15216         * sysdeps/mach/hurd/errnos.awk: Likewise.
15217         * sysdeps/mach/hurd/fork.c: Likewise.
15218         * sysdeps/mach/hurd/getcwd.c: Likewise.
15219         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
15220         * sysdeps/mach/hurd/mmap.c: Likewise.
15221         * sysdeps/mach/hurd/utimes.c: Likewise.
15222         * sysdeps/mach/hurd/xmknod.c: Likewise.
15223         * sysdeps/posix/profil.c: Likewise.
15224         * sysdeps/posix/readdir_r.c: Likewise.
15225         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15226         * sysdeps/powerpc/bits/setjmp.h: Likewise.
15227         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
15228         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15229         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15230         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
15231         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15232         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15233         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15234         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
15235         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15236         * sysdeps/pthread/lio_listio.c: Likewise.
15237         * sysdeps/sparc/dl-procinfo.h: Likewise.
15238         * sysdeps/unix/i386/sysdep.S: Likewise.
15239         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
15240         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
15241         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
15242         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
15243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15244         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
15245         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
15246         * sysdeps/unix/sysv/linux/speed.c: Likewise.
15247         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
15248         * sysdeps/wordsize-32/divdi3.c: Likewise.
15249         * time/sys/time.h: Likewise.
15250         * wcsmbs/Makefile: Likewise.
15251
15252 2013-01-01  David S. Miller  <davem@davemloft.net>
15253
15254         * po/fr.po: Update from translation team.
15255
15256         * catgets/gencat.c: Update copyright year.
15257         * csu/version.c: Likewise.
15258         * debug/catchsegv.sh: Likewise.
15259         * debug/pcprofiledump.c: Likewise.
15260         * debug/xtrace.sh: Likewise.
15261         * elf/ldconfig.c: Likewise.
15262         * elf/ldd.bash.in: Likewise.
15263         * elf/pldd.c: Likewise.
15264         * elf/sotruss.ksh: Likewise.
15265         * elf/sprof.c: Likewise.
15266         * iconv/iconv_prog.c: Likewise.
15267         * iconv/iconvconfig.c: Likewise.
15268         * locale/programs/locale.c: Likewise.
15269         * locale/programs/localedef.c: Likewise.
15270         * login/programs/pt_chown.c: Likewise.
15271         * malloc/memusage.sh: Likewise.
15272         * malloc/memusagestat.c: Likewise.
15273         * malloc/mtrace.pl: Likewise.
15274         * nscd/nscd.c: Likewise.
15275         * nss/getent.c: Likewise.
15276         * nss/makedb.c: Likewise.
15277         * posix/getconf.c: Likewise.
15278
15279 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15280
15281         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
15282         numbers.
15283
15284 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
15285
15286         * math/bits/mathcalls.h (modf): Use __nonnull.
15287
15288 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15289
15290         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
15291         (split): Use macro CN instead of the bare value.
15292         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
15293         could be used.
15294         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
15295         instead of the bare value.
15296         (power1): Likewise.
15297
15298 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15299
15300         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
15301         __ATAN_TWOM.
15302         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15303
15304         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
15305         their values.
15306         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
15307         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
15308         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
15309         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
15310
15311 2012-12-28  Andreas Jaeger  <aj@suse.de>
15312
15313         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
15314         values are from Linux 3.7.
15315
15316         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
15317         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
15318
15319 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15320
15321         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
15322         TRUE case.
15323
15324         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
15325         (norm): Likewise.
15326         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
15327         variables with preprocessor constants.
15328         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15329         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15330         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15331
15332 2012-12-27  Bruno Haible  <bruno@clisp.org>
15333
15334         [BZ #14317]
15335         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
15336         only if needed.
15337
15338 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15339
15340         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
15341         and use variable directly.
15342         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
15343
15344         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15345         MPONE.
15346         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
15347         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15348         variable MPONE.
15349         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
15350         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
15351         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
15352         include directive.  Remove local variable MPONE.
15353         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
15354         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
15355         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15356
15357 2012-12-25  David S. Miller  <davem@davemloft.net>
15358
15359         * version.h (RELEASE): Set to "development".
15360         (VERSION): Set to "2.17.90".
15361         * NEWS: Add 2.18 section.
15362
15363 2012-12-21  David S. Miller  <davem@davemloft.net>
15364
15365         * po/hr.po: Update from translation team.
15366
15367 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15368
15369         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
15370
15371 2012-12-19  Steve Ellcey  <sellcey@mips.com>
15372
15373         * NEWS:  Mention new memcpy for MIPS.
15374
15375 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15376
15377         * manual/contrib.texi (Contributors): Spelling correction.
15378
15379 2012-12-15  David S. Miller  <davem@davemloft.net>
15380
15381         * po/ru.po: Update from translation team.
15382
15383 2012-12-13  David S. Miller  <davem@davemloft.net>
15384
15385         * NEWS: Mention IFUNC testsuite enhancements.
15386
15387         * po/pl.po: Update from translation team.
15388         * po/bg.po: Likewise.
15389
15390         * manual/contrib.texi (Contributors): Update entries for Hongjiu
15391         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
15392
15393 2012-12-11  David S. Miller  <davem@davemloft.net>
15394
15395         * po/sv.po: Update from translation team.
15396
15397         * po/vi.po: Update from translation team.
15398
15399         * po/cs.po: Update from translation team.
15400
15401         * po/de.po: Update from translation team.
15402         * po/eo.po: Likewise.
15403         * po/nl.po: Likewise.
15404
15405 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15406
15407         [BZ #14246]
15408         * manual/argp.texi (Argp Helper Functions): Move node to follow
15409         Argp Parsing State.
15410
15411         [BZ #14872]
15412         * manual/conf.texi (Limits on File System Capacity): Mention if
15413         terminating null is included in the max size.
15414
15415 2012-12-10  Andreas Jaeger  <aj@suse.de>
15416
15417         * po/cs.po: Update from translation team.
15418
15419 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
15420
15421         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
15422         void pointer and cast to uintptr_t.
15423         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
15424         path.
15425         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15426         * sysdeps/s390/s390-64/memset.S: Likewise.
15427
15428 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
15429
15430         [BZ #14833]
15431         * menual/message.texi (Message Translation): Fix typos.
15432         (Helper programs for gettext): Likewise.
15433
15434 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
15435
15436         [BZ #14898]
15437         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
15438         Change to -1.
15439
15440 2012-12-07  David S. Miller  <davem@davemloft.net>
15441
15442         * po/libc.pot: Update.
15443
15444 2012-12-07  Richard Henderson  <rth@redhat.com>
15445
15446         [BZ #10114]
15447         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
15448         normal/normal case to before the switch.
15449         (_FP_DIV): Likewise.
15450
15451 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
15452             Mike Frysinger  <vapier@gentoo.org>
15453
15454         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15455         check for __NR_fadvise64_64.
15456
15457 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
15458
15459         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
15460         0, not just to plain "0" as a statement.
15461         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
15462         with cw.
15463
15464 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
15465
15466         * NEWS: Use sourceware.org in Bugzilla URL.
15467
15468 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15469
15470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
15471         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15472
15473         * stdio-common/tst-put-error.c (do_test): Add newline to the
15474         padded test to ensure flush.
15475
15476 2012-12-05  Jeff Law  <law@redhat.com>
15477
15478         * sunrpc/etc.rpc (fedfs_admin): Add entry.
15479
15480 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
15481
15482         * README: Don't refer to ports add-on as distributed separately.
15483         Mention AArch64 in list of systems supported in the ports add-on.
15484
15485         * LICENSES: Add more non-FSF copyright and license notices.
15486
15487         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
15488         ((unused)).
15489
15490         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
15491
15492         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
15493         10000 as width of padded output.
15494
15495 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15496
15497         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
15498
15499         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
15500         variable LX with __attribute__ ((unused)).
15501         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15502         Likewise.
15503         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15504         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15505         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
15506         with __attribute__ ((unused)).
15507
15508 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
15509
15510         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
15511
15512 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15513
15514         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
15515         (CFLAGS-nldbl-acos.c): New variable.
15516         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
15517         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
15518         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
15519         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
15520         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
15521         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
15522         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
15523         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
15524         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
15525         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
15526         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
15527         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
15528         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
15529         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
15530         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
15531         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
15532         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
15533         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
15534         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
15535         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
15536         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
15537         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
15538         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
15539         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
15540         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
15541         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
15542         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
15543         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
15544         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
15545         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
15546         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
15547         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
15548         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
15549         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
15550         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
15551         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
15552         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
15553         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
15554         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
15555         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
15556         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
15557         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
15558         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
15559         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
15560         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
15561         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
15562         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
15563         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
15564         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
15565         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
15566         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
15567         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
15568         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
15569         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
15570         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
15571         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
15572         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
15573         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
15574         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
15575         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
15576         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
15577         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
15578         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
15579         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
15580         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
15581         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
15582         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
15583         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
15584         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
15585         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
15586         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
15587         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
15588         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
15589         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
15590         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
15591         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
15592         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
15593         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
15594         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
15595         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
15596         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
15597         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
15598         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
15599         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
15600         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
15601         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
15602         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
15603         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
15604         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
15605         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
15606         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
15607         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
15608         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
15609         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
15610         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
15611         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
15612         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
15613
15614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
15615         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15616
15617         [BZ #14914]
15618         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
15619         whole low double instead of just low 47 bits when splitting values
15620         into two parts.
15621
15622 2012-12-03  Allan McRae  <allan@archlinux.org>
15623
15624         * manual/stdio.texi (Predefined Printf Handlers): Remove
15625         @hsep and @vsep usage.
15626
15627 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
15628
15629         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
15630         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
15631
15632 2012-12-03  Jeff Law  <law@redhat.com>
15633
15634         * time/sys/time.h (settimeofday): Do not mark TV argument
15635         as __nonnull.
15636
15637 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
15638
15639         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
15640         when currently writing and seek to current position when not.
15641         * libio/Makefile (tests): Remove bug-fclose1.
15642         * libio/bug-fclose1.c: Delete.
15643
15644 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
15645
15646         * manual/arith.texi (feenableexcept): Fix typo.
15647         (fedisableexcept): Likewise.
15648
15649 2012-11-30  Roland McGrath  <roland@hack.frob.com>
15650
15651         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
15652         second, differently-typed declaration, rather than a cast.
15653
15654 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15655
15656         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
15657         * include/rpc/svc.h: ... here.
15658
15659 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
15660
15661         [BZ #13013]
15662         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
15663         depending n and resplen2 to catch cases where answer
15664         equals answerp2.
15665
15666 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
15667
15668         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
15669         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
15670
15671 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
15672
15673         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
15674
15675 2012-11-29  Roland McGrath  <roland@hack.frob.com>
15676
15677         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
15678
15679 2012-11-28  Jeff Law  <law@redhat.com>
15680
15681         [BZ #13761]
15682         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
15683         dataset_temporary.  Track alloca usage into alloca_used.
15684         If dataset is large allocate and release it via malloc/free.
15685
15686 2012-06-04  Florian Weimer  <fweimer@redhat.com>
15687
15688         [BZ #14197]
15689         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
15690
15691 2012-11-28  David S. Miller  <davem@davemloft.net>
15692
15693         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15694
15695 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15696
15697         [BZ #14803]
15698         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
15699         of pi/2 rounded to nearest to 64 bits.
15700         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
15701         nearest to 64 bits.
15702         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
15703         bits.
15704
15705 2012-11-28  Jeff Law <law@redhat.com>
15706             Martin Osvald <mosvald@redhat.com>
15707
15708         [BZ #14889]
15709         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
15710         * sunrpc/svc.c: Include time.h.
15711         (__svc_accept_failed): New function.
15712         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
15713         any reason other than EINTR, call __svc_accept_failed.
15714         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
15715         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
15716
15717 2012-11-28  Andreas Schwab  <schwab@suse.de>
15718
15719         * scripts/abilist.awk: Also handle indirect functions in .opd
15720         section.
15721
15722 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15723
15724         [BZ #13881]
15725         * sysdeps/x86/fpu/powl_helper.c: New file.
15726         * sysdeps/x86/fpu/Makefile: Likewise.
15727         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
15728         (p3): New object.
15729         (__ieee754_powl): Use __powl_helper for finite arguments except
15730         integer exponents below 8.
15731         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
15732         (p3): New object.
15733         (__ieee754_powl): Use __powl_helper for finite arguments except
15734         integer exponents below 8.
15735         * math/libm-test.inc (pow_test): Add more tests and enable some
15736         previously disabled tests.
15737         * sysdeps/i386/fpu/libm-test-ulps: Update.
15738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15739
15740 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15741             Carlos O'Donell  <carlos_odonell@mentor.com>
15742
15743         * nss/makedb.c (is_prime): Assert that input is odd and greater
15744         than 4.  Note that fact in a comment too.
15745         (next_prime): Add 4 to input.
15746
15747 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15748
15749         [BZ #11741]
15750         * libio/Makefile (tests): Add test case tst-fwrite-error.
15751         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
15752         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15753         * libio/tst-fwrite-error.c: New test case.
15754
15755 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
15756
15757         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
15758         before casting to void *.
15759         * include/libc-internal.h (__pointer_type): New macro.
15760         (__integer_if_pointer_type_sub): Likewise.
15761         (__integer_if_pointer_type): Likewise.
15762         (cast_to_integer): Likewise.
15763         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
15764         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
15765         before casting to atomic64_t.
15766         (atomic_exchange_acq): Likewise.
15767         (__arch_exchange_and_add_body): Likewise.
15768         (__arch_add_body): Likewise.
15769         (atomic_add_negative): Likewise.
15770         (atomic_add_zero): Likewise.
15771
15772 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
15773
15774         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
15775         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
15776         (add_fdes): Likewise.
15777         (linear_search_fdes): Likewise.
15778         (binary_search_unencoded_fdes): Likewise.
15779
15780 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
15781
15782         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
15783
15784 2012-11-24  Adam Conrad  <adconrad@0c3.net>
15785
15786         * configure.in: Autodetect C++ header directories.
15787         * configure: Regenerated.
15788
15789 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
15790
15791         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
15792
15793 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
15794
15795         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15796
15797 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
15798
15799         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
15800         LDBL_MANT_DIG == 106]: Disable some tests.
15801         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15802         Likewise.
15803         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15804         Likewise.
15805
15806         [BZ #14871]
15807         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
15808         input for small inputs.  Return +/- pi/2 for large inputs.
15809         * math/libm-test.inc (atan_test): Add more tests.
15810
15811         * sysdeps/generic/unwind-dw2-fde-glibc.c
15812         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
15813         __attribute__ ((unused)).
15814
15815         [BZ #14645]
15816         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
15817         x * y if x and y are nonzero and z is zero.
15818
15819         [BZ #14811]
15820         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
15821         nonzero exponents with absolute value below 0x1p-117 to +/-
15822         0x1p-117.
15823
15824         [BZ #14869]
15825         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
15826         up arguments below 2**-450, not just those below 2**-500.
15827         * math/libm-test.inc (hypot_test): Add another test.
15828
15829         [BZ #14868]
15830         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
15831         Return a+b for ratio over 2**120, not 2**60.
15832         * math/libm-test.inc (hypot_test): Add another test.
15833
15834         * math/libm-test.inc (clog_test): Use
15835         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
15836         (clog10_test): Likewise.
15837
15838         [BZ #6778]
15839         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
15840
15841 2012-11-22  Andreas Schwab  <schwab@suse.de>
15842
15843         * sysdeps/i386/fpu/libm-test-ulps: Update.
15844
15845 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
15846
15847         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
15848         printf output with newline.
15849
15850 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15851
15852         [BZ #14865]
15853         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
15854         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
15855         -z nodlopen, -z initfirst and -z execstack support.
15856         * configure: Regenerated.
15857
15858         * elf/elf.h (DF_1_NODIRECT): New macro.
15859         (DF_1_IGNMULDEF): Likewise.
15860         (DF_1_NOKSYMS): Likewise.
15861         (DF_1_NOHDR): Likewise.
15862         (DF_1_EDITED): Likewise.
15863         (DF_1_NORELOC): Likewise.
15864         (DF_1_SYMINTPOSE): Likewise.
15865         (DF_1_GLOBAUDIT): Likewise.
15866         (DF_1_SINGLETON): Likewise.
15867         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
15868         DT_1_SUPPORTED_MASK bits.
15869         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
15870
15871 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
15872
15873         * sysdeps/unix/make-syscalls.sh: Document prefixes.
15874
15875 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
15876
15877         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
15878         macro.
15879
15880         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
15881         (sendmmsg): Move declarations...
15882         * socket/sys/socket.h: ... here.
15883         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
15884         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
15885         include it from...
15886         * socket/recvmmsg.c: ... this new file.
15887         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
15888         (sendmmsg): Rename to __sendmmsg, create weak alias and make
15889         definition of __sendmmsg hidden.
15890         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
15891         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
15892         Move ENOSYS stub into and include it from...
15893         * socket/sendmmsg.c: ... this new file.
15894         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
15895         (sysdep_routines): Move recvmmsg and sendmmsg...
15896         * socket/Makefile (routines): ... here.
15897         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
15898         (GLIBC_PRIVATE): Add __sendmmsg.
15899         * include/sys/socket.h (__sendmmsg): Add declarations.
15900         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
15901         sendmmsg.
15902
15903 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
15904
15905         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
15906         variable I1 with __attribute__ ((unused)).
15907         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
15908
15909 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15910
15911         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
15912         DUMMY variables with __attribute__ ((unused)).
15913
15914         * bits/byteswap.h: Include <bits/types.h>.
15915         (__bswap_64): Use __uint64_t instead of unsigned long long int.
15916
15917 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15918
15919         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
15920         string_t.  Do not manually set errno.
15921         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
15922         length with __strnlen.  Make sure to both set errno and return it on
15923         failure.
15924
15925 2012-11-19  David S. Miller  <davem@davemloft.net>
15926
15927         With help from Joseph Myers.
15928         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
15929         very large arguments properly.
15930         * math/libm-test.inc (atan_test): New tests.
15931         (atan2_test): New tests.
15932         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15933         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15934
15935 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15936
15937         [BZ #14856]
15938         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
15939         Define to 3.
15940
15941         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
15942         [POSIX] (EADDRNOTAVAIL): Likewise.
15943         [POSIX] (EAFNOSUPPORT): Likewise.
15944         [POSIX] (EALREADY): Likewise.
15945         [POSIX] (ECONNABORTED): Likewise.
15946         [POSIX] (ECONNREFUSED): Likewise.
15947         [POSIX] (ECONNRESET): Likewise.
15948         [POSIX] (EDESTADDRREQ): Likewise.
15949         [POSIX] (EDQUOT): Likewise.
15950         [POSIX] (EHOSTUNREACH): Likewise.
15951         [POSIX] (EIDRM): Likewise.
15952         [POSIX] (EISCONN): Likewise.
15953         [POSIX] (ELOOP): Likewise.
15954         [POSIX] (EMULTIHOP): Likewise.
15955         [POSIX] (ENETDOWN): Likewise.
15956         [POSIX] (ENETUNREACH): Likewise.
15957         [POSIX] (ENOBUFS): Likewise.
15958         [POSIX] (ENODATA): Likewise.
15959         [POSIX] (ENOLINK): Likewise.
15960         [POSIX] (ENOMSG): Likewise.
15961         [POSIX] (ENOPROTOOPT): Likewise.
15962         [POSIX] (ENOSR): Likewise.
15963         [POSIX] (ENOSTR): Likewise.
15964         [POSIX] (ENOTCONN): Likewise.
15965         [POSIX] (ENOTSOCK): Likewise.
15966         [POSIX] (EOPNOTSUPP): Likewise.
15967         [POSIX] (EOVERFLOW): Likewise.
15968         [POSIX] (EPROTO): Likewise.
15969         [POSIX] (EPROTONOSUPPORT): Likewise.
15970         [POSIX] (EPROTOTYPE): Likewise.
15971         [POSIX] (ESTALE): Likewise.
15972         [POSIX] (ETIME): Likewise.
15973         [POSIX] (ETXTBSY): Likewise.
15974         [POSIX] (EWOULDBLOCK): Likewise.
15975         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
15976         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
15977         [POSIX] (SEEK_CUR): Likewise.
15978         [POSIX] (SEEK_END): Likewise.
15979         [POSIX || UNIX98] (mode_t): Do not require.
15980         [POSIX] (off_t): Likewise.
15981         [POSIX] (pid_t): Likewise.
15982         [POSIX] (sys/stat.h): Do not allow header.
15983         [POSIX] (unistd.h): Likewise.
15984         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
15985         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
15986         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
15987         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
15988         require.
15989         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
15990         sigevent): Specify elements.
15991         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
15992         entry.
15993         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
15994         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
15995
15996         * conform/data/cpio.h-data [POSIX]: Disable whole file.
15997         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
15998         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
15999         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
16000         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
16001         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
16002         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
16003         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
16004         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
16005         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
16006         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
16007         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
16008         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
16009         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
16010         Likewise.
16011         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
16012         Likewise.
16013         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
16014         Likewise.
16015         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
16016         Likewise.
16017         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
16018         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
16019         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
16020         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
16021         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
16022         Specify lower bound on value.
16023         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
16024         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
16025         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
16026         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
16027         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
16028         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
16029         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
16030         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
16031         value.
16032         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
16033         as optional.
16034         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
16035         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
16036         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
16037         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
16038         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
16039         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
16040         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
16041         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
16042         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
16043         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
16044         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
16045         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
16046         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
16047         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
16048         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
16049         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
16050         entry.
16051         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
16052         optional.
16053         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
16054         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
16055         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
16056         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
16057         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
16058         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
16059         Likewise.
16060         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
16061         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
16062         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
16063         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
16064         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
16065         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
16066         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
16067         as optional.
16068         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
16069         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
16070         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
16071         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
16072         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
16073         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
16074         specify as optional.
16075         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
16076         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
16077         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
16078         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
16079         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
16080         [XPG3] (NL_LANGMAX): Likewise.
16081         [POSIX || XPG3] (NL_MSGMAX): Likewise.
16082         [POSIX || XPG3] (NL_NMAX): Likewise.
16083         [POSIX || XPG3] (NL_SETMAX): Likewise.
16084         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
16085         [XPG3] (NZERO): Likewise.
16086         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
16087         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
16088         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
16089         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
16090         (REG_ERANGE): Expect.
16091         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
16092         optional-constant.
16093         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
16094         Use (void) in prototype.
16095         [POSIX] (*_t): Allow.
16096         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
16097         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
16098         (WRDE_BADVAL): Expect.
16099
16100         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
16101         expect.
16102         [XPG3 || XPG4] (O_RSYNC): Likewise.
16103         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
16104         Likewise.
16105         [XPG3 || XPG4] (pthread_sigmask): Likewise.
16106         [XPG3 || XPG4] (sigqueue): Likewise.
16107         [XPG3 || XPG4] (sigtimedwait): Likewise.
16108         [XPG3 || XPG4] (sigwaitinfo): Likewise.
16109         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
16110         [XPG3 || XPG4] (vsnprintf): Likewise.
16111         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
16112         Likewise.
16113         [XPG3 || XPG4] (blksize_t): Likewise.
16114         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
16115         Likewise.
16116         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
16117         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
16118         [XPG3 || XPG4] (struct itimerspec): Likewise.
16119         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
16120         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
16121         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
16122         [XPG3 || XPG4] (clockid_t): Likewise.
16123         [XPG3 || XPG4] (timer_t): Likewise.
16124         [XPG3 || XPG4] (clock_getres): Likewise.
16125         [XPG3 || XPG4] (clock_gettime): Likewise.
16126         [XPG3 || XPG4] (clock_settime): Likewise.
16127         [XPG3 || XPG4] (nanosleep): Likewise.
16128         [XPG3 || XPG4] (timer_create): Likewise.
16129         [XPG3 || XPG4] (timer_delete): Likewise.
16130         [XPG3 || XPG4] (timer_gettime): Likewise.
16131         [XPG3 || XPG4] (timer_getoverrun): Likewise.
16132         [XPG3 || XPG4] (timer_settime): Likewise.
16133         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
16134         [XPG3 || XPG4] (getlogin_r): Likewise.
16135         [XPG3 || XPG4] (pread): Likewise.
16136         [XPG3 || XPG4] (pthread_atfork): Likewise.
16137         [XPG3 || XPG4] (pwrite): Likewise.
16138
16139         [BZ #14835]
16140         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
16141         <bits/siginfo.h>.
16142
16143 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16144
16145         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
16146         finalizing MALLSTREAM.
16147
16148         * sysdeps/mach/hurd/syncfs.c: New file.
16149
16150 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
16151
16152         [BZ #14719]
16153         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
16154         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
16155         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
16156         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
16157         (_nss_dns_gethostbyname4_r): Likewise.
16158         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
16159         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
16160
16161 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
16162
16163         [BZ #13763]
16164         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
16165
16166 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
16167
16168         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
16169         * elf/cache.c (print_entry): Print ",AArch64" for
16170         FLAG_AARCH64_LIB64
16171
16172         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
16173         * elf/cache.c (print_entry): Print ",hard-float" for
16174         FLAG_ARM_LIBHF.
16175
16176 2012-11-18  David S. Miller  <davem@davemloft.net>
16177
16178         With help from Joseph Myers.
16179         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
16180         cutoff to 2**-13.
16181         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
16182         cutoff to 2**-25.
16183         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
16184         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
16185         small.
16186         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
16187         * math/libm-test.inc (y0_test): New tests.
16188         (y1_test): New tests.
16189         * sysdeps/i386/fpu/libm-test-ulps: Update.
16190         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16191         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16192
16193 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
16194
16195         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
16196         64-bit targets.
16197         * configure: Regenerated.
16198
16199 2012-11-17  David S. Miller  <davem@davemloft.net>
16200
16201         [BZ #14811]
16202         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
16203         nonzero exponents with absolute value below 0x1p-128 to +/-
16204         0x1p-128.
16205
16206 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
16207
16208         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
16209
16210         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
16211
16212         * posix/getconf-speclist.c: New file.
16213         * posix/posix-envs.def: Likewise.
16214         * posix/confstr.c (START_ENV_GROUP): New macro.
16215         (END_ENV_GROUP): Likewise.
16216         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16217         (KNOWN_PRESENT_ENV_STRING): Likewise.
16218         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16219         (UNKNOWN_ENVIRONMENT): Likewise.
16220         (confstr): Include posix-envs.def instead of handling
16221         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
16222         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
16223         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
16224         (END_ENV_GROUP): Likewise.
16225         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16226         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16227         (UNKNOWN_ENVIRONMENT): Likewise.
16228         (__sysconf): Include posix-envs.def instead of handling associated
16229         cases directly here.
16230         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
16231         preprocessing getconf-speclist.c rather than running getconf or
16232         generating empty file.
16233
16234 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
16235
16236         * scripts/check-local-headers.sh: Ignore 'mach' headers.
16237
16238 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
16239
16240         [BZ #14672]
16241         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
16242
16243 2012-11-16  David S. Miller  <davem@davemloft.net>
16244
16245         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
16246         smaller than LDBL_EPSILON/2.0L, just return xm1.
16247
16248 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
16249
16250         * elf/tst-array1.c (init): Set constructor priority to 1000.
16251         (fini): Set destructor priority to 1000.
16252         * elf/tst-array2dep.c: Likewise.
16253
16254 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16255
16256         [BZ #11741]
16257         * libio/fileops.c (_IO_new_file_write): Correctly return error.
16258         (_IO_new_file_xsputn): Also return EOF if none of the input
16259         data was written when overflow failed.
16260         * libio/iopadn.c (_IO_padn): Likewise.
16261         * libio/iowpadn.c (_IO_wpadn): Likewise.
16262         * stdio-common/tst-put-error.c: Add copyright notice.
16263         (do_test): Add case for printing padded string.
16264         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
16265         _IO_padn returned error.
16266         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
16267         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
16268         return EOF.
16269
16270 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16271
16272         * libio/libioP.h: Add comment note that the references to C++
16273         bits are now obsolete.
16274
16275 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16276
16277         * math/libm-test.inc (check_complex): Use asprintf.
16278
16279 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
16280
16281         * debug/pcprofiledump.c (print_version): Update copyright year.
16282         * malloc/memusagestat.c (print_version): Likewise.
16283
16284 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
16285
16286         [BZ #14831]
16287         * elf/Makefile (tests): Add tst-audit8.
16288         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
16289         ($(objpfx)tst-audit8.out): New target.
16290         (tst-audit8-ENV): New variable.
16291         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
16292         audit if l_reloc_result is NULL.
16293         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
16294         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
16295         * elf/tst-audit8.c: New file.
16296
16297 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16298
16299         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
16300         * misc/Makefile (CFLAGS-select.c): Define.
16301         * posix/Makefile (CFLAGS-pause.c): Define.
16302
16303 2012-11-13  David S. Miller  <davem@davemloft.net>
16304
16305         * crypt/Makefile: Move test targets after toplevel Rules
16306         inclusion.  Grab any necessary sysdep routines when linking.
16307         * crypt/md5.c (md5_process_block): Remove define, we will always
16308         name it __md5_process_block.
16309         (md5_finish_ctx): Update md5_process_block call.
16310         (md5_stream): Likewise.
16311         (md5_process_bytes): Likewise.
16312         (md5_process_block): Rename to __md5_process_block and move to ...
16313         * crypt/md5-block.c: ... here.
16314         * crypt/sha256.c (sha256_process_block): Move to ...
16315         * crypt/sha256-block.c: ... here.
16316         * crypt/sha512.c (sha512_process_block): Move to ...
16317         * crypt/sha512-block.c: ... here.
16318         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
16319         path.
16320         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
16321         * sysdeps/sparc/sparc64/multiarch/Makefile
16322         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
16323         crypt subdir.
16324         (localedef-aux): Add md5 crypto assembler when in locale subdir.
16325         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
16326         multiarch changes.
16327         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
16328         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
16329         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
16330         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
16331         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
16332         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
16333         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
16334         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
16335         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
16336         file.
16337         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
16338         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
16339         file.
16340         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
16341
16342 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
16343
16344         * timezone/tzselect.ksh: Update from tzcode git revision
16345         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
16346         * timezone/zdump.c: Likewise.
16347         * timezone/zic.c: Likewise.
16348         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
16349         in TZVERSION setting, not $(PKGVERSION).
16350         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
16351         REPORT_BUGS_TO settings.
16352
16353         [BZ #14838]
16354         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
16355         macro.
16356
16357 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16358
16359         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
16360         detection to immediately after _FP_ROUND().
16361         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
16362         bits are 0.
16363
16364 2012-11-11  David S. Miller  <davem@davemloft.net>
16365
16366         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
16367         inttypes.h
16368         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
16369         __close rather than their public counterparts.
16370
16371 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
16372
16373         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
16374         file.
16375         [UNIX98] (sem_timedwait): Do not expect.
16376         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
16377         [XPG4 || UNIX98] (sockatmark): Do not expect.
16378         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
16379         (clock_getcpuclockid): Do not expect.
16380         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
16381         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
16382         Do not expect.
16383         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
16384         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
16385         [UNIX98] (vwscanf): Likewise.
16386         [UNIX98] (vswscanf): Likewise.
16387
16388 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
16389
16390         * timezone/version.h: Remove file.
16391         * timezone/README: Do not refer to version.h.
16392         * timezone/Makefile ($(objpfx)zic.o): New dependency on
16393         $(objpfx)version.h.
16394         ($(objpfx)zdump.o): Likewise.
16395         ($(objpfx)version.h): New target.
16396
16397         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
16398         2012i.
16399         * timezone/README: Don't mention modification to tzselect.ksh.
16400         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
16401         work on unmodified tzselect.ksh.  Substitute version numbers in
16402         tzselect.ksh.
16403
16404         * Makefile (format-me): Remove.
16405         (INSTALL): Adjust indentation.  Use commands directly instead of
16406         using $(format-me).
16407
16408         * aclocal.m4 (ACX_PKGVERSION): New macro.
16409         (ACX_BUGURL): Likewise.
16410         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
16411         (PKGVERSION): New AC_DEFINE_UNQUOTED.
16412         (REPORT_BUGS_TO): Likewise.
16413         * configure: Regenerated.
16414         * config.h.in (PKGVERSION): New macro.
16415         (REPORT_BUGS_TO): Likewise.
16416         * config.make.in (PKGVERSION): New variable.
16417         (PKGVERSION_TEXI): Likewise.
16418         (REPORT_BUGS_TO): Likewise.
16419         (REPORT_BUGS_TEXI): Likewise.
16420         * Makefile (format-me): Use -I$(common-objpfx)manual.
16421         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
16422         ($(common-objpfx)manual/%): New target.
16423         (manual/%): Remove target.
16424         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
16425         (print_version): Use PKGVERSION.
16426         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
16427         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
16428         and REPORT_BUGS_TO.
16429         ($(objpfx)xtrace): Likewise.
16430         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
16431         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
16432         (print_version): Use PKGVERSION.
16433         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
16434         (do_version): Use PKGVERSION.
16435         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
16436         REPORT_BUGS_TO.
16437         (common-ldd-rewrite): Likewise.
16438         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
16439         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
16440         (print_version): Use PKGVERSION.
16441         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
16442         * elf/pldd.c (argp_program_bug_address): Remove variable.
16443         (more_help): New function.
16444         (argp): Use more_help.
16445         (print_version): Use PKGVERSION.
16446         * elf/sln.c (main): Use PKGVERSION.
16447         (usage): Use REPORT_BUGS_TO.
16448         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
16449         (top level): Use PKGVERSION.
16450         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
16451         (print_version): Use PKGVERSION.
16452         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
16453         (print_version): Use PKGVERSION.
16454         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
16455         (print_version): Use PKGVERSION.
16456         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
16457         (print_version): Use PKGVERSION.
16458         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
16459         (print_version): Use PKGVERSION.
16460         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
16461         (print_version): Use PKGVERSION.
16462         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
16463         and BUGURL.
16464         ($(objpfx)memusage): Likewise.
16465         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
16466         (do_version): Use PKGVERSION.
16467         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
16468         (print_version): Use PKGVERSION.
16469         * malloc/mtrace.pl ($PACKAGE): Remove variable.
16470         ($PKGVERSION): New variable.
16471         ($REPORT_BUGS_TO): Likewise.
16472         (usage): Use $REPORT_BUGS_TO.
16473         (top level): Use $PKGVERSION.
16474         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
16475         ($(objpfx)pkgvers.texi): New rule.
16476         ($(objpfx)stamp-pkgvers): Likewise.
16477         * manual/install.texi: Include pkgvers.texi.
16478         (--with-pkgversion): Document new configure option.
16479         (--with-bugurl): Likewise.
16480         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
16481         than necessarily for this particular distribution.  Use
16482         REPORT_BUGS_TO for where to report bugs.
16483         * INSTALL: Regenerated.
16484         * manual/libc.texinfo: Include pkgvers.texi.
16485         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
16486         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
16487         (print_version): Use PKGVERSION.
16488         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
16489         (print_version): Use PKGVERSION.
16490         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
16491         (print_version): Use PKGVERSION.
16492         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
16493         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
16494         macro.
16495         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
16496         (print_version): Use PKGVERSION.
16497         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
16498         (print_version): Use PKGVERSION.
16499         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
16500         and PKGVERSION.
16501
16502         * timezone/checktab.awk: Update from tzcode 2012i.
16503         * timezone/ialloc.c: Likewise.
16504         * timezone/private.h: Likewise.
16505         * timezone/scheck.c: Likewise.
16506         * timezone/tzfile.h: Likewise.
16507         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
16508         (TZVERSION): Hardcode tzcode version number.
16509         * timezone/zdump.c: Update from tzcode 2012i.
16510         * timezone/zic.c: Likewise.
16511         * timezone/version.h: New file.
16512         * timezone/README: Describe version.h.  Update upstream location.
16513
16514         [BZ #14824]
16515         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
16516         (mktemp): Enable declaration.
16517         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
16518         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
16519         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
16520         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
16521         Likewise.
16522         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
16523         Likewise.
16524         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
16525         Likewise.
16526         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16527         Likewise.
16528         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
16529         Likewise.
16530         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
16531         Likewise.
16532
16533         [BZ #14821]
16534         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
16535         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
16536         for copies of such integer values.
16537         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16538         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16539
16540 2012-11-09  Andreas Jaeger  <aj@suse.de>
16541
16542         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
16543         definitions and declarations that are provided by
16544         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16545
16546 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16547
16548         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
16549         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
16550         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
16551         definition.
16552
16553 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16554
16555         * elf/elf.h: Update comment before AArch64 relocations.
16556
16557 2012-11-07  David S. Miller  <davem@davemloft.net>
16558
16559         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
16560         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16561         (__start_context): Declare.
16562         (__makecontext_ret): Delete.
16563         (__makecontext): Hook up __start_context instead of
16564         __makecontext_ret.
16565         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
16566         (sysdep_routines): Add __start_context when in stdlib.
16567
16568 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16569
16570         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
16571         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
16572         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
16573         hardcoded "nm".
16574         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
16575         (READELF): New variable.  Use it instead of hardcoded "readelf".
16576
16577 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16578
16579         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
16580         * sysdeps/x86/Makefile: Here.
16581         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
16582         * sysdeps/x86/tst-xmmymm.sh: This.
16583
16584 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16585
16586         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
16587         expectations.
16588         [UNIX98] (pthread_barrier_t): Do not expect.
16589         [UNIX98] (pthread_barrierattr_t): Likewise.
16590         [UNIX98] (pthread_spinlock_t): Likewise.
16591         [UNIX98] (pthread_barrier_destroy): Likewise.
16592         [UNIX98] (pthread_barrier_init): Likewise.
16593         [UNIX98] (pthread_barrier_wait): Likewise.
16594         [UNIX98] (pthread_barrierattr_destroy): Likewise.
16595         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
16596         [UNIX98] (pthread_barrierattr_init): Likewise.
16597         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
16598         [UNIX98] (pthread_getcpuclockid): Likewise.
16599         [UNIX98] (pthread_mutex_timedlock): Likewise.
16600         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
16601         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
16602         [UNIX98] (pthread_sigmask): Likewise.
16603         [UNIX98] (pthread_spin_destroy): Likewise.
16604         [UNIX98] (pthread_spin_init): Likewise.
16605         [UNIX98] (pthread_spin_lock): Likewise.
16606         [UNIX98] (pthread_spin_trylock): Likewise.
16607         [UNIX98] (pthread_spin_unlock): Likewise.
16608         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
16609         Do not expect.
16610         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
16611         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
16612         [XPG3 || XPG4] (pthread_cond_t): Likewise.
16613         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
16614         [XPG3 || XPG4] (pthread_key_t): Likewise.
16615         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
16616         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
16617         [XPG3 || XPG4] (pthread_once_t): Likewise.
16618         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
16619         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
16620         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
16621         [XPG3 || XPG4] (pthread_t): Likewise.
16622
16623         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
16624         not expect.
16625         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
16626
16627         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
16628         Change function return type to int.
16629
16630         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
16631         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
16632         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
16633         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
16634         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
16635         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16636         [!POSIX] (posix_madvise): Likewise.
16637         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
16638         && !UNIX98].
16639         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16640         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
16641         (mode_t): Likewise.
16642         (posix_mem_offset): Likewise.
16643         (posix_typed_mem_get_info): Likewise.
16644         (posix_typed_mem_open): Likewise.
16645
16646         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
16647         Change condition to [XOPEN2K8].
16648
16649         * conform/conformtest.pl: Preprocess allow-header data with -x c
16650         instead of from stdin.
16651         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
16652         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
16653         [C99-based standards] (cerfc): Likewise.
16654         [C99-based standards] (cexp2): Likewise.
16655         [C99-based standards] (cexpm1): Likewise.
16656         [C99-based standards] (clog10): Likewise.
16657         [C99-based standards] (clog1p): Likewise.
16658         [C99-based standards] (clog2): Likewise.
16659         [C99-based standards] (clgamma): Likewise.
16660         [C99-based standards] (ctgamma): Likewise.
16661         [C99-based standards] (cerff): Likewise.
16662         [C99-based standards] (cerfcf): Likewise.
16663         [C99-based standards] (cexp2f): Likewise.
16664         [C99-based standards] (cexpm1f): Likewise.
16665         [C99-based standards] (clog10f): Likewise.
16666         [C99-based standards] (clog1pf): Likewise.
16667         [C99-based standards] (clog2f): Likewise.
16668         [C99-based standards] (clgammaf): Likewise.
16669         [C99-based standards] (ctgammaf): Likewise.
16670         [C99-based standards] (cerfl): Likewise.
16671         [C99-based standards] (cerfcl): Likewise.
16672         [C99-based standards] (cexp2l): Likewise.
16673         [C99-based standards] (cexpm1l): Likewise.
16674         [C99-based standards] (clog10l): Likewise.
16675         [C99-based standards] (clog1pl): Likewise.
16676         [C99-based standards] (clog2l): Likewise.
16677         [C99-based standards] (clgammal): Likewise.
16678         [C99-based standards] (ctgammal): Likewise.
16679         * conform/data/inttypes.h-data [C99-based standards]: Include
16680         stdint.h-data.  Remove all expectations for stdint.h contents.
16681         [C99-based standards] (PRI*): Do not allow.
16682         [C99-based standards] (SCN*): Likewise.
16683         [C99-based standards] (*_t): Likewise.
16684         [C99-based-standards] (PRId8): Expect macro.
16685         [C99-based-standards] (PRIi8): Likewise.
16686         [C99-based-standards] (PRIo8): Likewise.
16687         [C99-based-standards] (PRIu8): Likewise.
16688         [C99-based-standards] (PRIx8): Likewise.
16689         [C99-based-standards] (PRIX8): Likewise.
16690         [C99-based-standards] (SCNd8): Likewise.
16691         [C99-based-standards] (SCNi8): Likewise.
16692         [C99-based-standards] (SCNo8): Likewise.
16693         [C99-based-standards] (SCNu8): Likewise.
16694         [C99-based-standards] (SCNx8): Likewise.
16695         [C99-based-standards] (PRIdLEAST8): Likewise.
16696         [C99-based-standards] (PRIiLEAST8): Likewise.
16697         [C99-based-standards] (PRIoLEAST8): Likewise.
16698         [C99-based-standards] (PRIuLEAST8): Likewise.
16699         [C99-based-standards] (PRIxLEAST8): Likewise.
16700         [C99-based-standards] (PRIXLEAST8): Likewise.
16701         [C99-based-standards] (SCNdLEAST8): Likewise.
16702         [C99-based-standards] (SCNiLEAST8): Likewise.
16703         [C99-based-standards] (SCNoLEAST8): Likewise.
16704         [C99-based-standards] (SCNuLEAST8): Likewise.
16705         [C99-based-standards] (SCNxLEAST8): Likewise.
16706         [C99-based-standards] (PRIdFAST8): Likewise.
16707         [C99-based-standards] (PRIiFAST8): Likewise.
16708         [C99-based-standards] (PRIoFAST8): Likewise.
16709         [C99-based-standards] (PRIuFAST8): Likewise.
16710         [C99-based-standards] (PRIxFAST8): Likewise.
16711         [C99-based-standards] (PRIXFAST8): Likewise.
16712         [C99-based-standards] (SCNdFAST8): Likewise.
16713         [C99-based-standards] (SCNiFAST8): Likewise.
16714         [C99-based-standards] (SCNoFAST8): Likewise.
16715         [C99-based-standards] (SCNuFAST8): Likewise.
16716         [C99-based-standards] (SCNxFAST8): Likewise.
16717         [C99-based-standards] (PRId16): Likewise.
16718         [C99-based-standards] (PRIi16): Likewise.
16719         [C99-based-standards] (PRIo16): Likewise.
16720         [C99-based-standards] (PRIu16): Likewise.
16721         [C99-based-standards] (PRIx16): Likewise.
16722         [C99-based-standards] (PRIX16): Likewise.
16723         [C99-based-standards] (SCNd16): Likewise.
16724         [C99-based-standards] (SCNi16): Likewise.
16725         [C99-based-standards] (SCNo16): Likewise.
16726         [C99-based-standards] (SCNu16): Likewise.
16727         [C99-based-standards] (SCNx16): Likewise.
16728         [C99-based-standards] (PRIdLEAST16): Likewise.
16729         [C99-based-standards] (PRIiLEAST16): Likewise.
16730         [C99-based-standards] (PRIoLEAST16): Likewise.
16731         [C99-based-standards] (PRIuLEAST16): Likewise.
16732         [C99-based-standards] (PRIxLEAST16): Likewise.
16733         [C99-based-standards] (PRIXLEAST16): Likewise.
16734         [C99-based-standards] (SCNdLEAST16): Likewise.
16735         [C99-based-standards] (SCNiLEAST16): Likewise.
16736         [C99-based-standards] (SCNoLEAST16): Likewise.
16737         [C99-based-standards] (SCNuLEAST16): Likewise.
16738         [C99-based-standards] (SCNxLEAST16): Likewise.
16739         [C99-based-standards] (PRIdFAST16): Likewise.
16740         [C99-based-standards] (PRIiFAST16): Likewise.
16741         [C99-based-standards] (PRIoFAST16): Likewise.
16742         [C99-based-standards] (PRIuFAST16): Likewise.
16743         [C99-based-standards] (PRIxFAST16): Likewise.
16744         [C99-based-standards] (PRIXFAST16): Likewise.
16745         [C99-based-standards] (SCNdFAST16): Likewise.
16746         [C99-based-standards] (SCNiFAST16): Likewise.
16747         [C99-based-standards] (SCNoFAST16): Likewise.
16748         [C99-based-standards] (SCNuFAST16): Likewise.
16749         [C99-based-standards] (SCNxFAST16): Likewise.
16750         [C99-based-standards] (PRId32): Likewise.
16751         [C99-based-standards] (PRIi32): Likewise.
16752         [C99-based-standards] (PRIo32): Likewise.
16753         [C99-based-standards] (PRIu32): Likewise.
16754         [C99-based-standards] (PRIx32): Likewise.
16755         [C99-based-standards] (PRIX32): Likewise.
16756         [C99-based-standards] (SCNd32): Likewise.
16757         [C99-based-standards] (SCNi32): Likewise.
16758         [C99-based-standards] (SCNo32): Likewise.
16759         [C99-based-standards] (SCNu32): Likewise.
16760         [C99-based-standards] (SCNx32): Likewise.
16761         [C99-based-standards] (PRIdLEAST32): Likewise.
16762         [C99-based-standards] (PRIiLEAST32): Likewise.
16763         [C99-based-standards] (PRIoLEAST32): Likewise.
16764         [C99-based-standards] (PRIuLEAST32): Likewise.
16765         [C99-based-standards] (PRIxLEAST32): Likewise.
16766         [C99-based-standards] (PRIXLEAST32): Likewise.
16767         [C99-based-standards] (SCNdLEAST32): Likewise.
16768         [C99-based-standards] (SCNiLEAST32): Likewise.
16769         [C99-based-standards] (SCNoLEAST32): Likewise.
16770         [C99-based-standards] (SCNuLEAST32): Likewise.
16771         [C99-based-standards] (SCNxLEAST32): Likewise.
16772         [C99-based-standards] (PRIdFAST32): Likewise.
16773         [C99-based-standards] (PRIiFAST32): Likewise.
16774         [C99-based-standards] (PRIoFAST32): Likewise.
16775         [C99-based-standards] (PRIuFAST32): Likewise.
16776         [C99-based-standards] (PRIxFAST32): Likewise.
16777         [C99-based-standards] (PRIXFAST32): Likewise.
16778         [C99-based-standards] (SCNdFAST32): Likewise.
16779         [C99-based-standards] (SCNiFAST32): Likewise.
16780         [C99-based-standards] (SCNoFAST32): Likewise.
16781         [C99-based-standards] (SCNuFAST32): Likewise.
16782         [C99-based-standards] (SCNxFAST32): Likewise.
16783         [C99-based-standards] (PRId64): Likewise.
16784         [C99-based-standards] (PRIi64): Likewise.
16785         [C99-based-standards] (PRIo64): Likewise.
16786         [C99-based-standards] (PRIu64): Likewise.
16787         [C99-based-standards] (PRIx64): Likewise.
16788         [C99-based-standards] (PRIX64): Likewise.
16789         [C99-based-standards] (SCNd64): Likewise.
16790         [C99-based-standards] (SCNi64): Likewise.
16791         [C99-based-standards] (SCNo64): Likewise.
16792         [C99-based-standards] (SCNu64): Likewise.
16793         [C99-based-standards] (SCNx64): Likewise.
16794         [C99-based-standards] (PRIdLEAST64): Likewise.
16795         [C99-based-standards] (PRIiLEAST64): Likewise.
16796         [C99-based-standards] (PRIoLEAST64): Likewise.
16797         [C99-based-standards] (PRIuLEAST64): Likewise.
16798         [C99-based-standards] (PRIxLEAST64): Likewise.
16799         [C99-based-standards] (PRIXLEAST64): Likewise.
16800         [C99-based-standards] (SCNdLEAST64): Likewise.
16801         [C99-based-standards] (SCNiLEAST64): Likewise.
16802         [C99-based-standards] (SCNoLEAST64): Likewise.
16803         [C99-based-standards] (SCNuLEAST64): Likewise.
16804         [C99-based-standards] (SCNxLEAST64): Likewise.
16805         [C99-based-standards] (PRIdFAST64): Likewise.
16806         [C99-based-standards] (PRIiFAST64): Likewise.
16807         [C99-based-standards] (PRIoFAST64): Likewise.
16808         [C99-based-standards] (PRIuFAST64): Likewise.
16809         [C99-based-standards] (PRIxFAST64): Likewise.
16810         [C99-based-standards] (PRIXFAST64): Likewise.
16811         [C99-based-standards] (SCNdFAST64): Likewise.
16812         [C99-based-standards] (SCNiFAST64): Likewise.
16813         [C99-based-standards] (SCNoFAST64): Likewise.
16814         [C99-based-standards] (SCNuFAST64): Likewise.
16815         [C99-based-standards] (SCNxFAST64): Likewise.
16816         [C99-based-standards] (PRIdMAX): Likewise.
16817         [C99-based-standards] (PRIiMAX): Likewise.
16818         [C99-based-standards] (PRIoMAX): Likewise.
16819         [C99-based-standards] (PRIuMAX): Likewise.
16820         [C99-based-standards] (PRIxMAX): Likewise.
16821         [C99-based-standards] (PRIXMAX): Likewise.
16822         [C99-based-standards] (SCNdMAX): Likewise.
16823         [C99-based-standards] (SCNiMAX): Likewise.
16824         [C99-based-standards] (SCNoMAX): Likewise.
16825         [C99-based-standards] (SCNuMAX): Likewise.
16826         [C99-based-standards] (SCNxMAX): Likewise.
16827         [C99-based-standards] (PRIdPTR): Likewise.
16828         [C99-based-standards] (PRIiPTR): Likewise.
16829         [C99-based-standards] (PRIoPTR): Likewise.
16830         [C99-based-standards] (PRIuPTR): Likewise.
16831         [C99-based-standards] (PRIxPTR): Likewise.
16832         [C99-based-standards] (PRIXPTR): Likewise.
16833         [C99-based-standards] (SCNdPTR): Likewise.
16834         [C99-based-standards] (SCNiPTR): Likewise.
16835         [C99-based-standards] (SCNoPTR): Likewise.
16836         [C99-based-standards] (SCNuPTR): Likewise.
16837         [C99-based-standards] (SCNxPTR): Likewise.
16838         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
16839         allow.
16840         * conform/data/stdint.h-data: Update comments to clarify
16841         requirements.
16842         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
16843         type.
16844         [C99-based standards] (INT8_MAX): Likewise.
16845         [C99-based standards] (INT16_MIN): Likewise.
16846         [C99-based standards] (INT16_MAX): Likewise.
16847         [C99-based standards] (INT32_MIN): Likewise.
16848         [C99-based standards] (INT32_MAX): Likewise.
16849         [C99-based standards] (INT64_MIN): Likewise.
16850         [C99-based standards] (INT64_MAX): Likewise.
16851         [C99-based standards] (UINT8_MAX): Likewise.
16852         [C99-based standards] (UINT16_MAX): Likewise.
16853         [C99-based standards] (UINT32_MAX): Likewise.
16854         [C99-based standards] (UINT64_MAX): Likewise.
16855         [C99-based standards] (INT_LEAST8_MIN): Likewise.
16856         [C99-based standards] (INT_LEAST8_MAX): Likewise.
16857         [C99-based standards] (INT_LEAST16_MIN): Likewise.
16858         [C99-based standards] (INT_LEAST16_MAX): Likewise.
16859         [C99-based standards] (INT_LEAST32_MIN): Likewise.
16860         [C99-based standards] (INT_LEAST32_MAX): Likewise.
16861         [C99-based standards] (INT_LEAST64_MIN): Likewise.
16862         [C99-based standards] (INT_LEAST64_MAX): Likewise.
16863         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
16864         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
16865         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
16866         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
16867         [C99-based standards] (INT_FAST8_MIN): Likewise.
16868         [C99-based standards] (INT_FAST8_MAX): Likewise.
16869         [C99-based standards] (INT_FAST16_MIN): Likewise.
16870         [C99-based standards] (INT_FAST16_MAX): Likewise.
16871         [C99-based standards] (INT_FAST32_MIN): Likewise.
16872         [C99-based standards] (INT_FAST32_MAX): Likewise.
16873         [C99-based standards] (INT_FAST64_MIN): Likewise.
16874         [C99-based standards] (INT_FAST64_MAX): Likewise.
16875         [C99-based standards] (UINT_FAST8_MAX): Likewise.
16876         [C99-based standards] (UINT_FAST16_MAX): Likewise.
16877         [C99-based standards] (UINT_FAST32_MAX): Likewise.
16878         [C99-based standards] (UINT_FAST64_MAX): Likewise.
16879         [C99-based standards] (INTPTR_MIN): Likewise.
16880         [C99-based standards] (INTPTR_MAX): Likewise.
16881         [C99-based standards] (UINTPTR_MAX): Likewise.
16882         [C99-based standards] (INTMAX_MIN): Likewise.
16883         [C99-based standards] (INTMAX_MAX): Likewise.
16884         [C99-based standards] (UINTMAX_MAX): Likewise.
16885         [C99-based standards] (PTRDIFF_MIN): Likewise.
16886         [C99-based standards] (PTRDIFF_MAX): Likewise.
16887         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
16888         [C99-based standards] (SIZE_MAX): Likewise.
16889         [C99-based standards] (WCHAR_MAX): Likewise.
16890         [C99-based standards] (WINT_MAX): Likewise.
16891         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
16892         constraint on value.
16893         [C99-based standards] (WCHAR_MIN): Likewise.
16894         [C99-based standards] (WINT_MIN): Likewise.
16895         [C99-based standards] (*_t): Allow.
16896         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
16897         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
16898         Include math.h-data and complex.h-data.  Remove all expectations
16899         of math.h and complex.h contents.
16900         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
16901         at end of line.
16902         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
16903         (struct tm): Expect tag.
16904         [C99-based-standards] (wcstof): Expect function.
16905         [C99-based-standards] (wcstold): Likewise.
16906         [C99-based-standards] (wcstoll): Likewise.
16907         [C99-based-standards] (wcstoull): Likewise.
16908         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
16909         macro-int-constant.  Specify type.
16910         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
16911         constraint on value.
16912         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16913         Specify type.
16914         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
16915         Specify value.
16916         [ISO C standards]: Do not allow headers.
16917         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
16918         wcs[abcdefghijklmnopqrstuvwxyz]*.
16919         [ISO C standards] (*_t): Do not allow.
16920         * conform/data/wctype.h-data [C99-based standards] (iswblank):
16921         Expect function.
16922         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
16923         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16924         Specify type.
16925         [ISO C standards]: Do not allow headers.
16926         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
16927         is[abcdefghijklmnopqrstuvwxyz]*.
16928         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
16929         to[abcdefghijklmnopqrstuvwxyz]*.
16930         [ISO C standards] (*_t): Do not allow.
16931         * conform/data/stdalign.h-data: New file.
16932         * conform/data/stdbool.h-data: Likewise.
16933         * conform/data/stdnoreturn.h-data: Likewise.
16934
16935 2012-11-07  Roland McGrath  <roland@hack.frob.com>
16936
16937         [BZ #14815]
16938         * manual/filesys.texi (Directory Entries): Typo fix.
16939         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
16940
16941 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16942
16943         * elf/elf.h (EM_AARCH64): New macro.
16944         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
16945         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
16946         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
16947         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
16948         (R_AARCH64_TLSDESC): Likewise.
16949         (NT_ARM_TLS): Likewise.
16950         (NT_ARM_HW_BREAK): Likewise.
16951         (NT_ARM_HW_WATCH): Likewise.
16952
16953 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16954
16955         [BZ #14811]
16956         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
16957         (__ieee754_powl): Saturate nonzero exponents with absolute value
16958         below 0x1p-79 to +/- 0x1p-79.
16959         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
16960         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
16961         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
16962         nonzero exponents with absolute value below 0x1p-32 to +/-
16963         0x1p-32.
16964         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
16965         (__ieee754_powl): Saturate nonzero exponents with absolute value
16966         below 0x1p-79 to +/- 0x1p-79.
16967         * math/libm-test.inc (pow_test): Add more tests.
16968
16969 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16970
16971         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
16972         _dl_s390_cap_flags with kernel. Increase string length.
16973         (_dl_s390_platforms): Add z196 and zEC12.
16974
16975 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16976
16977         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
16978         Change XOPEN21K to XOPEN2K.
16979
16980 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16981
16982         * string/memmove.c: Use memcpy when possible.
16983
16984 2012-11-06  Andreas Jaeger  <aj@suse.de>
16985
16986         * po/eo.po: Update from translation team.
16987
16988 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
16989
16990         [BZ #14793]
16991         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
16992         exponent and small x and y exponents, scale x or y up.  Increase
16993         by 2 the exponent used in scaling up.
16994         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16995         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16996         * math/libm-test.inc (fma_test): Add more tests.
16997         (fma_test_towardzero): Likewise.
16998         (fma_test_downward): Likewise.
16999         (fma_test_upward): Likewise.
17000
17001 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
17002
17003         [BZ #14805]
17004         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
17005         fenv_t *.
17006
17007         [BZ #14801]
17008         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
17009         namespace for names of struct fields.
17010         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
17011         fenv_t fields.
17012         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
17013         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
17014
17015 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17016
17017         [BZ #3665]
17018         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
17019
17020 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17021
17022         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
17023         PTR_DEMANGLE.
17024
17025         [BZ #5246]
17026         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
17027         PTR_DEMANGLE.
17028
17029 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
17030
17031         [BZ #14797]
17032         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
17033         definitely overflow as x * y not x * y + z.
17034         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17035         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17036         * math/libm-test.inc (fma_test): Add more tests.
17037         (fma_test_towardzero): Likewise.
17038         (fma_test_downward): Likewise.
17039         (fma_test_upward): Likewise.
17040
17041 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17042
17043         [BZ #157]
17044
17045         * include/stub-tag.h: Remove file.
17046         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
17047         '#include' of it.
17048         * manual/maint.texi (Porting): Don't reference it.
17049         * Makerules ($(objpfx)stubs): Likewise.
17050         * dirent/closedir.c: Don't include <stub-tag.h>.
17051         * dirent/dirfd.c: Likewise.
17052         * dirent/fdopendir.c: Likewise.
17053         * dirent/getdents.c: Likewise.
17054         * dirent/getdents64.c: Likewise.
17055         * dirent/opendir.c: Likewise.
17056         * dirent/readdir.c: Likewise.
17057         * dirent/readdir64.c: Likewise.
17058         * dirent/readdir64_r.c: Likewise.
17059         * dirent/readdir_r.c: Likewise.
17060         * dirent/rewinddir.c: Likewise.
17061         * dirent/seekdir.c: Likewise.
17062         * dirent/telldir.c: Likewise.
17063         * gmon/profil.c: Likewise.
17064         * grp/setgroups.c: Likewise.
17065         * inet/if_index.c: Likewise.
17066         * io/access.c: Likewise.
17067         * io/chdir.c: Likewise.
17068         * io/chmod.c: Likewise.
17069         * io/chown.c: Likewise.
17070         * io/close.c: Likewise.
17071         * io/dup.c: Likewise.
17072         * io/dup2.c: Likewise.
17073         * io/dup3.c: Likewise.
17074         * io/euidaccess.c: Likewise.
17075         * io/faccessat.c: Likewise.
17076         * io/fchdir.c: Likewise.
17077         * io/fchmod.c: Likewise.
17078         * io/fchmodat.c: Likewise.
17079         * io/fchown.c: Likewise.
17080         * io/fchownat.c: Likewise.
17081         * io/fcntl.c: Likewise.
17082         * io/flock.c: Likewise.
17083         * io/fstatfs.c: Likewise.
17084         * io/fstatfs64.c: Likewise.
17085         * io/fstatvfs.c: Likewise.
17086         * io/fstatvfs64.c: Likewise.
17087         * io/futimens.c: Likewise.
17088         * io/fxstat.c: Likewise.
17089         * io/fxstat64.c: Likewise.
17090         * io/fxstatat.c: Likewise.
17091         * io/fxstatat64.c: Likewise.
17092         * io/getcwd.c: Likewise.
17093         * io/isatty.c: Likewise.
17094         * io/lchmod.c: Likewise.
17095         * io/lchown.c: Likewise.
17096         * io/link.c: Likewise.
17097         * io/linkat.c: Likewise.
17098         * io/lseek.c: Likewise.
17099         * io/lseek64.c: Likewise.
17100         * io/lxstat64.c: Likewise.
17101         * io/mkdir.c: Likewise.
17102         * io/mkdirat.c: Likewise.
17103         * io/mkfifo.c: Likewise.
17104         * io/mkfifoat.c: Likewise.
17105         * io/open.c: Likewise.
17106         * io/open64.c: Likewise.
17107         * io/openat.c: Likewise.
17108         * io/openat64.c: Likewise.
17109         * io/pipe.c: Likewise.
17110         * io/pipe2.c: Likewise.
17111         * io/poll.c: Likewise.
17112         * io/posix_fadvise.c: Likewise.
17113         * io/posix_fadvise64.c: Likewise.
17114         * io/posix_fallocate.c: Likewise.
17115         * io/posix_fallocate64.c: Likewise.
17116         * io/read.c: Likewise.
17117         * io/readlink.c: Likewise.
17118         * io/readlinkat.c: Likewise.
17119         * io/rmdir.c: Likewise.
17120         * io/sendfile.c: Likewise.
17121         * io/sendfile64.c: Likewise.
17122         * io/statfs.c: Likewise.
17123         * io/statfs64.c: Likewise.
17124         * io/statvfs.c: Likewise.
17125         * io/statvfs64.c: Likewise.
17126         * io/symlink.c: Likewise.
17127         * io/symlinkat.c: Likewise.
17128         * io/ttyname.c: Likewise.
17129         * io/ttyname_r.c: Likewise.
17130         * io/umask.c: Likewise.
17131         * io/unlink.c: Likewise.
17132         * io/unlinkat.c: Likewise.
17133         * io/utime.c: Likewise.
17134         * io/utimensat.c: Likewise.
17135         * io/write.c: Likewise.
17136         * io/xmknod.c: Likewise.
17137         * io/xmknodat.c: Likewise.
17138         * io/xstat.c: Likewise.
17139         * io/xstat64.c: Likewise.
17140         * login/getpt.c: Likewise.
17141         * login/grantpt.c: Likewise.
17142         * login/unlockpt.c: Likewise.
17143         * math/e_acoshl.c: Likewise.
17144         * math/e_acosl.c: Likewise.
17145         * math/e_asinl.c: Likewise.
17146         * math/e_atan2l.c: Likewise.
17147         * math/e_atanhl.c: Likewise.
17148         * math/e_coshl.c: Likewise.
17149         * math/e_expl.c: Likewise.
17150         * math/e_fmodl.c: Likewise.
17151         * math/e_gammal_r.c: Likewise.
17152         * math/e_hypotl.c: Likewise.
17153         * math/e_j0l.c: Likewise.
17154         * math/e_j1l.c: Likewise.
17155         * math/e_jnl.c: Likewise.
17156         * math/e_lgammal_r.c: Likewise.
17157         * math/e_log10l.c: Likewise.
17158         * math/e_log2l.c: Likewise.
17159         * math/e_logl.c: Likewise.
17160         * math/e_powl.c: Likewise.
17161         * math/e_rem_pio2l.c: Likewise.
17162         * math/e_sinhl.c: Likewise.
17163         * math/e_sqrtl.c: Likewise.
17164         * math/fclrexcpt.c: Likewise.
17165         * math/fedisblxcpt.c: Likewise.
17166         * math/feenablxcpt.c: Likewise.
17167         * math/fegetenv.c: Likewise.
17168         * math/fegetexcept.c: Likewise.
17169         * math/fegetround.c: Likewise.
17170         * math/feholdexcpt.c: Likewise.
17171         * math/fesetenv.c: Likewise.
17172         * math/fesetround.c: Likewise.
17173         * math/feupdateenv.c: Likewise.
17174         * math/fgetexcptflg.c: Likewise.
17175         * math/fraiseexcpt.c: Likewise.
17176         * math/fsetexcptflg.c: Likewise.
17177         * math/ftestexcept.c: Likewise.
17178         * math/k_cosl.c: Likewise.
17179         * math/k_rem_pio2l.c: Likewise.
17180         * math/k_sinl.c: Likewise.
17181         * math/k_tanl.c: Likewise.
17182         * math/s_asinhl.c: Likewise.
17183         * math/s_atanl.c: Likewise.
17184         * math/s_cbrtl.c: Likewise.
17185         * math/s_erfl.c: Likewise.
17186         * math/s_expm1l.c: Likewise.
17187         * math/s_log1pl.c: Likewise.
17188         * math/s_tanhl.c: Likewise.
17189         * misc/acct.c: Likewise.
17190         * misc/brk.c: Likewise.
17191         * misc/chflags.c: Likewise.
17192         * misc/chroot.c: Likewise.
17193         * misc/fchflags.c: Likewise.
17194         * misc/fgetxattr.c: Likewise.
17195         * misc/flistxattr.c: Likewise.
17196         * misc/fremovexattr.c: Likewise.
17197         * misc/fsetxattr.c: Likewise.
17198         * misc/fsync.c: Likewise.
17199         * misc/ftruncate.c: Likewise.
17200         * misc/futimes.c: Likewise.
17201         * misc/futimesat.c: Likewise.
17202         * misc/getdomain.c: Likewise.
17203         * misc/getdtsz.c: Likewise.
17204         * misc/gethostid.c: Likewise.
17205         * misc/gethostname.c: Likewise.
17206         * misc/getloadavg.c: Likewise.
17207         * misc/getpagesize.c: Likewise.
17208         * misc/getsysstats.c: Likewise.
17209         * misc/getxattr.c: Likewise.
17210         * misc/gtty.c: Likewise.
17211         * misc/ioctl.c: Likewise.
17212         * misc/lgetxattr.c: Likewise.
17213         * misc/listxattr.c: Likewise.
17214         * misc/llistxattr.c: Likewise.
17215         * misc/lremovexattr.c: Likewise.
17216         * misc/lsetxattr.c: Likewise.
17217         * misc/lutimes.c: Likewise.
17218         * misc/madvise.c: Likewise.
17219         * misc/mincore.c: Likewise.
17220         * misc/mlock.c: Likewise.
17221         * misc/mlockall.c: Likewise.
17222         * misc/mmap.c: Likewise.
17223         * misc/mprotect.c: Likewise.
17224         * misc/msync.c: Likewise.
17225         * misc/munlock.c: Likewise.
17226         * misc/munlockall.c: Likewise.
17227         * misc/munmap.c: Likewise.
17228         * misc/preadv.c: Likewise.
17229         * misc/preadv64.c: Likewise.
17230         * misc/ptrace.c: Likewise.
17231         * misc/pwritev.c: Likewise.
17232         * misc/pwritev64.c: Likewise.
17233         * misc/readv.c: Likewise.
17234         * misc/reboot.c: Likewise.
17235         * misc/remap_file_pages.c: Likewise.
17236         * misc/removexattr.c: Likewise.
17237         * misc/revoke.c: Likewise.
17238         * misc/select.c: Likewise.
17239         * misc/setdomain.c: Likewise.
17240         * misc/setegid.c: Likewise.
17241         * misc/seteuid.c: Likewise.
17242         * misc/sethostid.c: Likewise.
17243         * misc/sethostname.c: Likewise.
17244         * misc/setregid.c: Likewise.
17245         * misc/setreuid.c: Likewise.
17246         * misc/setxattr.c: Likewise.
17247         * misc/sstk.c: Likewise.
17248         * misc/stty.c: Likewise.
17249         * misc/swapoff.c: Likewise.
17250         * misc/swapon.c: Likewise.
17251         * misc/sync.c: Likewise.
17252         * misc/syncfs.c: Likewise.
17253         * misc/syscall.c: Likewise.
17254         * misc/truncate.c: Likewise.
17255         * misc/ualarm.c: Likewise.
17256         * misc/usleep.c: Likewise.
17257         * misc/ustat.c: Likewise.
17258         * misc/utimes.c: Likewise.
17259         * misc/vhangup.c: Likewise.
17260         * misc/writev.c: Likewise.
17261         * posix/_exit.c: Likewise.
17262         * posix/alarm.c: Likewise.
17263         * posix/execve.c: Likewise.
17264         * posix/fexecve.c: Likewise.
17265         * posix/fork.c: Likewise.
17266         * posix/fpathconf.c: Likewise.
17267         * posix/getaddrinfo.c: Likewise.
17268         * posix/getegid.c: Likewise.
17269         * posix/geteuid.c: Likewise.
17270         * posix/getgid.c: Likewise.
17271         * posix/getgroups.c: Likewise.
17272         * posix/getlogin.c: Likewise.
17273         * posix/getlogin_r.c: Likewise.
17274         * posix/getpgid.c: Likewise.
17275         * posix/getpid.c: Likewise.
17276         * posix/getppid.c: Likewise.
17277         * posix/getresgid.c: Likewise.
17278         * posix/getresuid.c: Likewise.
17279         * posix/getsid.c: Likewise.
17280         * posix/getuid.c: Likewise.
17281         * posix/glob64.c: Likewise.
17282         * posix/nanosleep.c: Likewise.
17283         * posix/pathconf.c: Likewise.
17284         * posix/pause.c: Likewise.
17285         * posix/posix_madvise.c: Likewise.
17286         * posix/pread.c: Likewise.
17287         * posix/pread64.c: Likewise.
17288         * posix/pwrite.c: Likewise.
17289         * posix/pwrite64.c: Likewise.
17290         * posix/sched_getaffinity.c: Likewise.
17291         * posix/sched_getp.c: Likewise.
17292         * posix/sched_gets.c: Likewise.
17293         * posix/sched_primax.c: Likewise.
17294         * posix/sched_primin.c: Likewise.
17295         * posix/sched_rr_gi.c: Likewise.
17296         * posix/sched_setaffinity.c: Likewise.
17297         * posix/sched_setp.c: Likewise.
17298         * posix/sched_sets.c: Likewise.
17299         * posix/sched_yield.c: Likewise.
17300         * posix/setgid.c: Likewise.
17301         * posix/setlogin.c: Likewise.
17302         * posix/setpgid.c: Likewise.
17303         * posix/setresgid.c: Likewise.
17304         * posix/setresuid.c: Likewise.
17305         * posix/setsid.c: Likewise.
17306         * posix/setuid.c: Likewise.
17307         * posix/sleep.c: Likewise.
17308         * posix/spawni.c: Likewise.
17309         * posix/sysconf.c: Likewise.
17310         * posix/times.c: Likewise.
17311         * posix/wait.c: Likewise.
17312         * posix/wait3.c: Likewise.
17313         * posix/wait4.c: Likewise.
17314         * posix/waitpid.c: Likewise.
17315         * resolv/gai_sigqueue.c: Likewise.
17316         * resource/getpriority.c: Likewise.
17317         * resource/getrlimit.c: Likewise.
17318         * resource/getrusage.c: Likewise.
17319         * resource/nice.c: Likewise.
17320         * resource/setpriority.c: Likewise.
17321         * resource/setrlimit.c: Likewise.
17322         * resource/ulimit.c: Likewise.
17323         * rt/aio_cancel.c: Likewise.
17324         * rt/aio_fsync.c: Likewise.
17325         * rt/aio_read.c: Likewise.
17326         * rt/aio_sigqueue.c: Likewise.
17327         * rt/aio_suspend.c: Likewise.
17328         * rt/aio_write.c: Likewise.
17329         * rt/clock_getres.c: Likewise.
17330         * rt/clock_gettime.c: Likewise.
17331         * rt/clock_nanosleep.c: Likewise.
17332         * rt/clock_settime.c: Likewise.
17333         * rt/lio_listio.c: Likewise.
17334         * rt/mq_close.c: Likewise.
17335         * rt/mq_getattr.c: Likewise.
17336         * rt/mq_notify.c: Likewise.
17337         * rt/mq_open.c: Likewise.
17338         * rt/mq_receive.c: Likewise.
17339         * rt/mq_send.c: Likewise.
17340         * rt/mq_setattr.c: Likewise.
17341         * rt/mq_timedreceive.c: Likewise.
17342         * rt/mq_timedsend.c: Likewise.
17343         * rt/mq_unlink.c: Likewise.
17344         * rt/shm_open.c: Likewise.
17345         * rt/shm_unlink.c: Likewise.
17346         * rt/timer_create.c: Likewise.
17347         * rt/timer_delete.c: Likewise.
17348         * rt/timer_getoverr.c: Likewise.
17349         * rt/timer_gettime.c: Likewise.
17350         * rt/timer_settime.c: Likewise.
17351         * setjmp/__longjmp.c: Likewise.
17352         * setjmp/setjmp.c: Likewise.
17353         * signal/kill.c: Likewise.
17354         * signal/killpg.c: Likewise.
17355         * signal/raise.c: Likewise.
17356         * signal/sigaction.c: Likewise.
17357         * signal/sigaltstack.c: Likewise.
17358         * signal/sigblock.c: Likewise.
17359         * signal/sigignore.c: Likewise.
17360         * signal/sigintr.c: Likewise.
17361         * signal/signal.c: Likewise.
17362         * signal/sigpause.c: Likewise.
17363         * signal/sigpending.c: Likewise.
17364         * signal/sigqueue.c: Likewise.
17365         * signal/sigreturn.c: Likewise.
17366         * signal/sigset.c: Likewise.
17367         * signal/sigsetmask.c: Likewise.
17368         * signal/sigstack.c: Likewise.
17369         * signal/sigsuspend.c: Likewise.
17370         * signal/sigtimedwait.c: Likewise.
17371         * signal/sigvec.c: Likewise.
17372         * signal/sigwait.c: Likewise.
17373         * signal/sigwaitinfo.c: Likewise.
17374         * signal/sysv_signal.c: Likewise.
17375         * socket/accept.c: Likewise.
17376         * socket/accept4.c: Likewise.
17377         * socket/bind.c: Likewise.
17378         * socket/connect.c: Likewise.
17379         * socket/getpeername.c: Likewise.
17380         * socket/getsockname.c: Likewise.
17381         * socket/getsockopt.c: Likewise.
17382         * socket/isfdtype.c: Likewise.
17383         * socket/listen.c: Likewise.
17384         * socket/recv.c: Likewise.
17385         * socket/recvfrom.c: Likewise.
17386         * socket/recvmsg.c: Likewise.
17387         * socket/send.c: Likewise.
17388         * socket/sendmsg.c: Likewise.
17389         * socket/sendto.c: Likewise.
17390         * socket/setsockopt.c: Likewise.
17391         * socket/shutdown.c: Likewise.
17392         * socket/sockatmark.c: Likewise.
17393         * socket/socket.c: Likewise.
17394         * socket/socketpair.c: Likewise.
17395         * stdio-common/ctermid.c: Likewise.
17396         * stdio-common/cuserid.c: Likewise.
17397         * stdio-common/remove.c: Likewise.
17398         * stdio-common/rename.c: Likewise.
17399         * stdio-common/renameat.c: Likewise.
17400         * stdio-common/tempname.c: Likewise.
17401         * stdlib/getcontext.c: Likewise.
17402         * stdlib/makecontext.c: Likewise.
17403         * stdlib/setcontext.c: Likewise.
17404         * stdlib/swapcontext.c: Likewise.
17405         * stdlib/system.c: Likewise.
17406         * streams/fattach.c: Likewise.
17407         * streams/fdetach.c: Likewise.
17408         * streams/getmsg.c: Likewise.
17409         * streams/getpmsg.c: Likewise.
17410         * streams/putmsg.c: Likewise.
17411         * streams/putpmsg.c: Likewise.
17412         * sysdeps/unix/bsd/getpt.c: Likewise.
17413         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
17414         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
17415         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17417         Likewise.
17418         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
17419         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17420         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
17421         * sysvipc/msgctl.c: Likewise.
17422         * sysvipc/msgget.c: Likewise.
17423         * sysvipc/msgrcv.c: Likewise.
17424         * sysvipc/msgsnd.c: Likewise.
17425         * sysvipc/semctl.c: Likewise.
17426         * sysvipc/semget.c: Likewise.
17427         * sysvipc/semop.c: Likewise.
17428         * sysvipc/semtimedop.c: Likewise.
17429         * sysvipc/shmat.c: Likewise.
17430         * sysvipc/shmctl.c: Likewise.
17431         * sysvipc/shmdt.c: Likewise.
17432         * sysvipc/shmget.c: Likewise.
17433         * termios/tcdrain.c: Likewise.
17434         * termios/tcflow.c: Likewise.
17435         * termios/tcflush.c: Likewise.
17436         * termios/tcgetattr.c: Likewise.
17437         * termios/tcgetpgrp.c: Likewise.
17438         * termios/tcsendbrk.c: Likewise.
17439         * termios/tcsetattr.c: Likewise.
17440         * termios/tcsetpgrp.c: Likewise.
17441         * time/adjtime.c: Likewise.
17442         * time/clock.c: Likewise.
17443         * time/getitimer.c: Likewise.
17444         * time/gettimeofday.c: Likewise.
17445         * time/setitimer.c: Likewise.
17446         * time/settimeofday.c: Likewise.
17447         * time/stime.c: Likewise.
17448         * time/time.c: Likewise.
17449
17450 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
17451
17452         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
17453         /usr/old/bin.
17454
17455         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
17456         instead of spaces.
17457         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
17458
17459 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
17460
17461         [BZ #14796]
17462         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
17463         FE_TONEAREST before applying Dekker multiplication and Knuth
17464         addition.  Clear inexact exceptions and check for exact zero
17465         results afterwards.
17466         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17467         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17468         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17469         * math/libm-test.inc (fma_test): Add more tests.
17470         (fma_test_towardzero): Likewise.
17471         (fma_test_downward): Likewise.
17472         (fma_test_upward): Likewise.
17473         * sysdeps/generic/math_private.h (default_libc_fesetround): New
17474         function.
17475         (libc_fesetround): New macro.
17476         (libc_fesetroundf): Likewise.
17477         (libc_fesetroundl): Likewise.
17478         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
17479         function.
17480         (libc_fesetround_387): Likewise.
17481         (libc_fesetroundf): New macro.
17482         (libc_fesetround): Likewise.
17483         (libc_fesetroundl): Likewise.
17484         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
17485         function.
17486         (libc_fesetroundf): New macro.
17487         (libc_fesetround): Likewise.
17488         (libc_fesetroundl): Likewise.
17489         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
17490         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
17491         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
17492         libm_hidden_ver.
17493         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
17494         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
17495         libm_hidden_def.
17496         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
17497         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
17498         libm_hidden_ver.
17499         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
17500         libm_hidden_def.
17501
17502         [BZ #3439]
17503         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
17504         integer constant usable in #if and use that to give value to enum
17505         constant.
17506         (FE_DIVBYZERO): Likewise.
17507         (FE_UNDERFLOW): Likewise.
17508         (FE_OVERFLOW): Likewise.
17509         (FE_INVALID): Likewise.
17510         (FE_INVALID_SNAN): Likewise.
17511         (FE_INVALID_ISI): Likewise.
17512         (FE_INVALID_IDI): Likewise.
17513         (FE_INVALID_ZDZ): Likewise.
17514         (FE_INVALID_IMZ): Likewise.
17515         (FE_INVALID_COMPARE): Likewise.
17516         (FE_INVALID_SOFTWARE): Likewise.
17517         (FE_INVALID_SQRT): Likewise.
17518         (FE_INVALID_INTEGER_CONVERSION): Likewise.
17519         (FE_TONEAREST): Likewise.
17520         (FE_TOWARDZERO): Likewise.
17521         (FE_UPWARD): Likewise.
17522         (FE_DOWNWARD): Likewise.
17523         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
17524         (FE_DIVBYZERO): Likewise.
17525         (FE_OVERFLOW): Likewise.
17526         (FE_UNDERFLOW): Likewise.
17527         (FE_INEXACT): Likewise.
17528         (FE_TONEAREST): Likewise.
17529         (FE_DOWNWARD): Likewise.
17530         (FE_UPWARD): Likewise.
17531         (FE_TOWARDZERO): Likewise.
17532         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
17533         (FE_UNDERFLOW): Likewise.
17534         (FE_OVERFLOW): Likewise.
17535         (FE_DIVBYZERO): Likewise.
17536         (FE_INVALID): Likewise.
17537         (FE_TONEAREST): Likewise.
17538         (FE_TOWARDZERO): Likewise.
17539         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
17540         (FE_OVERFLOW): Likewise.
17541         (FE_UNDERFLOW): Likewise.
17542         (FE_DIVBYZERO): Likewise.
17543         (FE_INEXACT): Likewise.
17544         (FE_TONEAREST): Likewise.
17545         (FE_TOWARDZERO): Likewise.
17546         (FE_UPWARD): Likewise.
17547         (FE_DOWNWARD): Likewise.
17548         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
17549         (FE_DIVBYZERO): Likewise.
17550         (FE_OVERFLOW): Likewise.
17551         (FE_UNDERFLOW): Likewise.
17552         (FE_INEXACT): Likewise.
17553         (FE_TONEAREST): Likewise.
17554         (FE_DOWNWARD): Likewise.
17555         (FE_UPWARD): Likewise.
17556         (FE_TOWARDZERO): Likewise.
17557
17558 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
17559
17560         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
17561
17562 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
17563
17564         * scripts/cross-test-ssh.sh (command): Use newlines to separate
17565         commands.  Quote $PWD.
17566         (blacklist_exports): Don't use remove_newlines.  Replace "declare
17567         -x" by "export".
17568         (remove_newlines): Remove.
17569
17570 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
17571
17572         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
17573         * stdlib/stdlib.h (atof): Moved to ...
17574         * include/bits/stdlib-float.h: Here.  New file.
17575         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
17576         * stdlib/bits/stdlib-float.h: New file.
17577         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
17578         -mno-sse -mno-mmx.
17579         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
17580         <xmmintrin.h>.
17581
17582 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17583
17584         * conform/conformtest.pl (@headers): Add fenv.h.
17585         * conform/data/fenv.h-data: New file.
17586         * include/fenv.h [_ISOMAC]: Disable all contents of file except
17587         include of <math/fenv.h>.
17588
17589         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
17590         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
17591         && !UNIX98].  Enables tests for XOPEN2K8.
17592         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
17593         POSIX2008]: Likewise.
17594
17595         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
17596         (struct rusage): Do not expect type or its members.
17597
17598         [BZ #3439]
17599         * math/math.h (FP_NAN): Define macro to integer constant usable in
17600         #if and use that to give value to enum constant.
17601         (FP_INFINITE): Likewise.
17602         (FP_ZERO): Likewise.
17603         (FP_SUBNORMAL): Likewise.
17604         (FP_NORMAL): Likewise.
17605
17606 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
17607
17608         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17609         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
17610         arguments.
17611
17612 2012-11-02  Roland McGrath  <roland@hack.frob.com>
17613
17614         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
17615         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
17616         autoconf-time if not.
17617         * configure.in: Remove AC_PREREQ.
17618
17619 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17620
17621         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
17622         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
17623         of the internal implementation.
17624
17625 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17626
17627         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
17628         except include of <misc/sys/syslog.h>.
17629
17630 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17631
17632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
17633         function returns with a NULL context exit with zero.
17634
17635 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17636
17637         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
17638
17639 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
17640
17641         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
17642         (run_program_cmd): This.
17643         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
17644         (tst_langinfo): New variable.  Use it.
17645
17646 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
17647
17648         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
17649         floating point opcodes.
17650
17651 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17652
17653         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
17654         variable.
17655
17656         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
17657
17658         * sysdeps/mach/hurd/powerpc: Remove directory.
17659         * sysdeps/mach/powerpc: Likewise.
17660
17661 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17662
17663         * scripts/check-local-headers.sh: Ignore c++ headers.
17664
17665 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17666
17667         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
17668         __libc_cleanup_region_start argument.
17669
17670 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
17671
17672         [BZ #14784]
17673         [BZ #14785]
17674         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
17675         x * y using scaling, not as x * y + z.
17676         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17677         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17678         * math/libm-test.inc (fma_test): Add more tests.
17679         (fma_test_towardzero): Likewise.
17680         (fma_test_downward): Likewise.
17681         (fma_test_upward): Likewise.
17682
17683 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17684
17685         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
17686
17687 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17688
17689         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
17690         New variable.
17691
17692 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
17693
17694         * rt/tst-shm.c (worker): Correct checking for mmap failure.
17695
17696 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17697
17698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17699         Fix sort order.
17700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17701         Likewise.
17702
17703 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17704
17705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17706         Fix the order of the list for glibc 2.17.
17707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17708         Likewise.
17709
17710 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17711
17712         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17713
17714 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17715
17716         [BZ #14610]
17717         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
17718         for low part of x being zero before using __atanl (y).
17719         * math/libm-test.inc (atan2_test): Add another test.
17720
17721         * manual/install.texi (Configuring and compiling): Document
17722         general use of test-wrapper and test-wrapper-env.
17723         * INSTALL: Regenerated.
17724
17725         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17726         (__fma): Do not extract and scale down low bits on after-rounding
17727         systems when result rounded to normal precision would have normal
17728         exponent.
17729         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17730         (__fmal): Do not extract and scale down low bits on after-rounding
17731         systems when result rounded to normal precision would have normal
17732         exponent.
17733         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
17734         (__fmal): Do not extract and scale down low bits on after-rounding
17735         systems when result rounded to normal precision would have normal
17736         exponent.
17737         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
17738         macro.
17739         (fma_test): Add more tests.
17740         (fma_test_towardzero): Likewise.
17741         (fma_test_downward): Likewise.
17742         (fma_test_upward): Likewise.
17743
17744 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
17745
17746         * sysdeps/i386/tininess.h: Renamed to ...
17747         * sysdeps/x86/tininess.h: This.
17748         * sysdeps/x86_64/tininess.h: Removed.
17749
17750 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17751
17752         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
17753         input.  Use $(build-program-cmd).
17754         ($(objpfx)tst-array1-static.out): Likewise.
17755         ($(objpfx)tst-array2.out): Likewise.
17756         ($(objpfx)tst-array3.out): Likewise.
17757         ($(objpfx)tst-array4.out): Likewise.
17758         ($(objpfx)tst-array5.out): Likewise.
17759         ($(objpfx)tst-array5-static.out): Likewise.
17760
17761 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
17762
17763         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
17764         if defined.
17765
17766         * nss/nsswitch.h (nss_interface_function): Provide new
17767         macro for use with NSS functions.
17768         * grp/initgroups.c: Use new macro.
17769         * nss/getXXbyYY.c: Likewise.
17770         * nss/getXXbyYY_r.c: Likewise.
17771         * nss/getXXent.c: Likewise.
17772         * nss/getXXent_r.c: Likewise.
17773         * sysdeps/posix/getaddrinfo.c: Likewise.
17774
17775 2012-10-30  Andreas Jaeger  <aj@suse.de>
17776
17777         * po/ru.po: Update Russion translation from translation project.
17778
17779 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17780
17781         [BZ #14152]
17782         [BZ #14783]
17783         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
17784         result and shift together with sticky bit instead of replicating
17785         round-to-nearest rounding.
17786         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17787         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17788         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
17789         missing underflow exceptions.
17790         (fma_test_towardzero): Add more tests.
17791         (fma_test_downward): Likewise.
17792         (fma_test_upward): Likewise.
17793
17794         [BZ #14047]
17795         * sysdeps/generic/tininess.h: New file.
17796         * sysdeps/i386/tininess.h: Likewise.
17797         * sysdeps/sh/tininess.h: Likewise.
17798         * sysdeps/x86_64/tininess.h: Likewise.
17799         * stdlib/tst-strtod-underflow.c: Likewise.
17800         * stdlib/tst-tininess.c: Likewise.
17801         * stdlib/strtod_l.c: Include <tininess.h>.
17802         (round_and_return): Do not set errno for exact underflow cases.
17803         Force an underflow exception when setting errno for underflow.
17804         Determine underflow based on rounding to normal precision if
17805         TININESS_AFTER_ROUNDING.
17806         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
17807         ERANGE for exact underflow cases.
17808         * stdlib/Makefile (tests): Add tst-tininess and
17809         tst-strtod-underflow.
17810         ($(objpfx)tst-tininess): Use $(link-libm).
17811         ($(objpfx)tst-strtod-underflow): Likewise.
17812
17813 2012-10-30  Andreas Jaeger  <aj@suse.de>
17814
17815         [BZ#14767]
17816         * elf/Makefile (tests): Remove conditional for have-initfini-array
17817         since this is now always required and the variable does not exist
17818         anymore.
17819         (tests-static): Likewise.
17820         (modules-names): Likewise.
17821
17822         * po/eo.po: Add Esperanto translation from translation project.
17823
17824         * elf/tst-array1.c (fini_array): Make writeable so that it can be
17825         merged with constructor/destructor.
17826         (init_array): Likewise.
17827         * elf/tst-array2dep.c (fini_array): Likewise.
17828         (init_array): Likewise.
17829
17830 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
17831
17832         * manual/message.texi: Delete @cartouche tags.
17833
17834 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
17835
17836         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
17837         EOPNOTSUPP.
17838         * sysdeps/mach/hurd/fsync.c: Likewise.
17839
17840         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
17841         [_POSIX_REALTIME_SIGNALS]: Change condition to
17842         [_POSIX_REALTIME_SIGNALS > 0].
17843
17844 2012-10-27  Andreas Jaeger  <aj@suse.de>
17845
17846         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
17847         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
17848         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
17849         [__WORDSIZE != 64]: Likewise.
17850
17851 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
17852
17853         *  iconvdata/tst-table.sh: Remove ${SHELL}.
17854         *  iconvdata/tst-tables.sh: Likewise.
17855
17856 2012-10-25  David S. Miller  <davem@davemloft.net>
17857
17858         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17859         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
17860         of strtoull.
17861
17862         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
17863         ifunc-impl-list.c
17864         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17865         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
17866         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
17867         file.
17868
17869 2012-10-25  Roland McGrath  <roland@hack.frob.com>
17870
17871         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17872         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
17873         __getdirentries.
17874
17875 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17876             Jim Blandy  <jimb@codesourcery.com>
17877
17878         * scripts/cross-test-ssh.sh: New file.
17879         * manual/install.texi (Configuring and compiling): Document use of
17880         cross-test-ssh.sh.
17881         * INSTALL: Regenerated.
17882
17883 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
17884
17885         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
17886         EOPNOTSUPP.
17887
17888 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17889
17890         * Makeconfig (run-program-prefix): Fix comment.
17891
17892 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17893             Jim Blandy  <jimb@codesourcery.com>
17894
17895         * Makeconfig (test-wrapper): New variable,
17896         (test-wrapper-env): Likewise.
17897         [$(cross-compiling) = yes && $(test-wrapper) != ""]
17898         (run-built-tests): Define to yes.
17899         (run-program-prefix): Use $(test-wrapper).
17900         (built-program-cmd): Likewise.
17901         * Rules (make-test-out): Use $(test-wrapper-env) and
17902         $(host-built-program-cmd).
17903         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
17904         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
17905         tst-pathopt.sh.
17906         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
17907         $(test-wrapper-env) to tst-rtld-load-self.sh.
17908         ($(objpfx)order2.out): Use $(test-wrapper).
17909         ($(objpfx)tst-initorder.out): Likewise.
17910         ($(objpfx)tst-initorder2.out): Likewise.
17911         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
17912         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
17913         (test_wrapper_env): New variable.  Use it to run ld.so.
17914         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
17915         Use it to run ld.so.
17916         (test_wrapper_env): Likewise.
17917         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
17918         $(test-wrapper) to run-iconv-test.sh.
17919         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
17920         (ICONV): Use $test_wrapper.
17921         * posix/Makefile ($(objpfx)globtest.out): Pass
17922         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
17923         globtest.sh, not $(run-program-prefix).
17924         * posix/globtest.sh (run_via_rtld_prefix): New variable.
17925         (test_wrapper): Likewise.
17926         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
17927         set together with run_via_rtld_prefix.
17928         (run_program_prefix): Define in terms of test_wrapper and
17929         run_via_rtld_prefix.
17930
17931 2012-10-24  Roland McGrath  <roland@hack.frob.com>
17932
17933         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
17934         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
17935         Targets removed.
17936
17937         [BZ #14743]
17938         * include/time.h: Remove librt_hidden_proto (clock_gettime).
17939         Declare __clock_getres, __clock_gettime, __clock_settime,
17940         __clock_nanosleep, and __clock_getcpuclockid.
17941         * rt/clock_gettime.c: Define __clock_gettime as an alias.
17942         Remove librt_hidden_def (clock_gettime).
17943         * sysdeps/unix/clock_gettime.c: Likewise.
17944         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
17945         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
17946         * rt/clock_getres.c: Define __clock_getres as an alias.
17947         * sysdeps/posix/clock_getres.c: Likewise.
17948         * rt/clock_settime.c: Define __clock_settime as an alias.
17949         * sysdeps/unix/clock_settime.c: Likewise.
17950         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
17951         * sysdeps/unix/clock_nanosleep.c: Likewise.
17952         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
17953         * rt/clock-compat.c: New file.
17954         * rt/Makefile (librt-routines): Add clock-compat and move
17955         $(clock-routines) to ...
17956         (routines): ... here, new variable.
17957         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
17958         Don't add get_clockfreq here.
17959         * rt/Versions (libc: GLIBC_2.17): New version set.
17960         Add clock_* symbols here.
17961         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
17962         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
17963         (GLIBC_2.17): Add clock_* symbols.
17964         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
17965         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
17966         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
17967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17968         Likewise.
17969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17970         Likewise.
17971         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
17972         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
17973         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
17974         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
17975         * NEWS: Mention the move.
17976
17977         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
17978         Use __open, __read, __close rather than their public counterparts.
17979         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17980         (__get_clockfreq_via_cpuinfo): Likewise.
17981         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
17982         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
17983
17984         * config.h.in (HAVE_IFUNC): New #undef.
17985         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
17986         was successful.
17987         * configure: Regenerated.
17988
17989 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17990
17991         * configure.in: Move READELF check to start of file.
17992         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
17993         libc_cv_asm_gnu_indirect_function in the process.
17994         * configure: Regenerated.
17995
17996 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17997
17998         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
17999         send the output to /dev/null.
18000         (libc_cv_cc_with_libunwind): Likewise.
18001         (libc_cv_as_noexecstack): Likewise.
18002         * configure: Regenerate.
18003
18004 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18005
18006         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
18007
18008         * posix/globtest.sh (TMPDIR): Do not set.
18009         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
18010         (testout): Likewise.
18011
18012 2012-10-24  Andreas Jaeger  <aj@suse.de>
18013
18014         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
18015         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
18016         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
18017         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
18018         posix_fadvise64, posix_fallocate64.
18019
18020         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
18021         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
18022         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
18023         Likewise.
18024         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
18025         Likewise.
18026         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
18027
18028         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
18029         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
18030         <bits/fcntl-linux.h>.
18031         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
18032
18033         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
18034         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
18035         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
18036         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
18037         [__WORDSIZE != 64]: Likewise.
18038
18039 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18040
18041         * Makeconfig (run-built-tests): New variable.
18042         * Rules [$(cross-compiling) = yes]: Change condition to
18043         [$(run-built-tests) = no].
18044         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
18045         to [$(run-built-tests) = yes].
18046         * elf/Makefile [$(cross-compiling) = no]: Likewise
18047         * grp/Makefile [$(cross-compiling) = no]: Likewise.
18048         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
18049         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
18050         * intl/Makefile [$(cross-compiling) = no]: Likewise.
18051         * io/Makefile [$(cross-compiling) = no]: Likewise.
18052         * libio/Makefile [$(cross-compiling) = no]: Likewise.
18053         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
18054         * misc/Makefile [$(cross-compiling) = no]: Likewise.
18055         * posix/Makefile [$(cross-compiling) = no]: Likewise.
18056         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
18057         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
18058         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
18059         * string/Makefile [$(cross-compiling) = no]: Likewise.
18060
18061         * posix/Makefile ($(objpfx)globtest.out): Pass
18062         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
18063         $(rtld-installed-name).
18064         * posix/globtest.sh (elf_objpfx): Remove variable.
18065         (rtld_installed_name): Likewise.
18066         (library_path): Likewise.
18067         (run_program_prefix): New variable.  Use for running globtest
18068         binary.
18069
18070 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
18071             Joseph Myers  <joseph@codesourcery.com>
18072
18073         * Makeconfig (host-built-program-cmd): New variable.
18074         * elf/Makefile (tst-stackguard1-ARGS): Use
18075         $(host-built-program-cmd).
18076         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
18077         (tst-spawn-ARGS): Likewise.
18078         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
18079
18080 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18081             Jim Blandy  <jimb@codesourcery.com>
18082
18083         * Makeconfig (run-via-rtld-prefix): New variable.
18084         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
18085         (built-program-cmd): Likewise.
18086
18087 2012-10-22  Andreas Jaeger  <aj@suse.de>
18088
18089         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
18090         __O_RSYNC if it exists, otherwise to O_SYNC.
18091
18092 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
18093             Joseph Myers  <joseph@codesourcery.com>
18094
18095         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
18096         /dev/null.
18097         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
18098         from /dev/null
18099         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
18100         /dev/null.
18101
18102 2012-10-22  Andreas Jaeger  <aj@suse.de>
18103
18104         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
18105         Define always.
18106         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
18107
18108         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18109         bits/fcntl-linux.h.
18110
18111         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
18112         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
18113
18114         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
18115         to __O_LARGEFILE.
18116         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
18117         to __O_LARGEFILE.
18118
18119 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
18120             Joseph Myers  <joseph@codesourcery.com>
18121
18122         * config.make.in (NM): New variable.
18123
18124 2012-10-21  Andreas Jaeger  <aj@suse.de>
18125
18126         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
18127         definitions and declarations that are provided by
18128         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
18129
18130 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18131
18132         [BZ #14683]
18133         * elf/Makefile (tests-static): Add tst-leaks1-static.
18134         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
18135         ($(objpfx)tst-leaks1-static): New rule.
18136         ($(objpfx)tst-leaks1-static-mem): Likewise.
18137         (tst-leaks1-static-ENV): New macro.
18138         * elf/dl-open.c (dl_open_worker): Check the main application
18139         only if SHARED is defined.
18140         * elf/tst-leaks1-static.c: New file.
18141
18142 2012-10-20  Andreas Jaeger  <aj@suse.de>
18143
18144         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
18145         generic values for Linux.
18146         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
18147         and declarations that are provided by <bits/fcntl-linux.h> and
18148         include <bits/fcntl-linux.h>.
18149         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18150         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18151
18152 2012-10-20  Roland McGrath  <roland@hack.frob.com>
18153
18154         * io/fcntl.h: Move include of <bits/types.h> to the top and
18155         include it unconditionally.
18156
18157 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18158
18159         * wcsmbs/Makefile (tests-ifunc): New variable.
18160         (tests): Add $(tests-ifunc).
18161         * wcsmbs/test-wcschr-ifunc.c: New file.
18162         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
18163         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
18164         * wcsmbs/test-wcslen-ifunc.c: Likewise.
18165         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
18166         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
18167
18168         * string/Makefile (tests-ifunc): New variable.
18169         (tests): Add $(tests-ifunc).
18170         * string/test-memccpy.c (TEST_NAME): New macro.
18171         * string/test-memchr.c (TEST_NAME): Likewise.
18172         * string/test-memcmp.c (TEST_NAME): Likewise.
18173         * string/test-memcpy.c (TEST_NAME): Likewise.
18174         * string/test-memmem.c (TEST_NAME): Likewise.
18175         * string/test-memmove.c (TEST_NAME): Likewise.
18176         * string/test-memset.c (TEST_NAME): Likewise.
18177         * string/test-rawmemchr.c (TEST_NAME): Likewise.
18178         * string/test-stpcpy.c (TEST_NAME): Likewise.
18179         * string/test-stpncpy.c (TEST_NAME): Likewise.
18180         * string/test-strcasecmp.c (TEST_NAME): Likewise.
18181         * string/test-strcasestr.c (TEST_NAME): Likewise.
18182         * string/test-strcat.c (TEST_NAME): Likewise.
18183         * string/test-strchr.c (TEST_NAME): Likewise.
18184         * string/test-strcmp.c(TEST_NAME): Likewise.
18185         * string/test-strcpy.c (TEST_NAME): Likewise.
18186         * string/test-strcspn.c (TEST_NAME): Likewise.
18187         * string/test-strlen.c (TEST_NAME): Likewise.
18188         * string/test-strncasecmp.c (TEST_NAME): Likewise.
18189         * string/test-strncmp.c (TEST_NAME): Likewise.
18190         * string/test-strncpy.c (TEST_NAME): Likewise.
18191         * string/test-strnlen.c (TEST_NAME): Likewise.
18192         * string/test-strpbrk.c (TEST_NAME): Likewise.
18193         * string/test-strrchr.c (TEST_NAME): Likewise.
18194         * string/test-strspn.c (TEST_NAME): Likewise.
18195         * string/test-strstr.c (TEST_NAME): Likewise.
18196         * string/test-bcopy-ifunc.c: New file.
18197         * string/test-bzero-ifunc.c: Likewise.
18198         * string/test-memccpy-ifunc.c: Likewise.
18199         * string/test-memchr-ifunc.c: Likewise.
18200         * string/test-memcmp-ifunc.c: Likewise.
18201         * string/test-memcpy-ifunc.c: Likewise.
18202         * string/test-memmem-ifunc.c: Likewise.
18203         * string/test-memmove-ifunc.c: Likewise.
18204         * string/test-mempcpy-ifunc.c: Likewise.
18205         * string/test-memset-ifunc.c: Likewise.
18206         * string/test-rawmemchr-ifunc.c: Likewise.
18207         * string/test-stpcpy-ifunc.c: Likewise.
18208         * string/test-stpncpy-ifunc.c: Likewise.
18209         * string/test-strcasecmp-ifunc.c: Likewise.
18210         * string/test-strcasestr-ifunc.c: Likewise.
18211         * string/test-strcat-ifunc.c: Likewise.
18212         * string/test-strchr-ifunc.c: Likewise.
18213         * string/test-strchrnul-ifunc.c: Likewise.
18214         * string/test-strcmp-ifunc.c: Likewise.
18215         * string/test-strcpy-ifunc.c: Likewise.
18216         * string/test-strcspn-ifunc.c: Likewise.
18217         * string/test-strlen-ifunc.c: Likewise.
18218         * string/test-strncasecmp-ifunc.c: Likewise.
18219         * string/test-strncat-ifunc.c: Likewise.
18220         * string/test-strncmp-ifunc.c: Likewise.
18221         * string/test-strncpy-ifunc.c: Likewise.
18222         * string/test-strnlen-ifunc.c: Likewise.
18223         * string/test-strpbrk-ifunc.c: Likewise.
18224         * string/test-strrchr-ifunc.c: Likewise.
18225         * string/test-strspn-ifunc.c: Likewise.
18226         * string/test-strstr-ifunc.c: Likewise.
18227
18228         * debug/Makefile (tests-ifunc): New variable.
18229         (tests): Add $(tests-ifunc).
18230         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
18231         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
18232         * debug/test-stpcpy_chk-ifunc.c: New file.
18233         * debug/test-strcpy_chk-ifunc.c: Likewise.
18234
18235 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18236
18237         [BZ #13601]
18238         * elf/dl-load.c (open_verify): Retry read if the entire ELF
18239         header is not read in.
18240
18241 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
18242
18243         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
18244         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
18245         directly.  Pass built executable to script as
18246         $(built-program-cmd).
18247         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
18248         $testprogram without using LD_LIBRARY_PATH and $ldso.
18249
18250         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
18251         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
18252         $(rtld-installed-name).
18253         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
18254         (rtld_installed_name): Likewise.
18255         (library_path): Likewise.
18256         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
18257         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
18258         $(run-program-prefix) to tst-tables.sh.
18259         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
18260         it to run tst-table-from and tst-table-to.
18261         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
18262         Pass it to tst-table.sh.
18263         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
18264         $(run-program-prefix) to tst-gettext.sh.
18265         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
18266         tst-translit.sh.
18267         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
18268         tst-gettext2.sh.
18269         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
18270         to run tst-gettext.
18271         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
18272         to run tst-gettext2.
18273         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
18274         to run tst-translit.
18275         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
18276         $(run-program-prefix) to tst-mtrace.sh.
18277         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
18278         to run tst-mtrace.
18279         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
18280         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
18281         $(rtld-installed-name).
18282         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
18283         (rtld_installed_name): Likewise.
18284         (run_program_prefix): New variable.  Use it to run wordexp-test.
18285
18286         * Makeconfig (ARCH): Remove all definitions.
18287         (machine): Likewise.
18288         [ARCH]: Remove conditional code.
18289         [!objdir]: Give error.
18290         [!objdir] (objpfx): Remove.
18291         [!objdir] (common-objpfx): Likewise.
18292         [!objdir] (common-objdir): Likewise.
18293         * configure.in (config_makefile): Remove.  Hardcode Makefile in
18294         AC_CONFIG_FILES call.
18295         * configure: Regenerated.
18296
18297         [BZ #13888]
18298         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
18299         or TMPDIR.
18300         (testout): Likewise.
18301
18302         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
18303         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
18304         $(rtld-installed-name).
18305         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
18306         (rtld_installed_name): Likwise.
18307         (runit): Remove function.
18308         (run_getconf): New variable,  Use it for running getconf binary.
18309
18310 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
18311
18312         [BZ #14716]
18313         * string/test-memmem.c (check_result): New function.
18314         (do_one_test): Use it.
18315         (check1): New function.
18316         (test_main): Use it.
18317
18318 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
18319
18320         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
18321
18322 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
18323
18324         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
18325         (_G_LSEEK64): Likewise.
18326         (_G_MMAP64): Likewise.
18327         (_G_FSTAT64): Likewise.
18328         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
18329         (_G_LSEEK64): Likewise.
18330         (_G_MMAP64): Likewise.
18331         (_G_FSTAT64): Likewise.
18332         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
18333         unconditional.  Call __mmap64 directly.
18334         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
18335         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
18336         __lseek64 directly.
18337         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
18338         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
18339         __mmap64 directly.
18340         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
18341         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18342         __lseek64 directly.
18343         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
18344         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18345         __lseek64 directly.
18346         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
18347         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
18348         __lseek64 directly.
18349         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
18350         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
18351         __fxstat64 directly.
18352         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
18353         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
18354         unconditional.
18355         (freopen64) [!_G_OPEN64]: Remove conditional code.
18356         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
18357         unconditional.
18358         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
18359         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
18360         unconditional.
18361         (ftello64) [!_G_LSEEK64]: Remove conditional code.
18362         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
18363         unconditional.
18364         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18365         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
18366         unconditional.
18367         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
18368         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
18369         unconditional.
18370         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18371         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
18372         unconditional.
18373         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18374         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
18375         unconditional.
18376         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18377
18378 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18379
18380         [BZ #12140]
18381         * manual/memory.texi (Malloc Tunable Parameters): Add note
18382         about free list pointers overwriting some perturb bytes.
18383         Wording suggested by Roland McGrath.
18384
18385 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
18386
18387         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
18388         (lgamma_test): Likewise.
18389         (tgamma_test): Likewise.
18390
18391 2012-10-16  Florian Weimer  <fweimer@redhat.com>
18392
18393         [BZ #14700]
18394         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
18395         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
18396
18397 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
18398
18399         * NEWS: Mention BZ #14716.
18400         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
18401         when removing AVAILABLE1_USES_J macro.
18402
18403 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
18404
18405         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
18406         (__bswap_64): __uint64_t for unsigned 64-bit int.
18407
18408 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
18409
18410         * include/string.h (memmem): Declare libc hidden alias.
18411         * string/memmem.c (memmem): Define libc hidden alias.
18412         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
18413         __read, __close instead of open, read, close.
18414
18415 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
18416
18417         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
18418         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
18419         global and hidden.
18420         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
18421         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
18422         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
18423         Likewise.
18424         (__rawmemchr_sse2): Likewise.
18425         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
18426         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
18427         (__strchr_sse2): Likewise.
18428         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
18429         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
18430         (__strcasecmp_sse2): Likewise.
18431         (__strncasecmp_sse2): Likewise.
18432         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
18433         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
18434         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
18435         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
18436         (__strrchr_sse2): Likewise.
18437         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
18438         ifunc-impl-list.c.
18439         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
18440         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18441         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18442         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18443         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18444         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18445         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18446         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18447         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
18448         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
18449         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
18450         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
18451         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
18452         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
18453         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
18454         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
18455         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
18456         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
18457         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
18458         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
18459         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
18460         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
18461         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
18462         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18463         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
18464         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18465         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18466         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18467         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
18468         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
18469
18470         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
18471         global and hidden.
18472         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
18473         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
18474         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
18475         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
18476         Likewise.
18477         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
18478         Likewise.
18479         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
18480         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
18481         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
18482         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
18483         ifunc-impl-list.c.
18484         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18485         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18486         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18487         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18488         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18489         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18490         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18491         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18492         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18493         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18494         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18495         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18496         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18497         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18498         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18499         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18500         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18501         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
18502         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18503         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18504         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18505         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18506         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18507         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18508         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18509         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18510         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18511         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18512         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18513         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18514         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18515         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18516         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18517         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
18518         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18519         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18520         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18521         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18522         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18523         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18524         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
18525
18526         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
18527         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
18528         * include/ifunc-impl-list.h: New file.
18529         * misc/ifunc-impl-list.c: Likewise.
18530         * misc/Makefile (routines): Add ifunc-impl-list.
18531         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
18532         * string/test-string.h: Include <ifunc-impl-list.h>.
18533         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
18534         impl_array): New variables.
18535         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
18536         are defined.
18537         (test_init): Call __libc_ifunc_impl_list to initialize
18538         func_list if TEST_IFUNC and TEST_NAME are defined.
18539
18540         * string/Makefile (strop-tests): Add bcopy and bzero.
18541         * string/test-bcopy.c: New file.
18542         * string/test-bzero.c: Likewise.
18543         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
18544         defined.
18545         * string/test-memset.c: Support bzero test if TEST_BZERO is
18546         defined.
18547         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
18548         __libc_memmove.
18549         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
18550         __libc_memset.
18551         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
18552         of memset.
18553
18554 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
18555
18556         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
18557         * configure: Regenerated.
18558
18559         * Makeconfig (+link-static-before-libc): Don't include
18560         $(link-static-libc).
18561
18562         * libio/libio.h (_IO_pos_t): Remove.
18563
18564 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18565
18566         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
18567         McGrath.
18568
18569 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18570
18571         * crypt/crypt-entry.c: Include fips-private.h.
18572         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
18573         * crypt/md5c-test.c (main): Tolerate disabled MD5.
18574         * sysdeps/unix/sysv/linux/fips-private.h: New file.
18575         * sysdeps/generic/fips-private.h: New file, dummy fallback.
18576
18577 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18578
18579         * crypt/crypt-private.h: Include stdbool.h.
18580         (_ufc_setup_salt_r): Return bool.
18581         * crypt/crypt-entry.c: Include errno.h.
18582         (__crypt_r): Return NULL with EINVAL for bad salt.
18583         * crypt/crypt_util.c (bad_for_salt): New.
18584         (_ufc_setup_salt_r): Check that salt is long enough and within
18585         the specified alphabet.
18586         * crypt/badsalttest.c: New file.
18587         * crypt/Makefile (tests): Add it.
18588         ($(objpfx)badsalttest): New.
18589
18590 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18591
18592         * NEWS: Add entry for BZ #14602.
18593
18594 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18595
18596         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
18597         type-generic.
18598         * math/libm-test.inc: Update comment listing what functions and
18599         macros are tested.
18600         (isgreater_test): New function.
18601         (isgreaterequal_test): Likewise.
18602         (isless_test): Likewise.
18603         (islessequal_test): Likewise.
18604         (islessgreater_test): Likewise.
18605         (isunordered_test): Likewise.
18606         (main): Call the new functions.
18607
18608 2012-10-09  Roland McGrath  <roland@hack.frob.com>
18609
18610         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
18611         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
18612         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
18613         * sysdeps/i386/configure: Regenerated.
18614         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
18615         * sysdeps/mach/configure: Regenerated.
18616         * sysdeps/mach/hurd/configure: Regenerated.
18617         * sysdeps/powerpc/configure: Regenerated.
18618         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18619         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18620         * sysdeps/s390/s390-32/configure: Regenerated.
18621         * sysdeps/s390/s390-64/configure: Regenerated.
18622         * sysdeps/sh/configure: Regenerated.
18623         * sysdeps/sparc/configure: Regenerated.
18624         * sysdeps/unix/sysv/linux/configure: Regenerated.
18625         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
18626         * sysdeps/x86_64/configure: Regenerated.
18627
18628         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
18629         defined.  Don't check if MAP is NULL.
18630
18631 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18632
18633         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
18634         (_G_stat64): Likewise.
18635         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
18636         (_G_stat64): Likewise.
18637         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
18638         instead of struct _G_stat64.
18639         * libio/fileops.c (mmap_remap_check): Likewise.
18640         (decide_maybe_mmap): Likewise.
18641         (_IO_new_file_seekoff): Likewise.
18642         (_IO_file_stat): Likewise.
18643         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
18644         _G_off64_t.
18645         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
18646         instead of struct _G_stat64.
18647         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18648
18649 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18650
18651         [BZ #14602]
18652         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18653         Replace with ...
18654         (CHECK_EOL): New macro.
18655         (two_way_short_needle): Check beginning of haystack for EOL.  Use
18656         CHECK_EOL.
18657         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18658         Replace with CHECK_EOL.
18659         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18660         Replace with CHECK_EOL.
18661
18662 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
18663
18664         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
18665         type-generic.
18666         * math/libm-test.inc: Update comment listing what functions and
18667         macros are tested.
18668         (finite_test): New function.
18669         (isinf_test): Likewise.
18670         (isnan_test): Likewise.
18671         (fpclassify_test): Test subnormal input.
18672         (isfinite_test): Likewise.
18673         (isnormal_test): Likewise.
18674         (main): Call the new functions.
18675
18676 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
18677
18678         [BZ #14660]
18679         * Makerules (%.dynsym): Force C locale when running
18680         $(OBJDUMP) --dynamic-syms.
18681
18682 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
18683
18684         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
18685         <stdint.h>.
18686
18687 2012-10-06  David S. Miller  <davem@davemloft.net>
18688
18689         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
18690         upper 32-bits of the length value in %o2 since we use branch-on-register
18691         tests which consider the entire 64-bit register.
18692
18693 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
18694
18695         * string/test-strstr.c (check2): Add a test for page boundary.
18696
18697 2012-10-05  David S. Miller  <davem@davemloft.net>
18698
18699         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
18700         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
18701         file.
18702         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18703         sysdep_routines.
18704         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18705         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
18706         and bzero when HWCAP_SPARC_CRYPTO is present.
18707
18708 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18709
18710         [BZ #14602]
18711         * string/test-strstr.c (check2): New function.
18712         (test_main): Call check2.
18713
18714         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
18715         and bug-strchr1.
18716         * string/bug-strcasestr1.c (do_test): Moved to ...
18717         * string/test-strcasestr.c (check1): Here.  New function.
18718         (do_one_test): Break out result checking code into ...
18719         (check_result): This.  New function.
18720         (do_one_test): Call check_result.
18721         (test_main): Call check1.
18722         * string/bug-strchr1.c (do_test): Moved to ...
18723         * string/test-strchr.c (check1): Here.  New function.
18724         (do_one_test): Break out result checking code into ...
18725         (check_result): This.  New function.
18726         (do_one_test): Call check_result.
18727         (test_main): Call check1.
18728         * string/bug-strstr1.c (main): Moved to ...
18729         * string/test-strstr.c (check1): Here.  New function.
18730         (do_one_test): Break out result checking code into ...
18731         (check_result): This.  New function.
18732         (do_one_test): Call check_result.
18733         (test_main): Call check1.
18734         * string/bug-strcasestr1.c: Removed.
18735         * string/bug-strchr1.c: Likewise.
18736         * string/bug-strstr1.c: Likewise.
18737
18738         * elf/Makefile (dl-routines): Add hwcaps.
18739         * elf/dl-support.c (_dl_important_hwcaps): Removed.
18740         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
18741         (_dl_important_hwcaps): Moved to ...
18742         * elf/dl-hwcaps.c: Here.  New file.
18743         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
18744
18745         [BZ #14557]
18746         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
18747         if IS_IN_rtld isn't defined.
18748
18749         * elf/dl-support.c (_dl_sysinfo_map): New.
18750         Include "get-dynamic-info.h" and "setup-vdso.h".
18751         (_dl_non_dynamic_init): Call setup_vdso.
18752         * elf/dynamic-link.h: Don't include <assert.h>.
18753         (elf_get_dynamic_info): Moved to ...
18754         * elf/get-dynamic-info.h: Here.  New file.
18755         * elf/dynamic-link.h: Include "get-dynamic-info.h".
18756         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
18757         * elf/setup-vdso.h: Here.  New file.
18758         * elf/rtld.c: Include "setup-vdso.h".
18759         (dl_main): Call setup_vdso.
18760
18761 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
18762
18763         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
18764         creal in comment listing functions tested.  List finite, isinf,
18765         isnan, isless, islessequal, isgreater, isgreaterequal,
18766         islessgreater, isunordered, lgamma_r and pow10 as functions and
18767         macros not tested.  Mention which functions not tested are aliases
18768         for other functions.  Fix typo.  Note that signs of NaNs are not
18769         tested.
18770
18771         * scripts/config.guess: Update from config.git.
18772         * scripts/config.sub: Likewise.
18773
18774 2012-10-04  Roland McGrath  <roland@hack.frob.com>
18775
18776         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
18777         * misc/madvise.c (madvise): Renamed to __madvise.
18778         Make madvise a weak alias.
18779         * include/sys/mman.h: Declare __madvise.
18780         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
18781         * sysdeps/unix/syscalls.list
18782         (madvise): Make __madvise the strong name, and madvise a weak alias.
18783         * sysdeps/unix/sysv/linux/syscalls.list
18784         (madvise, mmap): Remove redundant entries.
18785         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
18786         * malloc/malloc.c (mtrim): Likewise.
18787         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
18788
18789 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18790
18791         * sysdeps/mach/hurd/dl-cache.c: File removed.
18792         * config.h.in (USE_LDCONFIG): New #undef.
18793         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
18794         * configure: Regenerated.
18795         * elf/Makefile (dl-routines): Add dl-cache only under
18796         [$(use-ldconfig) = yes].
18797         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
18798         cache on [USE_LDCONFIG].
18799         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
18800         [USE_LDCONFIG].
18801         * elf/rtld.c (dl_main): Likewise.
18802
18803 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
18804
18805         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
18806         _SC_LEVEL4_CACHE_LINESIZE.
18807
18808 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18809
18810         * sysdeps/unix/bsd/confstr.h: File removed.
18811
18812 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
18813
18814         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
18815         sys/sdt-config.h.
18816
18817 2012-10-02  Roland McGrath  <roland@hack.frob.com>
18818
18819         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
18820         Make 'mapoff' field ElfW(Off) rather than off_t.
18821
18822 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18823
18824         * nscd/Makefile: Remove nscd-cflags and all its users.
18825         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
18826         (CFLAGS-nonlib): Add compiler flags for nscd modules.
18827
18828         [BZ #10631]
18829         * malloc.c (malloc_printerr): Clarify error message.
18830
18831 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
18832
18833         [BZ #14648]
18834         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18835         Set bit_FMA_Usable if FMA is supported.
18836         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
18837         macro.
18838         (bit_FMA4_Usable): Updated.
18839         (index_FMA_Usable): New macro.
18840         (CPUID_FMA): Likewise
18841         (HAS_FMA): Defined with bit_FMA_Usable.
18842
18843 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18844
18845         * bits/types.h (__swblk_t): Type removed.
18846         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
18847         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
18848         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18849         (__SWBLK_T_TYPE): Likewise.
18850         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
18851         (__SWBLK_T_TYPE): Likewise.
18852         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18853         (__SWBLK_T_TYPE): Likewise.
18854         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18855         (__SWBLK_T_TYPE): Likewise.
18856
18857 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
18858             Honza Horak <hhorak@redhat.com>
18859
18860         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
18861         (xdr_mapname): Use YPMAXMAP as maxsize.
18862         (xdr_peername): Use YPMAXPEER as maxsize.
18863         (xdr_keydat): Use YPAXRECORD as maxsize.
18864         (xdr_valdat): Use YPMAXRECORD as maxsize.
18865
18866 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18867
18868         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
18869
18870         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
18871         * csu/init-first.c: ... here.
18872         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
18873         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18874         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
18875         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
18876         * sysdeps/i386/init-first.c: File removed.
18877         * sysdeps/sh/init-first.c: File removed.
18878
18879 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
18880
18881         [BZ #14645]
18882         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
18883         if x * y might underflow to zero and z is zero.
18884         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18885         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18886         * math/libm-test.inc (min_subnorm_value): New variable.
18887         (fma_test): Add more tests.
18888         (fma_test_towardzero): Likewise.
18889         (fma_test_downward): Likewise
18890         (fma_test_upward): Likewise.
18891         (initialize): Set min_subnorm_value.
18892
18893 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
18894
18895         [BZ #14638]
18896         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
18897         0 + 0.
18898         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
18899         mode for addition resulting in exact zero.
18900         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
18901         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
18902         exact 0 + 0.
18903         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
18904         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18905         * math/libm-test.inc (fma_test): Add more tests.
18906         (fma_test_towardzero): New function.
18907         (fma_test_downward): Likewise.
18908         (fma_test_upward): Likewise.
18909         (main): Call the new functions.
18910
18911 2012-09-28  David S. Miller  <davem@davemloft.net>
18912
18913         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
18914
18915 2012-09-28  Roland McGrath  <roland@hack.frob.com>
18916
18917         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
18918         instead of SIGALRM.
18919
18920         * sysdeps/gnu/_G_config.h: Moved to ...
18921         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
18922         * sysdeps/mach/hurd/_G_config.h: Moved to ...
18923         * sysdeps/generic/_G_config.h: ... here.
18924
18925         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
18926
18927         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
18928
18929         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
18930         Conditionalize target on [libnss_test1.so-version].
18931
18932         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
18933
18934         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
18935         (elfobjdir): Move out of conditionals.
18936
18937         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
18938         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
18939         (__nss_lookup_function): Conditionalize label remove_from_tree on
18940         [!DO_STATIC_NSS || SHARED], matching its only use.
18941
18942 2012-09-28  David S. Miller  <davem@davemloft.net>
18943
18944         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
18945         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
18946         file.
18947         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18948         sysdep_routines.
18949         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18950         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
18951         when HWCAP_SPARC_CRYPTO is present.
18952
18953 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18954
18955         * io/tst-mknodat.c: Create a FIFO instead of a socket.
18956
18957 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
18958
18959         [BZ #6530]
18960         * stdio-common/vfprintf.c (process_string_arg): Revert
18961         2000-07-22 change.
18962
18963 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
18964
18965         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
18966         for testcase.
18967         * stdio-common/tst-sprintf.c: Include <locale.h>
18968         (main): Test sprintf's handling of incomplete multibyte
18969         characters.
18970
18971 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
18972
18973         * elf/dl-runtime.c (VERSYMIDX): Removed.
18974         * elf/dl-version.c (VERSYMIDX): Likewise.
18975         * elf/do-rel.h (VERSYMIDX): Likewise.
18976         (VALIDX): Likewise.
18977         * elf/dynamic-link.h (VERSYMIDX): Likewise.
18978         * elf/rtld.c (VALIDX): Likewise.
18979         (ADDRIDX): Likewise.
18980         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
18981         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
18982         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
18983         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
18984         (VALIDX): Likewise.
18985         (ADDRIDX): Likewise.
18986
18987 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18988
18989         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
18990
18991 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
18992
18993         [BZ #11438]
18994         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
18995         to global scope.
18996         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
18997         addresses are in the same scope as 192.0.2/24.
18998         * posix/gai.conf: Document new scope table defaults.
18999
19000 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19001
19002         [BZ #5298]
19003         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
19004         for ftell.  Compute offsets from write pointers instead.
19005         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19006
19007 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19008
19009         [BZ #14543]
19010         * libio/Makefile (tests): New test case tst-fseek.
19011         * libio/tst-fseek.c: New test case to verify that fseek/ftell
19012         combination works in wide mode.
19013         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
19014         state when the external buffer state changes.
19015
19016 2012-09-27  David S. Miller  <davem@davemloft.net>
19017
19018         [BZ #14376]
19019         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
19020         pass reloc->r_addend in as the 'high' argument to
19021         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
19022
19023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19024
19025 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19026
19027         * rt/tst-aio2.c: Include <pthread.h>.
19028         * rt/tst-aio3.c: Likewise.
19029
19030 2012-09-27  Steve Ellcey  <sellcey@mips.com>
19031
19032         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
19033
19034 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
19035
19036         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
19037         contents on [SHARED].
19038
19039 2012-09-26  Marek Polacek  <polacek@redhat.com>
19040
19041         [BZ #14530]
19042         [BZ #13741]
19043         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
19044         for C++ and GCC <4.3 as well as for non GCC compilers.
19045
19046 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19047
19048         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19049
19050 2012-09-25  Roland McGrath  <roland@hack.frob.com>
19051
19052         * Makefile.in (all, install): Declare with .PHONY.
19053         Reported by Michael Hope <michael.hope@linaro.org>.
19054
19055 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19056
19057         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
19058         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
19059         system header.
19060         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
19061         Likewise.
19062         (sydep_routines): Add the new and the internal functions.
19063         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
19064         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
19065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
19066         (GLIBC_2.17): Add the new function.
19067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
19068         (GLIBC_2.17): Likewise.
19069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
19070         (GLIBC_2.17): Likewise.
19071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
19072         (GLIBC_2.17): Likewise.
19073         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
19074
19075 2012-09-25  Alan Modra  <amodra@gmail.com>
19076
19077         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
19078         Add release barrier before setting once_control to say
19079         initialisation is done.  Add hints on lwarx.  Use macro in
19080         place of isync.
19081         (clear_once_control): Add release barrier.
19082
19083 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19084
19085         [BZ #13629]
19086         * math/s_clog.c (__clog): Handle more values close to |z| = 1
19087         specially.
19088         * math/s_clog10.c (__clog10): Likewise.
19089         * math/s_clog10f.c (__clog10f): Likewise.
19090         * math/s_clog10l.c (__clog10l): Likewise.
19091         * math/s_clogf.c (__clogf): Likewise.
19092         * math/s_clogl.c (__clogl): Likewise.
19093         * math/Makefile (libm-calls): Add x2y2m1.
19094         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
19095         (__x2y2m1): Likewise.
19096         (__x2y2m1l): Likewise.
19097         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
19098         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
19099         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
19100         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
19101         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
19102         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
19103         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
19104         * sysdeps/i386/fpu/libm-test-ulps: Update.
19105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19106
19107         [BZ #14621]
19108         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
19109         int as type of variable DEPTH.
19110         (glob): Use size_t instead of int as type of variables NEWCOUNT
19111         and OLD_PATHC.
19112
19113 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19114
19115         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19116         Add s_sincosf-sse2.
19117         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
19118         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
19119         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
19120         macros for using routine as __sincosf_ia32.
19121         Use macro for function declaration and weak_alias.
19122         * sysdeps/i386/fpu/libm-test-ulps: Update.
19123
19124         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
19125         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19126
19127         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
19128         subnormal argument.
19129         * math/s_cexpf.c (__cexpf): Likewise.
19130         * math/s_csinf.c (__csinf): Likewise.
19131         * math/s_csinhf.c (__csinhf): Likewise.
19132         * math/s_ctanf.c (__ctanf): Likewise.
19133         * math/s_ctanhf.c (__ctanhf): Likewise.
19134         * math/s_ccosh.c (__ccoshf): Likewise.
19135         * math/s_cexp.c (__cexpl): Likewise.
19136         * math/s_csin.c (__csin): Likewise.
19137         * math/s_csinh.c (__csinh): Likewise.
19138         * math/s_ctan.c (__ctan): Likewise.
19139         * math/s_ctanh.c (ctanh): Likewise.
19140         * math/s_ccoshl.c (__ccoshl): Likewise.
19141         * math/s_cexpl.c (__cexpl): Likewise.
19142         * math/s_csinl.c (__csinl): Likewise.
19143         * math/s_csinhl.c (__csinhl): Likewise.
19144         * math/s_ctanl.c (__ctanl): Likewise.
19145         * math/s_ctanhl.c (__ctanhl): Likewise.
19146
19147 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19148
19149         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
19150         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
19151         (_IO_off_t): Define to __off_t, not _G_off_t.
19152         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
19153         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
19154         (_IO_wint_t): Define to wint_t, not _G_wint_t.
19155         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
19156         type of __dummy and __dummy2 fields.
19157         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
19158         (_G_ssize_t): Likewise.
19159         (_G_off_t): Likewise.
19160         (_G_pid_t): Likewise.
19161         (_G_uid_t): Likewise.
19162         (_G_wchar_t): Likewise.
19163         (_G_wint_t): Likewise.
19164         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
19165         (_G_ssize_t): Likewise.
19166         (_G_off_t): Likewise.
19167         (_G_pid_t): Likewise.
19168         (_G_uid_t): Likewise.
19169         (_G_wchar_t): Likewise.
19170         (_G_wint_t): Likewise.
19171         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
19172         (_G_ssize_t): Likewise.
19173         (_G_off_t): Likewise.
19174         (_G_pid_t): Likewise.
19175         (_G_uid_t): Likewise.
19176         (_G_wchar_t): Likewise.
19177         (_G_wint_t): Likewise.
19178
19179 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19180
19181         * malloc/arena.c: Include malloc-sysdep.h.
19182         (shrink_heap): Use check_may_shrink_heap to decide if madvise
19183         is sufficient to shrink the heap or an unmap is needed.
19184         * sysdeps/generic/malloc-sysdep.h: New file.  Define
19185         new function check_may_shrink_heap.
19186         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
19187         new function check_may_shrink_heap.
19188
19189 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19190
19191         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
19192         comments.
19193
19194 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
19195
19196         * catgets/test-gencat.sh: Add "set -e".
19197         * elf/tst-pathopt.sh: Likewise.
19198         * grp/tst_fgetgrent.sh: Likewise.
19199         * iconvdata/run-iconv-test.sh: Likewise.
19200         * intl/tst-gettext.sh: Likewise.
19201         * intl/tst-gettext2.sh: Likewise.
19202         * intl/tst-gettext4.sh: Likewise.
19203         * intl/tst-gettext6.sh: Likewise.
19204         * intl/tst-translit.sh: Likewise.
19205         * io/ftwtest-sh: Likewise.
19206         * libio/test-freopen.sh: Likewise.
19207         * malloc/tst-mtrace.sh: Likewise.
19208         * posix/globtest.sh: Likewise.
19209         * posix/tst-getconf.sh: Likewise.
19210         * posix/wordexp-tst.sh: Likewise.
19211         * stdio-common/tst-printf.sh: Likewise.
19212         * stdio-common/tst-unbputc.sh: Likewise.
19213         * stdlib/tst-fmtmsg.sh: Likewise.
19214         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19215         * catgets/Makefile: Do not specify -e option when running
19216         testsuite shell scripts.
19217         * elf/Makefile: Likewise.
19218         * grp/Makefile: Likewise.
19219         * iconvdata/Makefile: Likewise.
19220         * intl/Makefile: Likewise.
19221         * io/Makefile: Likewise.
19222         * libio/Makefile: Likewise.
19223         * malloc/Makefile: Likewise.
19224         * posix/Makefile: Likewise.
19225         * stdio-common/Makefile: Likewise.
19226         * stdlib/Makefile: Likewise.
19227         * sysdeps/x86_64/Makefile: Likewise.
19228
19229         * io/ftwtest-sh: Add copyright header.
19230         * posix/globtest.sh: Likewise.
19231         * posix/tst-getconf.sh: Likewise.
19232         * posix/wordexp-tst.sh: Likewise.
19233         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19234
19235 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
19236
19237         [BZ #13679]
19238         * Makeconfig (+link): Defined as $(+link-static) if
19239         $(build-shared) isn't yes.
19240         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
19241         isn't yes.
19242         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
19243
19244         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
19245
19246         [BZ #14562]
19247         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
19248         new chunk size with MALLOC_ALIGN_MASK.
19249
19250 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
19251
19252         [BZ #5044]
19253         * stdio-common/printf_fphex.c: Include <stdbool.h> and
19254         <rounding-mode.h>.
19255         (__printf_fphex): Determine rounding using get_rounding_mode and
19256         round_away.
19257         * stdio-common/tst-printf-round.c (struct hex_test): New
19258         structure.
19259         (hex_tests): New variable.
19260         (test_hex_in_one_mode): New function.
19261         (do_test): Also run tests for hex float output.
19262
19263 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
19264
19265         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19266         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19267         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
19268         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19269         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19270         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
19271         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19272         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19273
19274 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
19275
19276         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
19277         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
19278         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
19279         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
19280
19281 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
19282
19283         [BZ #14579]
19284         * elf/rtld.c (dl_main): Limit the check for self loading to normal
19285         mode only.
19286         * elf/tst-rtld-load-self.sh: New test.
19287         * elf/Makefile: Run it.
19288
19289 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
19290
19291         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
19292         (tst-writev-ENV): Remove.
19293         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
19294
19295 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
19296
19297         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
19298
19299 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
19300
19301         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
19302         unconditional.
19303         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
19304         Likewise.
19305         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
19306         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
19307         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
19308         Likewise.
19309
19310 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
19311
19312         [BZ #14587]
19313         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
19314         * config.make.in (have-cpp-asm-debuginfo): Removed.
19315         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
19316         * configure: Regenerated.
19317
19318 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
19319
19320         [BZ #5044]
19321         * stdio-common/printf_fp.c: Include <stdbool.h> and
19322         <rounding-mode.h>.
19323         (___printf_fp): Determine rounding using get_rounding_mode and
19324         round_away.
19325         * stdio-common/tst-printf-round.c: New file.
19326         * stdio-common/Makefile (tests): Add tst-printf-round.
19327         (link-libm): New variable.
19328         ($(objpfx)tst-printf-round): Depend in $(link-libm).
19329
19330 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
19331
19332         [BZ #14576]
19333         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
19334         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
19335         Likewise.
19336         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
19337         Likewise.
19338
19339 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
19340
19341         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
19342         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19343         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19344         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19345
19346 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
19347
19348         [BZ #14518]
19349         * include/rounding-mode.h: New file.
19350         * sysdeps/generic/get-rounding-mode.h: Likewise.
19351         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
19352         * stdlib/strtod_l.c: Include <rounding-mode.h>.
19353         (MAX_VALUE): New macro.
19354         (MIN_VALUE): Likewise.
19355         (overflow_value): New function.
19356         (underflow_value): Likewise.
19357         (round_and_return): Use overflow_value and underflow_value to
19358         determine return values in overflow and underflow cases.  Use
19359         round_away to determine rounding depending on rounding mode.
19360         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
19361         determine return values in overflow and underflow cases.
19362         * stdlib/tst-strtod-round.c: Include <fenv.h>.
19363         (struct test_results): New structure.
19364         (struct test): Use struct test_results to store expected results
19365         for all rounding modes.
19366         (TEST): Include expected results for all rounding modes.
19367         (test_in_one_mode): New function.
19368         (do_test): Use test_in_one_mode to compute and check results.
19369         Check results for all rounding modes.
19370         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
19371         $(link-libm).
19372
19373 2012-12-09  Allan McRae  <allan@archlinux.org>
19374
19375         * sysdeps/i386/fpu/libm-test-ulps: Update
19376
19377 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
19378
19379         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
19380         (_G_int32_t): Likewise.
19381         (_G_uint16_t): Likewise.
19382         (_G_uint32_t): Likewise.
19383         (_G_HAVE_BOOL): Likewise.
19384         (_G_HAVE_ATEXIT): Likewise.
19385         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19386         (_G_HAVE_IO_FILE_OPEN): Likewise.
19387         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
19388         (_G_int32_t): Likewise.
19389         (_G_uint16_t): Likewise.
19390         (_G_uint32_t): Likewise.
19391         (_G_HAVE_BOOL): Likewise.
19392         (_G_HAVE_ATEXIT): Likewise.
19393         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19394         (_G_HAVE_IO_FILE_OPEN): Likewise.
19395         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
19396         (_G_int32_t): Likewise.
19397         (_G_uint16_t): Likewise.
19398         (_G_uint32_t): Likewise.
19399         (_G_HAVE_BOOL): Likewise.
19400         (_G_HAVE_ATEXIT): Likewise.
19401         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19402         (_G_HAVE_IO_FILE_OPEN): Likewise.
19403
19404 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
19405
19406         * csu/libc-tls.c: Update copyright years.
19407
19408 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
19409
19410         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
19411         [!_G_USING_THUNKS]: Remove conditional code.
19412         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
19413         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
19414
19415         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
19416         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
19417         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19418         (_G_VTABLE_LABEL_PREFIX): Likewise.
19419         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19420         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19421         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19422         (_G_VTABLE_LABEL_PREFIX): Likewise.
19423         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19424         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19425         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19426         (_G_VTABLE_LABEL_PREFIX): Likewise.
19427         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19428
19429 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
19430
19431         * libio/Makefile: Include ../Makeconfig before tests.
19432         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
19433         only if $(build-shared) is yes.
19434
19435         * iconv/gconv_db.c: Update copyright years.
19436
19437 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19438
19439         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
19440         unwind info if defined PIC. Fix special cases description.
19441         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
19442
19443         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
19444         DP_HI_MASK entry.
19445         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
19446
19447 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
19448
19449         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
19450
19451         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
19452         is NULL.
19453
19454         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19455         (LDLIBS-tst-chk4): This.
19456         (LDFLAGS-tst-chk5): Renamed to ...
19457         (LDLIBS-tst-chk5): This.
19458         (LDFLAGS-tst-chk6): Renamed to ...
19459         (LDLIBS-tst-chk6): This.
19460         (LDFLAGS-tst-lfschk4): Renamed to ...
19461         (LDLIBS-tst-lfschk4): This.
19462         (LDFLAGS-tst-lfschk5): Renamed to ...
19463         (LDLIBS-tst-lfschk5): This.
19464         (LDFLAGS-tst-lfschk6): Renamed to ...
19465         (LDLIBS-tst-lfschk6): This.
19466
19467         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
19468         on $(common-objpfx)soversions.mk.
19469
19470 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
19471
19472         [BZ #10014]
19473         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
19474         example host name.
19475
19476 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19477
19478         * malloc/arena.c (arena_get_retry): New function that gets
19479         another arena for the caller to try its request on.
19480         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
19481         current arena cannot fulfill the request.
19482         (__libc_memalign): Likewise.
19483         (__libc_memalign): Likewise.
19484         (__libc_pvalloc): Likewise.
19485         (__libc_calloc): Likewise.
19486
19487 2012-09-05  John Tobey  <john.tobey@gmail.com>
19488
19489         [BZ #13542]
19490         * manual/arith.texi (Operations on Complex): Fix description
19491         of carg branch cut.
19492
19493 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19494
19495         [BZ #10014]
19496         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
19497         host name.
19498
19499         [BZ #10038]
19500         * manual/memory.texi (Memory): Make order of menu items match
19501         order of sections.
19502
19503 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19504
19505         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
19506         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
19507         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
19508
19509 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19510
19511         * csu/libc-tls.c (static_dtv): Renamed to ...
19512         (_dl_static_dtv): This.  Make it global.
19513         (_dl_initial_dtv): Removed.
19514         (__libc_setup_tls): Updated.
19515         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
19516         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
19517         DL_INITIAL_DTV.
19518
19519 2012-09-06  Petr Machata  <pmachata@redhat.com>
19520
19521         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
19522         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
19523         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
19524         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
19525
19526 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19527
19528         [BZ #14545]
19529         * csu/libc-tls.c (_dl_initial_dtv): New variable.
19530         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
19531         freeing dtv[-1].
19532
19533 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19534
19535         [BZ #14544]
19536         * Makeconfig (link-static-before-libc): Replace $(+prector)
19537         with $(+prectorT).
19538         (link-static-after-libc): Replace $(+postctor) with
19539         $(+postctorT).
19540         (link-bounded): Replace $(+prector)/$(+postctor) with
19541         $(+prectorT)/$(+postctorT).
19542         (+prectorT): New macro.
19543         (+postctorT): Likewise.
19544
19545 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19546
19547         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
19548         (round_str): Handle values above the maximum for IBM long double
19549         as inexact.
19550         * stdlib/tst-strtod-round.c (tests): Regenerated.
19551
19552 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19553
19554         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
19555         assembler flag.
19556         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
19557         zarch_nohighgprs around the zarch optimized routines.
19558         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
19559         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
19560         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
19561         for zarch.
19562
19563 2012-09-05  David S. Miller  <davem@davemloft.net>
19564
19565         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19566
19567         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
19568         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
19569         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19570         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19571         entries.
19572
19573 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19574
19575         * malloc/arena.c: Fold copyright years.
19576         * malloc/mcheck.c, malloc/memusage.c: Likewise.
19577
19578 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19579
19580         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
19581
19582 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19583
19584         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
19585
19586 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19587
19588         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
19589         change internal state upon failure.
19590
19591 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19592
19593         * malloc/mcheck.c (mcheck_check_all): Fix typo.
19594         * malloc/memusage.c (mmap): Likewise.
19595         (mmap64, mremap): Likewise.  Adjust name in comment.
19596
19597 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19598
19599         * libio/fileops.c: Fix typos in comments.
19600         * libio/oldfileops.c: Likewise.
19601         * libio/wfileops.c: Likewise.
19602
19603 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19604
19605         [BZ #1349]
19606         * malloc/Makefile (tests): Add tst-malloc-usable test case.
19607         (tst-malloc-usable-ENV): Set environment for test case.
19608         * malloc/hooks.c (malloc_check_get_size): New function to get
19609         requested size.
19610         * malloc/malloc.c (musable): Use malloc_check_get_size.
19611         * malloc/tst-malloc-usable.c: New test case.
19612
19613 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19614
19615         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
19616
19617 2012-09-05  Allan McRae  <allan@archlinux.org>
19618
19619         [BZ #13966]
19620         * configure.in (CXX_SYSINCLUDES): Use compiler output to
19621         determine header location.
19622         * configure: Regenerated.
19623
19624 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19625
19626         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
19627         float format.
19628         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
19629         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
19630         format.
19631         (test): Regenerate.
19632
19633 2012-09-04  David S. Miller  <davem@davemloft.net>
19634
19635         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
19636         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
19637         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
19638
19639 2012-09-04  Florian Weimer  <fweimer@redhat.com>
19640
19641         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
19642         failures.
19643
19644         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
19645
19646 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
19647
19648         [BZ #9914]
19649         * libio/iogetdelim.c: Include <limits.h>.
19650         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19651         + len + 1 would overflow.
19652
19653 2012-09-03  Andreas Jaeger  <aj@suse.de>
19654
19655         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19656         * sysdeps/i386/fpu/libm-test-ulps: Update.
19657
19658 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19659
19660         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19661         Add s_sinf-sse2, s_conf-sse2.
19662
19663         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
19664         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
19665         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
19666         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
19667
19668         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
19669         for using routine as __sinf_ia32.
19670         Use macro for function declaration and weak_alias.
19671         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
19672         for using routine as __cosf_ia32.
19673         Use macro for function declaration and weak_alias.
19674
19675         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
19676         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
19677
19678         * sysdeps/x86_64/fpu/s_sinf.S: New file.
19679         * sysdeps/x86_64/fpu/s_cosf.S: New file.
19680         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19681
19682         * math/libm-test.inc (cos_test): Add more test cases.
19683         (sin_test): Likewise.
19684         (sincos_test): Likewise.
19685
19686 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19687
19688         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
19689         (IFUNC_RESOLVE): Make pointers to the specialized implementations
19690         hidden.
19691         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19692
19693 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
19694
19695         [BZ #14538]
19696         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
19697         first element of the GOT.
19698         (elf_machine_load_address): Return the difference between
19699         the runtime address of _DYNAMIC and elf_machine_dynamic ().
19700
19701 2012-09-01  Allan McRae  <allan@archlinux.org>
19702
19703         [BZ #13412]
19704         * configure.in (AWK): Require gawk version 3.0 or later.
19705         * configure: Regenerated.
19706
19707 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
19708
19709         * sysdeps/unix/sysv/linux/kernel-features.h
19710         (__ASSUME_POSIX_CPU_TIMERS): Remove.
19711         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19712         [__NR_clock_getres]: Make code unconditional.
19713         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
19714         (clock_getcpuclockid): Remove code left unreachable by removal of
19715         conditionals.
19716         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
19717         code unconditional.
19718         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19719         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19720         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
19721         Make code unconditional.
19722         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19723         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19724         * sysdeps/unix/sysv/linux/clock_settime.c
19725         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
19726         conditional code.
19727         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
19728         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19729
19730 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
19731
19732         [BZ #14476]
19733         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
19734         scripts/test-installation.pl.
19735
19736         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
19737         and $ld_so_version if it is set.
19738
19739 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19740
19741         [BZ #14516]
19742         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
19743         failure if reading from procfs failed.
19744         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
19745
19746 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19747
19748         * sysdeps/unix/sysv/linux/kernel-features.h
19749         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
19750         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19751         Remove conditional code.
19752         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19753         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
19754         Remove conditional code.
19755         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19756         * sysdeps/unix/sysv/linux/i386/fxstat.c
19757         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19758         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19759         * sysdeps/unix/sysv/linux/i386/fxstatat.c
19760         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19761         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19762         * sysdeps/unix/sysv/linux/i386/lxstat.c
19763         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19764         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19765         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
19766         Remove conditional code.
19767         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19768         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19769         Remove conditional code.
19770         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19771         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
19772         <kernel-features.h>.
19773         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
19774         Remove.
19775         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
19776         Remove conditional code.
19777         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19778         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
19779         Remove conditional.
19780
19781 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
19782
19783         [BZ #5400]
19784         * NEWS: Add fixed bug number.
19785
19786 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19787
19788         [BZ #14519]
19789         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
19790         underflowing exponent in case of negative sign.
19791         * stdlib/tst-strtod-round-data: Add more tests.
19792         * stdlib/tst-strtod-round.c (tests): Regenerated.
19793
19794         [BZ #3479]
19795         * stdlib/strtod_l.c (NDIG): Remove.
19796         (HEXNDIG): Likewise.
19797         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
19798         smallest representable value.
19799         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
19800         lie within an exact representation of 1/2 ulp of the result.
19801         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
19802         unconditionally.
19803         (TENS_P9_IDX): Define unconditionally.
19804         (TENS_P9_SIZE): Likewise.
19805         (TENS_P10_IDX): Likewise.
19806         (TENS_P10_SIZE): Likewise.
19807         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
19808         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
19809         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
19810         entries for 10^2^13 and 10^2^14.
19811         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
19812         (TENS_P13_IDX): Define.
19813         (TENS_P13_SIZE): Likewise.
19814         (TENS_P14_IDX): Likewise.
19815         (TENS_P14_SIZE): Likewise.
19816         (_fpioconst_pow10): Change array size to
19817         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
19818         unconditional.
19819         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
19820         1024]: Add entries for 10^2^13 and 10^2^14.
19821         [LAST_POW10 > _LAST_POW10]: Remove #error.
19822         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
19823         (_fpioconst_pow10): Change array size to
19824         FPIOCONST_POW10_ARRAY_SIZE.
19825         * stdlib/gen-fpioconst.c: New file.
19826         * stdlib/gen-tst-strtod-round.c: Likewise.
19827         * stdlib/tst-strtod-round-data: Likewise.
19828         * stdlib/tst-strtod-round.c: Likewise.
19829         * stdlib/Makefile (tests): Add tst-strtod-round.
19830
19831         [BZ #14459]
19832         * stdlib/strtod_l.c: Include <stdint.h>.
19833         (NDEBUG): Do not define.
19834         (round_and_return): Change EXPONENT parameter to type intmax_t.
19835         Rearrange calculations to avoid internal overflow possibilities.
19836         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
19837         Rearrange calculations to avoid internal overflow possibilities.
19838         Assert that number fits inside MPNSIZE limbs.
19839         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
19840         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
19841         calculations and add assertions to avoid internal overflow
19842         possibilities.  Add casts to avoid signed/unsigned operations.
19843         * stdlib/tst-strtod-overflow.c: New file.
19844         * stdlib/Makefile (tests): Add tst-strtod-overflow.
19845
19846 2012-08-25  Marek Polacek  <polacek@redhat.com>
19847
19848         * time/time.h: Fix some typos in comments.
19849
19850 2012-08-23  Roland McGrath  <roland@hack.frob.com>
19851
19852         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
19853         * posix/tst-rfc3484-2.c: Likewise.
19854         * posix/tst-rfc3484-3.c: Likewise.
19855
19856 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
19857
19858         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
19859         (EF_ARM_ABI_FLOAT_HARD): Likewise.
19860
19861 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
19862
19863         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
19864         #include of fxstatat64.c.
19865
19866 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19867
19868         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
19869         * shadow/getspent_r.c: Likewise.
19870         * shadow/getspnam.c: Likewise.
19871         * shadow/getspnam_r.c: Likewise.
19872         * gshadow/getsgent.c: Likewise.
19873         * gshadow/getsgent_r.c: Likewise.
19874         * gshadow/getsgnam.c: Likewise.
19875         * gshadow/getsgnam_r.c: Likewise.
19876         * inet/getnetbyad.c: Likewise.
19877         * inet/getnetbyad_r.c: Likewise.
19878         * inet/getnetbynm.c: Likewise.
19879         * inet/getnetbynm_r.c: Likewise.
19880         * inet/getnetent.c: Likewise.
19881         * inet/getnetent_r.c: Likewise.
19882         * inet/getproto.c: Likewise.
19883         * inet/getproto_r.c: Likewise.
19884         * inet/getprtent.c: Likewise.
19885         * inet/getprtent_r.c: Likewise.
19886         * inet/getprtname.c: Likewise.
19887         * inet/getprtname_r.c: Likewise.
19888         * inet/getrpcbyname.c: Likewise.
19889         * inet/getrpcbyname_r.c: Likewise.
19890         * inet/getrpcbynumber.c: Likewise.
19891         * inet/getrpcbynumber_r.c: Likewise.
19892         * inet/getrpcent.c: Likewise.
19893         * inet/getrpcent_r.c: Likewise.
19894         * inet/getaliasent.c: Likewise.
19895         * inet/getaliasent_r.c: Likewise.
19896         * inet/getaliasname.c: Likewise.
19897         * inet/getaliasname_r.c: Likewise.
19898         * nscd/getgrgid_r.c: Likewise.
19899         * nscd/getgrnam_r.c: Likewise.
19900         * nscd/gethstbyad_r.c: Likewise.
19901         * nscd/gethstbynm3_r.c: Likewise.
19902         * nscd/getpwnam_r.c: Likewise.
19903         * nscd/getpwuid_r.c: Likewise.
19904         * nscd/getsrvbynm_r.c: Likewise.
19905         * nscd/getsrvbypt_r.c: Likewise.
19906         * nscd/gai.c: Likewise.
19907
19908         * configure.in (build_nscd): New substituted variable, set
19909         by --disable-build-nscd and defaults to $use_nscd.
19910         * configure: Regenerated.
19911         * config.make.in (build-nscd): New substituted variable.
19912         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
19913         Change conditional to require [$(build-nscd) = yes] as well.
19914         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
19915
19916         [BZ# 13696]
19917         * configure.in (use_nscd): New substituted variable, set by
19918         --disable-nscd.  If enabled, define USE_NSCD.
19919         * configure: Regenerated.
19920         * config.h.in: Add USE_NSCD.
19921         * config.make.in (use-nscd): New substituted variable.
19922         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19923         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
19924         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
19925         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
19926         (CFLAGS-getgrnam_r.c): Likewise.
19927         (CFLAGS-initgroups.c): Likewise.
19928         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
19929         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
19930         Variables removed.
19931         * inet/getnetgrent_r.c
19932         (nscd_setnetgrent): New function, broken out of ...
19933         (setnetgrent): ... here.  Call it.
19934         (innetgr): Conditionalize nscd bits on [USE_NSCD].
19935         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
19936         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
19937         * nscd/Makefile (routines, aux): Move definitions after include of
19938         Makeconfig.  Conditionalize on [$(use-nscd) != no].
19939         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
19940         Conditionalize on [USE_NSCD].
19941         (is_nscd, nscd_init_cb): Likewise.
19942         (nss_load_library): Conditionalize init callback on [USE_NSCD].
19943         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
19944         * nss/nss_db/db-init.c: Likewise.
19945         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
19946         [USE_NSCD].
19947         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
19948         (make_request): Use it.
19949         (cache_valid_p): New function.
19950         (__check_pf): Use it.
19951         * NEWS: Add item for --disable-nscd.
19952
19953 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
19954
19955         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
19956         to support sed >= 4.2.1-20-ga9bf076.
19957         * configure: Regenerated.
19958
19959 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19960
19961         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
19962         Conditionalize whole body on [IREL].
19963
19964 2012-08-22  Jeff Law <law@redhat.com>
19965
19966         [BZ #14505]
19967         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
19968         if the family is PF_UNSPEC.
19969
19970 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
19971
19972         * Makerules (lib-version): Rename from V.
19973         (install-lib-nosubdir): Change V to lib-version.
19974
19975 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
19976
19977         [BZ #14252]
19978         * powerpc32/power6/wcschr.c: New file.
19979         * powerpc32/power6/wcscpy.c: New file.
19980         * powerpc32/power6/wcsrchr.c: New file.
19981         * powerpc64/power6/wcschr.c: New file.
19982         * powerpc64/power6/wcscpy.c: New file.
19983         * powerpc64/power6/wcsrchr.c: New file.
19984
19985 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
19986
19987         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
19988         (two_way_short_needle): Use it.
19989         * string/strstr.c (AVAILABLE1_USES_J): Define.
19990         * string/strcasestr.c: Likewise.
19991
19992         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
19993         array references.
19994         * string/strcasestr.c (TOLOWER): Make side-effect safe.
19995
19996         [BZ #11607]
19997         * NEWS: Add an entry.
19998         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
19999         define their defaults.
20000         (two_way_short_needle): Detect end-of-string on-the-fly.
20001         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
20002         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
20003         * string/bug-strcasestr1.c: New test.
20004         * string/Makefile: Run it.
20005
20006 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20007
20008         [BZ #11607]
20009         * string/str-two-way.h (two_way_short_needle): Optimize matching of
20010         the first character.
20011
20012 2012-08-21  Roland McGrath  <roland@hack.frob.com>
20013
20014         * csu/elf-init.c (__libc_csu_irel): Function removed.
20015         * csu/libc-start.c (apply_irel): New function.
20016         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
20017
20018 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
20019
20020         * sysdeps/unix/sysv/linux/kernel-features.h
20021         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
20022         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20023         <kernel-features.h>.
20024         [__NR_fadvise64_64]: Make code unconditional.
20025         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
20026         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20027         !__NR_fadvise64_64)]: Likewise.
20028         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20029         !__NR_fadvise64_64))]: Likewise.
20030         [__NR_fadvise64]: Make code unconditional.
20031         [!__NR_fadvise64]: Remove conditional code.
20032         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
20033         <kernel-features.h>.
20034         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20035         unconditional.
20036         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20037         conditional code.
20038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
20039         not include <kernel-features.h>.
20040         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20041         unconditional.
20042         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20043         conditional code.
20044         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
20045         include <kernel-features.h>.
20046         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20047         unconditional.
20048         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20049         conditional code.
20050
20051 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
20052
20053         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
20054         slight instruction rearrangements per scrollpipe analysis.
20055         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
20056
20057 2012-08-20  Roland McGrath  <roland@hack.frob.com>
20058
20059         * manual/syslog.texi (syslog; vsyslog, closelog):
20060         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
20061         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
20062
20063         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
20064         DSOCAPS to match condition on defining it.
20065
20066 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
20067
20068         * sysdeps/unix/sysv/linux/kernel-features.h
20069         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
20070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
20071         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20072         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
20074         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20075         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
20077         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20078         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20079
20080         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
20081         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
20082
20083         * sysdeps/unix/sysv/linux/kernel-features.h
20084         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
20085         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
20086         unconditional.
20087         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20088         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
20089         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20090         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20091         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
20092         Make code unconditional.
20093         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20094         (__mmap64) [!__NR_mmap2]: Likewise.
20095         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
20096         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20097         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20098         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
20099         [__NR_mmap2]: Make code unconditional.
20100         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20101         (__mmap64) [!__NR_mmap2]: Likewise.
20102
20103 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20104
20105         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
20106
20107 2012-08-18  Andreas Jaeger  <aj@suse.de>
20108
20109         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
20110
20111 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20112
20113         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
20114         * include/unistd.h (__have_sock_cloexec): Likewise.
20115         (__have_pipe2): Likewise.
20116         (__have_dup3): Likewise.
20117
20118 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20119
20120         [BZ #9685]
20121         * include/unistd.h (__have_pipe2): Change define into an extern int.
20122         (__have_dup3): Likewise.
20123         * socket/have_sock_cloexec.c: Include fcntl.h.
20124         (__have_pipe2): New variable.
20125         (__have_dup3): Likewise.
20126
20127 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
20128
20129         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
20130
20131 2012-08-17  Marek Polacek  <polacek@redhat.com>
20132
20133         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
20134         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
20135
20136 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20137
20138         * configure.in: Add AC_SUBST for sysheaders.
20139         * configure: Regenerated.
20140         * config.make.in (sysheaders): New substituted variable.
20141
20142         * sysdeps/unix/mkfifo.c: Moved ...
20143         * sysdeps/posix/mkfifo.c: ... here.
20144         * sysdeps/unix/mkfifoat.c: Moved ...
20145         * sysdeps/posix/mkfifoat.c: ... here.
20146
20147         * sysdeps/unix/utime.c: Moved ...
20148         * sysdeps/posix/utime.c: ... here.
20149
20150         * sysdeps/unix/time.c: Moved ...
20151         * sysdeps/posix/time.c: ... here.
20152         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
20153         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
20154
20155         * sysdeps/unix/nice.c: Moved ...
20156         * sysdeps/posix/nice.c: ... here.
20157
20158         * sysdeps/unix/alarm.c: Moved ...
20159         * sysdeps/posix/alarm.c: ... here.
20160
20161         * intl/Makefile ($(codeset_mo)): Depend on the input file.
20162
20163 2012-08-17  Jeff Law <law@redhat.com>
20164
20165         * intl/Makefile (codeset_mo): New variable.
20166         ($(codeset_mo)): New target.
20167         (tst-codeset.out): Depend on that.  Remove explicit rule.
20168         (tst-gettext3.out, tst-gettext5.out): Likewise.
20169         (LOCPATH-ENV, tst-codeset-ENV): New variables.
20170         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
20171         * intl/tst-codeset.sh: Remove.
20172         * intl/tst-gettext3.sh: Likewise.
20173         * intl/tst-gettext5.sh: Likewise.
20174
20175 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20176
20177         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
20178         * sysdeps/unix/syscalls.list: ... here.
20179
20180         * sysdeps/posix/getaddrinfo.c
20181         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
20182         (gaiconf_init, gaiconf_reload): Use them.
20183         [!_STATBUF_ST_NSEC]
20184         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
20185         Define using time_t rather than struct timespec.
20186
20187         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
20188         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
20189         Macros removed.
20190         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
20191         [!NO_THREADS].
20192         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
20193         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
20194         Likewise.
20195
20196         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
20197         __libc_cleanup_push argument.
20198
20199         * bits/param.h: New file.
20200         * misc/sys/param.h: New file.
20201         * include/sys/param.h: New file.
20202         * misc/Makefile (headers): Add bits/param.h.
20203         * sysdeps/generic/sys/param.h: File removed.
20204         * sysdeps/unix/sysv/linux/bits/param.h: New file.
20205         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
20206         * sysdeps/mach/hurd/bits/param.h: New file.
20207         * sysdeps/mach/hurd/sys/param.h: File removed.
20208
20209         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
20210         last change.
20211
20212         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
20213         [_IO_MTSAFE_IO].
20214         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
20215         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
20216         New macros.
20217
20218         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
20219         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
20220         rather than -D_IO_MTSAFE_IO conditionally.
20221         * stdio-common/Makefile (CPPFLAGS): Likewise.
20222         * wcsmbs/Makefile (CPPFLAGS): Likewise.
20223         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
20224         Use $(libio-mtsafe).
20225         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
20226         of -D_IO_MTSAFE_IO.
20227         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
20228         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
20229         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
20230         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
20231         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
20232         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
20233         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
20234         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
20235         (CFLAGS-fread_u_chk.c): Likewise.
20236         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
20237         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
20238         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
20239         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
20240         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
20241         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
20242         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
20243         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
20244         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
20245
20246         * libio/Makefile: Test [$(libc-reentrant) = yes]
20247         instead of [$(filter %REENTRANT, $(defines)) nonempty].
20248
20249         * Makeconfig
20250         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
20251         * sysdeps/pthread/configure: File removed.
20252         * sysdeps/pthread/Makeconfig: New file.
20253         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
20254         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
20255
20256 2012-08-16  Gary Benson  <gbenson@redhat.com>
20257
20258         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
20259         unmapping the first object in a namespace.
20260
20261 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20262
20263         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
20264         (__internal_setnetgrent): ... this.  Add internal_function to
20265         definition.  Add libc_hidden_def.
20266         (setnetgrent): Update caller.
20267         (internal_endnetgrent): Renamed to ...
20268         (__internal_endnetgrent): ... this.  Add internal_function to
20269         definition.  Add libc_hidden_def.
20270         (endnetgrent): Update caller.
20271         (internal_getnetgrent_r): Renamed to ...
20272         (__internal_getnetgrent_r): ... this.  Add internal_function to
20273         definition.  Add libc_hidden_def.
20274         (__getnetgrent_r): Update caller.
20275         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
20276
20277 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20278
20279         * stdlib/longlong.h: Update from GCC.
20280
20281 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20282
20283         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
20284         on _QL, which is set by umul_ppmm but never used.
20285         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
20286         variables, which are set by GMP macros but never used.
20287         * stdio-common/_itowa.c (_itowa): Likewise.
20288         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
20289         * stdlib/mod_1.c (mpn_mod_1): Likewise.
20290
20291 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
20292
20293         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
20294         struct La_sh_regs is not constant.
20295         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
20296         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
20297         and struct La_sparc64_regs are not constant.
20298
20299 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20300
20301         * sysdeps/unix/sysv/linux/kernel-features.h
20302         (__ASSUME_POSIX_TIMERS): Remove.
20303         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
20304         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20305         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
20306         Make code unconditional.
20307         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20308         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
20309         Make code unconditional.
20310         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20311         * sysdeps/unix/sysv/linux/clock_nanosleep.c
20312         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
20313         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20314         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
20315         Make code unconditional.
20316         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20317         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
20318         (__libc_missing_posix_timers): Remove.
20319
20320 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20321
20322         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
20323         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
20324
20325         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
20326
20327         * elf/dl-sym.c: Include <stdlib.h>.
20328
20329         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
20330         constants, which avoids warnings in 32-bit builds.
20331
20332         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
20333         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
20334
20335         * misc/lseek.c: File moved to ...
20336         * io/lseek.c: ... here.
20337
20338         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
20339
20340         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
20341         shifting LEN more than 31 bits at once.
20342
20343 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20344
20345         [BZ #14195]
20346         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
20347         segmentation fault for a case of two empty input strings.
20348         * string/test-strncasecmp.c (check1): Renamed to...
20349         (bz12205): ...this.
20350         (bz14195): Add new testcase for two empty input strings and N > 0.
20351         (test_main): Call new testcase, adapt for renamed function.
20352
20353 2012-08-15  Andreas Jaeger  <aj@suse.de>
20354
20355         [BZ #14090]
20356         * crypt/md5test2.c: New test, based on test supplied by Serge
20357         Belyshev <belyshev@depni.sinp.msu.ru>.
20358         * crypt/Makefile (xtests): Add md5test-giant..
20359         * crypt/Makefile ($(objpfx)md5test-giant): Add.
20360
20361 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20362
20363         [BZ #14090]
20364         * crypt/md5.c (md5_process_block): Don't assume the buffer
20365         length is less than 2**32.
20366         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
20367         length is less than 2**64.
20368
20369 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20370
20371         * string/str-two-way.h: Include <sys/param.h>.
20372         (MAX): Macro removed.
20373
20374         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
20375         Move #define and #undef of memmove to just before and after
20376         including <string.h>.
20377
20378         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
20379         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
20380         and after including <string.h>.  Move declarations of
20381         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
20382         to before #include "string/memmove.c".
20383
20384         * include/dirent.h: Declare __getdirentries.
20385
20386         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
20387         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
20388
20389 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
20390
20391         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
20392         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
20393         * sysdeps/i386/configure: Regenerated.
20394         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
20395         STABS_CURRENT_FILE, and STABS_FUN.
20396         (END): Remove call to STABS_FUN_END.
20397         (STABS_CURRENT_FILE1): Delete.
20398         (STABS_CURRENT_FILE): Likewise.
20399         (STABS_FUN): Likewise.
20400         (STABS_FUN_END): Likewise.
20401         (STABS_FUN2): Likewise.
20402         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
20403         * sysdeps/x86_64/configure: Regenerated.
20404
20405 2012-08-14  Roland McGrath  <roland@hack.frob.com>
20406
20407         * elf/dl-open.c: Include <atomic.h>.
20408         * elf/dl-lookup.c: Likewise.
20409
20410 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
20411
20412         * sysdeps/unix/sysv/linux/kernel-features.h
20413         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
20414         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
20415         unconditionally.
20416         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
20417         unconditionally.
20418         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
20419         condition on __ASSUME_CLONE_THREAD_FLAGS.
20420
20421 2012-08-14  Andreas Jaeger  <aj@suse.de>
20422
20423         * sysdeps/i386/fpu/libm-test-ulps: Update.
20424
20425 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
20426
20427         * include/atomic.h (atomic_exchange_and_add): Split into ...
20428         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
20429         New atomic macros.
20430
20431 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
20432
20433         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20434
20435 2012-08-13  Jeff Law <law@redhat.com>
20436
20437         * manual/stdio.texi (snprintf): Clarify handling of the trailing
20438         null byte in the output string.
20439
20440 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
20441
20442         * sysdeps/unix/sysv/linux/kernel-features.h
20443         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
20444         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
20445         (__ASSUME_ARG_MAX_STACK_BASED): Define.
20446         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
20447         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
20448         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
20449         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
20450
20451 2012-08-09  Jeff Law <law@redhat.com>
20452
20453         [BZ #13939]
20454         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
20455         When avoid_arena is set, don't retry in the that arena.  Pick the
20456         next one, whatever it might be.
20457         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
20458         (arena_lock): Pass in new parameter to arena_get2.
20459         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
20460         arena_get2.
20461         (__libc_malloc): Unify retrying after main arena failure with
20462         __libc_memalign version.
20463         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
20464
20465 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20466
20467         [BZ #14166]
20468         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
20469         to __redirect_strstr.
20470         (__strstr_sse42): Use typeof __redirect_strstr.
20471         (__strstr_ia32): Likewise.
20472         (__libc_strstr): New prototype.
20473         (strstr): Renamed to ...
20474         (__libc_strstr): This.
20475         (strstr): New strong alias of __libc_strstr.
20476         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
20477         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
20478         __redirect_time.
20479         Include <time.h>.
20480         (__libc_time): New prototype.
20481         (time_ifunc): Replace time with __libc_time.
20482         (time): New strong alias and hidden definition of __libc_time.
20483         (__GI_time): Remove strong alias.
20484         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
20485         Include <stddef.h>.
20486         (memmove): Redefined to __redirect_memmove.
20487         (__memmove_sse2): Use typeof __redirect_memmove.
20488         (__memmove_ssse3): Likewise.
20489         (__memmove_ssse3_back): Likewise.
20490         (__libc_memmove): New prototype.
20491         (memmove): Renamed to ...
20492         (__libc_memmove): This.
20493         (memmove): New strong alias of __libc_memmove.
20494
20495 2012-08-08  Mark Salter  <msalter@redhat.com>
20496
20497         * elf/elf.h
20498         (R_MN10300_TLS_GD): Define.
20499         (R_MN10300_TLS_LD): Likewise.
20500         (R_MN10300_TLS_LDO): Likewise.
20501         (R_MN10300_TLS_GOTIE): Likewise.
20502         (R_MN10300_TLS_IE): Likewise.
20503         (R_MN10300_TLS_LE): Likewise.
20504         (R_MN10300_TLS_DTPMOD): Likewise.
20505         (R_MN10300_TLS_DTPOFF): Likewise.
20506         (R_MN10300_TLS_TPOFF): Likewise.
20507         (R_MN10300_SYM_DIFF): Likewise.
20508         (R_MN10300_ALIGN): Likewise.
20509         (R_MN10300_NUM): Update.
20510
20511 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
20512
20513         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
20514         Remove.
20515
20516 2012-08-08  Roland McGrath  <roland@hack.frob.com>
20517
20518         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
20519
20520         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
20521         sysdeps/unix -> sysdeps/posix move.
20522         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
20523
20524 2012-08-07      Allan McRae     <allan@archlinux.org>
20525
20526         [BZ #14303]
20527         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
20528         (SUNOS_CPP): Likewise.
20529         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
20530         not found.
20531         (open_input): Call CPP using execvp.
20532
20533 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20534
20535         * sysdeps/unix/sysv/linux/kernel-features.h
20536         (__ASSUME_PROT_GROWSUPDOWN): Remove.
20537         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20538         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20539         (__ASSUME_WAITID_SYSCALL): Likewise.
20540         * sysdeps/unix/sysv/linux/dl-execstack.c
20541         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
20542         code unconditional.
20543         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
20544         conditional code.
20545         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
20546         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
20547         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
20548         code.
20549         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
20550         unconditional.
20551         [__ASSUME_WAITID_SYSCALL]: Likewise.
20552         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
20553
20554 2012-08-07  Roland McGrath  <roland@hack.frob.com>
20555
20556         * sysdeps/unix/closedir.c: Renamed to ...
20557         * sysdeps/posix/closedir.c: ... here.
20558         * sysdeps/unix/dirfd.c: Renamed to ...
20559         * sysdeps/posix/dirfd.c: ... here.
20560         * sysdeps/unix/dirstream.h: Renamed to ...
20561         * sysdeps/posix/dirstream.h: ... here.
20562         * sysdeps/unix/fdopendir.c: Renamed to ...
20563         * sysdeps/posix/fdopendir.c: ... here.
20564         * sysdeps/unix/opendir.c: Renamed to ...
20565         * sysdeps/posix/opendir.c: ... here.
20566         * sysdeps/unix/readdir.c: Renamed to ...
20567         * sysdeps/posix/readdir.c: ... here.
20568         * sysdeps/unix/readdir_r.c: Renamed to ...
20569         * sysdeps/posix/readdir_r.c: ... here.
20570         * sysdeps/unix/rewinddir.c: Renamed to ...
20571         * sysdeps/posix/rewinddir.c: ... here.
20572         * sysdeps/unix/seekdir.c: Renamed to ...
20573         * sysdeps/posix/seekdir.c: ... here.
20574         * sysdeps/unix/telldir.c: Renamed to ...
20575         * sysdeps/posix/telldir.c: ... here.
20576         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
20577         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
20578         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
20579         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
20580
20581         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
20582         * bits/fcntl.h: ... here.
20583
20584         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
20585         not 0.
20586         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
20587         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
20588         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
20589         (struct flock): Move l_start, l_len to the beginning.
20590         Use __pid_t for l_pid.
20591         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
20592         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
20593         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
20594         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
20595         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
20596         [__USE_LARGEFILE64] (struct flock64): New type.
20597         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
20598
20599         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
20600         * bits/dirent.h: ... here.
20601
20602         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
20603         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
20604
20605 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20606
20607         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20608         Change from 2.6.0 to 2.6.16.
20609         * sysdeps/unix/sysv/linux/configure: Regenerated.
20610         * sysdeps/unix/sysv/linux/kernel-features.h
20611         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
20612         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
20613         version.
20614         (__ASSUME_UTIMES): Likewise.
20615         (__ASSUME_CLONE_STOPPED): Remove.
20616         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
20617         architectures, not kernel version.
20618         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
20619         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20620         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20621         (__ASSUME_WAITID_SYSCALL): Likewise.
20622         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
20623         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
20624         * README: State 2.6.16 as minimum Linux kernel version.  Do not
20625         refer to older versions.
20626
20627 2012-08-06  Roland McGrath  <roland@hack.frob.com>
20628
20629         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
20630         Define alphasort64 as an alias.
20631         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
20632         Define versionsort64 as an alias.
20633         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
20634         Define scandir64 as an alias.
20635         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
20636         Define scandirat64 as an alias.
20637         * dirent/alphasort64.c (alphasort64):
20638         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
20639         * dirent/versionsort64.c: Likewise.
20640         * dirent/scandir64.c: Likewise.
20641         * dirent/scandirat64.c: Likewise.
20642         * sysdeps/wordsize-64/alphasort.c: File removed.
20643         * sysdeps/wordsize-64/alphasort64.c: File removed.
20644         * sysdeps/wordsize-64/scandir.c: File removed.
20645         * sysdeps/wordsize-64/scandir64.c: File removed.
20646         * sysdeps/wordsize-64/scandirat.c: File removed.
20647         * sysdeps/wordsize-64/scandirat64.c: File removed.
20648         * sysdeps/wordsize-64/versionsort.c: File removed.
20649         * sysdeps/wordsize-64/versionsort64.c: File removed.
20650         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
20651         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
20652         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
20653         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
20654         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
20655         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
20656         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
20657         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
20658
20659         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
20660         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20661         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
20662         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20663         [defined __arch64__ || defined __sparcv9]
20664         (__INO_T_MATCHES_INO64_T): New macro.
20665         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20666         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
20667         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
20668         * sysdeps/unix/sysv/linux/bits/dirent.h
20669         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
20670         (_DIRENT_MATCHES_DIRENT64): New macro.
20671
20672         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
20673         Define lockf64 as an alias.
20674         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
20675         Define fseeko64 as an alias.
20676         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
20677         Define ftello64 as an alias.
20678         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
20679         Define _IO_fgetpos64 and fgetpos64 as aliases.
20680         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
20681         Define _IO_fsetpos64 and fsetpos64 as aliases.
20682         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
20683         Conditionalize body on this.
20684         * libio/fseeko64.c: Likewise.
20685         * libio/ftello64.c: Likewise.
20686         * libio/iofgetpos64.c: Likewise.
20687         * libio/iofsetpos64.c: Likewise.
20688         * sysdeps/wordsize-64/lockf.c: File removed.
20689         * sysdeps/wordsize-64/lockf64.c: File removed.
20690         * sysdeps/wordsize-64/fseeko.c: File removed.
20691         * sysdeps/wordsize-64/fseeko64.c: File removed.
20692         * sysdeps/wordsize-64/ftello.c: File removed.
20693         * sysdeps/wordsize-64/ftello64.c: File removed.
20694         * sysdeps/wordsize-64/iofgetpos.c: File removed.
20695         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
20696         * sysdeps/wordsize-64/iofsetpos.c: File removed.
20697         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
20698         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
20699         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
20700         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
20701         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
20702         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
20703         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
20704         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
20705         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
20706         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
20707         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
20708
20709         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20710         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20711         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
20712         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20713         [defined __arch64__ || defined __sparcv9]
20714         (__OFF_T_MATCHES_OFF64_T): New macro.
20715         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20716         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20717         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20718         (__OFF_T_MATCHES_OFF64_T): New macro.
20719
20720 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20721
20722         * stdlib/secure-getenv.c (__secure_getenv): Replace
20723         GLIBC_2_16 with GLIBC_2_17.
20724
20725 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20726
20727         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
20728         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20729
20730 2012-08-03  David S. Miller  <davem@davemloft.net>
20731
20732         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20733
20734 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20735
20736         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
20737         Remove.
20738         (__ASSUME_CORRECT_SI_PID): Likewise.
20739         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
20740         (__ASSUME_TMPFS_NAME): Likewise.
20741         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
20742         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
20743         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
20744         (HAVE_AUX_SECURE): Make definition unconditional.
20745         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
20746         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
20747
20748 2012-08-03  Roland McGrath  <roland@hack.frob.com>
20749
20750         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
20751         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
20752         * sysdeps/mach/hurd/eloop-threshold.h: New file.
20753         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20754         __eloop_threshold instead of SYMLOOP_MAX.
20755
20756         * sysdeps/generic/eloop-threshold.h: New file.
20757         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
20758         of MAXSYMLINKS.
20759         * elf/chroot_canon.c (chroot_canon): Likewise.
20760
20761 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20762
20763         [BZ #13717]
20764         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20765         Change to 2.6.0 everywhere.
20766         * sysdeps/unix/sysv/linux/configure: Regenerated.
20767         * sysdeps/unix/sysv/linux/kernel-features.h
20768         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
20769         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
20770         kernel versions.
20771         (__ASSUME_POSIX_TIMERS): Define unconditionally.
20772         (__ASSUME_FUTEX_REQUEUE): Remove.
20773         (__ASSUME_STATFS64): Define unconditionally.
20774         (__ASSUME_AT_SECURE): Likewise.
20775         (__ASSUME_CORRECT_SI_PID): Likewise.
20776         (__ASSUME_TGKILL): Define without depending on kernel version for
20777         i386.
20778         (__ASSUME_UTIMES): Likewise.
20779         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
20780         kernel version.
20781         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
20782         (__ASSUME_TMPFS_NAME): Likewise.
20783         * README: Update reference to Linux kernel versions.
20784
20785 2012-08-02  Marek Polacek  <polacek@redhat.com>
20786
20787         [BZ# 14150]
20788         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
20789         libc_cv_asm_type_prefix with %.
20790         * configure: Regenerated.
20791         * include/libc-symbols.h: Remove comment about
20792         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20793         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
20794         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
20795         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
20796         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
20797         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20798         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
20799         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
20800         * elf/tst-unique2mod1.c: Likewise.
20801         * elf/tst-unique1mod2.c: Likewise.
20802         * elf/tst-unique1mod1.c: Likewise.
20803         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
20804         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
20805         Replace ASM_TYPE_DIRECTIVE with .type.
20806         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20807         * sysdeps/i386/sysdep.h: Likewise.
20808         * sysdeps/x86_64/sysdep.h: Likewise.
20809         * sysdeps/sh/sysdep.h: Likewise.
20810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20811         Do not define ASM_TYPE_DIRECTIVE.
20812         * sysdeps/powerpc/sysdep.h: Likewise.
20813         * sysdeps/powerpc/powerpc32/sysdep.h:
20814         Replace ASM_TYPE_DIRECTIVE with .type.
20815         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20816         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20817         * sysdeps/i386/fpu/e_powf.S: Likewise.
20818         * sysdeps/i386/fpu/e_expl.S: Likewise.
20819         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20820         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20821         * sysdeps/i386/fpu/e_pow.S: Likewise.
20822         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20823         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20824         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20825         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20826         * sysdeps/i386/fpu/e_log2.S: Likewise.
20827         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20828         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20829         * sysdeps/i386/fpu/e_powl.S: Likewise.
20830         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20831         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20832         * sysdeps/i386/fpu/e_logl.S: Likewise.
20833         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20834         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20835         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20836         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20837         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20838         * sysdeps/i386/fpu/e_log.S: Likewise.
20839         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20840         * sysdeps/i386/fpu/e_logf.S: Likewise.
20841         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20842         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20843         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20844         * sysdeps/i386/fpu/e_log10.S: Likewise.
20845         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20846         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20847         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20848         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20849         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20850         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20851         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20852         * sysdeps/i386/i686/strtok.S: Likewise.
20853         * sysdeps/i386/i386-mcount.S: Likewise.
20854         * sysdeps/i386/strtok.S: Likewise.
20855         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
20856         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20857         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20858         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20859         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20860         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20861         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20862         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20863         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20864         * sysdeps/x86_64/_mcount.S: Likewise.
20865         * sysdeps/x86_64/strtok.S: Likewise.
20866         * sysdeps/sh/_mcount.S: Likewise.
20867
20868 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20869
20870         * libio/iofopen.c: Include <fcntl.h>.
20871         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
20872         (_IO_fopen64, fopen64): Define as aliases.
20873         * libio/iofopen64.c: Include <fcntl.h>.
20874         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
20875         Conditionalize body on this.
20876         * sysdeps/wordsize-64/iofopen.c: File removed.
20877         * sysdeps/wordsize-64/iofopen64.c: File removed.
20878
20879 2012-08-01  Marek Polacek  <polacek@redhat.com>
20880
20881         * libc/Makeconfig: Use elf in place of binfmt-subdir.
20882         Use dlfcn directly instead of a variable.
20883         (binfmt-subdir): Do not define.
20884         (dlfcn): Likewise.
20885
20886 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
20887
20888         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
20889         Remove all definitions.
20890         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
20891         <kernel-features.h>.
20892         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20893         (miss_F_GETOWN_EX): Remove all definitions.
20894         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
20895         macro definition.
20896         [!__ASSUME_FCNTL64]: Remove conditional code.
20897         [__ASSUME_FCNTL64]: Make code unconditional.
20898         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
20899         <kernel-features.h>.
20900         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20901         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
20902         (lockf64) [__NR_fcntl64]: Make code unconditional.
20903         (lockf64) [__ASSUME_FCNTL64]: Likewise.
20904
20905         * sysdeps/unix/sysv/linux/kernel-features.h
20906         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
20907         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
20908         Make code unconditional.
20909         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20910         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
20912         [__NR_vfork]: Make code unconditional.
20913         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20914         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
20916         [__NR_vfork]: Make code unconditional.
20917         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20918         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20919
20920 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20921
20922         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
20923         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
20924
20925         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20926         Define mkstemp64 as an alias.
20927         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20928         Define mkstemps64 as an alias.
20929         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20930         Define mkostemp64 as an alias.
20931         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20932         Define mkostemps64 as an alias.
20933         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
20934         Conditionalize body on this.
20935         * misc/mkostemp64.c: Likewise.
20936         * misc/mkostemps64.c: Likewise.
20937         * misc/mkstemps64.c: Likewise.
20938         * sysdeps/wordsize-64/mkstemp64.c: File removed.
20939         * sysdeps/wordsize-64/mkostemp64.c: File removed.
20940         * sysdeps/wordsize-64/mkostemp.c: File removed.
20941         * sysdeps/wordsize-64/mkstemp.c: File removed.
20942         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
20943         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
20944         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
20945         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
20946
20947         [BZ #14138]
20948         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
20949         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
20950         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
20951         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
20952
20953         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
20954         compat_symbol macros from <shlib-compat.h> rather than the underlying
20955         default_symbol_version and symbol_version macros, so that DEFAULT
20956         lines in shlib-versions are respected.
20957         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
20958
20959 2012-08-01  Florian Weimer  <fweimer@redhat.com>
20960
20961         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
20962         Declare with warn_unused_result.
20963         (setgid, setregid, setegid, setresgid): Likewise.
20964         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
20965         Likewise.
20966         * WUR-REPORT: Remove set*id functions.
20967
20968 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
20969
20970         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
20971
20972 2012-07-31  Roland McGrath  <roland@hack.frob.com>
20973
20974         [BZ #10191]
20975         * include/sys/socket.h (__libc_accept, __libc_accept4):
20976         Add attribute_hidden.
20977         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
20978
20979         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
20980         use of PTR_MANGLE.
20981         * inet/getnetgrent_r.c (setup): Likewise.
20982
20983         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
20984
20985 2012-07-31  David S. Miller  <davem@davemloft.net>
20986
20987         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20988
20989 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
20990
20991         [BZ #13629]
20992         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
20993         value between 1.0 and 2.0 and smaller part has absolute value less
20994         than 1.0.
20995         * math/s_clog10.c (__clog10): Likewise.
20996         * math/s_clog10f.c (__clog10f): Likewise.
20997         * math/s_clog10l.c (__clog10l): Likewise.
20998         * math/s_clogf.c (__clogf): Likewise.
20999         * math/s_clogl.c (__clogl): Likewise.
21000         * math/libm-test.inc (clog_test): Add more tests.
21001         (clog10_test): Likewise.
21002         * sysdeps/i386/fpu/libm-test-ulps: Update.
21003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21004
21005 2012-07-31  Florian Weimer  <fweimer@redhat.com>
21006
21007         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
21008         Exit with zero in case no suitable GID is found, and write a
21009         message to standard error.
21010
21011 2012-07-30  Roland McGrath  <roland@hack.frob.com>
21012
21013         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
21014         rather than to 1.
21015         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
21016         (MAXPATHLEN): Removed.
21017         (NOGROUP, NODEV): New macros.
21018         (setbit, clrbit, isset, isclr): New macros.
21019         (howmany, roundup, powerof2): New macros.
21020         (DEV_BSIZE): New macro.
21021
21022         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
21023         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
21024
21025         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
21026         definition on [!__NO_LONG_DOUBLE_MATH].
21027
21028         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
21029         PTR_MANGLE and PTR_DEMANGLE.
21030
21031         * socket/accept4.c (accept4): Rename to __libc_accept4.
21032         Define accept4 as a weak alias.
21033
21034         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
21035         on [_DIRENT_HAVE_D_TYPE].
21036         * io/ftw.c (ftw_dir): Likewise.
21037
21038         * io/xmknod.c (__xmknod): Don't check PATH for being null.
21039
21040         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
21041
21042         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
21043         Use the BSD numbers rather than the arbitrary ones we had.
21044         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
21045         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
21046         (SIGXCPU, SIGXFSZ): New macros.
21047         (_NSIG): Now 32.
21048
21049         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
21050         initializer on [_LIBC_REENTRANT].
21051
21052         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
21053         definitions inside [_POSIX_MAPPED_FILES].
21054
21055         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
21056
21057         * dirent/opendir.c: Include <fcntl.h>.
21058
21059         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
21060         (__libc_getspecific): Likewise.
21061         (__libc_key_create): Likewise.
21062
21063         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
21064         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
21065         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
21066         (tmpfile64): Define as alias.
21067         * sysdeps/wordsize-64/tmpfile.c: File removed.
21068         * sysdeps/wordsize-64/tmpfile64.c: File removed.
21069         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
21070         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
21071
21072         * stdio-common/vfscanf.c: Include <stdbool.h>.
21073         * nss/makedb.c: Likewise.
21074         * stdio-common/_i18n_number.h: Likewise.
21075         * argp/argp-help.c: Likewise.
21076         * posix/wordexp.c: Likewise.
21077         * sysdeps/posix/spawni.c: Likewise.
21078         * nss/nss_files/files-initgroups.c: Likewise.
21079         * stdio-common/reg-modifier.c: Include <stdlib.h>.
21080         * nss/nss_files/files-initgroups.c: Likewise.
21081         * nss/nss_db/db-netgrp.c: Likewise.
21082         * nss/nss_db/db-initgroups.c: Likewise.
21083         * io/fchmodat.c: Include <sys/stat.h>.
21084
21085         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
21086         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
21087
21088         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
21089         [HAVE_MMAP].
21090
21091         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
21092         Add multiple inclusion protection.
21093
21094 2012-07-27  David S. Miller  <davem@davemloft.net>
21095
21096         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21097
21098 2012-07-27  Gary Benson  <gbenson@redhat.com>
21099
21100         [BZ #14298]
21101         * elf/rtld.c: Include <stap-probe.h>.
21102         (dl_main): Added static probes "init_start" and "init_complete".
21103         * elf/dl-load.c: Include <stap-probe.h>.
21104         (lose): Take new parameter "nsid".
21105         Added static probe "map_failed".
21106         (_dl_map_object_from_fd): Pass namespace id to lose.
21107         Added static probe "map_start".
21108         (open_verify): Pass namespace id to lose.
21109         * elf/dl-open.c: Include <stap-probe.h>.
21110         (dl_open_worker) Added static probes "map_complete", "reloc_start"
21111         and "reloc_complete".
21112         * elf/dl-close.c: Include <stap-probe.h>.
21113         (_dl_close_worker): Added static probes "unmap_start" and
21114         "unmap_complete".
21115         * elf/rtld-debugger-interface.txt: New file documenting the above.
21116
21117 2012-07-26  Roland McGrath  <roland@hack.frob.com>
21118
21119         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
21120         rather than a string variable.
21121         * sunrpc/rpc_main.c (h_output): Likewise.
21122         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
21123
21124 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
21125
21126         * inet/check_native.c: New file.
21127
21128 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
21129
21130         [BZ #13629]
21131         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
21132         if larger part has absolute value 1.0.
21133         * math/s_clog10.c (__clog10): Likewise.
21134         * math/s_clog10f.c (__clog10f): Likewise.
21135         * math/s_clog10l.c (__clog10l): Likewise.
21136         * math/s_clogf.c (__clogf): Likewise.
21137         * math/s_clogl.c (__clogl): Likewise.
21138         * math/libm-test.inc (clog_test): Add more tests.
21139         (clog10_test): Likewise.
21140         * sysdeps/i386/fpu/libm-test-ulps: Update.
21141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21142
21143         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
21144         (pltexit): Likewise.
21145         (La_regs): Likewise.
21146         (La_retval): Likewise.
21147         (int_retval): Likewise.
21148         Update #error for removed macros to refer only to definitions in
21149         tst-audit.h.
21150         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
21151         macro.
21152         (pltexit): Likewise.
21153         (La_regs): Likewise.
21154         (La_retval): Likewise.
21155         (int_retval): Likewise.
21156         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
21157         macro.
21158         (pltexit): Likewise.
21159         (La_regs): Likewise.
21160         (La_retval): Likewise.
21161         (int_retval): Likewise.
21162         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
21163         macro.
21164         (pltexit): Likewise.
21165         (La_regs): Likewise.
21166         (La_retval): Likewise.
21167         (int_retval): Likewise.
21168         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
21169         macro.
21170         (pltexit): Likewise.
21171         (La_regs): Likewise.
21172         (La_retval): Likewise.
21173         (int_retval): Likewise.
21174         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
21175         macro.
21176         (pltexit): Likewise.
21177         (La_regs): Likewise.
21178         (La_retval): Likewise.
21179         (int_retval): Likewise.
21180         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
21181         macro.
21182         (pltexit): Likewise.
21183         (La_regs): Likewise.
21184         (La_retval): Likewise.
21185         (int_retval): Likewise.
21186         * sysdeps/generic/tst-audit.h: Update comment to refer only to
21187         macro definitions in tst-audit.h.
21188         * sysdeps/i386/tst-audit.h: New file.
21189         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
21190         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
21191         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
21192         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
21193         * sysdeps/sh/tst-audit.h: Likewise.
21194         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
21195         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
21196         * sysdeps/x86_64/tst-audit.h: Likewise.
21197
21198 2012-07-26  Andreas Jaeger  <aj@suse.de>
21199
21200         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
21201         ptrace.
21202
21203         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
21204         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
21205         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
21206         PTRACE_O_MASK.
21207         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
21208         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
21209         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
21210
21211         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
21212         value.
21213
21214         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
21215         _sigsys.
21216         (si_call_addr, si_syscall, si_arch): Define new macro.
21217         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
21218         _sigsys.
21219         (si_call_addr, si_syscall, si_arch): Define new marcro.
21220         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
21221         _sigsys.
21222         (si_call_addr, si_syscall, si_arch): Define new macro.
21223         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
21224         _sigsys.
21225         (si_call_addr, si_syscall, si_arch): Define new macro.
21226
21227 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21228
21229         [BZ #13717]
21230         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21231         Change to 2.4.21 where previously 2.4.1.
21232         * sysdeps/unix/sysv/linux/configure: Regenerated.
21233         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
21234         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
21235         Linux kernel version.
21236         (__ASSUME_STD_AUXV): Remove.
21237         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
21238         kernel version.
21239         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
21240         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
21241         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
21242         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
21243         (__ASSUME_NETLINK_SUPPORT): Likewise.
21244         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
21245         (__no_netlink_support): Remove conditional definition.
21246         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
21247         Remove.
21248         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21249         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
21250         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
21251         (if_nameindex_ioctl): Remove.
21252         (if_nameindex_netlink): Do not handle __no_netlink_support.
21253         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21254         code.
21255         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
21256         Remove conditional code.
21257         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21258         code.
21259         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
21260         unconditional.
21261         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21262         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
21263         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
21264         Remove.
21265         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
21266         [!__ASSUME_STD_AUXV]: Remove conditional code.
21267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
21268         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
21269         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
21270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
21271         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
21272         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21273         code.
21274         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
21276         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
21277         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21278         conditional code.
21279         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
21281         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21282         code.
21283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
21284         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21285         conditional code.
21286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
21287         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21288         code unconditional.
21289         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21290         conditional code.
21291         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21292         unconditional.
21293         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21294         conditional code.
21295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21296         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21297         unconditional.
21298         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21299         conditional code.
21300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
21301         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21302         code unconditional.
21303         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21304         conditional code.
21305         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21306         unconditional.
21307         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21308         conditional code.
21309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
21310         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21311         code unconditional.
21312         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21313         conditional code.
21314         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21315         unconditional.
21316         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21317         conditional code.
21318
21319 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
21320
21321         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
21322         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
21323         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
21324         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
21325         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
21326         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
21327         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
21328         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
21329         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
21330         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21331         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
21332         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
21333         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
21334         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
21335         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
21336         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
21337         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
21338         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
21339         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
21340         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
21341         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
21342         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
21343         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
21344
21345 2012-07-25  Florian Weimer  <fweimer@redhat.com>
21346
21347         * Versions.def: Add GLIBC_2.17.
21348         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
21349         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
21350         Introduce __libc_secure_getenv.
21351         * stdlib/Versions (2.17): Add secure_getenv
21352         (GLIBC_PRIVATE): Add __libc_secure_getenv.
21353         * stdlib/secure-getenv.c: Rename __secure_getenv to
21354         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
21355         symbol __secure_getenv for GLIBC_2.0.
21356         * stdlib/tst-secure-getenv.c: New.
21357         * stdlib/Makefile (tests): Add testcase.
21358         * manual/startup.texi (Environment Access): Document
21359         secure_getenv.
21360         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
21361         __libc_secure_getenv.
21362         * inet/ruserpass.c (ruserpass): Likewise.
21363         * malloc/mtrace.c (mtrace): Likewise.
21364         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
21365         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
21366         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
21367         * sysdeps/posix/tempname.c: Likewise.  Evaluate
21368         HAVE_SECURE_GETENV.
21369         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
21370         __secure_getenv to __libc_secure_getenv.
21371         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
21372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21373         Likewise.
21374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21375         Likewise.
21376         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
21377         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
21378         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21379         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
21380         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
21381         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21382         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
21383
21384 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21385
21386         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
21387         (struct La_i86_retval): Likewise.
21388         (struct La_x86_64_regs): Likewise.
21389         (struct La_x86_64_retval): Likewise.
21390         (struct La_x32_regs): Likewise.
21391         (struct La_x32_retval): Likewise.
21392         (struct La_ppc32_regs): Likewise.
21393         (struct La_ppc32_retval): Likewise.
21394         (struct La_ppc64_regs): Likewise.
21395         (struct La_ppc64_retval): Likewise.
21396         (struct La_sh_regs): Likewise.
21397         (struct La_sh_retval): Likewise.
21398         (struct La_s390_32_regs): Likewise.
21399         (struct La_s390_32_retval): Likewise.
21400         (struct La_s390_64_regs): Likewise.
21401         (struct La_s390_64_retval): Likewise.
21402         (struct La_sparc32_regs): Likewise.
21403         (struct La_sparc32_retval): Likewise.
21404         (struct La_sparc64_regs): Likewise.
21405         (struct La_sparc64_retval): Likewise.
21406         (struct audit_ifaces): Remove architecture-specific pltenter and
21407         pltexit members.
21408         * sysdeps/i386/ldsodefs.h: New file.
21409         * sysdeps/powerpc/ldsodefs.h: Likewise.
21410         * sysdeps/s390/ldsodefs.h: Likewise.
21411         * sysdeps/sh/ldsodefs.h: Likewise.
21412         * sysdeps/sparc/ldsodefs.h: Likewise.
21413         * sysdeps/x86_64/ldsodefs.h: Likewise.
21414
21415 2012-07-25  Marek Polacek  <polacek@redhat.com>
21416
21417         [BZ #6808]
21418         * math/libm-test.inc (yn_test): Add another test.
21419         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
21420         to ERANGE when the result is +-Inf.
21421         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
21422         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21423         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
21424         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
21425
21426 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
21427
21428         * conform/data/time.h-data (NULL): Use macro-constant.  Require
21429         equal to 0.
21430         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
21431         clock_t.
21432         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
21433
21434 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
21435
21436         * configure.in <sysdeps resolving>: Correct printing
21437         Implies_before.
21438         * configure: Regenerate.
21439
21440 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
21441
21442         * math/w_ilogb.c: Include <limits.h>.
21443         * math/w_ilogbl.c: Likewise.
21444
21445 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21446
21447         * manual/lang.texi (__va_copy): Document primarily as ISO C99
21448         va_copy.  Document allowing for unavailable va_copy only as
21449         pre-C99 compatibility.
21450         * manual/string.texi (Copying and Concatenation): Use va_copy
21451         instead of __va_copy in concat example.
21452
21453 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
21454
21455         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
21456         (__sendto): Use create_address_port.  Initialize APORT and deallocate
21457         it if not null.
21458
21459         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
21460         with O_NOLINK passed to __file_name_lookup.
21461
21462         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
21463         with O_NOLINK passed to __file_name_lookup.
21464
21465         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
21466         negative N or less than NGIDS.
21467
21468         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
21469         type to string_t.  Set ERANGE as errno and return it if NAME is not big
21470         enough.  Use memcpy instead of strncpy.
21471
21472 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21473
21474         * elf/Makefile (check-data): Remove.
21475         (localplt.data): New vpath directive.
21476         ($(objpfx)check-localplt.out): Use localplt.data from vpath
21477         instead of $(check-data).
21478         * scripts/data/localplt-generic.data: Move to ...
21479         * sysdeps/generic/localplt.data: ... here.
21480         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
21481         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
21482         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
21483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
21484         ... here.
21485         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
21486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
21487         ... here.
21488         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
21489         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
21490         ... here.
21491         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
21492         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
21493         ... here.
21494         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
21495         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
21496         ... here.
21497         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
21498         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
21499         ... here.
21500
21501 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21502
21503         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
21504         PPC32 and PPC64 files.
21505         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
21506         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
21507
21508 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21509
21510         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
21511         __makecontext_ret to ...
21512         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21513         ... here and call exit if uc_link is NULL.  New file.
21514         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
21515         __makecontext_ret.S.
21516         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
21517         __makecontext_ret to ...
21518         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21519         ... here and call exit if uc_link is NULL.  New file.
21520         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
21521         __makecontext_ret.S.
21522
21523 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21524
21525         * elf/elf.h (R_390_IRELATIVE): New definition.
21526         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
21527         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
21528         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
21529         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
21530         (elf_machine_lazy_rel): Likewise.
21531         * sysdeps/s390/dl-irel.h: New file.
21532         * sysdeps/s390/s390-64/memcpy.S: New asm code.
21533         * sysdeps/s390/s390-64/memset.S: New asm code.
21534         * sysdeps/s390/s390-64/memcmp.S: New asm code.
21535         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
21536         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
21537         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
21538         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
21539         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
21540         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
21541         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
21542         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
21543         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
21544         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
21545         * sysdeps/s390/s390-32/memcpy.S: New asm code.
21546         * sysdeps/s390/s390-32/memset.S: New asm code.
21547         * sysdeps/s390/s390-32/memcmp.S: New asm code.
21548
21549 2012-07-17  Marek Polacek  <polacek@redhat.com>
21550
21551         [BZ #14349]
21552         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
21553         * sysdeps/s390/s390-64/configure.in: Likewise.
21554         * sysdeps/sparc/configure.in: Likewise.
21555         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
21556         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
21557         * sysdeps/i386/configure.in: Likewise.
21558         * sysdeps/x86_64/configure.in: Likewise.
21559         * sysdeps/sh/configure.in: Likewise.
21560         * sysdeps/s390/s390-32/configure: Regenerated.
21561         * sysdeps/s390/s390-64/configure: Likewise.
21562         * sysdeps/x86_64/configure: Likewise.
21563         * sysdeps/sh/configure: Likewise.
21564         * sysdeps/powerpc/powerpc64/configure: Likewise.
21565         * sysdeps/powerpc/powerpc32/configure: Likewise.
21566         * sysdeps/sparc/configure: Likwise.
21567         * sysdeps/i386/configure: Likewise.
21568
21569         * elf/dl-open.c: Comment fixes.
21570
21571 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
21572
21573         * Makefile [CXX] (check-data): Remove.
21574         [CXX] (c++-types.data): New vpath directive.
21575         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
21576         vpath.  Do not allow for C++ type data being missing.
21577         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
21578         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
21579         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
21580         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
21581         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
21582         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
21583         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
21584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
21585         ... here.
21586         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
21587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
21588         ... here.
21589         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
21590         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
21591         ... here.
21592         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
21593         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
21594         ... here.
21595         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
21596         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
21597         ... here.
21598         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
21599         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
21600         ... here.
21601         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
21602         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
21603         ... here.
21604         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
21605         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
21606
21607         * elf/tls-macros.h (TLS_LE): Move architecture-specific
21608         definitions to architecture-specific files.
21609         (TLS_IE): Likewise.
21610         (TLS_LD): Likewise.
21611         (TLS_GD): Likewise.
21612         * sysdeps/i386/tls-macros.h: New file.
21613         * sysdeps/powerpc/tls-macros.h: Likewise.
21614         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21615         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21616         * sysdeps/sh/tls-macros.h: Likewise.
21617         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
21618         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
21619         * sysdeps/x86_64/tls-macros.h: Likewise.
21620
21621 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21622
21623         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
21624         zero value for regular exit case.
21625
21626         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21627         (__start_context): Preserve zero value for regular exit case.
21628
21629 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21630             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21631
21632         * manual/setjmp.texi (setcontext): Clarify normal process
21633         termination when uc_link is the null pointer.
21634         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
21635         exit call.
21636
21637 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
21638
21639         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
21640         preprocessor.  Test for each exception mask separately.
21641
21642 2012-07-16  Andreas Jaeger  <aj@suse.de>
21643
21644         * po/ru.po: Update from translation team.
21645
21646 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
21647
21648         * conform/data/string.h-data (NULL): Use macro-constant.  Require
21649         equal to 0.
21650         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21651         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21652         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
21653         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
21654         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21655
21656 2012-07-13  Andreas Jaeger  <aj@suse.de>
21657
21658         * po/fr.po: Update from translation team.
21659
21660 2012-07-12  Marek Polacek  <polacek@redhat.com>
21661
21662         [BZ #14173]
21663         * math/libm-test.inc (yn_test): Add test for BZ #14173.
21664         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
21665         loop condition.
21666
21667 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
21668
21669         [BZ #13717]
21670         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21671         Change to 2.4.1 where previously 2.4.0.
21672         * sysdeps/unix/sysv/linux/configure: Regenerated.
21673         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
21674         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
21675         version.
21676         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
21677         (__ASSUME_AT_CLKTCK): Remove.
21678         (__ASSUME_AT_PAGESIZE): Likewise.
21679         (__ASSUME_AT_XID): Likewise.
21680         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
21681         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
21682         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
21683         unconditionally.
21684         (HAVE_AUX_PAGESIZE): Likewise.
21685         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
21686         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21687         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
21688
21689 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
21690
21691         [BZ #14307]
21692         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
21693         the temporary buffer used to invoke __gethostbyname2_r,
21694         __gethostbyaddr_r and gethostbyname4_r to make room for struct
21695         host_data / struct gaih_addrtuple.
21696         * resolv/nss_dns/dns-host.c (global scope): Move definition of
21697         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
21698         header file nss/nsswitch.h.
21699         * nss/nsswitch.h (global scope): Add definition of implementation
21700         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
21701         resolv/nss_dns/dns-host.c).
21702
21703 2012-07-11  Andreas Jaeger  <aj@suse.de>
21704
21705         * po/fr.po: Update from translation team.
21706
21707         * po/sv.po: Update from translation team
21708         * po/fr.po: Another update from translation team.
21709
21710 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21711
21712         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
21713         for subnormals or multiply small sinh result by itself.
21714         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21715         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21716
21717 2012-07-11  David S. Miller  <davem@davemloft.net>
21718
21719         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21720
21721 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
21722
21723         [BZ #14347]
21724         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
21725         (INTERNAL_MARK): Shift it here.
21726
21727 2012-07-10  Marek Polacek  <polacek@redhat.com>
21728
21729         [BZ #14151]
21730         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
21731         libc_cv_asm_global_directive with .globl.
21732         * configure: Regenerated.
21733         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
21734         with .globl.
21735         * sysdeps/i386/configure: Regenerated.
21736         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
21737         with .globl.
21738         * sysdeps/x86_64/configure: Regenerated.
21739         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
21740         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
21741         * elf/tst-unique2mod2.c: Likewise.
21742         * elf/tst-unique2mod1.c: Likewise.
21743         * elf/tst-unique1mod2.c: Likewise.
21744         * elf/tst-unique1mod1.c: Likewise.
21745         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21746         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21747         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21748         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21749         * sysdeps/mach/sysdep.h: Likewise.
21750         * sysdeps/i386/sysdep.h: Likewise.
21751         * sysdeps/i386/i386-mcount.S: Likewise.
21752         * sysdeps/x86_64/_mcount.S: Likewise.
21753         * sysdeps/x86_64/sysdep.h: Likewise.
21754         * sysdeps/sh/_mcount.S: Likewise.
21755         * sysdeps/sh/sysdep.h: Likewise.
21756         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
21757         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
21758         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
21759         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21760         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
21761         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
21762         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
21763         * locale/localeinfo.h: Likewise.
21764         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
21765         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
21766
21767 2012-07-09  Roland McGrath  <roland@hack.frob.com>
21768
21769         [BZ #14336]
21770         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
21771         system".
21772         * manual/message.texi (The Uniforum approach): Likewise.
21773         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
21774         (glibc iconv Implementation): Likewise.
21775
21776 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
21777
21778         [BZ #14337]
21779         * math/s_clog.c (__clog): Avoid scaling a value down where that
21780         could result in underflow.
21781         * math/s_clog10.c (__clog10): Likewise.
21782         * math/s_clog10f.c (__clog10f): Likewise.
21783         * math/s_clog10l.c (__clog10l): Likewise.
21784         * math/s_clogf.c (__clogf): Likewise.
21785         * math/s_clogl.c (__clogl): Likewise.
21786         * math/libm-test.inc (clog_test): Add more tests.
21787         (clog10_test): Likewise.
21788         * sysdeps/i386/fpu/libm-test-ulps: Update.
21789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21790
21791 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
21792
21793         [BZ #14283]
21794         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
21795         by 7 not 8 to examine high bit of fractional part.
21796
21797         [BZ #14042]
21798         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
21799         for call to __mcount_internal.
21800         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
21801         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
21802         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
21803
21804 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
21805
21806         [BZ #14154]
21807         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
21808         approximation for values within 0x1p-13f of an odd multiple of
21809         pi/4.
21810         * math/libm-test.inc (tan_test): Do not allow spurious underflow
21811         exception.  Add more tests.
21812         * sysdeps/i386/fpu/libm-test-ulps: Update.
21813
21814         [BZ #6778]
21815         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
21816         inputs and return -1 for them.  Do not check for +Inf in case not
21817         reachable for +Inf.
21818         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
21819         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
21820         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21821         and return -1 for them.  Do not check for +Inf in case not
21822         reachable for +Inf.
21823         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
21824         define.
21825         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21826         and return -1 for them.  Do not check for +Inf in case not
21827         reachable for +Inf.
21828         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
21829         spurious underflow.
21830         * sysdeps/i386/fpu/libm-test-ulps: Update.
21831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21832
21833 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
21834
21835         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
21836
21837 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
21838
21839         [BZ #14157]
21840         [BZ #14331]
21841         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
21842         could result in spurious underflow.  Scale down values above
21843         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
21844         * math/s_csqrtf.c (__csqrtf): Likewise.
21845         * math/s_csqrtl.c (__csqrtl): Likewise.
21846         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
21847         spurious underflow.
21848         * sysdeps/i386/fpu/libm-test-ulps: Update.
21849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21850
21851 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
21852
21853         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
21854         xopen-msg.sed.
21855         * catgets/xopen-msg.awk: New file.
21856         * catgets/xopen-msg.sed: Removed.
21857
21858         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
21859         po2text.sed.
21860         * intl/po2test.awk: New file.
21861         * intl/po2test.sed: Removed.
21862
21863 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
21864
21865         [BZ #14328]
21866         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
21867         or multiply small sinh result by itself.
21868         * math/s_ctanf.c (__ctanf): Likewise.
21869         * math/s_ctanh.c (__ctanh): Likewise.
21870         * math/s_ctanhf.c (__ctanhf): Likewise.
21871         * math/s_ctanhl.c (__ctanhl): Likewise.
21872         * math/s_ctanl.c (__ctanl): Likewise.
21873         * math/libm-test.inc (ctan_test_tonearest): New function.
21874         (ctan_test_towardzero): Likewise.
21875         (ctan_test_downward): Likewise.
21876         (ctan_test_upward): Likewise.
21877         (ctanh_test_tonearest): Likewise.
21878         (ctanh_test_towardzero): Likewise.
21879         (ctanh_test_downward): Likewise.
21880         (ctanh_test_upward): Likewise.
21881         (main): Call these new functions.
21882         * sysdeps/i386/fpu/libm-test-ulps: Update.
21883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21884
21885 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
21886
21887         * .gitignore: Delete /ports entry.
21888
21889 2012-07-03  Andreas Jaeger  <aj@suse.de>
21890
21891         * po/bg.po: Update from translation team.
21892         * po/cs.po: Likewise.
21893         * po/de.po: Likewise.
21894         * po/hr.po: Likewise.
21895         * po/nl.pl: Likewise.
21896         * po/pl.po: Likewise.
21897         * po/vi.po: Likewise.
21898
21899 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
21900
21901         * Makeconfig [!+link] (+link-before-libc): New variable.
21902         [!+link] (+link-after-libc): Likewise.
21903         [!+link] (+link-tests): Likewise.
21904         [!+link] (+link): Define in terms of $(+link-before-libc) and
21905         $(+link-after-libc).
21906         [!+link-static] (+link-static-before-libc): New variable.
21907         [!+link-static] (+link-static-after-libc): Likewise.
21908         [!+link-static] (+link-static-tests): Likewise.
21909         [!+link-static] (+link-static): Define in terms of
21910         $(+link-static-before-libc) and $(+link-static-after-libc).
21911         [build-shared] (link-libc-before-gnulib): New variable.
21912         [build-shared] (link-libc-tests): Likewise.
21913         [build-shared] (link-libc): Define in terms of
21914         $(link-libc-before-gnulib).
21915         [!build-shared] (link-libc-tests): New variable.
21916         (link-libc-static-tests): New variable.
21917         [!gnulib] (gnulib-arch): New variable.
21918         [!gnulib] (gnulib-tests): Likewise.
21919         [!gnulib] (static-gnulib-arch): Likewise.
21920         [!gnulib] (static-gnulib-tests): Likewise.
21921         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
21922         Define with "=" instead of ":=".
21923         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
21924         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
21925         * Rules (binaries-all-notests): New variable.
21926         (binaries-all-tests): Likewise.
21927         (binaries-static-notests): Likewise.
21928         (binaries-static-tests): Likewise.
21929         (binaries-all): Define using $(binaries-all-notests) and
21930         $(binaries-all-tests).
21931         (binaries-static): Define using $(binaries-static-notests) and
21932         $(binaries-static-tests).
21933         (binaries-shared-tests): New variable.
21934         (binaries-shared-notests): Likewise.
21935         (binaries-shared): Remove variable.
21936         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
21937         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
21938         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
21939         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
21940         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
21941         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
21942         * elf/Makefile (sln-modules): New variable.
21943         (extra-objs): Add $(sln-modules:=.o).
21944         (ldconfig-modules): Add static-stubs.
21945         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
21946         * elf/static-stubs.c: New file.
21947
21948         [BZ #14283]
21949         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
21950         by 7 not 8 to examine high bit of fractional part.  Use volatile
21951         variables when splitting into final array of floats if
21952         __FLT_EVAL_METHOD__ != 0.
21953         * math/libm-test.inc (cos_test): Add another test.
21954         (sin_test): Likewise.
21955         * sysdeps/i386/fpu/libm-test-ulps: Update.
21956
21957         [BZ #14273]
21958         * math/libm-test.inc (cosh_test): Add more tests.
21959
21960         * version.h (RELEASE): Set to "development".
21961         (VERSION): Set to "2.16.90".
21962
21963 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
21964
21965         * NEWS: Update copyright. Remove last-updated date.
21966         Mention math library bug fixes and timezone data changes.
21967         * README: Mention GNU/Hurd, x32, and HPPA support status.
21968
21969 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
21970
21971         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
21972
21973 2012-06-27  Andreas Jaeger  <aj@suse.de>
21974
21975         * manual/contrib.texi (Contributors): Add Samuel Thibault.
21976
21977 2012-06-25  Andreas Jaeger  <aj@suse.de>
21978
21979         * sysdeps/s390/fpu/libm-test-ulps: Update.
21980
21981 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
21982             Thomas Schwinge  <thomas@codesourcery.com>
21983
21984         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
21985         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
21986         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
21987         fanotify_mark.
21988
21989 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
21990
21991         * sysdeps/mach/start.c: Remove file.
21992         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
21993         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
21994         * sysdeps/sh/init-first.c: Likewise.
21995
21996         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
21997         registers for frame unwinding purposes, add CFI directives.
21998         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
21999         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
22000         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
22001         Likewise.
22002
22003         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
22004         __fortify_fail returning.
22005         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22006
22007         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
22008         sysdeps/sh/____longjmp_chk.S.
22009         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
22010         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
22011         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
22012         (gen-as-const-headers): Append sigaltstack-offsets.sym.
22013
22014         * sysdeps/sh/abort-instr.h: New file.
22015         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
22016         process in case exit returns.
22017
22018         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
22019         initialize the GOT register before use.
22020
22021         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
22022         calculation of ARGC > 4.
22023
22024         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
22025         meaningful names to some local labels.
22026
22027 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22028             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22029
22030         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
22031         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
22032         (__arch_compare_and_exchange_val_16_acq): Likewise.
22033         (__arch_compare_and_exchange_val_32_acq): Likewise.
22034         (atomic_exchange_and_add): Fix gUSA sequence.
22035         (atomic_add): Likewise.
22036         (atomic_add_negative): Likewise.
22037         (atomic_add_zero): Likewise.
22038         (atomic_bit_test_set): Likewise.
22039
22040 2012-06-22  Andreas Schwab  <schwab@redhat.com>
22041
22042         [BZ #13579]
22043         * include/link.h (struct link_map): Add l_free_initfini.
22044         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
22045         l_initfini.
22046         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
22047         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
22048         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
22049         set.
22050
22051 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
22052
22053         * configure.in: Use AC_LANG_SOURCE.
22054         * configure: Regenerate.
22055
22056 2012-06-22  Roland McGrath  <roland@hack.frob.com>
22057
22058         * configure.in (libc_cv_localstatedir): New substituted variable.
22059         * configure: Regenerated.
22060         * config.make.in (localstatedir): New variable, substituted from
22061         libc_cv_localstatedir.
22062         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
22063         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
22064         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
22065         * sysdeps/gnu/configure: Regenerated.
22066
22067 2012-06-21  Jeff Law  <law@redhat.com>
22068
22069         [BZ #14277]
22070         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
22071         free.  Simplify list management for _LIBC case.
22072
22073 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
22074
22075         [BZ #14273]
22076         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22077         Clear sign bit of 64-bit integer value before comparing against
22078         overflow value.
22079
22080         * sysdeps/mach/configure: Regenerated.
22081
22082 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
22083
22084         [BZ #14278]
22085         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
22086
22087 2012-06-21  Jeff Law  <law@redhat.com>
22088
22089         [BZ #13882]
22090         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
22091         uint16_t for elements in the "seen" array to avoid char overflows.
22092         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22093         * elf/dl-open.c (dl_open_worker): Likewise.
22094
22095 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
22096
22097         * scripts/list-sources.sh: Scan PORTS for translations.
22098         * po/libc.pot: Regenerated.
22099
22100 2012-06-21  Andreas Jaeger  <aj@suse.de>
22101
22102         [BZ #12194]
22103         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
22104         warning.
22105         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
22106         * bits/byteswap-16.h (__bswap_16): Likewise.
22107         * bits/byteswap.h (__bswap_constant_16): Likewise.
22108
22109 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22110
22111         [BZ #14117]
22112         * sysdeps/i386/fpu_control.h: Removed.
22113         * sysdeps/x86_64/fpu_control.h: Moved to ...
22114         * sysdeps/x86/fpu_control.h: Here.
22115
22116         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
22117         (_FPU_SETCW): Likewise.
22118
22119 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
22120
22121         [BZ #14117]
22122         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
22123         * sysdeps/x86/fpu/bits/mathinline.h: This.
22124         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
22125
22126         [BZ #14050]
22127         [BZ #14117]
22128         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
22129         functions if __x86_64__ is defined.
22130
22131 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
22132
22133         * string/endian.h: Add !__ASSEMBLER__ condition for including
22134         conversion interfaces.
22135
22136 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
22137
22138         [BZ #14241]
22139         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
22140         of ABS(x) in calculating zero to negative powers other than odd
22141         integers.
22142         * math/libm-test.inc (pow_test): Add more tests.
22143
22144 2012-06-15  Andreas Jaeger  <aj@suse.de>
22145
22146         * manual/contrib.texi (Contributors): Update entry of Liubov
22147         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
22148         Machado Filho.
22149
22150 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
22151
22152         * string/string.h: Add __wur to GNU version of strerror_r.
22153
22154 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
22155
22156         [BZ #14229]
22157         * string/Makefile (tests): Add tst-strtok_r.
22158         * string/tst-strtok_r.c: New file.
22159         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
22160         RAX_LP/RDX_LP on SAVE_PTR.
22161
22162 2012-06-14  Roland McGrath  <roland@hack.frob.com>
22163
22164         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
22165
22166 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
22167
22168         * libm_test.inc (csqrt_test): Allow more spurious underflow
22169         exceptions.
22170         (j0_test): Likewise.
22171         (j1_test): Likewise.
22172         (y0_test): Likewise.
22173         (y1_test): Likewise.
22174
22175 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
22176
22177         * po/Makefile (libc.pot): Use UTF-8 charset.
22178
22179 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
22180
22181         [BZ #14210]
22182         Suppress sign-conversion warning from FD_SET.
22183         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
22184         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
22185         not unsigned long int.
22186         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
22187
22188 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
22189
22190         [BZ #14050]
22191         [BZ #14117]
22192         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
22193         __extern_always_inline instead of __extern_inline.
22194         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
22195         (__signbit): Likewise.
22196         (__signbitl): Support C++ namespace.
22197         (lrintf): New inline function.
22198         (lrint): Likewise.
22199         (llrintf): Likewise.
22200         (llrint): Likewise.
22201         (fmaxf): Likewise.
22202         (fmax): Likewise.
22203         (fminf): Likewise.
22204         (fmin): Likewise.
22205         (rint): Likewise.
22206         (rintf): Likewise.
22207         (ceil): Likewise.
22208         (ceilf): Likewise.
22209         (floor): Likewise.
22210         (floorf): Likewise.
22211         (nearbyint): Likewise.
22212         (nearbyintf): Likewise.
22213
22214 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
22215
22216         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
22217         non-default versions.
22218
22219 2012-06-11  Roland McGrath  <roland@hack.frob.com>
22220
22221         [BZ #14218]
22222         * manual/argp.texi (Argp): Reword argp_parse description slightly.
22223
22224 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
22225
22226         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
22227         (FE_UPWARD, FE_DOWNWARD): Don't define.
22228         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
22229         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22230
22231         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
22232         reading it.
22233         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22234         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22235
22236 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22237
22238         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22239         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
22240         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
22241         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
22242
22243 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
22244
22245         [BZ #14117]
22246         * sysdeps/i386/fpu/bits/fenv.h: Removed.
22247         * sysdeps/i386/fpu/Implies: New file.
22248         * sysdeps/x86_64/fpu/Implies: Likewise.
22249         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
22250         * sysdeps/x86/fpu/bits/fenv.h: This.
22251
22252         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
22253         __SSE_MATH__.
22254
22255 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
22256
22257         [BZ #14134]
22258         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
22259         character 0xffff that matches the last element of the
22260         conversion table.
22261
22262 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22263
22264         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
22265         fmodl commit.
22266
22267 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22268
22269         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
22270         values higher than 25.6283.
22271
22272 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22273
22274         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
22275         subnormal exponent extraction and add some __builtin_expect.
22276         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
22277         Fix for subnormal mantissa calculation.
22278
22279 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
22280
22281         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
22282         cpu2 is -1 and errno is not ENOSYS.
22283
22284 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22285
22286         [BZ #14117]
22287         * sysdeps/i386/i486/bits/string.h: Renamed to ...
22288         * sysdeps/x86/bits/string.h: This.
22289         * sysdeps/x86_64/bits/string.h: Removed.
22290
22291         * sysdeps/i386/i486/bits/string.h: Define inline functions only
22292         if not compiling for x86-64, but compiling for >= i486.
22293
22294         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
22295         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
22296
22297         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
22298         New macro from Linux kernel 3.4.0.
22299         (FP_XSTATE_MAGIC2): Likewise.
22300         (FP_XSTATE_MAGIC2_SIZE): Likewise.
22301         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
22302         (struct _fpx_sw_bytes): New struct.
22303         (struct _xsave_hdr): Likewise.
22304         (struct _ymmh_state): Likewise.
22305         (struct _xstate): Likewise.
22306
22307         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
22308         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
22309         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
22310         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
22311         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
22312         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
22313
22314         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
22315         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
22316         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
22317         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
22318         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
22319         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
22320
22321 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22322
22323         [BZ #13743]
22324         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
22325         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
22326         (sysdep_headers): Include sys/platform/ppc.h.
22327         * sysdeps/powerpc/test-gettimebase.c: Test for
22328         __ppc_get_timebase() to catch future ISA opcode/insn changes.
22329         * manual/Makefile (appendices): Include platform.texi.
22330         * manual/contrib.texi (Contributors): Update @node pointers.
22331         * manual/maint.texi (Maintenance): Likewise.
22332         (Platform): New node.
22333         * manual/platform.texi: New file.  Document the new features.
22334
22335 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22336             Jakub Jelinek  <jakub@redhat.com>
22337
22338         [BZ #14188]
22339         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
22340         where __builtin_expect is unavailable.
22341
22342 2012-06-03  David S. Miller  <davem@davemloft.net>
22343
22344         * stdlib/longlong.h: Updated from GCC.
22345
22346 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
22347
22348         [BZ #14042]
22349         * sysdeps/powerpc/powerpc32/mcount.c: New file.
22350         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
22351         __mcount_internal.
22352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
22353         (GLIBC_2.16): Likewise.
22354
22355 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22356
22357         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
22358
22359 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22360
22361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
22362         (default-abi): New variable.
22363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
22364         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
22365         variable.
22366         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
22367         Likewise.
22368         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
22369         Likewise.
22370         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
22371         Likewise.
22372
22373         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
22374         definition.  Document in comment.
22375
22376 2012-06-01  David S. Miller  <davem@davemloft.net>
22377
22378         * stdlib/longlong.h: Updated from GCC.
22379
22380 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22381
22382         [BZ #14117]
22383         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
22384         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
22385         sys/debugreg.h sys/io.h here.
22386         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
22387         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
22388         sys/io.h.
22389         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
22390         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
22391         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
22392         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
22393         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
22394         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
22395
22396         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
22397         Define only if __x86_64__ is defined.
22398
22399 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22400
22401         [BZ #14048]
22402         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
22403         Use int64_t for variable i.
22404         * math/libm-test.inc (fmod_test): Add more tests.
22405
22406         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
22407         z computation is not scheduled after fetestexcept.
22408         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
22409         Use math_force_eval instead of asm to ensure calculation scheduled
22410         before exception test.
22411         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
22412         Ensure a1 + u.d computation is not scheduled after fetestexcept.
22413
22414 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
22415
22416         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
22417         computation is not scheduled after fetestexcept.
22418
22419 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22420
22421         [BZ #14117]
22422         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
22423         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
22424
22425 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22426
22427         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
22428         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
22429
22430 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22431
22432         [BZ #14117]
22433         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
22434         <bits/wordsize.h>.
22435         (__WCHAR_MIN): Support __WORDSIZE == 64.
22436         (__WCHAR_MAX): Likewise.
22437
22438         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
22439         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
22440
22441         [BZ #14183]
22442         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
22443         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
22444
22445         [BZ #14117]
22446         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
22447         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
22448
22449         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
22450         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
22451
22452         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
22453         Defined to 1 if __x86_64__ isn't defined.
22454         (_STAT_VER_LINUX_OLD): New.
22455         (st_atime): Remove duplicate.
22456         (st_mtime): Likewise.
22457         (st_ctime): Likewise.
22458
22459 2012-05-31  David S. Miller  <davem@davemloft.net>
22460
22461         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
22462         entries.
22463
22464 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
22465
22466         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
22467         gen-libm-test.pl.
22468
22469         [BZ #14132]
22470         * elf/dl-reloc.c: Include <_itoa.h>.
22471         (_dl_reloc_bad_type): Remove use of INTUSE.
22472         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
22473         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
22474         * stdio-common/psiginfo.c (psiginfo): Likewise.
22475         * stdio-common/psignal.c (psignal): Likewise.
22476         * string/strsignal.c (strsignal): Likewise.
22477         * include/signal.h (_sys_siglist): Declare hidden proto.
22478         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
22479         INTVARDEF with libc_hidden_data_def.
22480         * stdio-common/itoa-udigits.c: Likewise.
22481         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
22482         (_itoa_lower_digits_internal): Remove declaration.
22483         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
22484         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
22485         (_sys_sigabbrev_internal): Remove aliases.
22486         (_sys_siglist): Define hidden alias.
22487
22488 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
22489
22490         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22491         bits/sysctl.h.
22492
22493 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22494
22495         [BZ #14117]
22496         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
22497         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
22498
22499         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
22500         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
22501         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
22502         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
22503         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
22504         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
22505
22506         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
22507         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
22508         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
22509
22510         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
22511         with __addr.
22512         (insw): Likewise.
22513         (insl): Likewise.
22514         (outsb): Likewise.
22515         (outsw): Likewise.
22516         (outsl): Likewise.
22517
22518         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
22519         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
22520         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
22521
22522         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
22523         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
22524         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
22525         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
22526         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
22527         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
22528
22529         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
22530         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
22531
22532         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
22533         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
22534
22535         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22536         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
22537         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
22538
22539         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
22540         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
22541         to ...
22542         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
22543
22544         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
22545         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
22546         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
22547
22548         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
22549         for x86-64.
22550         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
22551
22552 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
22553
22554         * math/math.h (M_El): Use two more decimal places.
22555         (M_LOG2El): Likewise.
22556         (M_LOG10El): Likewise.
22557         (M_LN2l): Likewise.
22558         (M_LN10l): Likewise.
22559         (M_PIl): Likewise.
22560         (M_PI_2l): Likewise.
22561         (M_PI_4l): Likewise.
22562         (M_1_PIl): Likewise.
22563         (M_2_PIl): Likewise.
22564         (M_2_SQRTPIl): Likewise.
22565         (M_SQRT2l): Likewise.
22566         (M_SQRT1_2l): Likewise.
22567
22568 2012-05-31  David S. Miller  <davem@davemloft.net>
22569
22570         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
22571         values between float registers.
22572         * sysdeps/sparc/sparc64/memset.S: Likewise.
22573         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22574
22575 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
22576
22577         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
22578         -D_FORTIFY_SOURCE=1.
22579         (CPPFLAGS-tst-longjmp_chk.c): Define.
22580         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
22581         (CPPFLAGS-tst-longjmp_chk2.c): Define.
22582         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
22583         CFLAGS-tst-wchar-h.c.
22584
22585 2012-05-31  Marek Polacek  <polacek@redhat.com>
22586
22587         [BZ #14132]
22588         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
22589         __endmntent_internal): Remove declaration.
22590         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
22591         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
22592         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
22593
22594 2012-05-30  David S. Miller  <davem@davemloft.net>
22595
22596         * sysdeps/sparc/sparc32/soft-fp/q_util.c
22597         (___Q_simulate_exceptions): Use real FP ops rather than writing
22598         into the %fsr.
22599         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
22600         Likewise.
22601
22602 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22603
22604         [BZ #14117]
22605         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
22606         * sysdeps/x86/bits/xtitypes.h: This.
22607
22608         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
22609         * sysdeps/x86/bits/wordsize.h: This.
22610
22611         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
22612         * sysdeps/x86/bits/huge_vall.h: This.
22613
22614         * sysdeps/i386/bits/select.h: Removed.
22615         * sysdeps/x86_64/bits/select.h: Renamed to ...
22616         * sysdeps/x86/bits/select.h: This.
22617
22618         * sysdeps/i386/bits/setjmp.h: Removed.
22619         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
22620         * sysdeps/x86/bits/setjmp.h: This.
22621
22622         * sysdeps/i386/bits/mathdef.h: Removed.
22623         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
22624         * sysdeps/x86/bits/mathdef.h: This.
22625
22626 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
22627
22628         [BZ #14132]
22629         * include/sys/socket.h (__connect_internal)
22630         (__libc_sa_len_internal): Remove declaration.
22631         (__connect, __libc_sa_len): Declare hidden_proto.
22632         (SA_LEN): Remove use of INTUSE.
22633         * socket/connect.c: Add libc_hidden_def.
22634         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
22635         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
22636         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
22637         alias.
22638         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
22639         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
22640         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
22641         of adding _internal alias.
22642
22643 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22644
22645         [BZ #14117]
22646         * sysdeps/i386/bits/link.h: Removed.
22647         * sysdeps/i386/bits/linkmap.h: Likewise.
22648         * sysdeps/x86_64/bits/link.h: Renamed to ...
22649         * sysdeps/x86/bits/link.h: This.
22650         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
22651         * sysdeps/x86/bits/linkmap.h: This.
22652
22653         * sysdeps/i386/bits/endian.h: Removed.
22654         * sysdeps/x86_64/bits/endian.h: Renamed to ...
22655         * sysdeps/x86/bits/endian.h: This.
22656
22657         * sysdeps/i386/bits/byteswap.h: Removed.
22658         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22659         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
22660         * sysdeps/x86/bits/byteswap.h: This.
22661         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
22662         * sysdeps/x86/bits/byteswap-16.h: This.
22663         * sysdeps/i386/Implies: Add x86.
22664         * sysdeps/x86_64/Implies: Likewise.
22665
22666 2012-05-30  David S. Miller  <davem@davemloft.net>
22667
22668         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
22669         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
22670         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
22671         (FP_TRAPPING_EXCEPTIONS): Define.
22672         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
22673         (FP_TRAPPING_EXCEPTIONS): Define.
22674         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
22675         subnormals only when inexact has been signalled or underflow
22676         exceptions are enabled.
22677         (_FP_PACK_CANONICAL): Likewise.
22678
22679 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22680
22681         [BZ #14183]
22682         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
22683         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
22684
22685 2012-05-30  Richard Henderson  <rth@twiddle.net>
22686
22687         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
22688         with #ifndef NOT_IN_libc.
22689
22690         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
22691         marked to avoid plt entry.
22692
22693 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22694
22695         [BZ #14112]
22696         * Makeconfig (default-abi): New macro.
22697         (abi-includes): Likewise.
22698         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
22699         $(abi-$(default-abi)-lib-soname) for soname if defined.
22700         ($(common-objpfx)gnu/lib-names.stmp): Generate from
22701         abi-variants.
22702         * Makefile (installed-stubs): Likewise.
22703         * include/stubs-biarch.h: Removed.
22704         * scripts/lib-names.awk: Only handle one library at a time.
22705         * scripts/soversions.awk: Remove WORDSIZE support.
22706         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
22707         entries.
22708         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
22709         Removed.
22710         (syscall-list-default-condition): Likewise.
22711         (syscall-list-default-condition): Likewise.
22712         (syscall-list-includes): Likewise.
22713         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
22714         syscall-list-* with abi-*.  Handle undefined abi-variants.
22715         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
22716         * sysdeps/unix/sysv/linux/i386/Implies: New file.
22717         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
22718         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
22719         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
22720         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
22721         Removed.
22722         (syscall-list-32-options): Likewise.
22723         (syscall-list-32-condition): Likewise.
22724         (syscall-list-64-options): Likewise.
22725         (syscall-list-64-condition): Likewise.
22726         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
22727         macro.
22728         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
22729         Renamed to ...
22730         (abi-*): This.
22731         (abi-64-ld-soname): New macro.
22732         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
22733         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
22734         Renamed to ...
22735         (abi-*): This.
22736         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
22737         * sysdeps/x86_64/x32/shlib-versions: Likewise.
22738
22739 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
22740
22741         * sysdeps/unix/sysv/linux/kernel-features.h
22742         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
22743         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
22744         include <kernel-features.h>.
22745         [!__NR_ftruncate64]: Remove conditional code.
22746         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22747         [__NR_ftruncate64]: Make code unconditional.
22748         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22749         * sysdeps/unix/sysv/linux/truncate64.c: Do not
22750         include <kernel-features.h>.
22751         [!__NR_ftruncate64]: Remove conditional code.
22752         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22753         [__NR_ftruncate64]: Make code unconditional.
22754         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
22756         include <kernel-features.h>.
22757         [!__NR_ftruncate64]: Remove conditional code.
22758         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22759         [__NR_ftruncate64]: Make code unconditional.
22760         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22762         include <kernel-features.h>.
22763         [!__NR_ftruncate64]: Remove conditional code.
22764         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22765         [__NR_ftruncate64]: Make code unconditional.
22766         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22767
22768         * configure.in (libc_cv_fpie): Weaken to a compile test using
22769         LIBC_TRY_CC_OPTION.
22770         * configure: Regenerated.
22771
22772 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22773
22774         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
22775         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
22776         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
22777         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22778         Refreshed.
22779         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
22780         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
22781         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
22782         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
22783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
22784         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22785         Refreshed.
22786
22787 2012-05-27  David S. Miller  <davem@davemloft.net>
22788
22789         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
22790         (___Q_zero): New.
22791         (__Q_simulate_exceptions): Return void.  Change to simulate
22792         exceptions by writing into the %fsr.
22793         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
22794         (__Qp_handle_exceptions): Likewise.
22795         (numbers): Delete.
22796         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
22797         __Qp_handle_exceptions.
22798         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
22799         __Qp_handle_exceptions.
22800         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22801         as unused and give dummy FP_RND_NEAREST initializer.
22802         (FP_INHIBIT_RESULTS): Define.
22803         (___Q_simulate_exceptions): Update declaration.
22804         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
22805         formatting.
22806         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22807         as unused and give dummy FP_RND_NEAREST initializer.
22808         (__Qp_handle_exceptions): Update declaration.
22809         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
22810         formatting.
22811
22812 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
22813
22814         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
22815         the temporary FPU control word.
22816         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
22817         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
22818         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22819         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22820         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22821         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22822         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22823         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22824         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22825         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
22826         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22827
22828 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22829
22830         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
22831         fields.
22832
22833 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
22834
22835         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
22836         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
22837         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
22838         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
22839         Likewise.
22840         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
22841         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
22842         Likewise.
22843
22844 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
22845
22846         * po/h.po: Update from translation team.
22847
22848 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
22849
22850         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
22851
22852         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
22853         handling of denormals.
22854         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
22855         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
22856         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
22857         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
22858         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
22859         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
22860         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
22861         Likewise.
22862
22863 2012-05-26  Marek Polacek  <polacek@redhat.com>
22864
22865         [BZ #14152]
22866         * math/libm-test.inc (fma_test): Don't always expect underflow
22867         exception.
22868
22869 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22870
22871         [BZ #12416]
22872         * elf/tst-execstack.c: Include stackinfo.h.
22873         (do_test): Adjust test case to ensure that pthread_getattr_np
22874         behaviour remains the same after marking stack executable.
22875
22876 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22877
22878         * sysdeps/unix/sysv/linux/kernel-features.h
22879         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
22880         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
22881         kernel-features.h.
22882         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22883         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22884         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
22885         kernel-features.h.
22886         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22887         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22888
22889 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22890
22891         * configure.in: Define the default includes to being none.
22892         * configure: Regenerated.
22893
22894 2012-05-25  Roland McGrath  <roland@hack.frob.com>
22895
22896         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
22897         * sysdeps/x86_64/setjmp.S: Likewise.
22898         * sysdeps/i386/bsd-setjmp.S: Likewise.
22899         * sysdeps/i386/bsd-_setjmp.S: Likewise.
22900         * sysdeps/i386/setjmp.S: Likewise.
22901         * sysdeps/i386/__longjmp.S: Likewise.
22902         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
22903         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
22904
22905         * include/stap-probe.h: New file.
22906         * configure.in: Handle --enable-systemtap.
22907         * configure: Regenerated.
22908         * config.h.in (USE_STAP_PROBE): New #undef.
22909         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
22910         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
22911         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
22912
22913 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22914
22915         [BZ #13717]
22916         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
22917         to 2.4.0 where earlier.
22918         * sysdeps/unix/sysv/linux/configure: Regenerated.
22919         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22920         <kernel-features.h>.
22921         [__ASSUME_32BITUIDS]: Make code unconditional.
22922         [!__ASSUME_32BITUIDS]: Remove conditional code.
22923         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
22924         <kernel-features.h>.
22925         [__ASSUME_32BITUIDS]: Make code unconditional.
22926         [!__ASSUME_32BITUIDS]: Remove conditional code.
22927         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
22928         [__ASSUME_32BITUIDS]: Make code unconditional.
22929         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
22930         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
22931         <kernel-features.h>.
22932         [__ASSUME_32BITUIDS]: Make code unconditional.
22933         [!__ASSUME_32BITUIDS]: Remove conditional code.
22934         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
22935         <kernel-features.h>.
22936         [__ASSUME_32BITUIDS]: Make code unconditional.
22937         [!__ASSUME_32BITUIDS]: Remove conditional code.
22938         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
22939         <kernel-features.h>.
22940         [__ASSUME_32BITUIDS]: Make code unconditional.
22941         [!__ASSUME_32BITUIDS]: Remove conditional code.
22942         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
22943         <kernel-features.h>.
22944         [__ASSUME_32BITUIDS]: Make code unconditional.
22945         [!__ASSUME_32BITUIDS]: Remove conditional code.
22946         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22947         <kernel-features.h>.
22948         [__ASSUME_32BITUIDS]: Make code unconditional.
22949         [!__ASSUME_32BITUIDS]: Remove conditional code.
22950         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22951         <kernel-features.h>.
22952         [__ASSUME_32BITUIDS]: Make code unconditional.
22953         [!__ASSUME_32BITUIDS]: Remove conditional code.
22954         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
22955         <kernel-features.h>.
22956         [__ASSUME_32BITUIDS]: Make code unconditional.
22957         [!__ASSUME_32BITUIDS]: Remove conditional code.
22958         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22959         <kernel-features.h>.
22960         [__ASSUME_32BITUIDS]: Make code unconditional.
22961         [!__ASSUME_32BITUIDS]: Remove conditional code.
22962         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22963         <kernel-features.h>.
22964         [__ASSUME_32BITUIDS]: Make code unconditional.
22965         [!__ASSUME_32BITUIDS]: Remove conditional code.
22966         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
22967         <kernel-features.h>.
22968         [__ASSUME_32BITUIDS]: Make code unconditional.
22969         [!__ASSUME_32BITUIDS]: Remove conditional code.
22970         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
22971         <kernel-features.h>.
22972         [__NR_setresgid] (__setresgid): Do not declare.
22973         [__ASSUME_32BITUIDS]: Make code unconditional.
22974         [!__ASSUME_32BITUIDS]: Remove conditional code.
22975         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
22976         <kernel-features.h>.
22977         [__NR_setresuid] (__setresuid): Do not declare.
22978         [__ASSUME_32BITUIDS]: Make code unconditional.
22979         [!__ASSUME_32BITUIDS]: Remove conditional code.
22980         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
22981         <kernel-features.h>.
22982         [__ASSUME_32BITUIDS]: Make code unconditional.
22983         [!__ASSUME_32BITUIDS]: Remove conditional code.
22984         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
22985         <kernel-features.h>.
22986         [__ASSUME_32BITUIDS]: Make code unconditional.
22987         [!__ASSUME_32BITUIDS]: Remove conditional code.
22988         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
22989         <kernel-features.h>.
22990         [__ASSUME_32BITUIDS]: Make code unconditional.
22991         [!__ASSUME_32BITUIDS]: Remove conditional code.
22992         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
22993         <kernel-features.h>.
22994         [__ASSUME_32BITUIDS]: Make code unconditional.
22995         [!__ASSUME_32BITUIDS]: Remove conditional code.
22996         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
22997         <kernel-features.h>.
22998         [__ASSUME_32BITUIDS]: Make code unconditional.
22999         [!__ASSUME_32BITUIDS]: Remove conditional code.
23000         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
23001         <kernel-features.h>.
23002         [__ASSUME_32BITUIDS]: Make code unconditional.
23003         [!__ASSUME_32BITUIDS]: Remove conditional code.
23004         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
23005         <kernel-features.h>.
23006         [__ASSUME_32BITUIDS]: Make code unconditional.
23007         [!__ASSUME_32BITUIDS]: Remove conditional code.
23008         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
23009         <kernel-features.h>.
23010         [__ASSUME_32BITUIDS]: Make code unconditional.
23011         [!__ASSUME_32BITUIDS]: Remove conditional code.
23012         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
23013         <kernel-features.h>.
23014         [__ASSUME_32BITUIDS]: Make code unconditional.
23015         [!__ASSUME_32BITUIDS]: Remove conditional code.
23016         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
23017         <kernel-features.h>.
23018         [__ASSUME_32BITUIDS]: Make code unconditional.
23019         [!__ASSUME_32BITUIDS]: Remove conditional code.
23020         * sysdeps/unix/sysv/linux/kernel-features.h
23021         (__ASSUME_SETRESUID_SYSCALL): Remove.
23022         (__ASSUME_SETRESGID_SYSCALL): Likewise.
23023         (__ASSUME_32BITUIDS): Likewise.
23024         (__ASSUME_LDT_WORKS): Likewise.
23025         (__ASSUME_O_DIRECTORY): Likewise.
23026         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
23027         architecture but not kernel version.
23028         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
23029         (__ASSUME_MMAP2_SYSCALL): Likewise.
23030         (__ASSUME_STAT64_SYSCALL): Likewise.
23031         (__ASSUME_IPC64): Likewise.
23032         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
23033         <kernel-features.h>.
23034         [__ASSUME_32BITUIDS]: Make code unconditional.
23035         [!__ASSUME_32BITUIDS]: Remove conditional code.
23036         * sysdeps/unix/sysv/linux/opendir.c: Do not include
23037         <kernel-features.h>.
23038         [__ASSUME_O_DIRECTORY]: Make code unconditional.
23039         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
23040         132096]: Remove conditional code.
23041         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
23042         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
23043         <kernel-features.h>.
23044         [__ASSUME_32BITUIDS]: Make code unconditional.
23045         [!__ASSUME_32BITUIDS]: Remove conditional code.
23046         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
23047         <kernel-features.h>.
23048         [__ASSUME_32BITUIDS]: Make code unconditional.
23049         [!__ASSUME_32BITUIDS]: Remove conditional code.
23050         * sysdeps/unix/sysv/linux/setegid.c: Do not include
23051         <kernel-features.h>.
23052         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
23053         unconditional.
23054         (__setresgid): Do not declare.
23055         [__ASSUME_32BITUIDS]: Make code unconditional.
23056         [!__ASSUME_32BITUIDS]: Remove conditional code.
23057         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
23058         <kernel-features.h>.
23059         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
23060         unconditional.
23061         (__setresuid): Do not declare.
23062         [__ASSUME_32BITUIDS]: Make code unconditional.
23063         [!__ASSUME_32BITUIDS]: Remove conditional code.
23064         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23065         <kernel-features.h>.
23066         [__ASSUME_32BITUIDS]: Make code unconditional.
23067         [!__ASSUME_32BITUIDS]: Remove conditional code.
23068         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
23069         <kernel-features.h>.
23070         [__ASSUME_32BITUIDS]: Make code unconditional.
23071         [!__ASSUME_32BITUIDS]: Remove conditional code.
23072
23073 2012-05-25  Richard Henderson  <rth@twiddle.net>
23074
23075         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
23076         dl_hwcap to ifunc resolver.
23077         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
23078         elf_ifunc_invoke.
23079         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
23080         dl_hwcap to ifunc resolver.
23081         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
23082
23083 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23084
23085         [BZ #14153]
23086         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
23087         for |x| <= 2**-26, not 2**-57.
23088         * math/libm-test.inc (acos_test): Do not allow spurious underflow
23089         exception.
23090
23091 2012-05-24  Jeff Law  <law@redhat.com>
23092
23093         * stdio-common/Makefile (tests): Add bug25.
23094         * stdio-common/bug25.c: New test.
23095
23096 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23097
23098         [BZ #13576]
23099         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
23100         multiple of MALLOC_ALIGNMENT in size.
23101         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
23102
23103 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23104
23105         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
23106         Require >= 256.
23107         (FILENAME_MAX): Use macro-int-constant.
23108         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
23109         (_IOFBF): Use macro-int-constant.
23110         (_IOLBF): Likewise.
23111         (_IONBF): Likewise.
23112         (SEEK_CUR): Likewise.
23113         (SEEK_END): Likewise.
23114         (SEEK_SET): Likewise.
23115         (TMP_MAX): Likewise.
23116         (EOF): Use macro-int-constant.  Require < 0.
23117         (NULL): Use macro-constant.  Require == 0.
23118         (stdin): Require type to be FILE *.
23119         (stdout): Likewise.
23120         (stderr): Likewise.
23121         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
23122         macro-int-constant.
23123         (EXIT_SUCCESS): Likewise.
23124         (NULL): Use macro-constant.  Require == 0.
23125         (RAND_MAX): Use macro-int-constant.
23126         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
23127         [C99-based standards] (strtof): Require function.
23128         [C99-based standards] (strtold): Likewise.
23129         [C99-based standards] (strtoll): Likewise.
23130         [C99-based standards] (strtoull): Likewise.
23131         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
23132         [ISO || ISO99 || ISO11] (limits.h): Likewise.
23133         [ISO || ISO99 || ISO11] (math.h): Likewise.
23134         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
23135         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
23136         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23137
23138 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
23139
23140         [BZ #14132]
23141         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
23142         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
23143         * intl/dgettext.c (DCGETTEXT): Likewise.
23144         * intl/gettext.c (DCGETTEXT): Likewise.
23145         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
23146         * posix/regex_internal.h (gettext): Likewise.
23147         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
23148         Remove declaration.
23149         * include/argz.h (__argz_count_internal)
23150         (__argz_stringify_internal): Remove declaration.
23151         (__argz_count, __argz_stringify): Declare hidden proto.
23152         * intl/dcgettext.c: Remove use of INTDEF.
23153         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
23154         * string/argz-stringify.c: Likewise.
23155         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23156         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23157         Declare hidden proto.
23158         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23159         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23160         Declare hidden proto.
23161         * include/stdio.h (__asprintf_internal): Don't declare.
23162         (__asprintf): Don't define as macro.  Declare hidden proto.
23163         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
23164         (__fsetlocking): Declare hidden proto.
23165         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
23166         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
23167         hidden proto.
23168         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
23169         (_IO_setlinebuf): Remove use of INTUSE.
23170         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
23171         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
23172         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
23173         Remove declaration.
23174         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
23175         (_IO_do_flush): Remove use of INTUSE.
23176         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
23177         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
23178         (_IO_adjust_column, _IO_least_wmarker)
23179         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
23180         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
23181         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
23182         (_IO_default_doallocate, _IO_wdefault_doallocate)
23183         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
23184         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
23185         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
23186         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
23187         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
23188         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
23189         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
23190         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
23191         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
23192         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
23193         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
23194         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
23195         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
23196         proto.
23197         (_IO_flush_all_internal, _IO_adjust_column_internal)
23198         (_IO_default_uflow_internal, _IO_default_finish_internal)
23199         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
23200         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
23201         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
23202         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
23203         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
23204         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
23205         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
23206         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
23207         (_IO_file_close_internal, _IO_file_close_it_internal)
23208         (_IO_file_underflow_internal, _IO_file_overflow_internal)
23209         (_IO_file_init_internal, _IO_file_attach_internal)
23210         (_IO_file_fopen_internal, _IO_file_read_internal)
23211         (_IO_file_sync_internal, _IO_file_seek_internal)
23212         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
23213         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
23214         (_IO_str_underflow_internal, _IO_str_overflow_internal)
23215         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
23216         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
23217         (_IO_list_all_internal, _IO_link_in_internal)
23218         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
23219         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
23220         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
23221         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
23222         (_IO_do_write_internal, _IO_padn_internal)
23223         (_IO_getline_info_internal, _IO_getline_internal)
23224         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
23225         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
23226         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
23227         (_IO_vfscanf_internal, _IO_vfprintf_internal)
23228         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
23229         (_IO_init_internal, _IO_un_link_internal): Don't declare.
23230         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
23231         with libc_hidden_ver, remove use of INTUSE.
23232         * libio/genops.c: Likewise.
23233         * libio/freopen.c: Likewise.
23234         * libio/freopen64.c: Likewise.
23235         * libio/iofclose.c: Likewise.
23236         * libio/iofdopen.c: Likewise.
23237         * libio/iofflush.c: Likewise.
23238         * libio/iofflush_u.c: Likewise.
23239         * libio/iofgets.c: Likewise.
23240         * libio/iofgets_u.c: Likewise.
23241         * libio/iofopen.c: Likewise.
23242         * libio/iofopncook.c: Likewise.
23243         * libio/iofread.c: Likewise.
23244         * libio/iofread_u.c: Likewise.
23245         * libio/ioftell.c: Likewise.
23246         * libio/iofwrite.c: Likewise.
23247         * libio/iogetline.c: Likewise.
23248         * libio/iogets.c: Likewise.
23249         * libio/iogetwline.c: Likewise.
23250         * libio/iopadn.c: Likewise.
23251         * libio/iopopen.c: Likewise.
23252         * libio/ioseekoff.c: Likewise.
23253         * libio/ioseekpos.c: Likewise.
23254         * libio/iosetbuffer.c: Likewise.
23255         * libio/iosetvbuf.c: Likewise.
23256         * libio/ioungetc.c: Likewise.
23257         * libio/ioungetwc.c: Likewise.
23258         * libio/iovdprintf.c: Likewise.
23259         * libio/iovsprintf.c: Likewise.
23260         * libio/iovsscanf.c: Likewise.
23261         * libio/memstream.c: Likewise.
23262         * libio/obprintf.c: Likewise.
23263         * libio/oldfileops.c: Likewise.
23264         * libio/oldiofclose.c: Likewise.
23265         * libio/oldiofdopen.c: Likewise.
23266         * libio/oldiofopen.c: Likewise.
23267         * libio/oldiopopen.c: Likewise.
23268         * libio/oldstdfiles.c: Likewise.
23269         * libio/putc.c: Likewise.
23270         * libio/setbuf.c: Likewise.
23271         * libio/setlinebuf.c: Likewise.
23272         * libio/stdfiles.c: Likewise.
23273         * libio/strops.c: Likewise.
23274         * libio/vasprintf.c: Likewise.
23275         * libio/vscanf.c: Likewise.
23276         * libio/vsnprintf.c: Likewise.
23277         * libio/vswprintf.c: Likewise.
23278         * libio/wfiledoalloc.c: Likewise.
23279         * libio/wfileops.c: Likewise.
23280         * libio/wgenops.c: Likewise.
23281         * libio/wmemstream.c: Likewise.
23282         * libio/wstrops.c: Likewise.
23283         * libio/__fpurge.c: Likewise.
23284         * libio/__fsetlocking.c: Likewise.
23285         * assert/assert.c: Likewise.
23286         * debug/fgets_chk.c: Likewise.
23287         * debug/fgets_u_chk.c: Likewise.
23288         * debug/fread_chk.c: Likewise.
23289         * debug/fread_u_chk.c: Likewise.
23290         * debug/gets_chk.c: Likewise.
23291         * debug/obprintf_chk.c: Likewise.
23292         * debug/vasprintf_chk.c: Likewise.
23293         * debug/vdprintf_chk.c: Likewise.
23294         * debug/vsnprintf_chk.c: Likewise.
23295         * debug/vsprintf_chk.c: Likewise.
23296         * malloc/mtrace.c: Likewise.
23297         * misc/error.c: Likewise.
23298         * misc/syslog.c: Likewise.
23299         * stdio-common/asprintf.c: Likewise.
23300         * stdio-common/fxprintf.c: Likewise.
23301         * stdio-common/getw.c: Likewise.
23302         * stdio-common/isoc99_fscanf.c: Likewise.
23303         * stdio-common/isoc99_scanf.c: Likewise.
23304         * stdio-common/isoc99_vfscanf.c: Likewise.
23305         * stdio-common/isoc99_vscanf.c: Likewise.
23306         * stdio-common/isoc99_vsscanf.c: Likewise.
23307         * stdio-common/printf-prs.c: Likewise.
23308         * stdio-common/printf_fp.c: Likewise.
23309         * stdio-common/printf_fphex.c: Likewise.
23310         * stdio-common/printf_size.c: Likewise.
23311         * stdio-common/putw.c: Likewise.
23312         * stdio-common/scanf.c: Likewise.
23313         * stdio-common/sprintf.c: Likewise.
23314         * stdio-common/tmpfile.c: Likewise.
23315         * stdio-common/vfprintf.c: Likewise.
23316         * stdio-common/vfscanf.c: Likewise.
23317         * stdlib/strfmon_l.c: Likewise.
23318         * sunrpc/openchild.c: Likewise.
23319         * sunrpc/xdr_stdio.c: Likewise.
23320         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
23321         * sysdeps/mach/hurd/tmpfile.c: Likewise.
23322
23323 2012-05-24  Roland McGrath  <roland@hack.frob.com>
23324
23325         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23326
23327         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
23328         in the third column, to generate for the shared library an IFUNC
23329         that uses _dl_vdso_vsym.
23330         * Makerules (COMPILE.c, compile-stdin.c): New variables.
23331         * Makeconfig (object-suffixes-noshared): New variable.
23332
23333         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
23334         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
23335         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
23336         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
23337
23338         [BZ #14132]
23339         * include/sys/time.h (__gettimeofday): Remove macro.
23340         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
23341         * time/gettimeofday.c (__gettimeofday): Remove #undef.
23342         Remove INTDEF.
23343         (__gettimeofday): Add libc_hidden_def.
23344         (gettimeofday): Add libc_hidden_weak.
23345         * sysdeps/mach/gettimeofday.c: Likewise.
23346         * sysdeps/posix/gettimeofday.c: Likewise.
23347         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
23348         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23349         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
23350         (__gettimeofday_internal): Remove strong_alias.
23351         (__gettimeofday): Add libc_hidden_def.
23352         (gettimeofday): Add libc_hidden_weak.
23353         * sysdeps/unix/syscalls.list (gettimeofday):
23354         Remove __gettimeofday_internal alias.
23355
23356 2012-05-24  Daniel Jacobowitz  <drow@false.org>
23357             H.J. Lu  <hongjiu.lu@intel.com>
23358
23359         [BZ #12495]
23360         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
23361         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
23362         (largebin_index_32_big): New.
23363         (largebin_index): Use it for 16-byte alignment.
23364         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
23365         correction with front_misalign.
23366
23367 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23368
23369         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
23370         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
23371         Likewise.
23372         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
23373         Likewise.
23374         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
23375         Likewise.
23376         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
23377         Likewise.
23378         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
23379         Likewise.
23380         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
23381         Likewise.
23382         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
23383         Likewise.
23384         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
23385         Likewise.
23386         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
23387         Likewise.
23388         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
23389         Likewise.
23390         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
23391         Likewise.
23392         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
23393         Likewise.
23394
23395         * scripts/data/c++-types-x32-linux-gnu.data: New file.
23396         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
23397
23398 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23399
23400         [BZ #10846]
23401         [BZ #14036]
23402         * math/libm-test.inc (exp_test): Add test from bug 14036.
23403         (pow_test): Add test from bug 10846.
23404
23405         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
23406         and other flags.
23407         (special_function): Do not include flags in test name.
23408         (parse_args): Likewise.
23409         * sysdeps/i386/fpu/libm-test-ulps: Update.
23410         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23411         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
23412         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
23413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23414
23415         * math/gen-libm-test.pl (%beautify): Add entries for underflow
23416         exceptions.
23417         * math/libm-test.inc ("Philosophy"): Update comment about
23418         exception testing.
23419         (UNDERFLOW_EXCEPTION): New macro.
23420         (UNDERFLOW_EXCEPTION_OK): Likewise.
23421         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
23422         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
23423         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
23424         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
23425         (INVALID_EXCEPTION_OK): Update value.
23426         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23427         (OVERFLOW_EXCEPTION_OK): Likewise.
23428         (IGNORE_ZERO_INF_SIGN): Likewise.
23429         (test_exceptions): Handle underflow exceptions.
23430         (acos_test): Update for underflow exception expectations.
23431         (cexp_test): Likewise.
23432         (clog_test): Likewise.
23433         (clog10_test): Likewise.
23434         (csqrt_test): Likewise.
23435         (ctan_test): Likewise.
23436         (ctanh_test): Likewise.
23437         (exp_test): Likewise.
23438         (exp10_test): Likewise.
23439         (exp2_test): Likewise.
23440         (expm1_test): Likewise.
23441         (fma_test): Likewise.
23442         (j0_test): Likewise.
23443         (jn_test): Likewise.
23444         (nexttoward_test): Likewise.
23445         (pow_test): Likewise.
23446         (scalbn_test): Likewise.
23447         (scalbln_test): Likewise.
23448         (tan_test): Likewise.
23449         (y1_test): Likewise.
23450         * sysdeps/i386/fpu/libm-test-ulps: Update.
23451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23452
23453 2012-05-23  David S. Miller  <davem@davemloft.net>
23454
23455         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23456         (__libc_sigaction): Remove unused local variables.
23457
23458 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23459
23460         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
23461
23462 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23463
23464         mktime: avoid signed integer overflow
23465         * time/mktime.c (__mktime_internal): Do not mishandle the case
23466         where diff == INT_MIN.
23467
23468         mktime: simplify computation of average
23469         * time/mktime.c (ranged_convert): Use new time_t_avg function
23470         instead of rolling our own (probably-slower) code.
23471
23472         mktime: do not assume signed right shift propagates sign bit
23473         * time/mktime.c (isdst_differ): New static function.
23474         (__mktime_internal): No need to normalize tm_isdst now.
23475         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
23476         tm_isdst values.
23477
23478         mktime: merge another wrapv change from gnulib
23479         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
23480         from some compilers.
23481
23482         mktime: remove incorrect attempt at unusual arithmetics
23483         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23484         The code didn't really work on such machines anyway.
23485         (TYPE_MINIMUM): Assume two's complement.
23486         (twos_complement_arithmetic): Verify that long_int and time_t
23487         are two's complement (or unsigned, in the latter case).
23488
23489         mktime: check signed shifts on long_int and time_t, too
23490         * time/mktime.c (SHR): Check that shifts work as desired
23491         on the types long_int and time_t too, as SHR is used on
23492         such types.
23493
23494         mktime: do not assume 'long' is wide enough
23495         * time/mktime.c (verify): Move decl up.
23496         (long_int): New type.
23497         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
23498         to remove assumption in the code that 'long' is wide enough to
23499         store year values.  This assumption is not true on x32 and on
23500         some non-glibc platforms.
23501
23502         mktime: merge wrapv change from gnulib
23503         * time/mktime.c (WRAPV): New macro.
23504         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
23505         (guess_time_tm, __mktime_internal): Do not assume that signed
23506         integer overflow wraps around; modern compilers generate code
23507         where this assumption is no longer valid.
23508
23509 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23510
23511         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23512         Replace "jmp L(pseudo_end)" with "ret".
23513         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
23514         Likewise.
23515
23516 2012-05-23  Andreas Jaeger  <aj@suse.de>
23517
23518         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
23519         * sysdeps/unix/sysv/linux/poll.c: Remove file.
23520
23521 2012-05-23  Andreas Jaeger  <aj@suse.de>
23522             Maximilian Attems  <max@stro.at>
23523
23524         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
23525         New macros.
23526
23527 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23528
23529         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
23530         code so that pseudo_end is just ret and the stack pointer is
23531         correct also for static library in error case.
23532
23533 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
23534
23535         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
23536         move to syscalls.list.
23537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
23538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
23539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
23540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
23541
23542         * manual/install.texi (Running make install): Do not mention Linux
23543         kernel version for which pt_chown is not needed.
23544         (Linux): Do not mention problems with nscd with 2.0 kernels.
23545         * INSTALL: Regenerated.
23546
23547 2012-05-23  Andreas Jaeger  <aj@suse.de>
23548
23549         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
23550         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
23551         macro.
23552         * sysdeps/unix/sysv/linux/s390/bits/mman.h
23553         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23554         * sysdeps/unix/sysv/linux/sh/bits/mman.h
23555         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23556         * sysdeps/unix/sysv/linux/i386/bits/mman.h
23557         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23558         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
23559         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23560         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
23561         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23562         * sysdeps/unix/sysv/linux/bits/in.h
23563         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
23564
23565 2012-05-22  Roland McGrath  <roland@hack.frob.com>
23566
23567         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
23568         (PREPARE_VERSION): Just use assert instead, it will be elided
23569         under [NDEBUG] anyway.
23570
23571 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23572
23573         * sysdeps/unix/sysv/linux/Makefile: Include
23574         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
23575         (sysdep_routines): Remove sysctl.
23576         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
23577         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
23578         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
23579         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
23580         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
23581
23582 2012-05-22  Andreas Jaeger  <aj@suse.de>
23583
23584         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
23585         that pseudo_end is just ret and the stack pointer is correct also
23586         for static library in error case.
23587
23588 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23589
23590         [BZ #14122]
23591         * nss/nsswitch.c (defconfig_entries): New variable.
23592         (__nss_database_lookup): Don't leak defconfig entries.
23593         (nss_parse_service_list): Don't leak on error paths.
23594         (free_database_entries): New function.
23595         (free_defconfig): New function.
23596         (free_mem): Move common code to free_database_entries.
23597
23598 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23599
23600         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
23601         Add arch_prctl.
23602         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
23603
23604         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
23605         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
23606         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
23607         New macro.
23608         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23609         (INTERNAL_SYSCALL_TYPES): Likewise.
23610         (LOAD_ARGS_TYPES_[1-6]): Likewise.
23611         (LOAD_REGS_TYPES_[1-6]): Likewise.
23612         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
23613         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
23614
23615 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23616
23617         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
23618         copysignl for GLIBC_2_0.
23619         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23620         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
23621         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
23622         logbl for GLIBC_2_0.
23623         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23624         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23625
23626 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23627
23628         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
23629         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23630
23631         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23632         Use "neg %eax".
23633
23634         * time/mktime.c: Update copyright years.
23635
23636 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23637
23638         mktime: merge comment-quoting-style change from gnulib
23639         * time/mktime.c: Quote 'like this' in comments.
23640         The GNU coding standards suggest that we no longer quote `like this',
23641         as "`" and "'" are typically rendered asymmetrically nowadays.
23642         The typical gnulib style is to quote 'like this' when quoting
23643         code, and "like this" when quoting English.
23644
23645         * time/mktime.c (compile-command): Add "-I.".
23646
23647         mktime: merge mktime-internal.h change from gnulib
23648         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
23649
23650         mktime: merge time_r change from gnulib
23651         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
23652
23653         mktime: merge DEBUG change from gnulib
23654         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
23655         case system <time.h> has a #define.
23656
23657         mktime: merge <sys/types.h> change from gnulib
23658         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
23659         since <time.t> is now guaranteed to define time_t.
23660
23661         mktime: merge HAVE_CONFIG_H change from gnulib
23662         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
23663
23664 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23665
23666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23667         Use "neg %eax".
23668
23669         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23670         __rlim_t cast.
23671         (struct rusage): Use anonymous union to pad each field to
23672         __syscall_slong_t.
23673
23674 2012-05-21  David S. Miller  <davem@davemloft.net>
23675
23676         * Makefules (o-iterator): Remove .s cases.
23677         (compile-command.s): Delete.
23678         (COMPILE.s): Delete.
23679         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
23680
23681 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23682
23683         * configure.in (libc_cv_predef_stack_protector): Only consider
23684         "foobar" and "__stack_chk_fail" lines in libc_undefs.
23685         * configure: Regenerated.
23686
23687 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23688
23689         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23690         New macro.  Use R*LP on int and pointer.
23691         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
23692         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
23693         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
23694         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
23695
23696         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
23697         [__WORDSIZE_TIME64_COMPAT32] instead of
23698         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
23699         (struct utmp): Likewise.
23700         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
23701         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23702         Renamed to ...
23703         (__WORDSIZE_TIME64_COMPAT32): This.
23704         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
23705         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
23706         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
23707         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
23708         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
23709         (__WORDSIZE_TIME64_COMPAT32): New macro.
23710
23711 2012-05-21  Andreas Jaeger  <aj@suse.de>
23712
23713         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
23714         only if [SHARED]. Add prototype for __wcschr_ia32.
23715
23716 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23717
23718         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
23719         of %rbp unmolested in the jmp_buf while mangling the low bits.
23720         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
23721         unmolested high bits of %rbp while demangling the low bits.
23722         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23723
23724 2012-05-21  Andreas Jaeger  <aj@suse.de>
23725
23726         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
23727         * sunrpc/svc_simple.c: Use it for registerrpc.
23728         * sunrpc/xcrypt.c: Use it for passwd2des.
23729
23730         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
23731
23732 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23733
23734         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
23735         Don't define if [__SYSCALL_WORDSIZE != 32].
23736         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
23737         New macro.
23738
23739 2012-05-21  Bruno Haible  <bruno@clisp.org>
23740             Andreas Jaeger  <aj@suse.de>
23741
23742         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
23743         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
23744         inptr and inend for must_buffer_ch.
23745         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
23746         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
23747         * stdio-common/Makefile (tests): Remove bug15.
23748         (bug15-ENV): Remove macro.
23749         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
23750         anymore.
23751
23752 2012-05-19  Andreas Jaeger  <aj@suse.de>
23753             Roland McGrath  <roland@hack.frob.com>
23754
23755         * manual/contrib.texi: Completely rewritten. It contains now an
23756         alphabetical list of contributors and their contributions.
23757
23758 2012-05-21  Richard Henderson  <rth@twiddle.net>
23759
23760         * misc/getauxval.c (__getauxval): Use unsigned long int.
23761         * misc/sys/auxv.h: Include <sys/cdefs.h>.
23762         (getauxval): Use unsigned long int.
23763
23764 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23765
23766         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23767
23768 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23769
23770         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
23771         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
23772         __alignof__ (long double).
23773
23774 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23775
23776         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23777
23778 2012-05-20  Richard Henderson  <rth@twiddle.net>
23779
23780         * misc/getauxval.c: New file.
23781         * misc/sys/auxv.h: New file.
23782         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
23783         (routines): Add getauxval.
23784         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
23785         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
23786         * elf/dl-sysdep.c (_dl_auxv): Remove.
23787         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
23788         * elf/dl-support.c (_dl_auxv): New variable.
23789         (_dl_aux_init): Initialize it.
23790         * manual/startup.texi (Auxiliary Vector): New node.
23791         * sysdeps/generic/bits/hwcap.h: New file.
23792         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
23793         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
23794         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
23795         * sysdeps/sparc/sysdep.h: ... here.  Include it.
23796         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
23797         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
23798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23799         Update.
23800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
23801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
23802         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
23803         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
23804         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23805         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23806         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
23807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
23808
23809 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23810
23811         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23812
23813 2012-05-19  David S. Miller  <davem@davemloft.net>
23814
23815         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23816
23817 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23818
23819         [BZ #14123]
23820         * math/s_ccosh.c: Include <float.h>
23821         (__ccosh): Avoid internal overflow calculating sinh and cosh
23822         values before multiplying by sin and cos values.
23823         * math/s_ccoshf.c: Likewise.
23824         * math/s_ccoshl.c: Likewise.
23825         * math/s_csin.c: Likewise.
23826         * math/s_csinf.c: Likewise.
23827         * math/s_csinl.c: Likewise.
23828         * math/s_csinh.c: Likewise.
23829         * math/s_csinhf.c: Likewise.
23830         * math/s_csinhl.c: Likewise.
23831         * math/libm-test.inc (ccos_test): Add more tests.
23832         (ccosh_test): Likewise.
23833         (csin_test): Likewise.
23834         (csinh_test): Likewise.
23835         * sysdeps/i386/fpu/libm-test-ulps: Update.
23836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23837
23838 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
23839
23840         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
23841         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
23842
23843         * sysdeps/x86_64/x32/_itoa.h: Add comment.
23844
23845 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23846
23847         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
23848         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
23849         * sysdeps/powerpc/soft-fp/Versions: Likewise.
23850         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
23851         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
23852         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
23853         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
23854         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
23855         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
23856         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
23857         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
23858         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
23859         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
23860         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
23861         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
23862         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
23863         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
23864         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
23865         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
23866         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
23867         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
23868         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
23869         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
23870         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
23871         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
23872         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
23873         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
23874         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
23875         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
23876         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
23877         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
23878
23879 2012-05-18  Andreas Jaeger  <aj@suse.de>
23880
23881         * csu/.gitignore: Delete.
23882
23883 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23884
23885         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
23886         (timex): Use __syscall_slong_t.
23887
23888 2012-05-18  Andreas Jaeger  <aj@suse.de>
23889             Carlos O'Donell  <carlos_odonell@mentor.com>
23890
23891         * manual/install.texi (Configuring and compiling): Update
23892         description about files modified in the source directory.
23893         * INSTALL: Regenerated.
23894
23895 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23896
23897         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
23898         value.  Use "or" to set return value to -1.
23899         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
23900         negate return value.
23901
23902 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23903
23904         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
23905         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
23906         failure if the compiler has Graphite support disabled.
23907         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
23908         Likewise.
23909         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
23910         CFLAGS-memmove.c): Likewise.
23911         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
23912         Likewise.
23913
23914 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23915
23916         * sysdeps/x86_64/x32/_itoa.h: New file.
23917
23918         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
23919         getdents system call only if kernel and user dirents have the
23920         same d_ino and d_off.
23921
23922         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23923         LLONG_MAX != LONG_MAX.
23924         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23925         (_fitoa_word): Likewise.
23926
23927         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
23928         years.
23929         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
23930         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
23931         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
23932
23933         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
23934         include <bits/wordsize.h>.  Check __x86_64__ instead of
23935         __WORDSIZE.
23936         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
23937         if __x86_64__ is defined.  Use anonymous union on fpstate.
23938
23939         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
23940         anonymous union.
23941
23942 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
23943
23944         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
23945         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
23946         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
23947         Refer to _rtld_local_ro instead of _rtld_global_ro.
23948         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
23949         Likewise.
23950         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
23951         Likewise.
23952         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
23953         Likewise.
23954         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
23955         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
23956         of _rtld_global, and rtld_progname instead of _dl_argv[0].
23957
23958         * sysdeps/powerpc/powerpc32/dl-machine.c
23959         (__elf_machine_runtime_setup) [PROF]: Don't reference
23960         _dl_prof_resolve.
23961
23962 2012-05-18  Andreas Jaeger  <aj@suse.de>
23963
23964         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
23965         function only available for GCCs before 3.4 since GCC 3.4
23966         introduced a builtin.
23967         (lrint): Likewise.
23968         (llrintf): Likewise.
23969         (llrint): Likewise.
23970         (fmaxf): Likewise.
23971         (fmax): Likewise.
23972         (fminf): Likewise.
23973         (fmin): Likewise.
23974         (rint): Likewise.
23975         (rintf): Likewise.
23976         (nearbyint): Likewise.
23977         (nearbyintf): Likewise.
23978         (ceil): Likewise.
23979         (ceilf): Likewise.
23980         (floor): Likewise.
23981         (floorf): Likewise.
23982
23983 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23984
23985         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
23986         on both fields and cast pointer to __syscall_ulong_t.
23987
23988         * bits/types.h (__fsword_t): New type.
23989         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
23990         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
23991         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23992         (__FSWORD_T_TYPE): Likewise.
23993         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23994         (__FSWORD_T_TYPE): Likewise.
23995         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23996         (__FSWORD_T_TYPE): Likewise.
23997         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
23998         (__FSWORD_T_TYPE): Likewise.
23999         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
24000         __SWORD_TYPE with __fsword_t.
24001         (statfs64): Likewise.
24002
24003 2012-05-17  David S. Miller  <davem@davemloft.net>
24004
24005         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
24006
24007 2012-05-17  Andreas Jaeger  <aj@suse.de>
24008
24009         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
24010         warning.
24011
24012 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24013
24014         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
24015
24016 2012-05-17  Andreas Jaeger  <aj@suse.de>
24017
24018         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
24019         when it is used.
24020
24021 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24022
24023         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
24024
24025 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24026
24027         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
24028         * sysdeps/x86_64/tst-mallocalign1.c: New file.
24029
24030 2012-05-17  Andreas Jaeger  <aj@suse.de>
24031             Carlos O'Donell  <carlos_odonell@mentor.com>
24032
24033         [BZ #14059]
24034         * sysdeps/x86_64/multiarch/init-arch.h
24035         (bit_YMM_Usable): Rename to...
24036         (bit_AVX_Usable): ... this.
24037         (bit_FMA4_Usable): New macro.
24038         (bit_XMM_state): New macro.
24039         (bit_YMM_state): New macro.
24040         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
24041         [__ASSEMBLER__] (index_AVX_Usable): ... this.
24042         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
24043         (CPUID_OSXSAVE): New macro.
24044         (CPUID_AVX): New macro.
24045         (CPUID_FMA4): New macro.
24046         (index_YMM_Usable): Rename to...
24047         (index_AVX_Usable): ... this.
24048         (HAS_AVX): Use HAS_ARCH_FEATURE.
24049         (HAS_FMA4): Likewise.
24050         (HAS_YMM_USABLE): Remove.
24051         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24052         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
24053         are present.
24054         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
24055         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
24056         * sysdeps/x86_64/multiarch/Makefile: Likewise.
24057         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
24058         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
24059
24060 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24061
24062         * math/libm-test.c: Support platforms without multiple rounding modes.
24063         * math/bug-nextafter.c: Support platforms without FP exceptions.
24064         * math/bug-nexttoward.c: Likewise.
24065         * math/test-fenv.c: Likewise.
24066         * math/test-misc.c: Likewise.
24067         * stdlib/bug-getcontext.c: Likewise.
24068
24069 2012-05-17  Andreas Jaeger  <aj@suse.de>
24070
24071         * manual/examples/search.c (critter_cmp): Change signature to
24072         avoid warnings.
24073         * manual/string.texi (Collation Functions): Likewise.
24074
24075 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24076
24077         * bits/types.h: Fold copyright years.
24078         * bits/typesizes.h: Likewise.
24079         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
24080         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
24081         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
24082         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
24083         * time/time.h: Likewise.
24084
24085 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
24086
24087         [BZ #208]
24088         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
24089         in instead of returning them.  Return void.
24090         (__libc_mallinfo): Accumulate over all arenas.
24091         (__malloc_stats): Adjust for change in int_mallinfo interface.
24092
24093 2012-05-16  Roland McGrath  <roland@hack.frob.com>
24094
24095         [BZ #10375]
24096         * configure.in (NM): Add AC_CHECK_TOOL for it.
24097         (libc_extra_cflags): New substituted variable.
24098         Check for -fstack-protector being used implicitly.
24099         * configure: Regenerated.
24100         * config.make.in (config-extra-cflags): New variable,
24101         gets @libc_extra_cflags@.
24102         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
24103
24104         [BZ #10375]
24105         * configure.in: Check for _FORTIFY_SOURCE being predefined.
24106         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
24107         * configure: Regenerated.
24108         * config.make.in (CPPUNDEFS): New substituted variable.
24109         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
24110         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
24111         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
24112
24113 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24114
24115         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
24116         (mq_attr): Use __syscall_slong_t.
24117
24118 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24119
24120         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
24121         Check __x86_64__ instead of __WORDSIZE.
24122         (_STAT_VER_LINUX): Likewise.
24123         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
24124         __syscall_ulong_t and __syscall_slong_t.
24125         (stat64): Likewise.
24126
24127 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24128
24129         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
24130
24131 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24132
24133         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
24134
24135 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24136
24137         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
24138         __syscall_ulong_t.
24139
24140         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
24141         include <bits/wordsize.h>.  Check __x86_64__ instead of
24142         __WORDSIZE.
24143         (greg_t): Use "__extension__ long long int" if __x86_64__ is
24144         defined.
24145         (mcontext_t): Replace "unsigned long" with "unsigned long long".
24146
24147         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
24148         include <bits/wordsize.h>.  Check __x86_64__ instead of
24149         __WORDSIZE.
24150         (user_regs_struct): Use "__extension__ unsigned long long"
24151         instead of "unsigned long" if __x86_64__ is defined.
24152         (user): Likewise.  Pad after pointer field if __ILP32__ is
24153         defined.
24154
24155 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
24156
24157         * configure.in (makeinfo): Require version 4.5 or later.  Allow
24158         versions 5 to 9.
24159         * configure: Regenerated.
24160         * manual/install.texi (texinfo): Increase version requirement to
24161         4.5 or later.
24162         * INSTALL: Regenerated.
24163
24164         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
24165
24166 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24167
24168         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
24169
24170         * sysdeps/x86_64/x32/ffs.c: New file.
24171
24172         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
24173         __syscall_ulong_t.
24174         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
24175         defined.  Use __syscall_ulong_t.
24176         (shminfo): Use __syscall_ulong_t.
24177         (shm_info): Likewise.
24178
24179         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
24180         __syscall_ulong_t.
24181
24182         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
24183         <bits/wordsize.h>.
24184         (msgqnum_t): Use __syscall_ulong_t.
24185         (msglen_t): Likewise.
24186         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
24187         __syscall_ulong_t.
24188
24189         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
24190         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24191
24192         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
24193
24194         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
24195         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
24196
24197         * sysvipc/sys/msg.h (msgbuf): Replace long int with
24198         __syscall_slong_t.
24199
24200         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
24201         include <bits/wordsize.h>.  Check __x86_64__ instead of
24202         __WORDSIZE.
24203
24204         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
24205         "unsigned long long int" if __x86_64__ is defined.
24206         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
24207
24208         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
24209         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24210         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
24211
24212         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
24213         <stdint.h>.
24214         (GET_PC): Cast to uintptr_t first.
24215         (GET_FRAME): Likewise.
24216         (GET_STACK): Likewise.
24217
24218         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
24219         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
24220         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
24221         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
24222         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
24223         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
24224         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
24225         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
24226         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24227         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
24228         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
24229         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
24230         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
24231         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
24232         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
24233         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
24234         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
24235         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
24236         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
24237         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
24238         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
24239         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
24240         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
24241         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
24242         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
24243         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
24244         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
24245         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
24246         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
24247
24248 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
24249
24250         * Makerules (+depfiles): Also collect depfiles from .oS in
24251         $(extra-objs).
24252         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
24253         .oS, $(libnldbl-routines)).
24254
24255         * Makerules (native-compile-mkdep-flags): Define.
24256         * sunrpc/Makefile (extra-objs): Add $(addprefix
24257         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
24258         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
24259         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
24260         calling $(make-target-directory).
24261
24262 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24263
24264         * bits/types.h (__snseconds_t): Removed.
24265         * time/time.h (struct timespec): Replace __snseconds_t with
24266         __syscall_slong_t.
24267         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
24268         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
24269         Likewise.
24270         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24271         (__SNSECONDS_T_TYPE): Likewise.
24272         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24273         (__SNSECONDS_T_TYPE): Likewise.
24274         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24275         (__SNSECONDS_T_TYPE): Likewise.
24276
24277 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24278
24279         * sysdeps/mach/hurd/bits/typesizes.h
24280         (__SYSCALL_SLONG_TYPE): New macro.
24281         (__SYSCALL_ULONG_TYPE): Likewise.
24282
24283 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24284
24285         * bits/types.h (__syscall_slong_t): New type.
24286         (__syscall_ulong_t): Likewise.
24287
24288         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
24289         (__SYSCALL_ULONG_TYPE): Likewise.
24290         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24291         (__SYSCALL_SLONG_TYPE): Likewise.
24292         (__SYSCALL_ULONG_TYPE): Likewise.
24293         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24294         (__SYSCALL_SLONG_TYPE): Likewise.
24295         (__SYSCALL_ULONG_TYPE): Likewise.
24296         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24297         (__SYSCALL_SLONG_TYPE): Likewise.
24298         (__SYSCALL_ULONG_TYPE): Likewise.
24299
24300 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24301
24302         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
24303         Add sigaltstack-offsets.sym.
24304         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
24305         <sigaltstack-offsets.h>.
24306         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
24307         longjmp_msg pointer.
24308         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
24309         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
24310         signal stack.
24311         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
24312
24313 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24314
24315         * elf/stackguard-macros.h: Remove file.
24316         * sysdeps/generic/stackguard-macros.h: New file.
24317         * sysdeps/i386/stackguard-macros.h: Likewise.
24318         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
24319         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
24320         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
24321         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
24322         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
24323         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
24324         * sysdeps/x86_64/stackguard-macros.h: Likewise.
24325         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
24326         <elf/stackguard-macros.h>.
24327
24328         [BZ #14109]
24329         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
24330         __aligned__ in attribute.
24331         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
24332         (gregset_t): Likewise.
24333
24334 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24335
24336         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
24337         * sysdeps/x86_64/64/Implies-after: Here.  New file.
24338         * sysdeps/x86_64/x32/Implies-after: New file.
24339
24340 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24341
24342         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
24343         and access return value for _dl_profile_fixup.  Use R10_LP to
24344         load frame size.
24345
24346 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24347
24348         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
24349
24350 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24351
24352         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
24353         * sysdeps/x86_64/x32/sysdep.h: New file.
24354
24355 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24356
24357         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
24358         * sysdeps/x86_64/setjmp.S: Likewise.
24359
24360 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24361
24362         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
24363         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
24364         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
24365         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
24366         remove unused global constant.
24367
24368 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
24369
24370         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
24371         include of <not-cancel.h>.
24372
24373 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24374
24375         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
24376
24377 2012-05-15  Jeff Law  <law@redhat.com>
24378             Andreas Jaeger  <aj@suse.de>
24379
24380         [BZ #13594]
24381         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
24382         out from...
24383         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
24384         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
24385         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
24386         code changing __hst_map_handle.map.
24387
24388 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24389
24390         * configure.in (sysnames): Look for Implies-before and Implies-after
24391         files.
24392         * configure: Regenerated.
24393
24394 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24395
24396         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
24397         8-byte data alignment with LP_SIZE alignment.
24398
24399 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24400
24401         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
24402         into R10_LP.
24403
24404 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24405
24406         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
24407
24408 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24409
24410         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
24411         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
24412         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
24413         Likewise.
24414         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
24415
24416 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24417
24418         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
24419         (stackinfo_sub_sp): Likewise.
24420
24421 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24422
24423         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
24424         RAX_LP.
24425
24426 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24427
24428         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
24429         into R*_LP.
24430
24431 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24432
24433         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
24434         sizes into R*_LP.
24435
24436 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24437
24438         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
24439
24440 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24441
24442         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
24443         into R11_LP and load __x86_64_shared_cache_size_half into
24444         R8_LP.
24445
24446 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24447
24448         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
24449         R8_LP.
24450
24451 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24452
24453         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
24454         logb for POWER7.
24455         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
24456         logbf for POWER7.
24457         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
24458         logbl for POWER7.
24459         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
24460         powerpc32/power7/fpu/s_logb.c via #include.
24461         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
24462         powerpc32/power7/fpu/s_logbf.c via #include.
24463         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
24464         powerpc32/power7/fpu/s_logbl.c via #include.
24465
24466 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24467
24468         * README.libm: Remove file.
24469
24470 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24471
24472         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
24473         count for x32.  Use R*_LP and omit operand-size suffix.
24474
24475 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24476
24477         * shlib-versions: Move x86_64-.*-linux.* entries to ...
24478         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
24479         * sysdeps/x86_64/x32/shlib-versions: New file.
24480
24481 2012-05-14  Roland McGrath  <roland@hack.frob.com>
24482
24483         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
24484         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
24485         Use _dl_fatal_printf instead.
24486
24487 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24488
24489         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
24490         set if not set by the user.  Do not allow for being unset.
24491         * sysdeps/unix/sysv/linux/configure: Regenerated.
24492
24493 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24494
24495         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
24496         the `q' suffix from lea and replace .quad with ASM_ADDR.
24497
24498 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24499
24500         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
24501         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
24502         instead of $17.
24503         (PTR_DEMANGLE): Likewise.
24504
24505 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24506
24507         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
24508         (LP_OP): Likewise.
24509         (ASM_ADDR): Likewise.
24510         (RAX_LP): Likewise.
24511         (RBP_LP): Likewise.
24512         (RBX_LP): Likewise.
24513         (RCX_LP): Likewise.
24514         (RDI_LP): Likewise.
24515         (RSI_LP): Likewise.
24516         (RSP_LP): Likewise.
24517         (R8_LP): Likewise.
24518         (R9_LP): Likewise.
24519         (R10_LP): Likewise.
24520         (R10_LP): Likewise.
24521         (R11_LP): Likewise.
24522         (R12_LP): Likewise.
24523         (R13_LP): Likewise.
24524         (R14_LP): Likewise.
24525         (R15_LP): Likewise.
24526
24527 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24528
24529         * sysdeps/x86_64/x32/dl-machine.h: New file.
24530
24531 2012-05-14  Andreas Jaeger  <aj@suse.de>
24532
24533         * manual/Makefile (subdir): Remove export of subdir.
24534         (all): Remove target.
24535         (.PHONY): Remove all from list.
24536         (mkinstalldirs): Remove.
24537         (.PHONY): Remove installdirs from list.
24538         ($(inst_infodir)/libc.info): Use make-target-directory.
24539         (installdirs): Remove.
24540         (subdir_%): Remove.
24541         (glibc-targets): Remove.
24542         (lib): Remove.
24543         (stubs): Remove.
24544         ($(objpfx)stubs ../po/manual.pot): Remove.
24545         ($(objpfx)stamp%): Remove.
24546         (make-target-directory): Remove.
24547         (subdir_install): Remove.
24548         (routines): Remove.
24549         (aux): Remove.
24550         (sources): Remove.
24551         (objects): Remove.
24552         (headers): Remove.
24553
24554         [BZ #13750]
24555         * manual/.gitignore: Remove, it's not needed anymore.
24556         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
24557         all files in it.
24558         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
24559         directory.
24560         (texis): Renamed to $(objpfx)texis.
24561         (texis-path): New, contains path to generated files.
24562         (chapters.%): Use texis-path for complete path, add extra argument
24563         libc-texinfo.sh.
24564         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
24565         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
24566         (summary,texi, stamp-summary): Use complete path of
24567         files. Generate files in build dir.
24568         (dir-add.texi): Build in build dir.
24569         (libm-err.texi,stamp-libm-err): Likewise.
24570         (version.texi, stamp-version): Likewise.
24571         (.%c.texi): Likewise.
24572         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
24573         (mostlyclean): Remove target.
24574         (realclean): Remove target.
24575         (generated): Add new variable with contents from mostlyclean and
24576         realclean, remove entries duplicated in common-mostlyclean, add
24577         stamp-libm-err and stamp-version.
24578         (generated-dirs): Add libc directory.
24579         ($(inst_infodir)/libc.info): Install files from build dir.
24580
24581         * manual/install.texi (Configuring and compiling): Adjust since
24582         the info files are not part of the tar ball anymore.
24583
24584 2012-05-14  Andreas Jaeger  <aj@suse.de>
24585
24586         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
24587         variable.
24588
24589 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24590
24591         [BZ #13717]
24592         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
24593         to 2.2.0 where earlier.
24594         * sysdeps/unix/sysv/linux/configure: Regenerated.
24595         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
24596         Remove conditional code.
24597         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
24598         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
24599         Remove conditional code.
24600         [!__NR_lchown]: Likewise.
24601         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24602         [__NR_lchown]: Likewise.
24603         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
24604         comment referencing __ASSUME_LCHOWN_SYSCALL.
24605         * sysdeps/unix/sysv/linux/i386/sigaction.c
24606         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24607         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24608         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
24609         Remove conditional code.
24610         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
24611         (__protocol_available): Remove #if 0 code.
24612         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
24613         conditional code.
24614         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
24615         * sysdeps/unix/sysv/linux/kernel-features.h
24616         (__ASSUME_GETCWD_SYSCALL): Don't define.
24617         (__ASSUME_REALTIME_SIGNALS): Likewise.
24618         (__ASSUME_PREAD_SYSCALL): Likewise.
24619         (__ASSUME_PWRITE_SYSCALL): Likewise.
24620         (__ASSUME_POLL_SYSCALL): Likewise.
24621         (__ASSUME_LCHOWN_SYSCALL): Likewise.
24622         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
24623         non-SPARC.
24624         (__ASSUME_SIOCGIFNAME): Don't define.
24625         (__ASSUME_MSG_NOSIGNAL): Likewise.
24626         (__ASSUME_SENDFILE): Define unconditionally.
24627         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
24628         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
24629         conditional code.
24630         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
24631         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
24632         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24633         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24634         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
24635         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24636         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
24638         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24639         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24641         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24642         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
24644         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24645         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
24647         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24648         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
24650         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24651         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24653         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24654         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
24656         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24657         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24659         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24660         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24661         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
24662         Remove conditional code.
24663         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24664         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24665         Remove conditional code.
24666         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24667         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
24668         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
24669         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24670         Remove conditional code.
24671         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24672         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
24673         Remove conditional code.
24674         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24675         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
24676         Remove conditional code.
24677         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24678         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24679         Remove conditional code.
24680         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24681         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24682         Remove conditional code.
24683         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24684         * sysdeps/unix/sysv/linux/sh/pwrite64.c
24685         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24686         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24687         * sysdeps/unix/sysv/linux/sigaction.c
24688         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24689         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24690         * sysdeps/unix/sysv/linux/sigpending.c
24691         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24692         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24693         * sysdeps/unix/sysv/linux/sigprocmask.c
24694         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24695         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24696         * sysdeps/unix/sysv/linux/sigsuspend.c
24697         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24698         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24699         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
24700         (__libc_missing_rt_sigs): Remove.
24701         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
24702         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
24703         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
24704         Remove conditional code.
24705         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
24706         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
24707         return 1.
24708         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
24709         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
24710         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
24711         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
24712
24713 2012-05-14  Andreas Jaeger  <aj@suse.de>
24714
24715         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
24716         it's not used in glibc.
24717         (__coshm1): Likewise.
24718         (__acosh1p): Likewise.
24719         (__sgn): Likewise.
24720
24721         * manual/string.texi (Copying and Concatenation): Add missing
24722         variable in concat example.
24723         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
24724
24725 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24726
24727         [BZ #14103]
24728         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
24729         __builtin_clzl with __builtin_clzll.
24730
24731 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24732
24733         [BZ #14104]
24734         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
24735         libc_freeres_ptr.
24736
24737 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24738
24739         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
24740         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
24741         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
24742         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
24743
24744 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
24745
24746         * NEWS: Update ia64 info.
24747
24748 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
24749
24750         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
24751         used as bcopy.
24752
24753 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
24754
24755         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
24756         * sysdeps/unix/syscalls.list (dup3): Likewise.
24757         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
24758         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
24759
24760 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24761
24762         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
24763         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
24764
24765 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24766
24767         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
24768         thread pointer.
24769         (TLS_IE): Use mov/add instead of movq/addq to load thread
24770         pointer.
24771         (TLS_GD_PREFIX): New.
24772         (TLS_GD): Use it.
24773
24774 2012-05-11  David S. Miller  <davem@davemloft.net>
24775
24776         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
24777         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
24778         (_FPU_SETCW): Likewise.
24779
24780 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24781
24782         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
24783         is 32-byte aligned.
24784
24785 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
24786
24787         [BZ #11837]
24788         * iconvdata/gb18030.c: Update tables.
24789         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
24790         characters specially.
24791         (BODY for TO_LOOP): Add encoding of missing ranges.
24792
24793 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
24794
24795         [BZ #13673]
24796         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
24797         * sysdeps/mach/hurd/dup3.c: Likewise.
24798         * sysdeps/mach/hurd/readlinkat.c: Likewise.
24799         * sysdeps/powerpc/memmove.c:: Likewise.
24800
24801 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24802
24803         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
24804         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
24805
24806 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24807
24808         * elf/elf.h (R_X86_64_RELATIVE64): New.
24809         (R_X86_64_NUM): Updated.
24810         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
24811         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
24812         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
24813         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
24814         tst-quad1pie tst-quad2pie
24815         (modules-names): Add tst-quadmod1 tst-quadmod2.
24816         ($(objpfx)tst-quad1): New dependency.
24817         ($(objpfx)tst-quad2): Likewise.
24818         ($(objpfx)tst-quad1pie): Likewise.
24819         ($(objpfx)tst-quad2pie): Likewise.
24820         * sysdeps/x86_64/tst-quad1.c: New file.
24821         * sysdeps/x86_64/tst-quad1pie.c: New file.
24822         * sysdeps/x86_64/tst-quad2.c: Likewise.
24823         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
24824         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
24825         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
24826         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
24827         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
24828
24829 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24830
24831         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
24832         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
24833         * streams/stropts.h (t_scalar_t): Define type.
24834
24835         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
24836         (_PATH_PRESERVE): Set to "/var/lib".
24837         (_PATH_RWHODIR): Set to "/var/spool/rwho".
24838
24839         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
24840         instead of int.
24841
24842         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
24843         if __dir_mkfile succeeded.
24844
24845         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
24846         checking for _hurd_dtablesize.  Unlock it right after having
24847         finished _hurd_dtable allocation.
24848
24849 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24850
24851         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
24852         * sysdeps/mach/hurd/configure: Regenerated.
24853         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
24854         special-casing to...
24855         * sysdeps/gnu/configure.in: ... this new file.
24856         * sysdeps/unix/sysv/linux/configure: Regenerated.
24857         * sysdeps/gnu/configure: New generated file.
24858
24859         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
24860         for Linux: use nsec instead of usec, as well as:
24861         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
24862         members of type struct timespec.
24863         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
24864         New macros.
24865         (struct stat64): Likewise.
24866         (_STATBUF_ST_NSEC): New macro.
24867         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
24868
24869         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
24870         __strtoul_internal rather than strtoul.
24871
24872 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24873
24874         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
24875         and reject them.
24876
24877 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24878
24879         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
24880         which preserves existing values.
24881         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
24882
24883 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24884
24885         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
24886         TIMEOUT values.  Return EINVAL for NFDS values either negative or
24887         greater than FD_SETSIZE.
24888
24889 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24890
24891         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
24892         allocated, call __vm_protect to finish enabling the existing space, and
24893         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
24894         allocate the remainder.
24895
24896 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24897
24898         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
24899         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
24900
24901 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24902
24903         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
24904         sysdeps/mach/hurd/readlink.c.
24905
24906         * posix/tst-sysconf.c (posix_options): Only use
24907         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
24908         _POSIX_SYNCHRONIZED_IO when they are defined
24909         * sysdeps/mach/hurd/bits/posix_opt.h:
24910         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
24911         (_XOPEN_REALTIME): Undefine macro.
24912         (_XOPEN_REALTIME_THREADS): Undefine macro.
24913         (_XOPEN_SHM): Undefine macro.
24914         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
24915         macro to -1.
24916         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
24917         macro to -1.
24918         (_POSIX_ASYNC_IO): Undefine macro.
24919         (_POSIX_PRIORITIZED_IO): Undefine macro.
24920         (_POSIX_SPIN_LOCKS): Define macro to -1.
24921
24922         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
24923         SA_NODEFER, SA_RESETHAND.
24924         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
24925         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
24926         F_DUPFD_CLOEXEC.
24927
24928 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24929
24930         * elf/Makefile (pldd-modules): Define unconditionally.
24931
24932 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24933
24934         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
24935
24936 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24937
24938         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
24939         Return ENOENT when name is empty.
24940         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
24941
24942 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24943
24944         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
24945
24946         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
24947
24948 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24949
24950         Fix mlock in all cases except non-readable pages.
24951         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
24952         instead of VM_PROT_ALL as parameter to __vm_wire function.
24953
24954         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
24955         (__mkdir): When path is `/', just fail with EEXIST.
24956         * sysdeps/mach/hurd/mkdirat.c: Likewise.
24957
24958 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24959
24960         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
24961         <sys/uio.h> (for writev).
24962         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
24963         and <sys/param.h> (for MIN).
24964
24965 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24966
24967         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
24968         REQUESTED_TIME.  Properly set the remaining time and return EINTR
24969         if interrupted.
24970
24971 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24972
24973         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
24974         Depend on against $(link-rpcuserlibs).
24975
24976 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24977
24978         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
24979         (__libc_stack_end): Do not use attribute_relro.
24980         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
24981         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
24982         to libthread-provided value.
24983         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
24984         attribute_relro.
24985
24986 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24987
24988         [BZ #3748]
24989         * bits/libc-lock.h (__libc_once_get): New macro.
24990         * sysdeps/mach/bits/libc-lock.h: Likewise.
24991         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
24992         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
24993         instead of using implementation details.
24994
24995         * libio/fileops.c: Unconditionally include <kernel-features.h>.
24996         * libio/freopen.c: Likewise.
24997         * libio/freopen64.c: Likewise.
24998         * misc/syslog.c: Likewise.
24999         * nscd/connections.c: Likewise.
25000         * nscd/netgroupcache.c: Likewise.
25001         * sysdeps/posix/getcwd.c: Likewise.
25002
25003 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25004
25005         * math/w_ilogbf.c: Add #include <limits.h>.
25006
25007 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25008
25009         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
25010         path instead of returning without unlocking.
25011
25012         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
25013         immediate-write ioctls.
25014         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
25015
25016 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25017
25018         * sysdeps/mach/hurd/i386/init-first.c (init): Use
25019         __builtin_frame_address instead of making assumptions about the
25020         location of the return address relative to DATA.  Force early load of
25021         the return address.
25022         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
25023         __builtin_frame_address.
25024
25025         dup3 for GNU Hurd.
25026         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
25027         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
25028         implement dup3 and do some further code clean-ups.
25029         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
25030         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
25031
25032 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25033
25034         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
25035
25036         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
25037         HURD_CRITICAL_END around holding _hurd_dtable_lock.
25038         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
25039         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
25040         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
25041         d->port.lock.
25042
25043         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
25044         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
25045         when handler == SIG_ERR, not when handler != SIG_ERR.
25046
25047 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25048
25049         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
25050         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
25051         definitions.
25052
25053         accept4 for GNU Hurd.
25054         * include/sys/socket.h (__libc_accept4): New prototype.
25055         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
25056         to implement __libc_accept4.
25057         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
25058         __libc_accept4.
25059         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
25060
25061         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
25062         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
25063         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
25064         signal-defines.sym.
25065
25066 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25067
25068         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
25069
25070 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25071
25072         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
25073         assertion on O_CLOEXEC flag.
25074         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
25075         * hurd/intern-fd.c: Likewise.
25076         * hurd/port2fd.c: Likewise.
25077
25078 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25079
25080         [BZ #3906]
25081         * bits/in.h (IPV6_PKTINFO): Define new macro.
25082         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
25083
25084 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25085
25086         [BZ #13954]
25087         [BZ #13955]
25088         [BZ #13956]
25089         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
25090         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
25091         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
25092         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
25093         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
25094         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
25095         * math/libm-test.inc (logb_test) : Additional logb tests.
25096
25097 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
25098             Andreas Jaeger  <aj@suse.de>
25099
25100         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
25101         * configure: Regenerated.
25102         * config.h.in (LINK_OBSOLETE_RPC): New macro.
25103         * config.make.in (link-obsolete-rpc): New substituted variable.
25104         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
25105         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
25106         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25107         (shared-only-routines): Don't set it under [link-obsolete-rpc],
25108         so that libc.a contains the symbols.
25109         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25110         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
25111         * sunrpc/auth_none.c: Likewise.
25112         * sunrpc/auth_unix.c: Likewise.
25113         * sunrpc/authdes_prot.c: Likewise.
25114         * sunrpc/authuxprot.c: Likewise.
25115         * sunrpc/clnt_gen.c: Likewise.
25116         * sunrpc/clnt_perr.c: Likewise.
25117         * sunrpc/clnt_raw.c: Likewise.
25118         * sunrpc/clnt_simp.c: Likewise.
25119         * sunrpc/clnt_tcp.c: Likewise.
25120         * sunrpc/clnt_udp.c: Likewise.
25121         * sunrpc/clnt_unix.c: Likewise.
25122         * sunrpc/des_crypt.c: Likewise.
25123         * sunrpc/des_soft.c: Likewise.
25124         * sunrpc/get_myaddr.c: Likewise.
25125         * sunrpc/key_call.c: Likewise.
25126         * sunrpc/key_prot.c: Likewise.
25127         * sunrpc/netname.c: Likewise.
25128         * sunrpc/pm_getmaps.c: Likewise.
25129         * sunrpc/pm_getport.c: Likewise.
25130         * sunrpc/pmap_clnt.c: Likewise.
25131         * sunrpc/pmap_prot.c: Likewise.
25132         * sunrpc/pmap_prot2.c: Likewise.
25133         * sunrpc/pmap_rmt.c: Likewise.
25134         * sunrpc/publickey.c: Likewise.
25135         * sunrpc/rpc_cmsg.c: Likewise.
25136         * sunrpc/rpc_common.c: Likewise.
25137         * sunrpc/rpc_dtable.c: Likewise.
25138         * sunrpc/rpc_prot.c: Likewise.
25139         * sunrpc/rpc_thread.c: Likewise.
25140         * sunrpc/rtime.c: Likewise.
25141         * sunrpc/svc.c: Likewise.
25142         * sunrpc/svc_auth.c: Likewise.
25143         * sunrpc/svc_raw.c: Likewise.
25144         * sunrpc/svc_run.c: Likewise.
25145         * sunrpc/svc_tcp.c: Likewise.
25146         * sunrpc/svc_udp.c: Likewise.
25147         * sunrpc/svc_unix.c: Likewise.
25148         * sunrpc/svcauth_des.c: Likewise.
25149         * sunrpc/xcrypt.c: Likewise.
25150         * sunrpc/xdr.c: Likewise.
25151         * sunrpc/xdr_array.c: Likewise.
25152         * sunrpc/xdr_float.c: Likewise.
25153         * sunrpc/xdr_intXX_t.c: Likewise.
25154         * sunrpc/xdr_mem.c: Likewise.
25155         * sunrpc/xdr_rec.c: Likewise.
25156         * sunrpc/xdr_ref.c: Likewise.
25157         * sunrpc/xdr_sizeof.c: Likewise.
25158         * sunrpc/xdr_stdio.c: Likewise.
25159
25160 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25161
25162         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
25163         change.  Update copyright years.
25164
25165 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25166
25167         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
25168
25169 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
25170             Joseph Myers  <joseph@codesourcery.com>
25171             Paul Pluzhnikov  <ppluzhnikov@google.com>
25172
25173         [BZ #14012]
25174         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
25175         requiring rpcgen.
25176         [cross-compiling] (extra-libs): Likewise.
25177         [cross-compiling] (extra-libs-others): Likewise.
25178         [cross-compiling] (librpcsvc-routines): Likewise.
25179         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
25180         [cross-compiling] (omit-deps): Likewise.
25181         (sunrpc-CPPFLAGS): New variable.
25182         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
25183         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
25184         (cross-rpcgen-objs): New variable.
25185         (extra-objs): Append $(cross-rpcgen-objs).
25186         ($(cross-rpcgen-objs)): New rule.
25187         ($(objpfx)cross-rpcgen): Likewise.
25188         (rpcgen-cmd): Define to use $(built-program-file).  Expand
25189         comment.
25190         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
25191         ($(objpfx)x%.stmp): Likewise.
25192         * sunrpc/proto.h [IS_IN_build] (_): Define.
25193         [IS_IN_build] (_libc_intl_domainname): Likewise.
25194
25195 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25196
25197         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
25198         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
25199         and R_X86_64_TPOFF64.
25200
25201 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25202
25203         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
25204         sysdeps/unix/sysv/syscalls.list.
25205         (stime): Likewise.
25206         (utime): Likewise.
25207         * sysdeps/unix/sysv/syscalls.list: Remove file.
25208
25209 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25210
25211         [BZ #3440]
25212         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
25213         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
25214         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
25215         (__LC_IDENTIFICATION): Make these macros useful in #if
25216         expressions, as required by C99.
25217
25218 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
25219
25220         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
25221         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
25222         after this.
25223
25224 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25225
25226         * stdlib/longlong.h: Updated from GCC.
25227
25228 2012-05-09  Andreas Jaeger  <aj@suse.de>
25229
25230         * nscd/nscd.c (run_modes): Make named enum, reorder so that
25231         default is first entry.
25232         (run_mode): Set type.
25233         (main): Remove informal message about syslog.
25234         (options): Fix typo.
25235
25236         [BZ #14053]
25237         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
25238         to asm.
25239         (lrint): Likewise.
25240         (llrintf): Likewise.
25241         (llrint): Likewise.
25242         (rint): Likewise.
25243         (rintf): Likewise.
25244         (nearbyint): Likewise.
25245         (nearbyintf): Likewise.
25246
25247 2012-05-09  Andreas Jaeger  <aj@suse.de>
25248             Pedro Alves  <palves@redhat.com>
25249
25250         * nscd/nscd.c (run_mode): Use enum.
25251         (main): Cleanup coding style issue.
25252
25253 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
25254             Andreas Jaeger  <aj@suse.de>
25255
25256         * nscd/nscd.c (go_background): Replaced with...
25257         (run_mode): ... this.
25258         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
25259         (options): Add -F --foreground.
25260         (main): Implement it.
25261         (parse_opt): Parse it.
25262
25263 2012-05-09  Andreas Jaeger  <aj@suse.de>
25264
25265         [BZ #14083]
25266         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
25267         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
25268         -Wconversion warning.
25269         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
25270         Likewise.
25271
25272 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
25273
25274         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
25275         == 0.
25276         (LC_ALL): Use macro-int-constant.
25277         (LC_COLLATE): Likewise.
25278         (LC_CTYPE): Likewise.
25279         (LC_MESSAGES): Likewise.
25280         (LC_MONETARY): Likewise.
25281         (LC_NUMERIC): Likewise.
25282         (LC_TIME): Likewise.
25283         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
25284         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25285         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25286         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
25287         Specify type.
25288         [C99-based standards] (float_t): Expect type.
25289         [C99-based standards] (double_t): Expect type.
25290         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
25291         type.
25292         [C99-based standards] (HUGE_VALL): Likewise.
25293         [C99-based standards] (INFINITY): Likewise.
25294         [C99-based standards] (NAN): Likewise.
25295         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
25296         [C99-based standards] (FP_NAN): Likewise.
25297         [C99-based standards] (FP_NORMAL): Likewise.
25298         [C99-based standards] (FP_SUBNORMAL): Likewise.
25299         [C99-based standards] (FP_ZERO): Likewise.
25300         [C99-based standards] (FP_FAST_FMA): Use
25301         optional-macro-int-constant.  Specify type.  Require == 1.
25302         [C99-based standards] (FP_FAST_FMAF): Likewise.
25303         [C99-based standards] (FP_FAST_FMAL): Likewise.
25304         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
25305         [C99-based standards] (FP_ILOGBNAN): Likewise.
25306         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
25307         Specify type.
25308         [C99-based standards] (MATH_ERREXCEPT): Likewise.
25309         [C99-based standards] (math_errhandling): Specify type.
25310         [ISO99 || ISO11] (signgam): Do not allow.
25311         [non-C99-based standards] (copysignf): Do not allow.
25312         [non-C99-based standards] (exp2f): Likewise.
25313         [non-C99-based standards] (log2f): Likewise.
25314         [non-C99-based standards] (modff): Allow.
25315         [non-C99-based standards] (erff): Do not allow.
25316         [non-C99-based standards] (erfcf): Likewise.
25317         [non-C99-based standards] (gammaf): Likewise.
25318         [non-C99-based standards] (hypotf): Likewise.
25319         [non-C99-based standards] (j0f): Likewise.
25320         [non-C99-based standards] (j1f): Likewise.
25321         [non-C99-based standards] (jnf): Likewise.
25322         [non-C99-based standards] (lgammaf): Likewise.
25323         [non-C99-based standards] (tgammaf): Likewise.
25324         [non-C99-based standards] (y0f): Likewise.
25325         [non-C99-based standards] (y1f): Likewise.
25326         [non-C99-based standards] (ynf): Likewise.
25327         [non-C99-based standards] (isnanf): Likewise.
25328         [non-C99-based standards] (acoshf): Likewise.
25329         [non-C99-based standards] (asinhf): Likewise.
25330         [non-C99-based standards] (atanhf): Likewise.
25331         [non-C99-based standards] (cbrtf): Likewise.
25332         [non-C99-based standards] (expm1f): Likewise.
25333         [non-C99-based standards] (ilogbf): Likewise.
25334         [non-C99-based standards] (log1pf): Likewise.
25335         [non-C99-based standards] (logbf): Likewise.
25336         [non-C99-based standards] (nextafterf): Likewise.
25337         [non-C99-based standards] (remainderf): Likewise.
25338         [non-C99-based standards] (rintf): Likewise.
25339         [non-C99-based standards] (scalbf): Likewise.
25340         [non-C99-based standards] (copysignl): Likewise.
25341         [non-C99-based standards] (exp2l): Likewise.
25342         [non-C99-based standards] (log2l): Likewise.
25343         [non-C99-based standards] (modfl): Allow.
25344         [non-C99-based standards] (erfl): Do not allow.
25345         [non-C99-based standards] (erfcl): Likewise.
25346         [non-C99-based standards] (gammal): Likewise.
25347         [non-C99-based standards] (hypotl): Likewise.
25348         [non-C99-based standards] (j0l): Likewise.
25349         [non-C99-based standards] (j1l): Likewise.
25350         [non-C99-based standards] (jnl): Likewise.
25351         [non-C99-based standards] (lgammal): Likewise.
25352         [non-C99-based standards] (tgammal): Likewise.
25353         [non-C99-based standards] (y0l): Likewise.
25354         [non-C99-based standards] (y1l): Likewise.
25355         [non-C99-based standards] (ynl): Likewise.
25356         [non-C99-based standards] (isnanl): Likewise.
25357         [non-C99-based standards] (acoshl): Likewise.
25358         [non-C99-based standards] (asinhl): Likewise.
25359         [non-C99-based standards] (atanhl): Likewise.
25360         [non-C99-based standards] (cbrtl): Likewise.
25361         [non-C99-based standards] (expm1l): Likewise.
25362         [non-C99-based standards] (ilogbl): Likewise.
25363         [non-C99-based standards] (log1pl): Likewise.
25364         [non-C99-based standards] (logbl): Likewise.
25365         [non-C99-based standards] (nextafterl): Likewise.
25366         [non-C99-based standards] (remainderl): Likewise.
25367         [non-C99-based standards] (rintl): Likewise.
25368         [non-C99-based standards] (scalbl): Likewise.
25369         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25370         [non-C99-based standards] (FP_*): Do not allow.
25371         [C99-based standards] (FP_*): Change to
25372         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25373         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25374         allow.
25375         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
25376         (SIG_ERR): Likewise.
25377         [X/Open-based standards] (SIG_HOLD): Likewise.
25378         (SIG_IGN): Likewise.
25379         (SIGABRT): Use macro-int-constant.  Specify type.  Require
25380         positive value.
25381         (SIGFPE): Likewise.
25382         (SIGILL): Likewise.
25383         (SIGINT): Likewise.
25384         (SIGSEGV): Likewise.
25385         (SIGTER): Likewise.
25386         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
25387         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
25388         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
25389         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
25390         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
25391         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
25392         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
25393         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
25394         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
25395         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
25396         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
25397         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
25398         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
25399         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
25400         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
25401         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
25402         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
25403         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
25404         [X/Open-based standards] (SIGTRAP): Likewise.
25405         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
25406         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
25407         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
25408         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
25409         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25410         allow.
25411
25412 2012-05-08  Ian Wienand  <ianw@vmware.com>
25413
25414         [BZ #14080]
25415         * time/tzset.c (__tzset_parse_tz): Update default rules for
25416         daylight time changes in the Energy Policy Act of 2005.
25417
25418 2012-05-09  Andreas Jaeger  <aj@suse.de>
25419
25420         [BZ #13983]
25421         * elf/ldconfig.c (parse_conf): Change string to make clear that
25422         ldconfig only issued a warning if ld.so.conf does not exist.
25423
25424 2012-05-08  David S. Miller  <davem@davemloft.net>
25425
25426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
25427         movxtod instead of popping the value on the stack.
25428
25429         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25430
25431 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
25432
25433         * config.h.in: Add HAVE_ARM_PCS_VFP.
25434
25435 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
25436
25437         [BZ #13979]
25438         * include/features.h: Warn if user requests __FORTIFY_SOURCE
25439         checking but the checks are disabled for any reason.
25440
25441 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
25442
25443         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
25444         and ELF64_R_TYPE with ELFW(R_TYPE).
25445
25446 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
25447
25448         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
25449         (ulimit): Likewise.
25450
25451         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
25452         (settimeofday): Likewise.
25453
25454 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
25455
25456         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
25457         a struct th_u2 inside the union, and move tu_block/tu_code into
25458         a new th_u3 union of tu_block/tu_code inside of that.  Move
25459         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
25460         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
25461         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
25462         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
25463         (th_stuff): Change to th_u1.tu_stuff.
25464         (th_data): Define.
25465         (th_msg): Change to th_u1.th_u2.tu_data.
25466
25467 2012-05-07  David S. Miller  <davem@davemloft.net>
25468
25469         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25470
25471         [BZ #14074]
25472         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
25473         (SETUP_PIC_REG): Use it.
25474         (SETUP_PIC_REG_LEAF): Use it.
25475
25476 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
25477
25478         [BZ #13885]
25479         [BZ #13923]
25480         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25481         USE_AS_EXPM1L.
25482         (EXPL_FINITE): Likewise.
25483         (FLDLOG): Likewise.
25484         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25485         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25486         e_expl.S.
25487         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25488         USE_AS_EXPM1L.
25489         (EXPL_FINITE): Likewise.
25490         (FLDLOG): Likewise.
25491         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25492         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25493         e_expl.S.
25494         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
25495         test of -max_value argument for long double.
25496         * sysdeps/i386/fpu/libm-test-ulps: Update.
25497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25498
25499 2012-05-06  David S. Miller  <davem@davemloft.net>
25500
25501         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
25502         quad soft-float symbols whose references which are compiler
25503         generated.
25504         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25505
25506 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
25507
25508         [BZ #13884]
25509         [BZ #13914]
25510         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25511         USE_AS_EXP10L.
25512         (EXPL_FINITE): Likewise.
25513         (FLDLOG): Likewise.
25514         (c0): Likewise.
25515         (c1): Likewise.
25516         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25517         Adjust comments for base varying.
25518         (__expl_finite): Change alias to EXPL_FINITE.
25519         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
25520         e_expl.S.
25521         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
25522         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
25523         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
25524         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
25525         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25526         USE_AS_EXP10L.
25527         (EXPL_FINITE): Likewise.
25528         (FLDLOG): Likewise.
25529         (c0): Likewise.
25530         (c1): Likewise.
25531         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25532         Adjust comments for base varying.
25533         (__expl_finite): Change alias to EXPL_FINITE.
25534         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
25535         tests for bugs.
25536         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25537
25538         [BZ #14064]
25539         * math/libm-test.inc (check_float_internal): Correct ulp
25540         calculation for subnormal expected results.
25541
25542 2012-05-06  Andreas Jaeger  <aj@suse.de>
25543
25544         * Makeconfig (+math-flags): New, set to -frounding-math.
25545         (+cflags): Add +math-flags so that all of glibc gets compiled with
25546         it.
25547
25548         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
25549
25550 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
25551
25552         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
25553         Disable one test.
25554
25555         [BZ #13787]
25556         [BZ #13922]
25557         [BZ #14036]
25558         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
25559         (__ieee754_expl): Allow for and saturate large arguments.
25560         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
25561         (u_threshold): Likewise.
25562         (__exp): Call __ieee754_exp before checking for overflow and
25563         underflow.
25564         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
25565         (u_threshold): Likewise.
25566         (__expf): Call __ieee754_expf before checking for overflow and
25567         underflow.
25568         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
25569         (u_threshold): Likewise.
25570         (__expl): Call __ieee754_expl before checking for overflow and
25571         underflow.
25572         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
25573         (__ieee754_expl): Allow for and saturate large arguments.
25574         * math/libm-test.inc (exp_test): Add another test.  Do not allow
25575         missing overflow exception on overflow.
25576         (expm1_test): Do not allow missing overflow exception on overflow.
25577
25578         * sysdeps/i386/fpu/e_expl.c: Move to ...
25579         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
25580         rather than using inline asm.
25581         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
25582         * sysdeps/x86_64/fpu/e_expl.S: Copy from
25583         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
25584
25585         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
25586         (nice): Likewise.
25587         (poll): Likewise.
25588         (signal): Likewise.
25589         (time): Likewise.
25590         (times): Likewise.
25591
25592 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25593
25594         * sysdeps/unix/syscalls.list (adjtime): Add entry from
25595         sysdeps/unix/common/syscalls.list.
25596         (fchmod): Likewise.
25597         (fchown): Likewise.
25598         (ftruncate): Likewise.
25599         (getrusage): Likewise.
25600         (gettimeofday): Likewise.
25601         (setpgid): Likewise.
25602         (setregid): Likewise.
25603         (setreuid): Likewise.
25604         (sigaction): Likewise.
25605         (truncate): Likewise.
25606         (vhangup): Likewise.
25607         * sysdeps/unix/common/syscalls.list: Remove file.
25608         * sysdeps/unix/bsd/Implies: Don't include unix/common.
25609         * sysdeps/unix/sysv/linux/Implies: Likewise.
25610
25611 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25612
25613         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
25614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
25615         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
25616         Moved to ...
25617         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
25618         Here.
25619         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
25620         to ...
25621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
25622         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
25623         to ...
25624         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
25625         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
25626         to ...
25627         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
25628         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
25629         to ...
25630         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
25631         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
25632         to ...
25633         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
25634         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
25635         to ...
25636         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
25637         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
25638         to ...
25639         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
25640         Here.
25641         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
25642         to ...
25643         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
25644         Here.
25645         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
25646         to ...
25647         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
25648         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
25649         Moved to ...
25650         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
25651         Here.
25652         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
25653         to ...
25654         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
25655
25656 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25657
25658         * sysdeps/unix/common/bits/dirent.h: Remove file.
25659         * sysdeps/unix/common/bits/fcntl.h: Likewise.
25660
25661         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
25662         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
25663         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
25664         * sysdeps/unix/bsd/isatty.c: Likewise.
25665         * sysdeps/unix/bsd/tcdrain.c: Likewise.
25666         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
25667         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
25668
25669 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25670
25671         [BZ #13563]
25672         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
25673         long double comparison inaccuracies.
25674         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
25675         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25676
25677 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
25678
25679         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
25680         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
25681
25682 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25683
25684         [BZ #14049]
25685         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
25686         nonzero digits before rounding a hex value.
25687         * stdlib/tst-strtod.c (tests): Add another test.
25688
25689 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25690
25691         * sysdeps/s390/fpu/libm-test-ulps: Update.
25692
25693 2012-05-03  Andreas Jaeger  <aj@suse.de>
25694
25695         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
25696         does not get optimized out.
25697         (malloc_opt_barrier): New.
25698
25699 2012-05-03  Andreas Jaeger  <aj@suse.de>
25700             Roland McGrath  <roland@hack.frob.com>
25701
25702         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
25703         intermediate file deletion.
25704         (generated): Add .symlist files.
25705
25706 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
25707
25708         [BZ #13775]
25709         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
25710         Redirect under this condition.
25711         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25712         [__USE_GNU] (__dprintf_chk): Not under this condition.
25713         [__USE_GNU] (__vdprintf_chk): Likewise.
25714         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
25715         under this condition.
25716         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25717         [__USE_XOPEN2K8] (dprintf): Define under this condition.
25718         [__USE_XOPEN2K8] (vdprintf): Likewise.
25719         [__USE_GNU] (__dprintf_chk): Not under this condition.
25720         [__USE_GNU] (__vdprintf_chk): Likewise.
25721         [__USE_GNU] (dprintf): Likewise.
25722         [__USE_GNU] (vdprintf): Likewise.
25723
25724 2012-05-03  Roland McGrath  <roland@hack.frob.com>
25725
25726         * elf/Makefile (common-generated): Set this instead of generated for
25727         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
25728         $(all-built-dso)-derived lists.
25729
25730 2012-05-03  Andreas Jaeger  <aj@suse.de>
25731
25732         * sysdeps/i386/fpu/libm-test-ulps: Update.
25733
25734         * FAQ: Removed.
25735         * FAQ.in: Likewise.
25736         * scripts/gen-FAQ.pl: Likewise.
25737         * manual/install.texi (Installation): Point to online location of
25738         FAQ.
25739         * Makefile (files-for-dist): Remove FAQ.
25740         (FAQ): Remove.
25741
25742 2012-05-02  Allan McRae  <allan@archlinux.org>
25743
25744         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
25745         (LDFLAGS-reldepmod5.so): Likewise.
25746         (LDFLAGS-reldep6mod1.so): Likewise.
25747         (LDFLAGS-reldep6mod4.so): Likewise.
25748         (LDFLAGS-reldep8mod3.so): Likewise.
25749         (LDFLAGS-unload4mod1.so): Likewise.
25750         (LDFLAGS-unload4mod2.so): Likewise.
25751         (LDFLAGS-tst-initorder): Likewise.
25752         (LDFLAGS-tst-initordera2.so): Likewise.
25753         (LDFLAGS-tst-initordera3.so): Likewise.
25754         (LDFLAGS-tst-initordera4.so): Likewise.
25755         (LDFLAGS-tst-initorderb2.so): Likewise.
25756         (LDFLAGS-noload): Likewise.
25757         (LDFLAGS-next): Likewise.
25758         (LDFLAGS-order2mod1.so): Likewise.
25759         (LDFLAGS-order2mod2.so): Likewise.
25760         (LDFLAGS-tst-initorder2): Likewise.
25761         (LDFLAGS-tst-initorder2a.so): Likewise.
25762         (LDFLAGS-tst-initorder2b.so): Likewise.
25763         (LDFLAGS-tst-initorder2c.so): Likewise.
25764         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
25765
25766 2012-05-02  David S. Miller  <davem@davemloft.net>
25767
25768         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25769
25770 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
25771
25772         [BZ #14055]
25773         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
25774
25775 2012-05-02  Andreas Jaeger  <aj@suse.de>
25776
25777         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
25778         since we manipulate rounding mode.
25779         (CPPFLAGS-test-idouble.c): Likewise.
25780         (CPPFLAGS-test-ifloat.c): Likewise.
25781         (CFLAGS-test-ldouble.c): Likewise.
25782         (CFLAGS-test-double.c): Likewise.
25783         (CFLAGS-test-float.c): Likewise.
25784         (CFLAGS-test-misc.c): Likewise.
25785         (CFLAGS-test-test-fenv.c): Likewise.
25786
25787 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25788
25789         [BZ #2550]
25790         [BZ #2570]
25791         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
25792         comparisons to determine direction to adjust input.
25793
25794 2012-05-01  Roland McGrath  <roland@hack.frob.com>
25795
25796         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
25797         output to the target.
25798
25799         * scripts/localplt.awk: New file.
25800         * elf/Makefile ($(objpfx)check-localplt): Target removed.
25801         (check-localplt-CFLAGS): Variable removed.
25802         ($(all-built-dso:=.jmprel)): New static pattern rule.
25803         (generated): Add those targets.
25804         (localplt-built-dso): New variable.
25805         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
25806
25807         * elf/check-localplt.c: File removed.
25808
25809         * scripts/check-execstack.awk: New file.
25810         * elf/Makefile ($(objpfx)check-execstack): Target removed.
25811         (check-execstack-CFLAGS): Variable removed.
25812         ($(objpfx)check-execstack.h): Target removed.
25813         ($(objpfx)execstack-default): New target.
25814         (generated): Add that instead of check-execstack.h.
25815         ($(all-built-dso:=.phdr)): New static pattern rule.
25816         (generated): Add those targets.
25817         * elf/check-execstack.c: File removed.
25818
25819         * scripts/check-textrel.awk: New file.
25820         * elf/Makefile ($(objpfx)check-textrel): Target removed.
25821         (check-textrel-CFLAGS): Variable removed.
25822         (all-built-dso): Use := to define.o
25823         ($(all-built-dso:=.dyn)): New static pattern rule.
25824         (generated): Add those targets.
25825         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
25826         * config.make.in (READELF): New substituted variable.
25827         * elf/check-textrel.c: File removed.
25828
25829 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25830
25831         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25832         allow.
25833         * conform/data/ctype.h-data [C99-based standards] (isblank):
25834         Expect function.
25835         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
25836         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
25837         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25838         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
25839         Specify type.  Require positive value.
25840         (EILSEQ): Likewise.
25841         (ERANGE): Likewise.
25842         [ISO || POSIX] (EILSEQ): Do not expect.
25843         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
25844         Specify type.  Require positive value.
25845         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
25846         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
25847         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
25848         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
25849         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
25850         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
25851         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
25852         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
25853         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
25854         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
25855         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
25856         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
25857         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
25858         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
25859         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
25860         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
25861         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
25862         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
25863         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
25864         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
25865         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
25866         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
25867         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
25868         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
25869         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
25870         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
25871         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
25872         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
25873         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
25874         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
25875         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
25876         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
25877         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
25878         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
25879         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
25880         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
25881         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
25882         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
25883         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
25884         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
25885         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
25886         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
25887         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
25888         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
25889         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
25890         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
25891         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
25892         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
25893         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
25894         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
25895         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
25896         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
25897         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
25898         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
25899         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
25900         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
25901         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
25902         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
25903         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
25904         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
25905         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
25906         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
25907         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
25908         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
25909         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
25910         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
25911         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
25912         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
25913         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
25914         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
25915         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
25916         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
25917         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
25918         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
25919         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
25920         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
25921         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
25922         Require >= 2.
25923         (FLT_ROUNDS): Expect as macro, not constant.
25924         (FLT_MANT_DIG): Use macro-int-constant.
25925         (DBL_MANT_DIG): Likewise.
25926         (LDBL_MANT_DIG): Likewise.
25927         (FLT_DIG): Likewise.
25928         (DBL_DIG): Likewise.
25929         (LDBL_DIG): Likewise.
25930         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
25931         (DBL_MIN_EXP): Likewise.
25932         (LDBL_MIN_EXP): Likewise.
25933         (FLT_MAX_EXP): Use macro-int-constant.
25934         (DBL_MAX_EXP): Likewise.
25935         (LDBL_MAX_EXP): Likewise.
25936         (FLT_MAX_10_EXP): Likewise.
25937         (DBL_MAX_10_EXP): Likewise.
25938         (LDBL_MAX_10_EXP): Likewise.
25939         (FLT_MAX): Use macro-constant.
25940         (DBL_MAX): Likewise.
25941         (LDBL_MAX): Likewise.
25942         (FLT_EPSILON): Use macro-constant.  Give upper bound.
25943         (DBL_EPSILON): Likewise.
25944         (LDBL_EPSILON): Likewise.
25945         (FLT_MIN): Likewise.
25946         (DBL_MIN): Likewise.
25947         (LDBL_MIN): Likewise.
25948         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
25949         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
25950         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
25951         [ISO11] (FLT_HAS_SUBNORM): Likewise.
25952         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
25953         [ISO11] (DBL_DECIMAL_DIG): Likewise.
25954         [ISO11] (FLT_DECIMAL_DIG): Likewise.
25955         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
25956         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
25957         [ISO11] (FLT_TRUE_MIN): Likewise.
25958         [ISO11] (LDBL_TRUE_MIN): Likewise.
25959         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25960         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
25961         (SCHAR_MIN): Use macro-int-constant.  Specify type.
25962         (SCHAR_MAX): Likewise.
25963         (UCHAR_MAX): Likewise.
25964         (CHAR_MIN): Likewise.
25965         (CHAR_MAX): Likewise.
25966         (MB_LEN_MAX): Use macro-int-constant.
25967         (SHRT_MIN): Use macro-int-constant.  Specify type.
25968         (SHRT_MAX): Likewise.
25969         (USHRT_MAX): Likewise.
25970         (INT_MAX): Likewise.
25971         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
25972         bound negative.
25973         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25974         bound with "U".
25975         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25976         bound with "L".
25977         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
25978         bound negative.  Suffix upper bound with "L".
25979         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25980         bound with "UL".
25981         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
25982         Specify type.
25983         [C99-based standards] (LLONG_MAX): Likewise.
25984         [C99-based standards] (ULLONG_MAX): Likewise.
25985         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
25986         == 0.
25987         [ISO11] (max_align_t): Require type.
25988         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25989
25990         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
25991         from $CFLAGS, without defining away __attribute__ calls.
25992         (checknamespace): Use $CFLAGS_namespace.
25993
25994         * conform/conformtest.pl (@keywords): Only include C99 keywords
25995         for standards based on C99 or C11.
25996
25997         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
25998         Disable tests.
25999         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
26000         UNIX98]: Likewise.
26001
26002         * conform/conformtest.pl: Handle "macro-int-constant" and test for
26003         usability of symbols in #if.
26004
26005         * conform/conformtest.pl: If macro or constant types start
26006         "promoted:", expect the symbol to be of the following type
26007         promoted by the integer promotions.
26008
26009         * conform/conformtest.pl: Parse all "constant" and "macro" lines
26010         in one place.  Also handle "macro-constant".
26011
26012         * conform/conformtest.pl: Only accept expected macro values with
26013         "==".  Parse all "macro" lines in one place.
26014         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
26015
26016         * conform/conformtest.pl: Handle braced types on "constant" lines
26017         instead of handling "typed-constant".
26018         * conform/data/signal.h-data: Use "constant" instead of
26019         "typed-constant".
26020
26021         * conform/conformtest.pl: Handle "optional-" at start of lines in
26022         one place rather than duplicating several cases.  Handle each
26023         format of "macro" line with initial "optional-".
26024
26025         * conform/conformtest.pl: Only accept expected constant or
26026         optional-constant values with "==".  Parse all "constant" lines in
26027         one place.  Parse all "optional-constant" lines in one place.
26028         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
26029         * conform/data/fmtmsg.h-data: Likewise.
26030         * conform/data/netinet/in.h-data: Likewise.
26031         * conform/data/tar.h-data: Likewise.
26032         * conform/data/limits.h-data: Use "==" form on "constant" and
26033         "optional-constant" lines.
26034
26035         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
26036         Use -std=c99 for XOPEN2K.
26037         (@knownproblems): Remove.
26038         (newtoken): Don't check %isknown.
26039
26040         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
26041         Do not expect macro.
26042         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
26043         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
26044         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
26045         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
26046         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
26047         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
26048         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
26049         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
26050         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
26051         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
26052         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
26053         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
26054         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
26055         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
26056         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
26057         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
26058         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
26059         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
26060         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
26061         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
26062         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
26063         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
26064         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
26065         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
26066         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
26067         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
26068         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
26069         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
26070         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
26071         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
26072         [XPG3] (acosh): Likewise.
26073         [XPG3] (asinh): Likewise.
26074         [XPG3] (atanh): Likewise.
26075         [XPG3] (cbrt): Likewise.
26076         [XPG3] (expm1): Likewise.
26077         [XPG3] (ilogb): Likewise.
26078         [XPG3] (log1p): Likewise.
26079         [XPG3] (logb): Likewise.
26080         [XPG3] (nextafter): Likewise.
26081         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
26082         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
26083         [XPG3] (remainder): Likewise.
26084         [XPG3] (rint): Likewise.
26085         [XPG3 || XPG4 || UNIX98] (round): Likewise.
26086         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
26087         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
26088         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
26089         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
26090         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
26091         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
26092         [UNIX98 || XOPEN2K] (scalb): Expect.
26093         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
26094         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
26095         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
26096         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
26097         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
26098         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
26099         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
26100         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
26101         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
26102         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
26103         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
26104         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
26105         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
26106         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
26107         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
26108         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
26109         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
26110         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
26111         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
26112         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
26113         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
26114         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
26115         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
26116         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
26117         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
26118         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
26119         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
26120         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
26121         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
26122         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
26123         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
26124         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
26125         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
26126         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
26127         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
26128         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
26129         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
26130         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
26131         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
26132         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
26133         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
26134         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
26135         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
26136         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
26137         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
26138         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
26139         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
26140         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
26141         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
26142         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
26143         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
26144         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
26145         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
26146         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
26147         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
26148         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
26149         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
26150         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
26151         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
26152         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
26153         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
26154         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
26155         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
26156         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
26157         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
26158         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
26159         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
26160         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
26161         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
26162         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
26163         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
26164         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
26165         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
26166         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
26167         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
26168         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
26169         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
26170         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
26171         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
26172         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
26173         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
26174         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
26175         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
26176         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
26177         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
26178         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
26179         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
26180         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
26181         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
26182         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
26183         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
26184         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
26185         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
26186         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
26187         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
26188         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
26189         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
26190         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
26191         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
26192         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
26193         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
26194         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
26195         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
26196         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
26197         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
26198         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
26199         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
26200         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
26201         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
26202         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
26203         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
26204         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
26205         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
26206         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
26207         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
26208         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
26209         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
26210         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
26211         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
26212         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
26213         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
26214         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
26215         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
26216         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
26217         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
26218         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
26219         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
26220         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
26221         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
26222         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
26223         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
26224         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
26225         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
26226         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
26227         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
26228         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
26229         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
26230
26231         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
26232         _XOPEN_SOURCE_EXTENDED for XPG4.
26233
26234         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
26235
26236         * Makeconfig (localtime): Remove variable.
26237         (inst_localtime-file): Likewise.
26238
26239 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26240
26241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
26242         Update.
26243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26244         Update.
26245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
26246         Update.
26247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
26248         Update.
26249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
26250         Update.
26251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
26252         Update.
26253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26254         Update.
26255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
26256         Update.
26257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26258         Update.
26259
26260 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26261
26262         [BZ #2550]
26263         [BZ #2570]
26264         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
26265         comparisons to determine direction to adjust input.
26266         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
26267         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
26268         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
26269         Likewise.
26270         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
26271         Likewise.
26272         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
26273         Likewise.
26274         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
26275         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
26276         Likewise.
26277         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
26278         Likewise.
26279         * math/libm-test.inc (nexttoward_test): Add more tests.
26280
26281 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26282
26283         [BZ #14040]
26284         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
26285         in version GLIBC_2.1, not GLIBC_2.0.
26286         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
26287         Likewise.
26288
26289 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
26290
26291         [BZ #13942]
26292         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
26293         (1 - x) * (1 + x).
26294         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26295         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
26296         * math/libm-test.inc (acos_test): Add more tests.
26297         (asin_test): Likewise.
26298         * sysdeps/i386/fpu/libm-test-ulps: Update.
26299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26300
26301         [BZ #14034]
26302         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
26303         of square root.
26304         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
26305         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26306         * math/libm-test.inc (acos_test_tonearest): New function.
26307         (acos_test_towardzero): Likewise.
26308         (acos_test_downward): Likewise.
26309         (acos_test_upward): Likewise.
26310         (asin_test_tonearest): Likewise.
26311         (asin_test_towardzero): Likewise.
26312         (asin_test_downward): Likewise.
26313         (asin_test_upward): Likewise.
26314         (main): Call the new functions.
26315         * sysdeps/i386/fpu/libm-test-ulps: Update.
26316         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26317
26318         [BZ #13884]
26319         [BZ #13924]
26320         * math/e_exp10.c: Include <float.h>.
26321         (__ieee754_exp10): Handle underflow here rather than multiplying
26322         large negative argument by M_LN10.
26323         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
26324         of __ieee754_expf.
26325         * math/e_exp10l.c: Include <float.h>.
26326         (__ieee754_exp10l): Handle underflow here rather than multiplying
26327         large negative argument by M_LN10l.
26328         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
26329         spurious overflow exception on underflow.
26330
26331 2012-04-29  Marek Polacek  <polacek@redhat.com>
26332
26333         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
26334         (__fortify_function): New macro.
26335         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
26336         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
26337         __extern_always_inline.
26338         * libio/bits/stdio2.h: Likewise.
26339         * libio/bits/stdio.h: Likewise.
26340         * string/string.h: Likewise.
26341         * string/bits/string3.h: Likewise.
26342         * include/stdio.h: Likewise.
26343         * stdlib/bits/stdlib.h: Likewise.
26344         * stdlib/stdlib.h: Likewise.
26345         * rt/bits/mqueue2.h: Likewise.
26346         * rt/mqueue.h: Likewise.
26347         * posix/bits/unistd.h: Likewise.
26348         * posix/unistd.h: Likewise.
26349         * io/bits/poll2.h: Likewise.
26350         * io/bits/fcntl2.h: Likewise.
26351         * io/fcntl.h: Likewise.
26352         * io/sys/poll.h: Likewise.
26353         * misc/bits/syslog.h: Likewise.
26354         * misc/bits/syslog-ldbl.h: Likewise.
26355         * misc/sys/syslog.h: Likewise.
26356         * socket/bits/socket2.h: Likewise.
26357         * socket/sys/socket.h: Likewise.
26358         * debug/tst-chk1.c: Likewise.
26359         * wcsmbs/bits/wchar2.h: Likewise.
26360         * wcsmbs/bits/wchar-ldbl.h: Likewise.
26361         * wcsmbs/wchar.h: Likewise.
26362
26363 2012-04-29  Andreas Jaeger  <aj@suse.de>
26364
26365         * Makerules (tests): Remove enable-check-abi protection.
26366         (check-abi-warn): Remove.
26367         (check-abi-%): Remove check-abi-warn usage.
26368
26369         * configure.in: Remove check-abi configure option.
26370         * configure: Regenerated.
26371         * config.make.in (enable-check-abi): Remove.
26372
26373 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
26374
26375         [BZ #14033]
26376         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
26377         double functions to double *_finite functions.
26378
26379         [BZ #13941]
26380         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
26381         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
26382         LDBL_MIN_EXP.
26383         * stdio-common/Makefile (tests): Add tst-sprintf3.
26384         * stdio-common/tst-sprintf3.c: New file.
26385
26386         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
26387         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
26388
26389 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26390
26391         * conform/conformtest.pl: Remove duplicate typed-constant
26392         handling.
26393
26394 2012-04-28  David S. Miller  <davem@davemloft.net>
26395
26396         * Makerules (%.abilist): Add vpath on sysdep_dirs.
26397         (check-abi-%): Remove AWK script prerequisite and explicit
26398         abilist directory.
26399         (check-abi): Rewrite to just diff the symlist with the abilist.
26400         (config-tls, config-abi-config): Delete, no longer used.
26401         (update-abi-%): Remove AWK script and explicit abilist directory.
26402         (update-abi): Rewrite to simply compare and conditionally copy the
26403         symlist and the sysdep abilist file.  Remove update-abi-config
26404         checks.
26405         * abilist/ld.abilist: Remove.
26406         * abilist/libBrokenLocale.abilist: Remove.
26407         * abilist/libanl.abilist: Remove.
26408         * abilist/libcrypt.abilist: Remove.
26409         * abilist/libdl.abilist: Remove.
26410         * abilist/librt.abilist: Remove.
26411         * abilist/libthread_db.abilist: Remove.
26412         * abilist/libutil.abilist: Remove.
26413         * scripts/extract-abilist.awk: Remove.
26414         * scripts/merge-abilist.awk: Remove.
26415         * sysdeps/generic/libcidn.abilist: New file.
26416         * sysdeps/generic/libnss_compat.abilist: New file.
26417         * sysdeps/generic/libnss_db.abilist: New file.
26418         * sysdeps/generic/libnss_dns.abilist: New file.
26419         * sysdeps/generic/libnss_files.abilist: New file.
26420         * sysdeps/generic/libnss_hesiod.abilist: New file.
26421         * sysdeps/generic/libnss_nis.abilist: New file.
26422         * sysdeps/generic/libnss_nisplus.abilist: New file.
26423         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
26424         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
26425         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
26426         file.
26427         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
26428         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
26429         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
26430         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
26431         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
26432         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
26433         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
26434         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
26435         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
26436         file.
26437         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
26438         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
26439         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
26440         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
26441         file.
26442         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
26443         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
26444         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
26445         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
26446         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
26447         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
26448         file.
26449         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
26450         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
26451         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
26452         file.
26453         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
26454         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
26455         New file.
26456         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
26457         New file.
26458         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
26459         New file.
26460         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
26461         New file.
26462         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
26463         New file.
26464         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
26465         New file.
26466         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
26467         New file.
26468         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
26469         New file.
26470         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
26471         New file.
26472         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
26473         New file.
26474         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
26475         New file.
26476         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
26477         New file.
26478         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
26479         New file.
26480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
26481         file.
26482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
26483         New file.
26484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
26485         New file.
26486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
26487         file.
26488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
26489         New file.
26490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
26491         New file.
26492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
26493         file.
26494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
26495         New file.
26496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26497         New file.
26498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
26499         New file.
26500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
26501         New file.
26502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
26503         New file.
26504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
26505         New file.
26506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
26507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
26508         file.
26509         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
26510         New file.
26511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
26512         file.
26513         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
26514         file.
26515         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
26516         file.
26517         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
26518         file.
26519         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
26520         file.
26521         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
26522         New file.
26523         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
26524         file.
26525         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
26526         file.
26527         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
26528         New file.
26529         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
26530         file.
26531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
26532         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
26533         file.
26534         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
26535         New file.
26536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
26537         file.
26538         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
26539         file.
26540         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
26541         file.
26542         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
26543         file.
26544         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
26545         file.
26546         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
26547         New file.
26548         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
26549         file.
26550         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
26551         file.
26552         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
26553         New file.
26554         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
26555         file.
26556         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
26557         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
26558         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
26559         file.
26560         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
26561         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
26562         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
26563         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
26564         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
26565         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
26566         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
26567         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
26568         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
26569         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
26570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
26571         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
26572         file.
26573         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
26574         New file.
26575         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
26576         file.
26577         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
26578         file.
26579         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
26580         file.
26581         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
26582         file.
26583         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
26584         file.
26585         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
26586         New file.
26587         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
26588         New file.
26589         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
26590         file.
26591         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
26592         New file.
26593         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
26594         file.
26595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
26596         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
26597         file.
26598         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
26599         New file.
26600         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
26601         file.
26602         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
26603         file.
26604         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
26605         file.
26606         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
26607         file.
26608         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
26609         file.
26610         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
26611         New file.
26612         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
26613         New file.
26614         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
26615         file.
26616         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
26617         New file.
26618         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
26619         file.
26620
26621 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26622
26623         * conform/conformtest.pl: Fix typo in handling typed-constant from
26624         allow-header.
26625
26626 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26627
26628         * README: Cut down references to pre-2.6 Linux kernels and
26629         Linuxthreads.  Update lists of configurations in libc and ports
26630         and sort alphabetically.  Say "or newer" with Linux kernel version
26631         requirements.
26632
26633         * config.h.in [IS_IN_build]: Allow compiling without optimization.
26634
26635 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
26636
26637         [BZ #887]
26638         * math/libm-test.inc (logb_test_downward): New test to expose
26639         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
26640         rounding mode.
26641
26642 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26643
26644         [BZ #14027]
26645         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
26646         to be done.
26647         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
26648         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
26649
26650 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
26651
26652         * sysdeps/unix/i386/brk.S: Remove file.
26653         * sysdeps/unix/i386/dl-brk.S: Likewise.
26654         * sysdeps/unix/i386/pipe.S: Likewise.
26655         * sysdeps/unix/i386/sigreturn.S: Likewise.
26656         * sysdeps/unix/i386/syscall.S: Likewise.
26657         * sysdeps/unix/i386/vfork.S: Likewise.
26658         * sysdeps/unix/i386/wait.S: Likewise.
26659
26660         * sysdeps/unix/common/tcsendbrk.c: Move to ...
26661         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
26662
26663         * configure.in (arm*-none*): Do not allow without
26664         --enable-hacker-mode.
26665         (netbsd*): Remove case setting base_os.
26666         (386bsd*): Likewise.
26667         (freebsd*): Likewise.
26668         (bsdi*): Likewise.
26669         (osf*): Likewise.
26670         (sunos*): Likewise.
26671         (ultrix*): Likewise.
26672         (newsos*): Likewise.
26673         (dynix*): Likewise.
26674         (*bsd*): Likewise.
26675         (sysv*): Likewise.
26676         (isc*): Likewise.
26677         (esix*): Likewise.
26678         (sco*): Likewise.
26679         (minix*): Likewise.
26680         (irix4*): Likewise.
26681         (irix6*): Likewise.
26682         (solaris[2-9]*): Likewise.
26683         (none): Likewise.
26684         * configure: Regenerated.
26685
26686 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26687
26688         [BZ #11521]
26689         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
26690         overflow or cancellation in calculating denominator.
26691         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
26692         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
26693         down expression to avoid unexpected rounding in newer GCCs.
26694         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
26695
26696 2012-04-26  David S. Miller  <davem@davemloft.net>
26697
26698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
26699         long-double compat symbols.
26700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
26704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26705         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
26706         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
26707         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
26708         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
26709         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
26710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26711         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
26712         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26713
26714 2012-04-25  David S. Miller  <davem@davemloft.net>
26715
26716         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
26717         HWCAP_* values only after the memory barriers have been defined.
26718         (atomic_full_barrier): Define.
26719         (atomic_read_barrier): Define.
26720         (atomic_write_barrier): Define.
26721
26722 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26723
26724         * shlib-versions: Add libgcc_s version information.
26725         * sysdeps/generic/libgcc_s.h: Remove.
26726         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
26727         libgcc_s.h.
26728         * sysdeps/gnu/unwind-resume.c: Likewise.
26729         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
26730
26731 2012-04-25  David S. Miller  <davem@davemloft.net>
26732
26733         * sysdeps/unix/sparc/brk.S: Delete.
26734         * sysdeps/unix/sparc/dl-brk.S: Delete.
26735         * sysdeps/unix/sparc/pipe.S: Delete.
26736         * sysdeps/unix/sparc/sysdep.S: Delete.
26737         * sysdeps/unix/sparc/sysdep.h: Delete.
26738         * sysdeps/unix/sparc/vfork.S: Delete.
26739         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
26740         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
26741         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
26742         ret_ERRVAL, r0, r1, MOVE): Define.
26743         (JUMPTARGET): Remove.
26744         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
26745         sysdeps/unix/sparc/sysdep.h
26746         (ENTRY, END): Remove.
26747         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26748
26749 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
26750
26751         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
26752         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
26753         -DIS_IN_build.
26754
26755         * timezone/README: Update upstream location and email address for
26756         tzcode and tzdata.
26757         * timezone/zdump.c: Update from tzcode 2012b.
26758         * timezone/zic.c: Likewise.
26759
26760         * configure.in (libc_cv_as_needed): Remove test.
26761         * configure: Regenerated.
26762         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
26763         conditional definition.
26764         [$(have-as-needed) != yes] (no-as-needed): Likewise.
26765         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
26766         * config.make.in (have-as-needed): Remove variable.
26767
26768 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26769             Paul Pluzhnikov  <ppluzhnikov@google.com>
26770
26771         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
26772         strings correctly.
26773
26774 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
26775
26776         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
26777         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
26778         * sysdeps/sh/strlen.S: Likewise.
26779
26780 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26781
26782         * sysdeps/unix/fork.S: Remove file.
26783         * sysdeps/unix/i386/fork.S: Likewise.
26784         * sysdeps/unix/sparc/fork.S: Likewise.
26785
26786         * sysdeps/unix/system.c: Remove file.
26787         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
26788
26789         * sysdeps/unix/getegid.S: Remove file.
26790         * sysdeps/unix/geteuid.S: Likewise.
26791
26792 2012-04-24  Roland McGrath  <roland@hack.frob.com>
26793
26794         * scripts/check-localplt.awk: New file.
26795         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
26796         of diff.
26797         * scripts/data/localplt-generic.data: Add a comment.
26798
26799         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
26800         NODE when __dir_mkfile failed.
26801         * sysdeps/mach/hurd/symlinkat.c: Likewise.
26802         Reported by Ludovic Courtès <ludo@gnu.org>.
26803
26804 2012-04-24  Andreas Jaeger  <aj@suse.de>
26805
26806         * Makerules (common-clean): Also remove gen-as-const-headers
26807         files.
26808
26809 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26810
26811         * Makerules (native-compile): Do not change working directory for
26812         build.  Use $(OUTPUT_OPTION) in command.
26813         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
26814
26815 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26816
26817         [BZ #13886]
26818         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
26819         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
26820         * math/libm-test.inc (floor_test): Add more tests.
26821         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
26822
26823 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26824
26825         * sysdeps/unix/getdents.c: Remove file.
26826         * sysdeps/unix/sysv/getdents.c: Likewise.
26827         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
26828
26829         * sysdeps/unix/syscalls.list (madvise): Add syscall from
26830         sysdeps/unix/mman/syscalls.list.
26831         (mmap): Likewise.
26832         (mprotect): Likewise.
26833         (msync): Likewise.
26834         (munmap): Likewise.
26835         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
26836         * sysdeps/unix/mman/syscalls.list: Remove.
26837         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
26838
26839         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
26840         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
26841         * configure: Regenerated.
26842         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
26843         $(libgcc_s_suffix).
26844         * config.make.in (libgcc_s_suffix): Remove variable.
26845
26846 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
26847
26848         * sysdeps/unix/sysv/gethostname.c: Move to ...
26849         * sysdeps/posix/gethostname.c: ... here.
26850
26851         * sysdeps/unix/execve.S: Remove file.
26852
26853         * sysdeps/unix/_exit.S: Remove file.
26854
26855 2012-04-23  Andreas Jaeger  <aj@suse.de>
26856
26857         [BZ #13739]
26858         * manual/Makefile: Remove make dist support, there's no
26859         need for a stand-alone documentation tar ball.
26860         (TEXI2DVI): Define always, it's not in Makeconfig.
26861         (dist): Removed.
26862         (tar-it): Removed.
26863         (edition): Removed.
26864         (glibc-doc-$(edition).tar): Removed
26865         (%.Z): Removed.
26866         (%.gz): Removed.
26867         (%.uu): Removed.
26868         (ETAGS): Remove, it's in Makeconfig.
26869         (move-if-change): Remove, it's in Makeconfig.
26870
26871 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
26872
26873         [BZ #13970]
26874         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
26875         (strtod, strtof, strtold, strtol, strtoul, strtoq)
26876         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
26877         (strtod_l, strtof_l, strtold_l): Remove __wur.
26878         It is not necessarily an error to ignore strtol's return value.
26879         One can reliably look at the stored endptr to decide whether
26880         the number had valid syntax.
26881
26882 2012-04-21  Andreas Jaeger  <aj@suse.de>
26883
26884         [BZ #13739]
26885         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
26886
26887 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
26888
26889         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
26890         * sysdeps/unix/sysv/Versions: Remove file.
26891
26892 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
26893
26894         [BZ #13927]
26895         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26896
26897 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
26898
26899         [BZ #7064]
26900         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
26901         version from __vm86.
26902
26903 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
26904
26905         * sysdeps/unix/common/lxstat.c: Remove file.
26906         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
26907
26908         * sysdeps/unix/sysv/Makefile: Remove file.
26909
26910         * sysdeps/unix/sysv/direct.h: Remove file.
26911
26912         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
26913         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
26914         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
26915         * sysdeps/unix/sysv/bits/signum.h: Likewise.
26916         * sysdeps/unix/sysv/bits/stat.h: Likewise.
26917         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
26918         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
26919
26920         * sysdeps/unix/sysv/setrlimit.c: Remove file.
26921
26922         * sysdeps/unix/xmknod.c: Remove file.
26923         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
26924
26925         * sysdeps/unix/sysv/settimeofday.c: Remove file.
26926
26927         * sysdeps/unix/sysv/i386/time.S: Remove file.
26928
26929         * sysdeps/unix/fxstat.c: Remove file.
26930         * sysdeps/unix/xstat.c: Likewise.
26931         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
26932
26933         * sysdeps/unix/sysv/sigaction.c: Remove file.
26934
26935         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
26936         (sysdep_headers): Remove variable.
26937         [termio.h not in sysdep_headers] (generated): Likewise.
26938         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
26939         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
26940         * sysdeps/unix/sysv/tcdrain.c: Likewise.
26941         * sysdeps/unix/sysv/tcflow.c: Likewise.
26942         * sysdeps/unix/sysv/tcflush.c: Likewise.
26943         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
26944         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
26945         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
26946         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
26947         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
26948
26949         * sysdeps/unix/siglist.c: Remove file.
26950
26951         * sysdeps/unix/getppid.S: Remove file.
26952
26953         * sysdeps/unix/mkdir.c: Remove file.
26954         * sysdeps/unix/rmdir.c: Likewise.
26955
26956 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
26957
26958         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
26959         ERR_MAX value.
26960         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
26961         errlist-compat value.
26962
26963 2012-04-18  David S. Miller  <davem@davemloft.net>
26964
26965         * sysdeps/generic/memcopy.h (reg_char): Delete.
26966         * debug/strcat_chk.c: Use char, not reg_char.
26967         * debug/strcpy_chk.c: Likewise.
26968         * debug/strncat_chk.c: Likewise.
26969         * debug/strncpy_chk.c: Likewise.
26970         * string/memchr.c: Likewise.
26971         * string/memrchr.c: Likewise.
26972         * string/rawmemchr.c: Likewise.
26973         * string/strcat.c: Likewise.
26974         * string/strchr.c: Likewise.
26975         * string/strchrnul.c: Likewise.
26976         * string/strcmp.c: Likewise.
26977         * string/strcpy.c: Likewise.
26978         * string/strncat.c: Likewise.
26979         * string/strncmp.c: Likewise.
26980         * string/strncpy.c: Likewise.
26981
26982 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26983
26984         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
26985         __builtin_memcopy is called when src and dest ranges are known to not
26986         overlap.
26987
26988 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26989
26990         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
26991         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
26992         fwd_align_merge macro call.
26993         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
26994         bwd_align_merge macro call.
26995         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
26996
26997 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26998
26999         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
27000         bwd_align_merge macros.
27001         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
27002         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
27003         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27004
27005 2012-04-18  David S. Miller  <davem@davemloft.net>
27006
27007         * sysdeps/sparc/sparc64/memcopy.h: Delete.
27008
27009 2012-04-18  Andreas Jaeger  <aj@suse.de>
27010
27011         [BZ# 6794]
27012         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
27013         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
27014         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27015
27016         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
27017         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
27018         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27019
27020         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
27021         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
27022         Adjust for changed ldbl-128 files.
27023
27024         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
27025         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
27026         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27027
27028 2012-04-17  David S. Miller  <davem@davemloft.net>
27029
27030         * sysdeps/sparc/sparc32/memcopy.h: Delete.
27031
27032 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
27033
27034         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
27035         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
27036         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
27037         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
27038         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
27039         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
27040
27041 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27042
27043         [BZ #6794]
27044         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
27045         * math/libm-test.inc: Add ilogb errno and exception tests.
27046         * math/w_ilogb.c: New file: ilogb wrapper.
27047         * math/w_ilogbf.c: New file: ilogbf wrapper.
27048         * math/w_ilogbl.c: New file: ilogbl wrapper.
27049         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
27050         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
27051         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
27052         exception being thrown with 0.0 as argument.
27053         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
27054         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
27055         exception being thrown with 0.0 as argument.
27056         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
27057         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27058         exception being thrown with 0.0 as argument.
27059         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
27060         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27061         exception being thrown with 0.0 as argument.
27062         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
27063         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
27064         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
27065         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
27066         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
27067         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
27068         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
27069         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
27070         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
27071
27072 2012-04-17  Petr Baudis  <pasky@ucw.cz>
27073
27074         * include/sys/uio.h: Change __vector to __iovec to avoid clash
27075         with altivec.
27076
27077 2012-04-16  Marek Polacek  <polacek@redhat.com>
27078
27079         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
27080
27081 2012-04-16  Marek Polacek  <polacek@redhat.com>
27082
27083         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
27084         operands of fdivp instruction.
27085
27086 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27087
27088         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
27089         * elf/tst-auditmod3b.c: Likewise.
27090         * elf/tst-auditmod4b.c: Likewise.
27091         * elf/tst-auditmod5b.c: Likewise.
27092         * elf/tst-auditmod6b.c: Likewise.
27093         * elf/tst-auditmod6c.c: Likewise.
27094         * elf/tst-auditmod7b.c: Likewise.
27095         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
27096         * sysdeps/x86_64/preconfigure.in: Likewise.
27097         * sysdeps/x86_64/preconfigure: Regenerated.
27098
27099 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27100
27101         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
27102         __ILP32__.
27103
27104 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
27105
27106         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27107         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
27108
27109 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
27110
27111         [BZ #13973]
27112         * locale/iso-639.def: Fix gl language name. Spotted by
27113         Yaron Shahrabani.
27114
27115 2012-04-12  Roland McGrath  <roland@hack.frob.com>
27116
27117         [BZ #2074]
27118         * libio/libio.h (__io_write_fn): Update comment.
27119
27120 2012-04-12  Petr Baudis  <pasky@ucw.cz>
27121
27122         [BZ #2074]
27123         * stdio.texi (Hook Functions): The user provided writer function
27124         is not allowed to return -1.
27125
27126 2012-04-11  David S. Miller  <davem@davemloft.net>
27127
27128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27129
27130 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
27131
27132         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
27133         Add a leading slash to rtkaio.
27134
27135 2012-04-11  Jim Meyering  <meyering@redhat.com>
27136
27137         [BZ #11959]
27138         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
27139         It is not necessarily an error to ignore fwrite's return
27140         value.  One can reliably use ferror to test for errors after
27141         the fact.
27142
27143 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27144
27145         * bits/types.h (__snseconds_t): New type.
27146         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
27147
27148         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
27149         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27150         (__SNSECONDS_T_TYPE): Likewise.
27151         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27152         (__SNSECONDS_T_TYPE): Likewise.
27153         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27154         (__SNSECONDS_T_TYPE): Likewise.
27155
27156 2012-04-10  Andreas Jaeger  <aj@suse.de>
27157
27158         [BZ #2636]
27159         * manual/time.texi (Processor Time): Return type of times is
27160         elapsed real time since an arbitrary point in the past.
27161         (CPU Time): Move CLK_TCK from here...
27162         (Processor Time): ...to here.  Correct description.
27163         * manual/conf.texi (Constants for Sysconf): Correct description of
27164         _SC_CLK_TCK.
27165
27166 2012-04-10  David S. Miller  <davem@davemloft.net>
27167
27168         [BZ #13967]
27169         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
27170         where the is a gap between DT_REL(A) and DT_JMPREL.
27171
27172 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27173
27174         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
27175         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27176         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27177
27178 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27179
27180         * elf/dl-support.c (_dl_inhibit_cache): New variable.
27181         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
27182         (dl_main): Handle --inhibit-cache.
27183         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
27184         _dl_inhibit_cache.
27185         * elf/dl-load.c (_dl_map_object): Use it.
27186         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
27187
27188 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27189
27190         [BZ #13872]
27191         * sysdeps/i386/fpu/e_powl.S (p78): New object.
27192         (__ieee754_powl): Saturate large exponents rather than testing for
27193         overflow of y*log2(x).
27194         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27195         * math/libm-test.inc (pow_test): Do not permit spurious overflow
27196         exceptions.
27197
27198         [BZ #11521]
27199         * math/s_ctan.c: Include <float.h>.
27200         (__ctan): Avoid internal overflow or cancellation in calculating
27201         denominator.
27202         * math/s_ctanf.c: Likewise.
27203         * math/s_ctanl.c: Likewise.
27204         * math/s_ctanh.c: Likewise.
27205         * math/s_ctanhf.c: Likewise.
27206         * math/s_ctanhl.c: Likewise.
27207         * math/libm-test.inc (ctan_test): Add more tests.
27208         (ctanh_test): Likewise.
27209         * sysdeps/i386/fpu/libm-test-ulps: Update.
27210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27211
27212 2012-04-09  Andreas Jaeger  <aj@suse.de>
27213
27214         [BZ #6894]
27215         * manual/filesys.texi (Directory Entries): Mention that d_namlen
27216         is an optional BSD extension.
27217
27218         [BZ #10254]
27219         * manual/stdio.texi (Opening Streams): Document additional fopen
27220         parameters.
27221
27222 2012-04-09  Roland McGrath  <roland@hack.frob.com>
27223
27224         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
27225         %eax without telling the compiler.
27226
27227 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
27228
27229         [BZ # 13963]
27230         * manual/install.texi: Use sourceware.org.
27231
27232 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27233
27234         [BZ #13873]
27235         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
27236         (__ieee754_pow): Generate overflow and underflow using huge*huge
27237         and tiny*tiny rather than just returning constant infinity or zero
27238         for large exponents.
27239         * math/libm-test.inc (pow_test): Require overflow exceptions for
27240         applicable cases of large exponents.
27241
27242         [BZ #706]
27243         * sysdeps/i386/fpu/e_pow.S (p10): New object.
27244         (__ieee754_pow): Use iterative multiplication algorithm only for
27245         integer exponents with absolute value below 1024.  Check for odd
27246         integer exponents when using algorithm for real exponents.
27247         * math/libm-test.inc (pow_test): Add more tests.
27248         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27249
27250 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
27251
27252         [BZ #13705]
27253         * math/libm-test.inc (exp_test): Do not allow overflow exception
27254         on underflow test.
27255
27256 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
27257
27258         [BZ #13705]
27259         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
27260         instead of __kernel_standard_f.
27261
27262 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
27263
27264         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
27265         * sysdeps/x86_64/memset_chk.S: Likewise.
27266
27267 2012-04-08  Andreas Jaeger  <aj@suse.de>
27268
27269         [BZ #10153]
27270         * manual/startup.texi (Environment Access): Describe return value
27271         for putenv and setenv.
27272
27273         [BZ #6895]
27274         * manual/filesys.texi (Directory Entries): Add description for
27275         DT_LNK.
27276
27277         [BZ #6890]
27278         * manual/filesys.texi (Directory Entries): Clarify that it's file
27279         system not operating system in the description of DT_UNKNOWN.
27280
27281         [BZ #6578]
27282         * manual/syslog.texi (closelog): Fix reference, it's openlog.
27283
27284 2012-04-08  Stephen Compall  <s11@member.fsf.org>
27285
27286         [BZ #6649]
27287         * manual/llio.texi (Opening and Closing Files): Add cross
27288         reference to explain mode argument.
27289
27290 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
27291
27292         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
27293         * sysdeps/x86_64/memset_chk.S: Likewise.
27294
27295 2012-04-07  David S. Miller  <davem@davemloft.net>
27296
27297         * elf/elf.h (R_SPARC_WDISP10): Define.
27298         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
27299         R_SPARC_SIZE32.
27300         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
27301         R_SPARC_SIZE64 and R_SPARC_H34.
27302
27303 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
27304
27305         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
27306         conditions and remove no longer applicable assertion.
27307
27308 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27309
27310         * bits/byteswap.h: Include <features.h>.
27311         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27312         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27313
27314 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27315
27316         * bits/byteswap.h (__bswap_16): Removed.
27317         Include <bits/byteswap-16.h> to get __bswap_16.
27318         * sysdeps/i386/bits/byteswap.h: Likewise.
27319         * sysdeps/s390/bits/byteswap.h: Likewise.
27320         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27321         * bits/byteswap-16.h: New file.
27322         * sysdeps/i386/bits/byteswap-16.h: Likewise.
27323         * sysdeps/s390/bits/byteswap-16.h: Likewise.
27324         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
27325         * string/Makefile (headers): Add bits/byteswap-16.h.
27326
27327 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27328
27329         [BZ #13895]
27330         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
27331         extra indirection.
27332         * nss/Makefile (tests-static, tests): Add tst-nss-static.
27333         * nss/tst-nss-static.c: New.
27334
27335 2012-04-06  Robert Millan  <rmh@gnu.org>
27336
27337         [BZ #6486]
27338         * manual/llio.texi (File Position Primitive): lseek
27339         refers to WHENCE when it really means OFFSET.
27340
27341 2012-04-06  Andreas Jaeger  <aj@suse.de>
27342
27343         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
27344         strncmp declarations.
27345
27346         * abilist/libc.abilist: Add __poll and __ppoll.
27347
27348 2012-04-05  David S. Miller  <davem@davemloft.net>
27349
27350         * scripts/check-local-headers.sh: Accept a host triplet in the
27351         path matched by the exclude regexp.
27352
27353         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
27354         definition.
27355         * sysdeps/powerpc/powerpc32/dl-machine.h
27356         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
27357         * sysdeps/s390/s390-32/dl-machine.h
27358         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27359         * sysdeps/sparc/sparc32/dl-machine.h
27360         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27361         * sysdeps/sparc/sparc64/dl-machine.h
27362         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27363
27364         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
27365         lazy binding.
27366         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
27367         undefined symbol errors.
27368
27369         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
27370         DT_NEEDED entries.
27371
27372 2012-04-05  Michael Matz  <matz@suse.de>
27373
27374         [BZ #13592]
27375         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
27376
27377 2012-04-05  Andreas Jaeger  <aj@suse.de>
27378
27379         [BZ #13908]
27380         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
27381         comment.
27382
27383 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27384
27385         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
27386         which ROUND is no valid rounding mode.
27387
27388 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27389
27390         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
27391         read again.
27392         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
27393
27394 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27395
27396         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
27397         an exception using FPU order intentionally.
27398
27399 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27400
27401         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
27402         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
27403         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
27404         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
27405
27406 2012-04-05  Simon Josefsson  <simon@josefsson.org>
27407
27408         [BZ #12340]
27409         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
27410         EINVAL when BUFLEN is too smal.
27411
27412 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
27413
27414         [BZ #13553]
27415         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
27416         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
27417
27418 2012-04-03  Andreas Jaeger  <aj@suse.de>
27419
27420         [BZ #13938]
27421         * manual/setjmp.texi (System V contexts): Fix sentence.
27422
27423         [BZ #13926]
27424         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
27425         New macro for this case.
27426         [!__GNUC__] (__bswap_64): New inline function for this case.
27427         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27428         * bits/byteswap.h: Likewise.
27429         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
27430         ull, guard with __GLIBC_HAVE_LONG_LONG.
27431
27432         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
27433         __GLIBC_HAVE_LONG_LONG.
27434
27435         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
27436         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
27437
27438 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27439
27440         [BZ #13691]
27441         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
27442         inptr and inend, rather than using last_ch.
27443
27444 2012-04-02  David S. Miller  <davem@davemloft.net>
27445
27446         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
27447         * stdio-common/printf-parse.h (read_int): Change return type to
27448         'int', return -1 on INT_MAX overflow.
27449         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
27450         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
27451         overflows INT_MAX.  Check for overflow of in-format-string precision
27452         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
27453         SIZE_MAX not INT_MAX for integer overflow test.
27454         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
27455         skip the construct in the format string but do not record anything.
27456         * stdio-common/bug22.c: Adjust to test both width/prevision
27457         INT_MAX overflow as well as total length INT_MAX overflow.  Check
27458         explicitly for proper errno values.
27459
27460 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
27461
27462         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
27463         CHAR_MAX.
27464         * string/test-strcmp.c [! WIDE]: Likewise.
27465         * time/tst-mktime2.c: Likewise for INT_MAX.
27466         * string/test-string.h: #include <sys/param.h> for MIN.
27467
27468         * csu/init-first.c (__libc_init_first): Call __ctype_init.
27469         * sysdeps/i386/init-first.c (init): Likewise.
27470         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
27471         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
27472         * sysdeps/sh/init-first.c (init): Likewise.
27473
27474 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
27475
27476         * po/ru.po: Update from translation team.
27477         * po/vi.po: Likewise.
27478
27479 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
27480
27481         * resolv/nss_dns/dns-host.c: Merge copyright years.
27482
27483 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27484
27485         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27486         Optimize memcpy with prefetch if
27487         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
27488         src, dst pointers have unequal 16 byte alignments.
27489
27490 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
27491
27492         [BZ #13928]
27493         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
27494         from a CNAME entry and return the minimum ttl for the query.
27495         (gaih_getanswer_slice): Likewise.
27496
27497 2012-03-30  Jeff Law  <law@redhat.com>
27498
27499         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
27500         due to long keys.
27501         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
27502         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
27503
27504         * resolv/nss_dns/dns-host.c: Update copyright year.
27505
27506 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
27507
27508         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
27509         requests to save a system call.  Fix check that all bytes are sent.
27510
27511         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
27512         comments for sendmmsg.
27513
27514 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27515
27516         [BZ #13691]
27517         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
27518         with only 1 character between 0x0041 and 0x01b0.
27519         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
27520         * wcsmbs/tst-mbsnrtowcs.c: New file.
27521
27522 2012-03-29  David S. Miller  <davem@davemloft.net>
27523
27524         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
27525         small copies by hand.
27526
27527 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27528
27529         [BZ #13761]
27530         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
27531         _nss_compat_initgroups_dyn): Fall back to malloc/free
27532         for large group memberships.
27533
27534 2012-03-28  David S. Miller  <davem@davemloft.net>
27535
27536         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
27537         that branches into memcpy.
27538         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
27539         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27540         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27541         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27542         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
27543         bits.
27544         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
27545         implementation too.
27546         * sysdeps/sparc/mempcpy.S: New file.
27547
27548         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
27549         the IFUNC routine in the libc case.
27550         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27551
27552         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
27553         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
27554         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
27555         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
27556         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
27557         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
27558         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
27559         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
27560
27561         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
27562         loop to 256 bytes instead of 64 bytes and fix test signedness.
27563
27564         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
27565         * sysdeps/sparc/sparc32/Makefile: rather than here...
27566         * sysdeps/sparc/sparc64/Makefile: and here.
27567
27568 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
27569
27570         * malloc/mallocbug.c: Avoid warnings about unused variables.
27571
27572 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
27573
27574         [BZ #13760]
27575         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
27576         in the right place. Discard and retry query if response is
27577         larger than input buffer size.
27578
27579 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
27580
27581         [BZ #369]
27582         [BZ #2678]
27583         [BZ #3866]
27584         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
27585         x for large integer exponent.
27586         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
27587         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
27588         sign of result as needed afterwards.
27589         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
27590         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
27591         result for underflowing pow the same as for overflow.
27592         (__kernel_standard_l): Handle powl overflow and underflow here
27593         rather than calling __kernel_standard.
27594         * math/libm-test.inc (pow_test): Add more tests.
27595
27596         [BZ #3868]
27597         [BZ #13879]
27598         [BZ #13910]
27599         [BZ #13911]
27600         [BZ #13912]
27601         [BZ #13913]
27602         [BZ #13915]
27603         [BZ #13916]
27604         [BZ #13917]
27605         [BZ #13918]
27606         [BZ #13919]
27607         [BZ #13920]
27608         [BZ #13921]
27609         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
27610         * sysdeps/ieee754/k_standard.c: Include <float.h>.
27611         (__kernel_standard_l): New function.
27612         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
27613         __kernel_standard.
27614         * math/w_acosl.c (__acosl): Likewise.
27615         * math/w_asinl.c (__asinl): Likewise.
27616         * math/w_atan2l.c (__atan2l): Likewise.
27617         * math/w_atanhl.c (__atanhl): Likewise.
27618         * math/w_coshl.c (__coshl): Likewise.
27619         * math/w_exp10l.c (__exp10l): Likewise.
27620         * math/w_exp2l.c (__exp2l): Likewise.
27621         * math/w_fmodl.c (__fmodl): Likewise.
27622         * math/w_hypotl.c (__hypotl): Likewise.
27623         * math/w_j0l.c (__j0l, __y0l): Likewise.
27624         * math/w_j1l.c (__j1l, __y1l): Likewise.
27625         * math/w_jnl.c (__jnl, __ynl): Likewise.
27626         * math/w_lgammal.c (__lgammal): Likewise.
27627         * math/w_log10l.c (__log10l): Likewise.
27628         * math/w_log2l.c (__log2l): Likewise.
27629         * math/w_logl.c (__logl): Likewise.
27630         * math/w_powl.c (__powl): Likewise.
27631         * math/w_remainderl.c (__remainderl): Likewise.
27632         * math/w_scalbl.c (sysv_scalbl): Likewise.
27633         * math/w_sinhl.c (__sinhl): Likewise.
27634         * math/w_sqrtl.c (__sqrtl): Likewise.
27635         * math/w_tgammal.c (__tgammal): Likewise.
27636         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
27637         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
27638         * math/libm-test.inc (acos_test): Add more tests.
27639         (acosh_test): Likewise.
27640         (asin_test): Likewise.
27641         (atanh_test): Likewise.
27642         (exp_test): Likewise.
27643         (exp10_test): Likewise.
27644         (exp2_test): Likewise.
27645         (expm1_test): Likewise.
27646         (lgamma_test): Likewise.
27647         (log_test): Likewise.
27648         (log10_test): Likewise.
27649         (log1p_test): Likewise.
27650         (log2_test): Likewise.
27651         (pow_test): Do not allow some spurious overflow exceptions.
27652         (sqrt_test): Add more tests.
27653         (tgamma_test): Likewise.
27654         (y0_test): Likewise.
27655         (y1_test): Likewise.
27656         (yn_test): Likewise.
27657
27658 2012-03-27  Anton Blanchard  <anton@samba.org>
27659
27660         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
27661         MAP_HUGETLB.
27662         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27663         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27664         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27665
27666 2012-03-27  David S. Miller  <davem@davemloft.net>
27667
27668         * conform/Makefile: Run run-conformtest.sh using $(BASH).
27669
27670         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
27671         have-as-vis3 check.
27672
27673 2012-03-27  Andreas Jaeger  <aj@suse.de>
27674
27675         * sysdeps/x86_64/elf/configure.in: Moved to ...
27676         * sysdeps/x86_64/configure.in: ... here.
27677         * sysdeps/x86_64/elf/start.S: Moved to ...
27678         * sysdeps/x86_64/start.S: ... here.
27679         * sysdeps/x86_64/elf/configure: Delete.
27680
27681         * sysdeps/x86_64/configure.in: Merge contents from
27682         sysdeps/i386/configure.in (without i686 check).
27683
27684         * sysdeps/i386/elf/Versions: Merge into ...
27685         * sysdeps/i386/Versions: ... this.
27686         * sysdeps/i386/elf/Versions: Delete file.
27687         * sysdeps/i386/elf/start.S: Moved to ...
27688         * sysdeps/i386/start.S: ...here.
27689         * sysdeps/i386/elf/configure.in: Merge into...
27690         * sysdeps/i386/configure.in: ...here.
27691         * sysdeps/i386/elf/configure.in: Delete file.
27692         * sysdeps/i386/elf/configure: Delete file.
27693
27694         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
27695         * debug/backtracesyms.c: ... here.
27696         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
27697         * debug/backtracesymsfd.c: ... here.
27698         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
27699         * sysdeps/generic/ifunc-sel.h: ... here.
27700
27701         * sysdeps/unix/i386/start.c: Delete file.
27702         * sysdeps/unix/sparc/start.c: Delete file.
27703         * sysdeps/unix/start.c: Delete file.
27704
27705         * sysdeps/sh/elf/configure.in: Moved to ...
27706         * sysdeps/sh/configure.in: ... here.
27707         * sysdeps/sh/elf/start.S: Moved to ...
27708         * sysdeps/sh/start.S: ... here.
27709         * sysdeps/sh/elf/configure: Delete file.
27710
27711         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
27712         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
27713         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
27714         * sysdeps/powerpc/powerpc64/entry.h: ... here.
27715         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
27716         * sysdeps/powerpc/powerpc64/start.S: here.
27717         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
27718         * sysdeps/powerpc/powerpc64/Makefile: ... this.
27719         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
27720         * sysdeps/powerpc/powerpc64/configure.in: ... this.
27721         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
27722
27723         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
27724         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
27725         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
27726         * sysdeps/powerpc/powerpc32/start.S: ... here.
27727         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
27728         * sysdeps/powerpc/powerpc32/configure.in: ... this.
27729         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
27730
27731         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
27732         * sysdeps/powerpc/ifunc-sel.h: ... here.
27733         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
27734         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
27735
27736         * sysdeps/sparc/elf/configure.in: Moved to ...
27737         * sysdeps/sparc/configure.in: ... here.
27738         * sysdeps/sparc/elf/configure: Delete file.
27739         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
27740         * sysdeps/sparc/sparc32/start.S: ... here.
27741         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
27742         * sysdeps/sparc/sparc64/start.S: ... here.
27743         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
27744         * sysdeps/sparc/sparc32/Makefile: ... this.
27745         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
27746         * sysdeps/sparc/sparc64/Makefile: ... this.
27747
27748         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
27749         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
27750         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
27751         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
27752         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
27753         * sysdeps/s390/s390-32/setjmp.S: ... here.
27754         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
27755         * sysdeps/s390/s390-32/configure.in: ... here.
27756         * sysdeps/s390/s390-32/elf/configure: Delete file.
27757         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
27758         * sysdeps/s390/s390-32/start.S: ... here.
27759
27760         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
27761         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
27762         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
27763         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
27764         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
27765         * sysdeps/s390/s390-64/setjmp.S: ... here.
27766         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
27767         * sysdeps/s390/s390-64/configure.in: ... here
27768         * sysdeps/s390/s390-64/elf/configure: Delete file.
27769         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
27770         * sysdeps/s390/s390-64/start.S: ... here.
27771         * sysdeps/s390/s390-64/elf/configure: Delete.
27772
27773         * configure.in: Remove support for elf directories in sysdeps.
27774
27775         * configure: Regenerated.
27776         * sysdeps/i386/configure: Regenerated.
27777         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27778         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27779         * sysdeps/s390/s390-32/configure: Regenerated.
27780         * sysdeps/s390/s390-64/configure: Regenerated.
27781         * sysdeps/sh/configure: Regenerated.
27782         * sysdeps/sparc/configure: Regenerated.
27783         * sysdeps/x86_64/configure: Regenerated.
27784
27785 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
27786
27787         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27788
27789         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
27790         denormal result into account.
27791
27792 2012-03-25  Roland McGrath  <roland@hack.frob.com>
27793
27794         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
27795         Reported by Allan McRae <allan@archlinux.org>.
27796
27797 2012-03-23  Jeff Law  <law@redhat.com>
27798
27799         * nss/getnssent.c (__nss_getent): Fix typo.
27800
27801 2012-03-23  David S. Miller  <davem@davemloft.net>
27802
27803         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27804
27805 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
27806
27807         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
27808         to pad to uint64_t for each field.
27809         (dl_tls_index): Replace unsigned long with uint64_t.
27810
27811 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
27812         Paul Pluzhnikov  <ppluzhnikov@google.com>
27813
27814         [BZ #6528]
27815         * grp/Makefile (otherlibs): Don't set it.
27816         * inet/Makefile (otherlibs): Likewise.
27817         * login/Makefile (otherlibs): Likewise.
27818         * nscd/Makefile (otherlibs): Likewise.
27819         * posix/Makefile (otherlibs): Likewise.
27820         * pwd/Makefile (otherlibs): Likewise.
27821         * rt/Makefile (otherlibs): Likewise.
27822         * sunrpc/Makefile (otherlibs): Likewise.
27823         * nss/Makefile (otherlibs): Likewise.
27824         Add libnss_files to routines and static-only-routines.
27825         ($(objpfx)getent): Remove rule.
27826         * resolv/Makefile: Add libnss_dns and libresolv to routines and
27827         static-only-routines.
27828
27829 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27830
27831         [BZ #13892]
27832         * math/s_cexp.c: Include <float.h>.
27833         (__cexp): Handle exp result overflowing not necessarily
27834         overflowing both real and imaginary parts of result.
27835         * math/s_cexpf.c: Likewise.
27836         * math/s_cexpl.c: Likewise.
27837         * math/libm-test.inc (cexp_test): Add more tests.
27838         * sysdeps/i386/fpu/libm-test-ulps: Update.
27839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27840
27841 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27842
27843         * include/link.h (ELFW): New macro.
27844         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
27845         Replace ELF64_R_TYPE with ELFW(R_TYPE).
27846
27847 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27848
27849         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
27850         with uint64_t.
27851
27852 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27853
27854         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
27855         declaration.
27856         (struct La_x32_retval): Likewise.
27857
27858 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27859
27860         * sysdeps/x86_64/preconfigure.in: New file.
27861         * sysdeps/x86_64/preconfigure: New generated file.
27862
27863 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27864
27865         [BZ #13824]
27866         * math/e_exp2l.c: Include <float.h>.
27867         (__ieee754_exp2l): Handle overflow and underflow cases
27868         separately.  Only pass fractional part of argument to
27869         __ieee754_expl.
27870         * math/libm-test.inc (exp2_test): Add more tests.
27871
27872         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
27873         negating x to take absolute value.
27874         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
27875         Likewise.
27876         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
27877         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
27878         Likewise.
27879         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
27880         computing low part if x was negated.
27881         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
27882
27883 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27884
27885         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
27886         la_x32_gnu_pltexit.
27887         (pltexit): Cast int_retval to ptrdiff_t.
27888         * elf/tst-auditmod3b.c: Likewise.
27889         * elf/tst-auditmod4b.c: Likewise.
27890         * elf/tst-auditmod5b.c: Likewise.
27891         * elf/tst-auditmod6b.c: Likewise.
27892         * elf/tst-auditmod6c.c: Likewise.
27893         * elf/tst-auditmod7b.c: Likewise.
27894
27895         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
27896         and x32_gnu_pltexit.
27897
27898         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
27899         __ELF_NATIVE_CLASS.
27900         (La_x32_regs): New macro.
27901         (La_x32_retval): Likewise.
27902         (la_x32_gnu_pltenter): New function prototype.
27903         (la_x32_gnu_pltexit): Likewise.
27904
27905 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
27906
27907         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
27908         exponent.
27909
27910         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27911
27912         * configure.in (libc_cv_cc_nofma): Check for option to disable
27913         generation of FMA instructions.
27914         * configure: Regenerate.
27915         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
27916         * sysdeps/ieee754/dbl-64/Makefile: New file.
27917         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27918         Remove brandred-fma4.
27919         (CFLAGS-brandred-fma4.c): Remove.
27920         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
27921         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
27922         define.
27923         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
27924         define.
27925
27926 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27927
27928         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
27929         LLONG_MAX != LONG_MAX.
27930         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27931         (_fitoa_word): Likewise.
27932         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
27933         LLONG_MAX != LONG_MAX.
27934         * stdio-common/_itowa.h: Include <_itoa.h>.
27935         (_itowa_word): Use _ITOA_WORD_TYPE on value.
27936         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
27937         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
27938         only if not defined.
27939         (_ITOA_WORD_TYPE): Likewise.
27940         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27941         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
27942
27943 2012-03-21  David S. Miller  <davem@davemloft.net>
27944
27945         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27946
27947 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27948
27949         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
27950         of x86_64 when setting libc_cv_slibdir, libdir and
27951         libc_cv_localedir.
27952         * sysdeps/unix/sysv/linux/configure: Regenerated.
27953
27954 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27955
27956         * manual/lang.texi (Old Varargs): Remove section.
27957         (How Variadic): Update menu.
27958         (va_start): Do not mention varargs.h.
27959
27960 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27961             Joseph Myers  <joseph@codesourcery.com>
27962
27963         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
27964         link test.
27965         * configure: Regenerated.
27966
27967 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27968
27969         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
27970         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
27971         conformtest.pl
27972
27973 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27974
27975         * NOTES: Remove.
27976         * Makefile (files-for-dist): Remove NOTES.
27977         (NOTES): Remove rule.
27978         * README: Don't refer to NOTES.
27979         * manual/creature.texi: Don't include macros.texi.
27980         * manual/intro.texi (creature.texi): Remove comment referring to
27981         NOTES.
27982
27983         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
27984         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
27985         * configure: Regenerated.
27986         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
27987         LIBC_TRY_CC_OPTION.
27988         (libc_cv_as_i686): Likewise.
27989         (libc_cv_cc_avx): Likewise.
27990         (libc_cv_cc_sse2avx): Likewise.
27991         (libc_cv_cc_fma4): Likewise.
27992         (libc_cv_cc_novzeroupper): Likewise.
27993         * sysdeps/i386/configure: Regenerated.
27994
27995         [BZ #13883]
27996         * sysdeps/i386/fpu/s_cexp.S: Remove.
27997         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
27998         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
27999         * math/libm-test.inc (cexp_test): Add more tests.
28000         * sysdeps/i386/fpu/libm-test-ulps: Update.
28001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28002
28003 2012-03-21  Allan McRae  <allan@archlinux.org>
28004
28005         * timezone/Makefile: Do not install iso3166.tab and zone.tab
28006
28007 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28008
28009         [BZ #13871]
28010         * math/w_exp2.c: Do not include <float.h>.
28011         (o_threshold, u_threshold): Remove.
28012         (__exp2): Calculate result before checking finiteness and calling
28013         __kernel_standard.
28014         * math/w_exp2f.c: Likewise.
28015         * math/w_exp2l.c: Likewise.
28016         * math/libm-test.inc (exp2_test): Require overflow exception for
28017         1e6 input.
28018
28019         [BZ #3866]
28020         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
28021         range of signed 64-bit integers before using fistpll.  Remove
28022         checks for whether integers fit in mantissa bits.
28023         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
28024         the range of signed 32-bit integers before using fistpl.  Remove
28025         checks for whether integers fit in mantissa bits.
28026         * sysdeps/i386/fpu/e_powl.S (p64): New object.
28027         (__ieee754_powl): Test for y outside the range of signed 64-bit
28028         integers before using fistpll.  Reduce 64-bit values to 63-bit
28029         ones as needed.
28030         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
28031         divide-by-zero is raised for zero to large negative powers.
28032         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
28033         (__ieee754_powl): Test for y outside the range of signed 64-bit
28034         integers before using fistpll.  Reduce 64-bit values to 63-bit
28035         ones as needed.
28036         * math/libm-test.inc (pow_test): Add more tests.
28037
28038 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28039
28040         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
28041         <stdio-common/_itoa.h>.
28042         * debug/segfault.c: Likewise.
28043         * elf/dl-cache.c: Likewise.
28044         * elf/dl-minimal.c: Likewise.
28045         * elf/dl-misc.c: Likewise.
28046         * elf/dl-sysdep.c: Likewise.
28047         * elf/dl-version.c: Likewise.
28048         * elf/rtld.c: Likewise.
28049         * hurd/hurdsock.c: Likewise.
28050         * hurd/lookup-retry.c: Likewise.
28051         * malloc/malloc.c: Likewise.
28052         * malloc/mtrace.c: Likewise.
28053         * nscd/nscd_getgr_r.c: Likewise.
28054         * nscd/nscd_getpw_r.c: Likewise.
28055         * nscd/nscd_getserv_r.c: Likewise.
28056         * posix/getopt_init.c: Likewise.
28057         * posix/wordexp.c: Likewise.
28058         * stdio-common/_itoa.c: Likewise.
28059         * stdio-common/printf_fphex.c: Likewise.
28060         * stdio-common/vfprintf.c: Likewise.
28061         * string/_strerror.c: Likewise.
28062         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
28063         * sysdeps/i386/i686/hp-timing.h: Likewise.
28064         * sysdeps/mach/_strerror.c: Likewise.
28065         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
28066         * sysdeps/mach/hurd/sethostid.c: Likewise.
28067         * sysdeps/mach/hurd/xmknodat.c: Likewise.
28068         * sysdeps/mach/xpg-strerror.c: Likewise.
28069         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
28070         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28071         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
28072         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
28073         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28074         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
28075         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28076         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28077         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
28078         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
28079         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
28080         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
28081         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
28082         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
28083         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
28084         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
28085         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
28086         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
28087         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28088         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28089         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
28090
28091         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
28092
28093         * stdio-common/_itoa.h: Moved to ...
28094         * sysdeps/generic/_itoa.h: Here.
28095
28096         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
28097
28098         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
28099         instead of "_itoa.h" and "_itowa.h".
28100         * stdio-common/vfprintf.: Likewise.
28101
28102 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28103
28104         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
28105         <bits/wordsize.h>.
28106         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
28107         (__signbit): Likwise.
28108         (llrintf): Likwise.
28109         (llrint): Likwise.
28110
28111 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28112
28113         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
28114         __WORDSIZE != 64.
28115
28116 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
28117
28118         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
28119         OVERFLOW_EXCEPTION_OK.
28120         * math/libm-test.inc ("Philosophy"): Update comment about
28121         exception testing.
28122         (OVERFLOW_EXCEPTION): Define.
28123         (OVERFLOW_EXCEPTION_OK): Likewise.
28124         (INVALID_EXCEPTION_OK): Renumber.
28125         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
28126         (IGNORE_ZERO_INF_SIGN): Likewise.
28127         (test_exceptions): Handle FE_OVERFLOW.
28128         (exp10_test): Expect overflow exceptions.
28129         (exp2_test): Likewise.
28130         (expm1_test): Likewise.
28131         (nextafter_test): Likewise.
28132         (pow_test): Likewise.
28133         (scalbn_test): Likewise.
28134         (scalbln_test): Likewise.
28135
28136 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28137
28138         * sysdeps/x86_64/bits/atomic.h
28139         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
28140         64bit integer.
28141         (atomic_exchange_acq): Likewise.
28142         (__arch_exchange_and_add_body): Likewise.
28143         (__arch_add_body): Likewise.
28144         (atomic_add_negative): Likewise.
28145         (atomic_add_zero): Likewise.
28146
28147 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28148
28149         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
28150         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
28151
28152 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28153
28154         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
28155         Check __x86_64__ instead of __WORDSIZE.
28156
28157 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28158
28159         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
28160
28161 2012-03-19  David S. Miller  <davem@davemloft.net>
28162
28163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28164
28165         * sysdeps/sparc/fpu/fenv_private.h: New file.
28166         * sysdeps/sparc/fpu/math_private.h: Use it.
28167         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
28168         Remove.
28169         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
28170         (libc_feholdexcept_setroundl): Remove.
28171         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
28172         Remove.
28173         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
28174         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
28175
28176 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28177
28178         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
28179         int64_t instead of long int.
28180         (INSERT_WORDS64): Likwise.
28181
28182 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28183
28184         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
28185         _Unwind_GetCFA return to _Unwind_Ptr first.
28186
28187 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
28188
28189         [BZ #13629]
28190         * math/s_clog.c: Include <float.h>.
28191         (__clog): Scale large or subnormal inputs.
28192         * math/s_clogf.c: Likewise.
28193         * math/s_clogl.c: Likewise.
28194         * math/s_clog10.c: Include <float.h>.
28195         (M_LOG10_2): Define.
28196         (__clog10): Scale large or subnormal inputs.
28197         * math/s_clog10f.c: Likewise.
28198         * math/s_clog10l.c: Likewise.
28199         * math/libm-test.inc (clog_test): Add more tests.
28200         (clog10_test): Likewise.
28201         * sysdeps/i386/fpu/libm-test-ulps: Update.
28202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28203
28204         [BZ #11451]
28205         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
28206         x and y.
28207         * math/libm-test.inc (atan2_test): Add another test.
28208
28209         * Makerules (common-objdir-compile): Remove.
28210         * sysdeps/unix/Makefile (config-generated): Do not add
28211         $(unix-generated) to variable.
28212         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
28213         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
28214         Remove rule.
28215         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
28216         Likewise.
28217         [generic bits/local_lim.h] (before-compile): Do not append to
28218         variable.
28219         [generic bits/local_lim.h] (common-generated): Likewise.
28220         [generic sys/param.h] (before-compile): Do not append to variable.
28221         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
28222         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
28223         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
28224         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
28225         include.
28226         [generic sys/param.h] (sys/param.h-includes): Remove variable.
28227         [generic sys/param.h] (sys/param.h-includes): Remove rule.
28228         [generic sys/param.h] ($(addprefix
28229         $(common-objpfx),$(sys/param.h-includes))): Likewise.
28230         [generic sys/param.h] (common-generated): Do not append to
28231         variable.
28232         [generic sys/param.h] (sysdep_headers): Likewise.
28233         [generic bits/errno.h] (before-compile): Do not append to
28234         variable.
28235         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
28236         rule.
28237         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
28238         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
28239         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
28240         [generic bits/errno.h] (common-generated): Do not append to
28241         variable.
28242         [generic bits/ioctls.h] (before-compile): Do not append to
28243         variable.
28244         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
28245         rule.
28246         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
28247         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
28248         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
28249         rule.
28250         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
28251         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
28252         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
28253         [generic bits/ioctls.h] (common-generated): Do not append to
28254         variable.
28255         [generic sys/syscall.h] (syscall.h): Remove variable.
28256         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
28257         rule.
28258         [generic sys/syscall.h] (before-compile): Do not append to
28259         variable.
28260         [generic sys/syscall.h] (common-generated): Likewise.
28261         * sysdeps/unix/errnos-tmpl.c: Remove file.
28262         * sysdeps/unix/errnos.awk: Likewise.
28263         * sysdeps/unix/ioctls-tmpl.c: Likewise.
28264         * sysdeps/unix/ioctls.awk: Likewise.
28265         * sysdeps/unix/mk-local_lim.c: Likewise.
28266         * sysdeps/unix/snarf-ioctls: Likewise.
28267
28268 2012-03-19  Richard Henderson  <rth@twiddle.net>
28269
28270         * sysdeps/i386/fpu/fenv_private.h: New file.
28271         * sysdeps/i386/fpu/math_private.h: Use it.
28272         (math_opt_barrier, math_force_eval): Remove.
28273         (libc_feholdexcept_setround_53bit): Remove.
28274         (libc_feupdateenv_53bit): Remove.
28275         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28276         (math_opt_barrier, math_force_eval): Remove.
28277         (libc_feholdexcept): Remove.
28278         (libc_feholdexcept_setround): Remove.
28279         (libc_fetestexcept, libc_fesetenv): Remove.
28280         (libc_feupdateenv_test): Remove.
28281         (libc_feupdateenv, libc_feholdsetround): Remove.
28282         (libc_feresetround): Remove.
28283
28284         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
28285         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28286
28287         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
28288         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
28289         (libc_feupdateenv_testl): New.
28290         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
28291         (libc_feupdateenv_testf): New.
28292         (libc_feupdateenv): Use libc_feupdateenv_test.
28293         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
28294         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
28295
28296         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
28297         (libc_feholdsetroundf, libc_feholdsetroundl): New.
28298         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
28299         (libc_feresetround_noex): New.
28300         (libc_feresetround_noexf): New.
28301         (libc_feresetround_noexl): New.
28302         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
28303         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
28304         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
28305         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
28306         SET_RESTORE_ROUND.
28307         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
28308         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
28309         (__cos): Likewise.
28310         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
28311         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
28312         SET_RESTORE_ROUND_NOEX.
28313         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
28314         SET_RESTORE_ROUND_NOEXF.
28315         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
28316         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
28317         (libc_feholdsetroundf): New.
28318         (libc_feresetround, libc_feresetroundf): New.
28319
28320         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
28321         (libc_feholdexcept_setround_53bit): Convert from macro to function.
28322         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
28323
28324         * sysdeps/generic/math_private.h: Include <fenv.h>.
28325         (default_libc_feholdexcept): New.
28326         (default_libc_feholdexcept_setround): New.
28327         (default_libc_fesetenv, default_libc_feupdateenv): New.
28328         (libc_feholdexcept): Only define if undefined.
28329         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
28330         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
28331         (libc_feholdexcept_setroundl): Likewise.
28332         (libc_feholdexcept_setround_53bit): Likewise.
28333         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
28334         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
28335         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
28336         (libc_feupdateenv_53bit): Likewise.
28337         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
28338         (libc_feholdexcept): Convert from macro to inline function.
28339         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
28340         (libc_fesetenv, libc_feupdateenv): Likewise.
28341
28342         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
28343         not previously defined.
28344         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
28345         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
28346         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
28347         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
28348         * sysdeps/ieee754/flt-32/math_private.h: New file.
28349         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
28350         math_private.h below SET_FLOAT_WORD.
28351         (__isnan, __isinf_ns, __finite): Remove.
28352         (__isnanf, __isinf_nsf, __finitef): Remove.
28353
28354 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
28355
28356         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28357
28358 2012-03-17  David S. Miller  <davem@davemloft.net>
28359
28360         [BZ #6471]
28361         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
28362         for 2.16.
28363
28364 2012-03-16  David S. Miller  <davem@davemloft.net>
28365
28366         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
28367         warnings.
28368
28369         [BZ #6471]
28370         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
28371         properly.
28372         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
28373         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
28374         sysdep_routines when subdir is sysvipc.
28375         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
28376         __getshmlba helper.
28377
28378         * sysdeps/sparc/fpu/libm-test/ulps: Update.
28379
28380 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28381
28382         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
28383         [__LP64__].
28384
28385 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28386
28387         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
28388         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
28389         (__lround): Renamed to ...
28390         (__llround): This.  Replace long int with long long int.
28391         Define lround functions as aliases of llround functions.
28392         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
28393
28394 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28395
28396         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
28397         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
28398         adresses to uintptr_t.  Replace "long int" and "unsigned long
28399         int" with "greg_t" on va_arg.
28400
28401 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28402
28403         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
28404         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
28405
28406         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
28407         Move e_machine check before EI_CLASS check.  Handle x32
28408         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
28409         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
28410         SKIP_EM_IA_64 and include
28411         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
28412
28413         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
28414         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
28415         (add_system_dir): New macro.
28416
28417         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
28418         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
28419
28420 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28421
28422         [BZ #2551]
28423         [BZ #2552]
28424         [BZ #2553]
28425         [BZ #2554]
28426         [BZ #2562]
28427         [BZ #2563]
28428         [BZ #2565]
28429         [BZ #2566]
28430         [BZ #2576]
28431         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
28432         (y0): Likewise.
28433         * math/w_j0f.c (j0f): Likewise.
28434         (y0f): Likewise.
28435         * math/w_j0l.c (__j0l): Likewise.
28436         (__y0l): Likewise.
28437         * math/w_j1.c (j1): Likewise.
28438         (y1): Likewise.
28439         * math/w_j1f.c (j1f): Likewise.
28440         (y1f): Likewise.
28441         * math/w_j1l.c (__j1l): Likewise.
28442         (__y1l): Likewise.
28443         * math/w_jn.c (jn): Likewise.
28444         (yn): Likewise.
28445         * math/w_jnf.c (jnf): Likewise.
28446         (ynf): Likewise.
28447         * math/w_jnl.c (__jnl): Likewise.
28448         (__ynl): Likewise.
28449         * math/libm-test.inc (j0_test): Add more tests.
28450         (j1_test): Likewise.
28451         (jn_test): Likewise.  Add trailing semicolon to existing test.
28452         (y0_test): Likewise.
28453         (y1_test): Likewise.
28454         * sysdeps/i386/fpu/libm-test-ulps: Update.
28455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28456
28457         [BZ #13851]
28458         [BZ #13854]
28459         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28460         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
28461         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
28462         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
28463         (__tanl): Set errno for infinite argument.
28464         * sysdeps/i386/fpu/mptan.c: Remove.
28465         * sysdeps/i386/fpu/s_tan.S: Likewise.
28466         * sysdeps/i386/fpu/s_tanl.S: Likewise.
28467         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
28468         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
28469         * math/libm-test.inc (tan_test): Add more tests and enable more
28470         tests for double and long double.
28471         * sysdeps/i386/fpu/libm-test-ulps: Update.
28472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28473
28474 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
28475
28476         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
28477         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
28478
28479 2012-03-16  Roland McGrath  <roland@hack.frob.com>
28480
28481         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
28482         * configure.in: Use it for both main tree and add-ons.
28483         * configure: Regenerated.
28484
28485 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28486
28487         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
28488
28489 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28490
28491         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
28492         in comment.
28493
28494         [BZ #13851]
28495         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
28496         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
28497         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
28498         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
28499         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
28500         infinite argument.
28501         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
28502         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
28503         != 0 for prec == 2.
28504         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
28505         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
28506         * sysdeps/i386/fpu/s_cosl.S: Likewise.
28507         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
28508         * sysdeps/i386/fpu/s_sinl.S: Likewise.
28509         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
28510         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
28511         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
28512         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
28513         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
28514         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
28515         * math/libm-test.inc (cos_test): Add more tests and enable more
28516         tests for long double.
28517         (sin_test): Likewise.
28518         (sincos_test): Likewise.
28519         * sysdeps/i386/fpu/libm-test-ulps: Update.
28520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28521
28522 2012-03-16  David S. Miller  <davem@davemloft.net>
28523
28524         * sysdeps/sparc/fpu/math_private.h: New file.
28525
28526 2012-03-15  David S. Miller  <davem@davemloft.net>
28527
28528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
28529         file.
28530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
28531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
28532         file.
28533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
28534         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
28535         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
28536         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
28537         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
28538         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
28539         sysdep routines.
28540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28541
28542         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
28543         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
28544
28545         * sysdeps/sparc/sparc-ifunc.h: New file.
28546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
28547         sparc-ifunc.h
28548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
28549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28550         Likewise.
28551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
28552         Likewise.
28553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
28554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
28555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
28556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
28557         Likewise.
28558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
28559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
28560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
28561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
28562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
28563         Likewise.
28564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
28565         Likewise.
28566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
28567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
28568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
28569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
28570         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
28571         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
28572         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
28573         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
28574         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
28575         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
28576         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
28577         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
28578         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
28579         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
28580         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
28581         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
28582         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
28583         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
28584         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
28585         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
28586         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
28587         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
28588         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
28589         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
28590
28591 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28592
28593         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
28594         scaling.
28595         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28596
28597 2012-03-15  Andreas Jaeger  <aj@suse.de>
28598
28599         [BZ #13852]
28600         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
28601         ieee754/flt-32 implementation for sin, cos and sincos.
28602         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
28603         * sysdeps/i386/fpu/s_cosf.S: Likewise.
28604         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
28605         * sysdeps/i386/fpu/s_sinf.S: Likewise.
28606         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
28607         ieee754/flt-32 implementation for tan.
28608
28609         * math/libm-test.inc (cos_test): Enable some large input tests for
28610         float as well
28611         (sin_test): Likewise.
28612         (sincos_test): Likewise.
28613         (tan_test): Add tests for large input.
28614
28615         * sysdeps/i386/fpu/libm-test-ulps: Update.
28616
28617 2012-03-15  Andreas Jaeger  <aj@suse.de>
28618
28619         [BZ #13658]
28620         * math/libm-test.inc (cos_test): Add more test cases.
28621         (sin_test): Likewise.
28622         (sincos_test): Likewise.
28623
28624 2012-03-15  Andreas Jaeger  <aj@suse.de>
28625
28626         [BZ #13837]
28627         * math/libm-test.inc (cos_test): Add a test case for large input
28628         value.
28629         (sin_test): Likewise.
28630         (sincos_test): Likewise.
28631
28632 2012-03-15  Andreas Jaeger  <aj@suse.de>,
28633         Joseph Myers  <joseph@codesourcery.com>
28634
28635         [BZ #13658]
28636         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
28637         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
28638         * sysdeps/i386/fpu/branred.c: Likewise.
28639         * sysdeps/i386/fpu/dosincos.c: Likewise.
28640         * sysdeps/i386/fpu/mpa.c: Likewise.
28641         * sysdeps/i386/fpu/s_cos.S: Likewise.
28642         * sysdeps/i386/fpu/s_sin.S: Likewise.
28643         * sysdeps/i386/fpu/s_sincos.S: Likewise.
28644         * sysdeps/i386/fpu/sincos32.c: Likewise.
28645
28646         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
28647         Define.
28648         (libc_feupdateenv_53bit): Define.
28649         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
28650         Define.
28651         (libc_feupdateenv_53bit): Define.
28652
28653         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
28654         53 bit (without extend i386 double precision).
28655
28656         * math/libm-test.inc (sincos_test): Add tests for large input.
28657         (sin): Likewise.
28658         (cos): Likewise.
28659
28660         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28661
28662 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28663
28664         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28665
28666 2012-03-15  David S. Miller  <davem@davemloft.net>
28667
28668         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
28669         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
28670         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
28671         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
28672         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
28673         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
28674         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
28675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
28676         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
28677         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
28678         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
28679         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
28680         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
28681         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
28682         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
28683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
28684         file.
28685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
28686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
28687         file.
28688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
28689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
28690         file.
28691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
28692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
28693         file.
28694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
28695         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
28696         fmin/fmax sysdep routines.
28697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28698
28699 2012-03-14  David S. Miller  <davem@davemloft.net>
28700
28701         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
28702         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
28703         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
28704         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
28705         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
28706         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
28707         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
28708         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
28709         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
28710         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
28711         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
28712         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
28713         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
28714         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
28715         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
28716         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
28717         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
28718         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
28719         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
28720         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
28721         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
28722         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
28723         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
28724         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
28725         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
28726         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
28727         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
28728         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
28729         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
28730         routines.
28731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
28732         file.
28733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
28734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
28735         file.
28736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
28737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
28738         file.
28739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
28740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
28741         file.
28742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
28743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
28744         file.
28745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
28746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
28747         file.
28748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
28749         file.
28750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
28751         file.
28752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
28753         file.
28754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
28755         New file.
28756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
28757         file.
28758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
28759         file.
28760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
28761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
28762         file.
28763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
28764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
28765         file.
28766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
28767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
28768         file.
28769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
28770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
28771         VIS3 routines.
28772
28773         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
28774         New file.
28775
28776         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28777
28778         * sysdeps/sparc/configure.in: New file.
28779         * sysdeps/sparc/configure: Generate.
28780         * configure.in (libc_cv_sparc_as_vis3): Substitute.
28781         * configure: Regenerate.
28782         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
28783         * config.make.in (have-as-vis3): New.
28784         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
28785         available use -Av9d instead of -Av9a.
28786         * sysdeps/sparc/sparc64/Makefile: Likewise.
28787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
28788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
28789         New file.
28790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
28791         file.
28792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
28793         New file.
28794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
28795         file.
28796         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
28797         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
28798         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
28799         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
28800         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
28801
28802         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
28803         fzeros/fnegs to load 0x80000000 into a float register instead of
28804         using the stack.
28805         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
28806
28807 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28808
28809         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28810         bits/syscall.h.
28811         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
28812         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
28813         ($(inst_includedir)/bits/syscall.h): Remove rule.
28814         ($(objpfx)bits/syscall.d): Include instead of
28815         $(objpfx)syscall-list.d.
28816         (generated): Change syscall-list.h and syscall-list.d to
28817         bits/syscall.h and bits/syscall.d.
28818
28819 2012-03-14  Roland McGrath  <roland@hack.frob.com>
28820
28821         [BZ #13846]
28822         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
28823
28824 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28825
28826         [BZ #13841]
28827         * math/s_csqrt.c: Include <float.h>.
28828         (__csqrt): Scale large or subnormal inputs.
28829         * math/s_csqrtf.c: Likewise.
28830         * math/s_csqrtl.c: Likewise.
28831         * math/libm-test.inc (csqrt_test): Add more tests.
28832         * sysdeps/i386/fpu/libm-test-ulps: Update.
28833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28834
28835         [BZ #13840]
28836         * math/libm-test.inc (hypot_test): Add more tests.
28837
28838 2012-03-13  David S. Miller  <davem@davemloft.net>
28839
28840         [BZ #13840]
28841         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
28842         double-precision for the calculation instead of scaling.
28843
28844 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
28845
28846         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
28847         manipulate bits before adding and subtracting TWO52[sx].
28848         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
28849         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28850         Likewise.
28851         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
28852
28853 2012-03-13  David S. Miller  <davem@davemloft.net>
28854
28855         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
28856         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
28857         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
28858         rtld-global-offsets.h
28859         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28860
28861         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
28862         large parameters.
28863
28864         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
28865
28866         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
28867         'err' in the ifdef scope in which it is actually used.
28868
28869         * nss/nss_db/db-init.c: Include string.h
28870
28871 2012-03-12  David S. Miller  <davem@davemloft.net>
28872
28873         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
28874         masking out of the most significant byte of random value used.
28875         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28876         Fix coding style in previous change.
28877
28878         * sysdeps/unix/sysv/linux/kernel-features.h
28879         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
28880         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
28881         expression.
28882         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
28883         later.
28884
28885 2012-03-11  David S. Miller  <davem@davemloft.net>
28886
28887         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
28888         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
28889         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
28890         for 'resultvar' otherwise things get truncated on 64-bit.
28891
28892         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28893         Fix masking out of the most significant byte of random value used.
28894
28895         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28896
28897 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
28898
28899         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28900
28901 2012-03-09  David S. Miller  <davem@davemloft.net>
28902
28903         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
28904         variables with appropriate CPP guards.
28905         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
28906         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
28907         on resulting framesize and the management of the outregs buffer for pltexit.
28908         Preserve floating point return values across _dl_call_pltexit call.
28909         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
28910         framesize and the management of the outregs buffer for pltexit.
28911         Preserve floating point return values across _dl_call_pltexit
28912         call.
28913         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
28914         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
28915         (print_exit): Fix format string for return register value.
28916
28917 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
28918
28919         * sunrpc/Makefile (others): Add rpcgen.
28920         ($(objpfx)rpcgen): Remove special build rule and dependency on
28921         libc.
28922         * sunrpc/rpcgen.c: New file.
28923
28924 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
28925
28926         [BZ #13673]
28927         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
28928         * stdio-common/bug-vfprintf-nargs.c: Likewise.
28929         * sysdeps/i386/crti.S: Likewise.
28930         * sysdeps/i386/crtn.S: Likewise.
28931         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
28932         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
28933         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
28934         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
28935         * sysdeps/sh/crti.S: Likewise.
28936         * sysdeps/sh/crtn.S: Likewise.
28937         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
28938
28939         [BZ #13673]
28940         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
28941         with URL.
28942         * locale/programs/locfile-kw.gperf: Likewise.
28943         * locale/programs/charmap-kw.h: Regenerated.
28944         * locale/programs/locfile-kw.h: Likewise.
28945
28946         [BZ #13673]
28947         * intl/plural.y: Replace FSF snail mail address with URL.
28948         * intl/plural.c: Regenerated.
28949
28950 2012-03-09  Richard Henderson  <rth@twiddle.net>
28951
28952         * include/math_private.h: Remove file.
28953         * math/math_private.h: Move file ...
28954         * sysdeps/generic/math_private.h: ... here.
28955
28956         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
28957         * sysdeps/powerpc/fpu/math_private.h: Likewise.
28958         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28959
28960         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
28961         and <math_private.h>.
28962         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
28963         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
28964         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
28965         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
28966         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
28967         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
28968         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28969         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28970         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
28971         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28972         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28973         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
28974         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
28975         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28976         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
28977         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
28978         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28979         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
28980         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
28981         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
28982         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28983         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
28984         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
28985         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28986         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
28987         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
28988         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
28989         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28990         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28991         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
28992         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
28993         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28994         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
28995         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28996         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
28997         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
28998         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28999         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
29000         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
29001         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29002         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
29003         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
29004         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
29005         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
29006         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
29007         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
29008         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
29009         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
29010         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
29011         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
29012         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
29013         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
29014         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
29015         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
29016         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
29017         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
29018         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
29019         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
29020         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
29021         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
29022         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
29023         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
29024         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29025         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
29026         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
29027         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
29028         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
29029         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
29030         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
29031         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
29032         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
29033         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29034         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
29035         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29036         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
29037         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
29038         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
29039         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
29040         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
29041         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
29042         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
29043         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
29044         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
29045         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29046         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
29047         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
29048         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
29049         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
29050         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29051         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29052         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29053         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29054         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29055         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29056         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29057         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29058         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29059         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29060         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29061         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29062         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29063         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29064         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29065         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29066         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
29067         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29068         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29069         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29070         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
29071         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
29072         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
29073         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
29074         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29075         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
29076         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
29077         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29078         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
29079         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
29080         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
29081         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
29082         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
29083         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
29084         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29085         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
29086         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
29087         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
29088         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29089         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
29090         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
29091         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
29092         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
29093         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
29094         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
29095         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
29096         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
29097         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
29098         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29099         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
29100         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
29101         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29102         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
29103         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
29104         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
29105         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
29106         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
29107         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
29108         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
29109         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
29110         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
29111         * sysdeps/ieee754/k_standard.c: Likewise.
29112         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29113         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29114         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29115         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29116         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29117         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29118         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29119         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29120         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29121         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29122         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29123         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29124         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29125         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29126         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29127         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29128         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
29129         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29130         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29131         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
29132         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
29133         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
29134         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
29135         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
29136         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
29137         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
29138         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
29139         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
29140         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
29141         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
29142         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
29143         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
29144         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
29145         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
29146         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
29147         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
29148         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
29149         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
29150         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
29151         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
29152         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
29153         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
29154         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
29155         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
29156         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
29157         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
29158         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
29159         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
29160         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
29161         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
29162         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
29163         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
29164         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
29165         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
29166         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29167         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
29168         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
29169         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
29170         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
29171         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
29172         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
29173         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
29174         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
29175         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29176         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29177         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29178         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29179         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29180         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29181         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29182         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29183         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29184         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29185         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29186         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29187         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29188         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
29189         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29190         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29191         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
29192         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
29193         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
29194         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
29195         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
29196         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
29197         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
29198         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
29199         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29200         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29201         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
29202         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
29203         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
29204         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
29205         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
29206         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
29207         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
29208         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
29209         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
29210         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
29211         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
29212         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
29213         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
29214         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
29215         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
29216         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
29217         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
29218         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
29219         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
29220         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
29221         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
29222         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
29223         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
29224         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29225         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29226         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29227         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29228         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29229         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29230         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29231         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29232         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29233         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29234         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29235         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29236         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29237         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
29238         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
29239         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
29240         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
29241         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
29242         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
29243         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
29244         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
29245         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
29246         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
29247         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
29248         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
29249         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
29250         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
29251         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
29252         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
29253         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
29254         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
29255         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
29256         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
29257         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
29258         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
29259         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
29260         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
29261         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
29262         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
29263         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
29264         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
29265         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
29266         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
29267         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
29268         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
29269         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
29270         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
29271         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
29272         * sysdeps/ieee754/s_lib_version.c: Likewise.
29273         * sysdeps/ieee754/s_matherr.c: Likewise.
29274         * sysdeps/ieee754/s_signgam.c: Likewise.
29275         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29276         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29277         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
29278         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
29279         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
29280         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
29281         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
29282         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
29283         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
29284         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
29285         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
29286         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
29287         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
29288         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
29289         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
29290         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
29291         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
29292         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
29293         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
29294         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
29295         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
29296
29297 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29298
29299         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
29300         * sunrpc/rpc_main.c: Likewise.
29301         * sunrpc/rpc_svcout.c: Likewise.
29302
29303 2012-03-09  David S. Miller  <davem@davemloft.net>
29304
29305         * include/math_private.h: New file.
29306
29307 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29308
29309         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
29310         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
29311         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
29312         from <bits/socket_type.h>.
29313         (enum __socket_type): Don't define here.
29314         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
29315         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29316         bits/socket_type.h.
29317
29318         [BZ #13566]
29319         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
29320         checking __USE_GNU.
29321
29322         * Makerules ($(inst_includedir)/%.h): New rule.
29323         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
29324         (install-others): Remove variable setting.
29325         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
29326
29327 2012-03-08  Richard Henderson  <rth@twiddle.net>
29328
29329         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
29330         from macro to inline function; merge with the
29331         !__LIBC_INTERNAL_MATH_INLINES version.
29332         (__ieee754_sqrtf): Likewise.
29333
29334         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
29335         to inline function.
29336         (__rintf, __floor, __floorf): Likewise.
29337
29338         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
29339         macro to inline function.
29340         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
29341
29342         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
29343         not <math/math_private.h>.
29344
29345 2012-03-08  David S. Miller  <davem@davemloft.net>
29346
29347         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
29348         copyright year.
29349         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
29350
29351 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
29352
29353         * resolv/gai_misc.c (handle_requests): Fix struct timespec
29354         normalization.
29355         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
29356         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29357
29358 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
29359
29360         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
29361         be defined individually, they must be defined as a block.  Define
29362         S for printing a string instead of hidint the different by using a
29363         macro for adding the 'l'.
29364         * stdio-common/tst-fphex-wide.c: Adjust.
29365
29366 2012-03-07  Marek Polacek  <polacek@redhat.com>
29367
29368         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
29369
29370 2012-03-08  Marek Polacek  <polacek@redhat.com>
29371
29372         [BZ #13806]
29373         * stdio-common/Makefile (tests): Add tst-fphex-wide.
29374         * stdio-common/tst-fphex.c: Define a few macros to make the
29375         test reusable.  Use them.
29376         * stdio-common/tst-fphex-wide.c: New file.
29377
29378 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
29379
29380         [BZ #6911]
29381         * manual/macros.texi (gnusystems): New macro.
29382         (nongnusystems): Likewise.
29383         (gnulinuxhurdsystems): Likewise.
29384         (gnuhurdsystems): Likewise..
29385         (gnulinuxsystems): Likewise.
29386         * manual/charset.texi: Use new macros or @theglibc{} to refer to
29387         variants of the GNU system, not "GNU system".
29388         * manual/conf.texi: Likewise.
29389         * manual/errno.texi: Likewise.  Update example of errno macro
29390         expansion.
29391         * manual/filesys.texi: Likewise.
29392         (getumask): Document as specific to GNU/Hurd.
29393         * manual/install.texi: Likewise.  Reword some references to
29394         GNU/Linux.
29395         * manual/intro.texi: Likewise.
29396         * manual/io.texi: Likewise.
29397         (File Name Portability): Detail which constraints are inapplicable
29398         to all GNU systems and which are only inapplicable to GNU/Hurd.
29399         * manual/job.texi: Likewise.
29400         * manual/llio.texi: Likewise.
29401         (O_NOCTTY): Document as present on GNU/Linux.
29402         * manual/maint.texi: Likewise.
29403         * manual/memory.texi: Likewise.
29404         * manual/pattern.texi: Likewise.
29405         * manual/pipe.texi: Likewise.
29406         * manual/process.texi: Likewise.
29407         * manual/resource.texi: Likewise.
29408         (RUSAGE_CHILDREN): Remove statement about specifying a particular
29409         child on GNU/Hurd.
29410         * manual/setjmp.texi: Likewise.
29411         * manual/signal.texi: Likewise.
29412         * manual/startup.texi: Likewise.
29413         * manual/stdio.texi: Likewise.
29414         * manual/terminal.texi: Likewise.
29415         (ONLCR): Document as POSIX.
29416         (OXTABS): Document availability on GNU/Linux as XTABS.
29417         (ONOEOT): Document availability separately from other bits.
29418         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
29419         * manual/time.texi: Likewise.
29420         * manual/users.texi: Likewise.
29421         * INSTALL: Regenerated.
29422         * sysdeps/gnu/errlist.c: Regenerated.
29423
29424         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
29425         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
29426         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
29427         puts.
29428         * configure: Regenerated.
29429
29430 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
29431
29432         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
29433         default includes instead of AC_HEADER_CHECK.
29434         * sysdeps/i386/configure: Regenerated.
29435
29436         [BZ #10716]
29437         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
29438         * math/s_cacoshf.c (__cacoshf): Likewise.
29439         * math/s_cacoshl.c (__cacoshl): Likewise.
29440         * math/s_casinh.c (__casinh): Set signs of result from argument.
29441         * math/s_casinhf.c (__casinhf): Likewise.
29442         * math/s_casinhl.c (__casinhl): Likewise.
29443         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
29444         (casinh_test): Add more tests.
29445         * sysdeps/i386/fpu/libm-test-ulps: Update.
29446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29447
29448 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
29449
29450         * po/zh_TW.po: Update from translation team.
29451
29452         * login/Makefile (distribute): Remove variable.
29453         * catgets/Makefile: Likewise.
29454         * mach/Makefile: Likewise.
29455         * malloc/Makefile: Likewise.
29456         * misc/Makefile: Likewise.
29457         * iconv/Makefile: Likewise.
29458         * nscd/Makefile: Likewise.
29459         * hurd/Makefile: Likewise.
29460         * manual/Makefile: Likewise.
29461         * locale/Makefile: Likewise.
29462         * intl/Makefile: Likewise.
29463         * conform/Makefile: Likewise.
29464         * nss/Makefile: Likewise.
29465         * time/Makefile: Likewise.
29466         * soft-fp/Makefile: Likewise.
29467         * dirent/Makefile: Likewise.
29468         * gmon/Makefile: Likewise.
29469         * po/Makefile: Likewise.
29470         * rt/Makefile: Likewise.
29471         * socket/Makefile: Likewise.
29472         * math/Makefile: Likewise.
29473         * signal/Makefile: Likewise.
29474         * debug/Makefile: Likewise.
29475         * elf/Makefile: Likewise.
29476         * timezone/Makefile: Likewise.
29477         * stdlib/Makefile: Likewise.
29478         * iconvdata/Makefile: Likewise.
29479         * sunrpc/Makefile: Likewise.
29480         * io/Makefile: Likewise.
29481         * argp/Makefile: Likewise.
29482         * inet/Makefile: Likewise.
29483         * hesiod/Makefile: Likewise.
29484         * grp/Makefile: Likewise.
29485         * csu/Makefile: Likewise.
29486         * wctype/Makefile: Likewise.
29487         * crypt/Makefile: Likewise.
29488         * libio/Makefile: Likewise.
29489         * string/Makefile: Likewise.
29490         * nis/Makefile: Likewise.
29491         * resolv/Makefile: Likewise.
29492         * stdio-common/Makefile: Likewise.
29493         * wcsmbs/Makefile: Likewise.
29494         * dlfcn/Makefile: Likewise.
29495         * posix/Makefile: Likewise.
29496
29497         [BZ #6959]
29498         * timezone/Makefile: Don't install timezone files, just the programs
29499         and scripts.
29500
29501 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
29502
29503         * nss/databases.def: Add missing gshadow entry.
29504
29505         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
29506
29507 2012-03-06  Marek Polacek  <polacek@redhat.com>
29508
29509         [BZ #13726]
29510         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
29511         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
29512         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
29513         * stdio-common/tst-long-dbl-fphex.c: New file.
29514
29515 2012-03-06  David S. Miller  <davem@davemloft.net>
29516
29517         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
29518         (set_obp_int): New function.
29519         (get_obp_int): New function.
29520         (__get_clockfreq_via_dev_openprom): Likewise.
29521         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
29522         Avoid unused variable warnings on 'val' and use builtin_expect.
29523         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
29524         __builtin_expect.
29525         (INLINE_CLONE_SYSCALL): Likewise.
29526
29527 2012-03-05  David S. Miller  <davem@davemloft.net>
29528
29529         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29530
29531 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
29532
29533         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29534
29535         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
29536         only for |x| >= 40.
29537         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29538
29539 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
29540
29541         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
29542         Replace gettimeofday with __vdso_gettimeofday.
29543
29544         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29545         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
29546         __vdso_clock_gettime and __vdso_getcpu.
29547
29548         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
29549         time with __vdso_time.
29550
29551 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29552
29553         * manual/lang.texi (size_t): Note types to which size_t may be
29554         equivalent with the GNU C Library, but do not describe when
29555         differences between them are significant.
29556
29557 2012-03-05  Andreas Jaeger  <aj@suse.de>
29558
29559         * sysdeps/i386/fpu/libm-test-ulps: Update.
29560
29561 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29562
29563         [BZ #3976]
29564         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
29565         (__ieee754_pow): Save and restore rounding mode and use
29566         round-to-nearest for main computations.
29567         * math/libm-test.inc (pow_test_tonearest): New function.
29568         (pow_test_towardzero): Likewise.
29569         (pow_test_downward): Likewise.
29570         (pow_test_upward): Likewise.
29571         (main): Call the new functions.
29572         * sysdeps/i386/fpu/libm-test-ulps: Update.
29573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29574
29575         [BZ #3976]
29576         * math/libm-test.inc (cosh_test_tonearest): New function.
29577         (cosh_test_towardzero): Likewise.
29578         (cosh_test_downward): Likewise.
29579         (cosh_test_upward): Likewise.
29580         (sinh_test_tonearest): Likewise.
29581         (sinh_test_towardzero): Likewise.
29582         (sinh_test_downward): Likewise.
29583         (sinh_test_upward): Likewise.
29584         (main): Call the new functions.
29585         * sysdeps/i386/fpu/libm-test-ulps: Update.
29586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29587
29588 2012-03-05  Tom de Vries  <tom@codesourcery.com>
29589
29590         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
29591         default stack guard is set in last bytes.
29592         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
29593
29594 2012-03-05  Kees Cook  <keescook@chromium.org>
29595
29596         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
29597
29598         [BZ #13656]
29599         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
29600         possibly allocate from heap instead of stack.
29601         * stdio-common/bug-vfprintf-nargs.c: New file.
29602         * stdio-common/Makefile (tests): Add nargs overflow test.
29603
29604 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
29605
29606         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29607
29608 2012-03-03  Marek Polacek  <polacek@redhat.com>
29609
29610         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
29611         * math/math_private.h: Likewise.
29612         * stdlib/tst-strtod.c: Likewise.
29613         * sysdeps/i386/i486/bits/atomic.h: Likewise.
29614         * sysdeps/x86_64/bits/atomic.h: Likewise.
29615
29616 2012-03-02  David S. Miller  <davem@davemloft.net>
29617
29618         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
29619         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
29620         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
29621         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
29622         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
29623         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
29624         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
29625         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
29626
29627 2012-03-02  Roland McGrath  <roland@hack.frob.com>
29628
29629         [BZ #13792]
29630         * manual/examples/README: New file, says the example source files
29631         can be used under GPL>=2.
29632         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
29633         line containing just "*/".
29634         * manual/examples/add.c: Add copyright header (GPL>=2).
29635         * manual/examples/argp-ex1.c: Likewise.
29636         * manual/examples/argp-ex2.c: Likewise.
29637         * manual/examples/argp-ex3.c: Likewise.
29638         * manual/examples/argp-ex4.c: Likewise.
29639         * manual/examples/atexit.c: Likewise.
29640         * manual/examples/db.c: Likewise.
29641         * manual/examples/dir.c: Likewise.
29642         * manual/examples/dir2.c: Likewise.
29643         * manual/examples/execinfo.c: Likewise.
29644         * manual/examples/filecli.c: Likewise.
29645         * manual/examples/filesrv.c: Likewise.
29646         * manual/examples/fmtmsgexpl.c: Likewise.
29647         * manual/examples/genpass.c: Likewise.
29648         * manual/examples/inetcli.c: Likewise.
29649         * manual/examples/inetsrv.c: Likewise.
29650         * manual/examples/isockad.c: Likewise.
29651         * manual/examples/longopt.c: Likewise.
29652         * manual/examples/memopen.c: Likewise.
29653         * manual/examples/memstrm.c: Likewise.
29654         * manual/examples/mkfsock.c: Likewise.
29655         * manual/examples/mkisock.c: Likewise.
29656         * manual/examples/mygetpass.c: Likewise.
29657         * manual/examples/pipe.c: Likewise.
29658         * manual/examples/popen.c: Likewise.
29659         * manual/examples/rprintf.c: Likewise.
29660         * manual/examples/search.c: Likewise.
29661         * manual/examples/select.c: Likewise.
29662         * manual/examples/setjmp.c: Likewise.
29663         * manual/examples/sigh1.c: Likewise.
29664         * manual/examples/sigusr.c: Likewise.
29665         * manual/examples/stpcpy.c: Likewise.
29666         * manual/examples/strdupa.c: Likewise.
29667         * manual/examples/strftim.c: Likewise.
29668         * manual/examples/strncat.c: Likewise.
29669         * manual/examples/subopt.c: Likewise.
29670         * manual/examples/swapcontext.c: Likewise.
29671         * manual/examples/termios.c: Likewise.
29672         * manual/examples/testopt.c: Likewise.
29673         * manual/examples/testpass.c: Likewise.
29674         * manual/examples/timeval_subtract.c: Likewise.
29675
29676         [BZ #13792]
29677         * manual/time.texi (Elapsed Time): Move timeval_subtract example
29678         function to ...
29679         * manual/timeval_subtract.c.texi: ... here, new file.
29680
29681 2012-03-02  David S. Miller  <davem@davemloft.net>
29682
29683         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
29684
29685 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
29686
29687         [BZ #3976]
29688         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
29689         (__sin): Save and restore rounding mode and use round-to-nearest
29690         for all computations.
29691         (__cos): Save and restore rounding mode and use round-to-nearest
29692         for all computations.
29693         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
29694         <fenv.h>.
29695         (tan): Save and restore rounding mode and use round-to-nearest for
29696         all computations.
29697         * math/libm-test.inc (cos_test_tonearest): New function.
29698         (cos_test_towardzero): Likewise.
29699         (cos_test_downward): Likewise.
29700         (cos_test_upward): Likewise.
29701         (sin_test_tonearest): Likewise.
29702         (sin_test_towardzero): Likewise.
29703         (sin_test_downward): Likewise.
29704         (sin_test_upward): Likewise.
29705         (tan_test_tonearest): Likewise.
29706         (tan_test_towardzero): Likewise.
29707         (tan_test_downward): Likewise.
29708         (tan_test_upward): Likewise.
29709         (main): Call the new functions.
29710         * sysdeps/i386/fpu/libm-test-ulps: Update.
29711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29712
29713         [BZ #10135]
29714         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
29715         small n, then large n, before computing and testing k+n.
29716         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
29717         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
29718         Likewise.
29719         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
29720         Likewise.
29721         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
29722         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
29723         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
29724         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
29725         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
29726         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
29727         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
29728         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
29729         * math/libm-test.inc (scalbn_test): Add more tests.
29730         (scalbln_test): Likewise.
29731
29732         * manual/filesys.texi (mode_t): Describe constraints on size and
29733         signedness, not exact equivalence to a particular type.
29734         (ino_t): Likewise.
29735         (ino64_t): Likewise.
29736         (dev_t): Likewise.
29737         (nlink_t): Likewise.
29738         (blkcnt_t): Likewise.
29739         (blkcnt64_t): Likewise.
29740         * manual/llio.texi (off_t): Likewise.
29741
29742         [BZ #3976]
29743         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
29744         (__ieee754_exp): Save and restore rounding mode and use
29745         round-to-nearest for all computations.
29746         * math/libm-test.inc (exp_test_tonearest): New function.
29747         (exp_test_towardzero): Likewise.
29748         (exp_test_downward): Likewise.
29749         (exp_test_upward): Likewise.
29750         (main): Call the new functions.
29751         * sysdeps/i386/fpu/libm-test-ulps: Update.
29752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29753
29754 2012-03-01  Chris Demetriou  <cgd@google.com>
29755
29756         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
29757         have predictable order.
29758
29759 2012-03-01  David S. Miller  <davem@davemloft.net>
29760
29761         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
29762
29763         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
29764         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
29765         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
29766         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
29767
29768         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
29769         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
29770         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
29771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
29772         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
29773         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
29774         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
29775         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
29776         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
29777
29778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29779
29780         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
29781         * sysdeps/sparc/fpu/libm-test-ulps: to here.
29782         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
29783
29784         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
29785         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29786         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29787         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
29788         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
29789         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
29790         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
29791         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29792         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29793         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
29794         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
29795         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29796         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29797         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29798         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29799         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29800         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
29801         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
29802         * sysdeps/sparc/elf/configure: Regenerated.
29803
29804 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
29805
29806         * configure.in (AS, LD): Require binutils 2.20 or later.
29807         * configure: Regenerated.
29808         * manual/install.texi (Tools for Compilation): Give binutils 2.20
29809         as required minimum version.
29810         * INSTALL: Regenerated.
29811
29812         [BZ #2541]
29813         [BZ #4108]
29814         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
29815         before squaring exponent.
29816         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
29817         bottom long double and 27 bits of top long double before squaring
29818         exponent.
29819         * math/libm-test.inc (erfc_test): Add more tests.
29820         * sysdeps/i386/fpu/libm-test-ulps: Update.
29821         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29823
29824 2012-03-01  Kai Tietz  <ktietz@redhat.com>
29825
29826         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
29827         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
29828         containing bit-fields.
29829         * soft-fp/extended.h (_FP_UNION_E): Likewise.
29830         * soft-fp/single.h (_FP_UNION_S): Likewise.
29831         * soft-fp/double.h (_FP_UNION_D): Likewise.
29832
29833 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29834
29835         [BZ #13786]
29836         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
29837         not include ../strcmp.S.
29838         [USE_AS_STRNCASECMP_L]: Likewise.
29839         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
29840         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
29841         * sysdeps/i386/i686/multiarch/strncase_l-c.c
29842         (__strncasecmp_l_ia32): Define as alias to
29843         __strncasecmp_l_nonascii.
29844
29845         [BZ #5794]
29846         * math/libm-test.inc (expm1_test): Add test for bug 5794.
29847         * sysdeps/i386/fpu/libm-test-ulps: Update.
29848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29849
29850         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
29851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29852
29853 2012-02-29  Jeff Law  <law@redhat.com>
29854
29855         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
29856         out of bounds read.
29857
29858 2012-02-29  Marek Polacek  <polacek@redhat.com>
29859
29860         [BZ #13706]
29861         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
29862         * elf/Makefile: Add rules to run tst-unused-dep.out.
29863
29864 2012-02-28  David S. Miller  <davem@davemloft.net>
29865
29866         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
29867         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
29868         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
29869         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
29870         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
29871         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
29872
29873 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29874
29875         * math/libm-test.inc (llround_test): Move one test from
29876         lround_test.  Use TEST_f_L in moved test.
29877         (lround_test): Move misplaced test to llround_test.  Add testcase
29878         from bug 2561.
29879
29880 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
29881
29882         * sysdeps/x86_64/fpu/e_expf.S: New file.
29883         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
29884
29885 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
29886
29887         [BZ #13637]
29888         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
29889         of remain_len that may cause incomplete multi-byte character and
29890         false match.
29891         * posix/bug-regex33.c: New file.
29892         * posix/Makefile (tests): Add bug-regex33.
29893
29894 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
29895
29896         * manual/macros.texi: New file.
29897         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
29898         * manual/libc.texinfo: Include macros.texi.
29899         * manual/creatute.texi: Likewise.
29900         * manual/install.texi: Likewise.
29901         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
29902         @glibcadj{} in references to the GNU C Library.
29903         * manual/charset.texi: Likewise.
29904         * manual/conf.texi: Likewise.
29905         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
29906         when not using those macros.
29907         * manual/creature.texi: Likewise.
29908         * manual/crypt.texi: Likewise.
29909         * manual/errno.texi: Likewise.
29910         * manual/filesys.texi: Likewise.
29911         * manual/header.texi: Likewise.
29912         * manual/install.texi: Likewise.
29913         * manual/intro.texi: Likewise.
29914         * manual/io.texi: Likewise.
29915         * manual/job.texi: Likewise.
29916         * manual/lang.texi: Likewise.
29917         * manual/libc.texiinfo: Likewise.
29918         * manual/llio.texi: Likewise.
29919         * manual/locale.texi: Likewise.
29920         * manual/maint.texi: Likewise.
29921         * manual/math.texi: Likewise.
29922         * manual/memory.texi: Likewise.
29923         * manual/message.texi: Likewise.
29924         * manual/nss.texi: Likewise.
29925         * manual/pattern.texi: Likewise.
29926         * manual/process.texi: Likewise.
29927         * manual/resource.texi: Likewise.
29928         * manual/search.texi: Likewise.
29929         * manual/setjmp.texi: Likewise.
29930         * manual/signal.texi: Likewise.
29931         * manual/socket.texi: Likewise.
29932         * manual/startup.texi: Likewise.
29933         * manual/stdio.texi: Likewise.
29934         * manual/string.texi: Likewise.
29935         * manual/sysinfo.texi: Likewise.
29936         * manual/syslog.texi: Likewise.
29937         * manual/terminal.texi: Likewise.
29938         * manual/time.texi: Likewise.
29939         * manual/users.texi: Likewise.
29940         * INSTALL: Regenerated.
29941         * NOTES: Regenerated.
29942         * sysdeps/gnu/errlist.c: Regenerated.
29943
29944 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
29945
29946         * include/dirent.h: Include <dirstream.h> before
29947         <dirent/dirent.h>.
29948
29949 2012-02-28  David S. Miller  <davem@davemloft.net>
29950
29951         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
29952         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
29953         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
29954         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
29955
29956 2012-02-27  David S. Miller  <davem@davemloft.net>
29957
29958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
29959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
29960         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
29961         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
29962
29963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
29964         frame pointer instead of stack pointer relative arg slot.
29965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29966         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29967         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29968
29969 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
29970
29971         [BZ #3992]
29972         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
29973
29974 2012-02-27  David S. Miller  <davem@davemloft.net>
29975
29976         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
29977         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
29979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
29980         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29981         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29982         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
29983         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
29984
29985 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
29986
29987         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
29988         later.  Allow versions 5-9.
29989         * configure: Regenerated.
29990         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
29991         required minimum version and 4.6 as recommended version.  Do not
29992         mention bugs in GCC 2.7 and 2.8.
29993         * INSTALL: Regenerated.
29994
29995 2012-02-27  David S. Miller  <davem@davemloft.net>
29996
29997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
29998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
29999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
30000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
30001         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
30002         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
30003         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
30004         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
30005
30006         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
30007         manipulate bits before adding and subtracting TWO112[sx].
30008         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
30009
30010 2012-02-27  Roland McGrath  <roland@hack.frob.com>
30011
30012         [BZ #13775]
30013         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
30014         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
30015         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
30016         being in POSIX, because they are in 1003.1-2008.
30017
30018         * rt/tst-aio.c: Include <fcntl.h>.
30019         * rt/tst-aio7.c: Likewise.
30020         * rt/tst-aio64.c: Likewise.
30021
30022         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
30023
30024 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30025
30026         * manual/install.texi (--with-headers): Describe headers as
30027         interface headers, not private headers.
30028         (Specific advice for GNU/Linux systems): Describe use of headers
30029         from "make headers_install", not private headers from older
30030         kernels.
30031         * INSTALL: Regenerated.
30032         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
30033         Change to 2.6.19.
30034         * sysdeps/unix/sysv/linux/configure: Regenerated.
30035
30036         * manual/llio.texi (fclean): Remove documentation.
30037
30038         * manual/Makefile (libc-texi-generated): New variable.  Include
30039         version.texi.
30040         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
30041         $(libc-texi-generated), not duplicated list of files.
30042         (version.texi, stamp-version): New rules.
30043         (realclean): Remove $(libc-texi-generated), not individual files
30044         from that list.  Do not remove dir-add.texinfo.
30045         * manual/libc.texinfo: Comment out uses of edition numbers and
30046         references to printed manual.  Remove last-updated dates.
30047         (EDITION): Comment out.
30048         (ISBN): Likewise.
30049         (VERSION, UPDATED): Remove.
30050         (version.texi): Include.
30051
30052 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
30053
30054         * sysdeps/posix/spawni.c: Include <signal.h>.
30055         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
30056         * sysdeps/pthread/aio_fsync.c: Likewise.
30057
30058 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
30059
30060         * conform/Makefile (tests): Run only when not cross-compiling and
30061         when fast-check is not defined.
30062
30063         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
30064         * conform/data/limits.h-data: Fixes for POSIX2008.
30065         * conform/run-conformtest.sh: Run all tests.
30066         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
30067         headers.
30068         * include/bits/dlfcn.h: Likewise.
30069         * include/langinfo.h: Likewise.
30070         * include/monetary.h: Likewise.
30071         * include/sys/poll.h: Likewise.
30072
30073         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
30074         for __USE_GNU.
30075         * posix/spawn.h: Define __need_sigset_t.
30076         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
30077         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
30078         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
30079         to get sigevent_t only.
30080         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
30081         only for __USE_GNU.
30082         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30083         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
30084         process_vm_writev only for __USE_GNU.
30085         * termios/termios.h: Declare tcgetsid also for POSIX2008.
30086
30087         * conform/Makefile: For now ignore errors from run-conformtest.
30088         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
30089         POSIX to avoid namespace pollution.  Don't prepend headers.
30090         * conform/data/aio.h-data: Fixes for POSIX testing.
30091         * conform/data/fcntl.h-data: Likewise.
30092         * conform/data/glob.h-data: Likewise.
30093         * conform/data/grp.h-data: Likewise.
30094         * conform/data/pthread.h-data: Likewise.
30095         * conform/data/pwd.h-data: Likewise.
30096         * conform/data/signal.h-data: Likewise.
30097         * conform/data/spawn.h-data: Likewise.
30098         * conform/data/stdio.h-data: Likewise.
30099         * conform/data/stdlib.h-data: Likewise.
30100         * conform/data/stropts.h-data: Likewise.
30101         * conform/data/sys/mman.h-data: Likewise.
30102         * conform/data/sys/stat.h-data: Likewise.
30103         * conform/data/sys/types.h-data: Likewise.
30104         * conform/data/sys/wait.h-data: Likewise.
30105         * conform/data/time.h-data: Likewise.
30106         * conform/data/unistd.h-data: Likewise.
30107         * conform/data/utime.h-data: Likewise.
30108
30109         * io/sys/stat.h: fchmod was always in POSIX.
30110         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
30111         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
30112         * rt/aio.h: Define __need_timespec before including <time.h>.
30113         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
30114         struct.  Add forward declaration of pthread_attr_t and use it in
30115         sigevent.
30116         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30117         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
30118         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
30119         always remove CLK_TCK definition.
30120
30121 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
30122
30123         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
30124
30125 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
30126
30127         * conform/run-conformtest.sh: New file.
30128         * conform/Makefile: Run run-conformtest for tests.
30129         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
30130         support.
30131
30132         * conform/data/uchar.h-data: New file.
30133         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
30134         * conform/data/arpa/inet.h-data: Likewise.
30135         * conform/data/assert.h-data: Likewise.
30136         * conform/data/complex.h-data: Likewise.
30137         * conform/data/cpio.h-data: Likewise.
30138         * conform/data/ctype.h-data: Likewise.
30139         * conform/data/dirent.h-data: Likewise.
30140         * conform/data/dlfcn.h-data: Likewise.
30141         * conform/data/errno.h-data: Likewise.
30142         * conform/data/fcntl.h-data: Likewise.
30143         * conform/data/float.h-data: Likewise.
30144         * conform/data/fmtmsg.h-data: Likewise.
30145         * conform/data/fnmatch.h-data: Likewise.
30146         * conform/data/ftw.h-data: Likewise.
30147         * conform/data/glob.h-data: Likewise.
30148         * conform/data/grp.h-data: Likewise.
30149         * conform/data/iconv.h-data: Likewise.
30150         * conform/data/inttypes.h-data: Likewise.
30151         * conform/data/langinfo.h-data: Likewise.
30152         * conform/data/libgen.h-data: Likewise.
30153         * conform/data/limits.h-data: Likewise.
30154         * conform/data/locale.h-data: Likewise.
30155         * conform/data/math.h-data: Likewise.
30156         * conform/data/monetary.h-data: Likewise.
30157         * conform/data/mqueue.h-data: Likewise.
30158         * conform/data/ndbm.h-data: Likewise.
30159         * conform/data/net/if.h-data: Likewise.
30160         * conform/data/netdb.h-data: Likewise.
30161         * conform/data/netinet/in.h-data: Likewise.
30162         * conform/data/nl_types.h-data: Likewise.
30163         * conform/data/poll.h-data: Likewise.
30164         * conform/data/pthread.h-data: Likewise.
30165         * conform/data/pwd.h-data: Likewise.
30166         * conform/data/regex.h-data: Likewise.
30167         * conform/data/sched.h-data: Likewise.
30168         * conform/data/search.h-data: Likewise.
30169         * conform/data/semaphore.h-data: Likewise.
30170         * conform/data/setjmp.h-data: Likewise.
30171         * conform/data/signal.h-data: Likewise.
30172         * conform/data/spawn.h-data: Likewise.
30173         * conform/data/stdarg.h-data: Likewise.
30174         * conform/data/stdio.h-data: Likewise.
30175         * conform/data/stdlib.h-data: Likewise.
30176         * conform/data/string.h-data: Likewise.
30177         * conform/data/strings.h-data: Likewise.
30178         * conform/data/stropts.h-data: Likewise.
30179         * conform/data/sys/ipc.h-data: Likewise.
30180         * conform/data/sys/mman.h-data: Likewise.
30181         * conform/data/sys/msg.h-data: Likewise.
30182         * conform/data/sys/resource.h-data: Likewise.
30183         * conform/data/sys/select.h-data: Likewise.
30184         * conform/data/sys/sem.h-data: Likewise.
30185         * conform/data/sys/shm.h-data: Likewise.
30186         * conform/data/sys/socket.h-data: Likewise.
30187         * conform/data/sys/stat.h-data: Likewise.
30188         * conform/data/sys/statvfs.h-data: Likewise.
30189         * conform/data/sys/time.h-data: Likewise.
30190         * conform/data/sys/timeb.h-data: Likewise.
30191         * conform/data/sys/times.h-data: Likewise.
30192         * conform/data/sys/types.h-data: Likewise.
30193         * conform/data/sys/uio.h-data: Likewise.
30194         * conform/data/sys/un.h-data: Likewise.
30195         * conform/data/sys/utsname.h-data: Likewise.
30196         * conform/data/sys/wait.h-data: Likewise.
30197         * conform/data/syslog.h-data: Likewise.
30198         * conform/data/tar.h-data: Likewise.
30199         * conform/data/termios.h-data: Likewise.
30200         * conform/data/utime.h-data: Likewise.
30201         * conform/data/utmpx.h-data: Likewise.
30202         * conform/data/varargs.h-data: Likewise.
30203         * conform/data/wchar.h-data: Likewise.
30204         * conform/data/wctype.h-data: Likewise.
30205         * conform/data/wordexp.h-data: Likewise.
30206
30207         * include/stropts.h: New file.
30208         * include/uchar.h: New file.
30209         * include/aio.h: Changes to allow conformtest.pl to use the headers.
30210         * include/assert.h: Likewise.
30211         * include/ctype.h: Likewise.
30212         * include/dirent.h: Likewise.
30213         * include/dlfcn.h: Likewise.
30214         * include/fcntl.h: Likewise.
30215         * include/fnmatch.h: Likewise.
30216         * include/glob.h: Likewise.
30217         * include/grp.h: Likewise.
30218         * include/libio.h: Likewise.
30219         * include/locale.h: Likewise.
30220         * include/math.h: Likewise.
30221         * include/net/if.h: Likewise.
30222         * include/netdb.h: Likewise.
30223         * include/netinet/in.h: Likewise.
30224         * include/pthread.h: Likewise.
30225         * include/pwd.h: Likewise.
30226         * include/regex.h: Likewise.
30227         * include/sched.h: Likewise.
30228         * include/search.h: Likewise.
30229         * include/setjmp.h: Likewise.
30230         * include/signal.h: Likewise.
30231         * include/stdio.h: Likewise.
30232         * include/stdlib.h: Likewise.
30233         * include/string.h: Likewise.
30234         * include/sys/cdefs.h: Likewise.
30235         * include/sys/mman.h: Likewise.
30236         * include/sys/msg.h: Likewise.
30237         * include/sys/resource.h: Likewise.
30238         * include/sys/select.h: Likewise.
30239         * include/sys/socket.h: Likewise.
30240         * include/sys/stat.h: Likewise.
30241         * include/sys/statvfs.h: Likewise.
30242         * include/sys/time.h: Likewise.
30243         * include/sys/times.h: Likewise.
30244         * include/sys/uio.h: Likewise.
30245         * include/sys/utsname.h: Likewise.
30246         * include/sys/wait.h: Likewise.
30247         * include/termios.h: Likewise.
30248         * include/time.h: Likewise.
30249         * include/ulimit.h: Likewise.
30250         * include/unistd.h: Likewise.
30251         * include/utime.h: Likewise.
30252         * include/wchar.h: Likewise.
30253         * include/wctype.h: Likewise.
30254         * include/wordexp.h: Likewise.
30255
30256         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
30257
30258         * time/time.h: TIME_UTC must be a macro.
30259         Make timespec_get available for ISO C11 only as well.
30260
30261 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
30262
30263         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
30264         Reported by Peng Haitao <penght@cn.fujitsu.com>.
30265
30266 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30267
30268         * configure.in: Use -o not -a in test for unsupported multi-arch.
30269
30270 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30271
30272         * manual/texinfo.tex: Update to version 2012-01-19.16.
30273
30274 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30275
30276         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
30277
30278 2012-02-24  Roland McGrath  <roland@hack.frob.com>
30279
30280         [BZ #13738]
30281         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
30282         * manual/fdl-1.3.texi: New file.
30283         * manual/fdl-1.1.texi: File removed.
30284
30285         [BZ #13738]
30286         * manual/libc.texinfo (FDL_VERSION): New @set.
30287         Use it for mention of FDL in cover text.
30288         (Documentation License): Use it in @include file name.
30289
30290 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30291             Roland McGrath  <roland@hack.frob.com>
30292
30293         [BZ #5461]
30294         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
30295         not LONG_LONG_MAX and LONG_LONG_MIN.
30296         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
30297         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
30298         name.
30299         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
30300
30301 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30302
30303         [BZ #2547]
30304         [BZ #11365]
30305         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
30306         manipulate bits before adding and subtracting TWO23[sx].
30307         * math/libm-test.inc (nearbyint_test): Add more tests.
30308
30309 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30310
30311         [BZ #2548]
30312         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
30313         bits before adding and subtracting TWO23[sx].
30314         * math/libm-test.inc (rint_test): Add more tests.
30315         (rint_test_tonearest): Likewise.
30316         (rint_test_towardzero): Likewise.
30317         (rint_test_downward): Likewise.
30318         (rint_test_upward: Likewise.
30319
30320 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30321
30322         [BZ #10110]
30323         * include/stdc-predef.h: New file.  Extracted from features.h.
30324         * include/features.h: Include stdc-predef.h.
30325         * Makefile (headers): Add stdc-predef.h.
30326         * CONFORMANCE (Compiler limitations): Update.
30327
30328 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30329
30330         * manual/libc.texinfo (VERSION, UPDATED): Revert.
30331
30332 2012-02-21  David S. Miller  <davem@davemloft.net>
30333
30334         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
30335         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30336
30337 2012-02-20  David S. Miller  <davem@davemloft.net>
30338
30339         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
30340         using a normal save/restore sequence, rather than allocating a
30341         dummy stack frame just to store a frame pointer and restore.
30342         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30343
30344 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30345
30346         * manual/install.texi: Fix stray word in line-wrapped comment.
30347
30348 2012-02-20  David S. Miller  <davem@davemloft.net>
30349
30350         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
30351         both binutils and gcc support GOTDATA.
30352
30353         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
30354         "rd %pc" in the PIC register setup sequences.
30355
30356         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
30357         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
30358         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30359         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
30360         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30361         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30362         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30363         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30364         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
30365         (SYSCALL_ERROR_HANDLER): Likewise.
30366         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30367         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30368         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
30369         (SYSCALL_ERROR_HANDLER): Likewise.
30370
30371         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
30372         (HAVE_GCC_GOTDATA): New.
30373         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
30374         relocation support in both binutils and gcc.
30375         * sysdeps/sparc/elf/configure: Regenerate.
30376
30377         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
30378         * sysdeps/sparc/sparc32/elf/configure: Delete.
30379         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
30380         * sysdeps/sparc/sparc64/elf/configure: Delete.
30381         * sysdeps/sparc/elf/configure.in: New file.
30382         * sysdeps/sparc/elf/configure: Generate.
30383
30384         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
30385         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
30386         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30387         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
30388         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
30389
30390 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30391
30392         * manual/install.texi: Do not mention specific glibc version
30393         numbers.
30394         * manual/libc.texinfo (VERSION, UPDATED): Update.
30395         (@copying): Use @copyright{} and range of years.
30396
30397 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30398
30399         [BZ #13695]
30400         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
30401         [crti.S not in sysdirs] (generated): Do not append.
30402         [crti.S not in sysdirs] (omit-deps): Likewise.
30403         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
30404         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
30405         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
30406         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
30407         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
30408         Likewise.
30409         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
30410         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
30411         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
30412         * csu/defs.awk: Remove file.
30413         * sysdeps/generic/initfini.c: Likewise.
30414         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
30415         variable.
30416         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
30417         Likewise.
30418
30419 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30420
30421         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
30422         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
30423         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
30424         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
30425         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30426         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
30427         <bits/epoll.h>.
30428         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
30429         (__EPOLL_PACKED): Define to empty if not defined by
30430         <bits/epoll.h>.
30431         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
30432         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30433         bits/epoll.h.
30434
30435 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30436
30437         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
30438         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
30439         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
30440         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
30441         <bits/timerfd.h>.
30442         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
30443         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30444         bits/timerfd.h.
30445
30446 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30447
30448         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
30449         in C locale.
30450         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30451         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
30452         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
30453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30454
30455 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
30456
30457         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30458         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30459
30460 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
30461
30462         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
30463         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
30464         defined.
30465         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
30466         Likewise.
30467         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
30468         entry for 2.16.
30469
30470 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
30471
30472         * math/w_acos.c: Use non-signaling floating-point comparisons.
30473         * math/w_acosf.c: Likewise.
30474         * math/w_acosh.c: Likewise.
30475         * math/w_acoshf.c: Likewise.
30476         * math/w_acoshl.c: Likewise.
30477         * math/w_acosl.c: Likewise.
30478         * math/w_asin.c: Likewise.
30479         * math/w_asinf.c: Likewise.
30480         * math/w_asinl.c: Likewise.
30481         * math/w_atanh.c: Likewise.
30482         * math/w_atanhf.c: Likewise.
30483         * math/w_atanhl.c: Likewise.
30484         * math/w_exp2.c: Likewise.
30485         * math/w_exp2f.c: Likewise.
30486         * math/w_exp2l.c: Likewise.
30487         * math/w_j0.c: Likewise.
30488         * math/w_j0f.c: Likewise.
30489         * math/w_j0l.c: Likewise.
30490         * math/w_j1.c: Likewise.
30491         * math/w_j1f.c: Likewise.
30492         * math/w_j1l.c: Likewise.
30493         * math/w_jn.c: Likewise.
30494         * math/w_jnf.c: Likewise.
30495         * math/w_log.c: Likewise.
30496         * math/w_log10.c: Likewise.
30497         * math/w_log10f.c: Likewise.
30498         * math/w_log10l.c: Likewise.
30499         * math/w_log2.c: Likewise.
30500         * math/w_log2f.c: Likewise.
30501         * math/w_log2l.c: Likewise.
30502         * math/w_logf.c: Likewise.
30503         * math/w_logl.c: Likewise.
30504         * math/w_sqrt.c: Likewise.
30505         * math/w_sqrtf.c: Likewise.
30506         * math/w_sqrtl.c: Likewise.
30507         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30508         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30509         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30510         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30511         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30512
30513 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30514
30515         [BZ #9739]
30516         * manual/string.texi (strnlen): Use correct parameter name in
30517         equivalent expression.
30518
30519 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30520
30521         [BZ #11174]
30522         * manual/users.texi (seteuid): Consistently use neweuid for
30523         argument name.
30524
30525 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30526
30527         [BZ #13704]
30528         * manual/nss.texi (Services in the NSS configuration): Correct
30529         list of services in example configuration file.
30530
30531 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
30532
30533         [BZ #11322]
30534         * manual/arith.texi: Remove statements about negative zero
30535         behaving identically to zero.
30536
30537 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30538
30539         [BZ #5993]
30540         * manual/install.texi: Do not document upgrading from libc5.
30541
30542 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30543
30544         [BZ #4596]
30545         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
30546
30547 2012-02-18  David S. Miller  <davem@davemloft.net>
30548
30549         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
30550         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
30551         %o7 across the call.
30552         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
30553         instead.
30554         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
30555         SETUP_PIC_REG_LEAF.
30556         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30557         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
30558         * sysdeps/sparc/crtn.S: Likewise.
30559
30560 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
30561
30562         * aout/Makefile: Remove.
30563
30564 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
30565
30566         [BZ #13058]
30567         * manual/examples/argp-ex1.c (main): Format definition in GNU
30568         style.
30569         * manual/examples/argp-ex2.c (main): Likewise.
30570         * manual/examples/argp-ex3.c (main): Likewise.
30571         * manual/examples/argp-ex4.c (main): Likewise.
30572         * manual/examples/longopt.c (main): Use new-style prototype
30573         definition.
30574         * manual/examples/strncat.c (main): Specify return type and use
30575         (void) for arguments.
30576         * manual/examples/subopt.c (main): Use char **argv argument.
30577
30578 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30579
30580         [BZ #5077]
30581         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
30582         rounding modes.
30583
30584 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
30585
30586         [BZ #6907]
30587         * manual/string.texi (strchr): Change when strchrnul is
30588         recommended.
30589
30590 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
30591
30592         [BZ #174]
30593         * manual/locale.texi (setlocale): Document LOCPATH.
30594
30595 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30596
30597         [BZ #10210]
30598         * manual/process.texi (execle): Move @dots{} before last argument.
30599
30600 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
30601
30602         [BZ #12047]
30603         * manual/charset.texi (Generic Charset Conversion): Fix typo
30604         (LC_TYPE -> LC_CTYPE).
30605
30606 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
30607
30608         [BZ #5805]
30609         * manual/arith.texi (scalbn): Use @var{} on parameter names.
30610         (scalbnf): Likewise.
30611         (scalbnl): Likewise.
30612         (scalbln): Likewise.
30613         (scalblnf): Likewise.
30614         (scalblnl): Likewise.
30615         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
30616         (vwarnx): Likewise.
30617         (verr): Likewise.
30618         (verrx): Likewise.
30619         * manual/filesys.texi (telldir): Use braces around return type.
30620         * manual/llio.texi (mmap): Add space after comma.
30621         (mmap64): Likewise.
30622         * manual/math.texi (jn): Use @var{} on parameter names.
30623         (jnf): Likewise.
30624         (jnl): Likewise.
30625         (yn): Likewise.
30626         (ynf): Likewise.
30627         (ynl): Likewise.
30628         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
30629         line.
30630         * manual/resource.texi (ulimit): Use @dots{} instead of literal
30631         "...".
30632         (sched_get_priority_min): Remove semicolon on @deftypefun line.
30633         (sched_get_priority_max): Likewise.
30634         * manual/signal.texi (sigvec): Add space after comma.
30635         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
30636         names.
30637         (if_indextoname): Likewise.
30638         (if_freenameindex): Likewise.
30639         (sendto): Use ',' instead of '.' in prototype.
30640         * manual/startup.texi (syscall): Use @dots{} instead of literal
30641         "...".
30642         * manual/stdio.texi (__fpending): Separate initial words of
30643         paragraph from @deftypefun line.
30644         * manual/syslog.texi (syslog): Use @dots{} instead of literal
30645         "...".
30646         (vsyslog): Use @var{} on parameter names.
30647         * manual/terminal.texi (stty): Use @var{} on parameter names.
30648         * manual/users.texi (getutmp): Use @var{} on parameter names.
30649         (getutmpx): Likewise.
30650
30651 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30652
30653         [BZ #6884]
30654         * manual/stdio.texi (fopen): Fix typos in description of
30655         ",ccs=STRING".
30656
30657 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
30658
30659         [BZ #4026]
30660         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
30661         get clock_id definition.
30662
30663 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
30664
30665         [BZ #4822]
30666         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
30667         (madvise): Cast every argument to void on its own.
30668
30669 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30670
30671         [BZ #9902]
30672         * manual/startup.texi (Exit Status): Fix typo.
30673
30674 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30675
30676         [BZ #10140]
30677         * manual/examples/argp-ex1.c: Include <stdlib.h>.
30678         * manual/examples/argp-ex2.c: Likewise.
30679         * manual/examples/argp-ex3.c: Likewise.
30680
30681 2012-02-16  Richard Henderson  <rth@redhat.com>
30682
30683         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
30684         * sysdeps/s390/s390-32/initfini.c: Remove.
30685         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
30686         * sysdeps/s390/s390-64/initfini.c: Remove.
30687
30688 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30689
30690         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
30691         compiler output for sysdeps/generic/initfini.c.
30692         * sysdeps/sh/elf/initfini.c: Remove file.
30693
30694 2012-02-16  David S. Miller  <davem@davemloft.net>
30695
30696         [BZ #11494]
30697         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
30698
30699         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
30700         * sysdeps/sparc/crti.S: New file.
30701         * sysdeps/sparc/crtn.S: New file.
30702         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
30703         * sysdeps/sparc/sparc64/Makefile: Likewise.
30704
30705 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
30706
30707         [BZ #3335]
30708         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
30709
30710 2012-02-15  Roland McGrath  <roland@hack.frob.com>
30711
30712         [BZ #4822]
30713         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
30714
30715         * mach/devstream.c (cookie_io_functions_t): Macro removed.
30716         (write, read, close): Likewise.
30717         Patch by Aurelien Jarno <aurelien@aurel32.net>.
30718
30719 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
30720
30721         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
30722         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
30723         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
30724         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
30725         <bits/signalfd.h>.
30726         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
30727         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30728         bits/signalfd.h.
30729
30730 2012-02-14  Marek Polacek  <polacek@redhat.com>
30731
30732         * sysdeps/x86_64/crti.S: New file.
30733         * sysdeps/x86_64/crtn.S: New file.
30734         * sysdeps/x86_64/elf/initfini.c: Remove file.
30735
30736 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30737
30738         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
30739         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
30740         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
30741         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
30742         <bits/inotify.h>.
30743         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
30744         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30745         bits/inotify.h.
30746
30747 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30748
30749         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
30750         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
30751         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
30752         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
30753         <bits/eventfd.h>.
30754         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
30755         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30756         bits/eventfd.h.
30757
30758 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
30759
30760         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
30761         __feraiseexcept instead of feraiseexcept.
30762
30763         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
30764         nanosleep invocations.
30765         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
30766         strings, and add error checking for a nanosleep invocations.
30767
30768 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
30769
30770         Replace FSF snail mail address with URLs, as per GNU coding standards.
30771         Most of the snail mail addresses were wrong anyway, and omitting
30772         them makes the source code easier to maintain.  Almost all of the
30773         changes are to license notices and to locale LC_IDENTIFICATION
30774         addresses, except for this one:
30775         * manual/libc.texinfo: In "Published by", give the FSF's URL,
30776         not its snail mail address.
30777
30778 2012-02-09  Richard Henderson  <rth@twiddle.net>
30779
30780         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
30781         of kernel-features.h.
30782
30783         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
30784
30785 2012-02-08  Marek Polacek  <polacek@redhat.com>
30786
30787         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
30788         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
30789         * sysdeps/gnu/_G_config.h: Likewise.
30790         * sysdeps/generic/_G_config.h: Likewise.
30791
30792 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
30793
30794         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
30795         tests.
30796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30797
30798         * sysdeps/powerpc/powerpc32/crti.S: New file.
30799         * sysdeps/powerpc/powerpc32/crtn.S: New file.
30800         * sysdeps/powerpc/powerpc64/crti.S: New file.
30801         * sysdeps/powerpc/powerpc64/crtn.S: New file.
30802
30803         * Makeconfig (have-initfini): Don't set.
30804         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
30805         * configure.in (nopic_initfini): Don't substitute.
30806         * config.h.in (HAVE_INITFINI): Don't #undef.
30807         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
30808         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
30809
30810 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
30811
30812         Support crti.S and crtn.S provided directly by architectures.
30813         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
30814         [crti.S in sysdirs] (omit-deps): Likewise.
30815         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
30816         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
30817         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
30818         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
30819         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
30820         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
30821         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
30822         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
30823         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
30824         compiler output for sysdeps/generic/initfini.c.
30825         * sysdeps/i386/elf/Makefile: Remove file.
30826         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
30827
30828 2012-02-07  Marek Polacek  <polacek@redhat.com>
30829
30830         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
30831         * sysdeps/gnu/_G_config.h: Likewise.
30832         * sysdeps/mach/hurd/_G_config.h: Likewise.
30833
30834 2012-02-07  Marek Polacek  <polacek@redhat.com>
30835
30836         * math/Makefile (tests): Add tst-CMPLX2.
30837         * math/tst-CMPLX2.c: New file.
30838
30839 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
30840
30841         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30842
30843         * math/libm-test.inc (jn_test): Add missing L suffix.
30844
30845 2012-02-06  Marek Polacek  <polacek@redhat.com>
30846
30847         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
30848         * sysdeps/i386/fpu/e_powf.S: Likewise.
30849         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30850         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
30851         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30852         * sysdeps/i386/fpu/e_pow.S: Likewise.
30853         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30854         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30855         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30856         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30857         * sysdeps/i386/fpu/e_log2.S: Likewise.
30858         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30859         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30860         * sysdeps/i386/fpu/e_powl.S: Likewise.
30861         * sysdeps/i386/fpu/s_log1p.S: Likewise.
30862         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30863         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30864         * sysdeps/i386/fpu/e_logl.S: Likewise.
30865         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
30866         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
30867         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
30868         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
30869         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30870         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30871         * sysdeps/i386/fpu/e_log.S: Likewise.
30872         * sysdeps/i386/fpu/s_cexp.S: Likewise.
30873         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30874         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
30875         * sysdeps/i386/fpu/e_logf.S: Likewise.
30876         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30877         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30878         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
30879         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
30880         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
30881         * sysdeps/i386/fpu/e_log10.S: Likewise.
30882         * sysdeps/i386/fpu/s_frexp.S: Likewise.
30883         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30884         * sysdeps/i386/fpu/s_asinh.S: Likewise.
30885         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
30886         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30887         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
30888         * sysdeps/i386/asm-syntax.h: Likewise.
30889         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30890         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30891         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30892         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
30893         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
30894         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30895         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
30896         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
30897         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30898         * sysdeps/powerpc/sysdep.h: Likewise.
30899         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
30900         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30901
30902 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30903
30904         [BZ #411]
30905         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
30906
30907 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30908
30909         * sysdeps/i386/sysdep.h: Include <features.h>.
30910         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
30911         version.
30912
30913 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
30914
30915         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
30916         Define.
30917         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
30918         LOAD_PIC_REG_STR.
30919
30920 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30921
30922         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
30923         (SETUP_PIC_REG): Use GET_PC_THUNK.
30924         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
30925         macro.
30926
30927 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30928
30929         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
30930         for non-PIC compilation.
30931         (SETUP_PIC_REG): Add .p2align directive.
30932         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
30933         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30934         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30935         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30936         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30937         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30938         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30939         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30940         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30941         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30942         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30943         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30944         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30945         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30946         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30947         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30948         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30949         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30950         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30951         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30952         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
30953         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30954         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30955         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30956         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30957         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30958         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30959         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30960         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30961         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30962         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30963         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
30964         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30965         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30966         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30967         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30968         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30969         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30970         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30971         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30972         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30973
30974 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30975
30976         * math/tst-CMPLX.c: Include <stdio.h>.
30977
30978 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
30979
30980         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
30981         float.
30982         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
30983         * sysdeps/sparc/bits/mathdef.h: Likewise.
30984
30985 2012-01-31  Marek Polacek  <polacek@redhat.com>
30986
30987         * libio/libio.h: Don't define _PARAMS.
30988         * locale/programs/config.h: Don't define PARAMS.
30989         * stdlib/strtol_l.c: Likewise.
30990         (__strtol_l): Remove PARAMS from the prototype.
30991
30992 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
30993
30994         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
30995         names.  Just use the correct names.  Remove unnecessary wrapper
30996         functions.
30997         * malloc/arena.c: Likewise.
30998         * malloc/hooks.c: Likewise.
30999
31000         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
31001         ARENA_TEST says not to.  Simplify test for creation of a new arena.
31002         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
31003
31004 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
31005
31006         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
31007         into tail calls.
31008         (update_get_addr): New function.
31009         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
31010         GET_ADDR_MODULE parameter.
31011
31012 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31013
31014         * crypt/cert.c: Remove __STDC__ conditionals.
31015         * crypt/crypt-entry.c: Likewise.
31016         * crypt/crypt_util.c: Likewise.
31017         * libio/filedoalloc.c: Likewise.
31018         * libio/fileops.c: Likewise.
31019         * libio/genops.c: Likewise.
31020         * libio/iofclose.c: Likewise.
31021         * libio/iofdopen.c: Likewise.
31022         * libio/iofopen.c: Likewise.
31023         * libio/iofopen64.c: Likewise.
31024         * libio/iogetdelim.c: Likewise.
31025         * libio/iopopen.c: Likewise.
31026         * libio/obprintf.c: Likewise.
31027         * libio/oldfileops.c: Likewise.
31028         * libio/oldiofclose.c: Likewise.
31029         * libio/oldiofdopen.c: Likewise.
31030         * libio/oldiofopen.c: Likewise.
31031         * libio/oldiopopen.c: Likewise.
31032         * libio/wfiledoalloc.c: Likewise.
31033         * libio/wgenops.c: Likewise.
31034         * locale/programs/xmalloc.c: Likewise.
31035         * misc/syslog.c: Likewise.
31036         * stdio-common/xbug.c: Likewise.
31037         * string/memchr.c: Likewise.
31038         * string/memcmp.c: Likewise.
31039         * string/memrchr.c: Likewise.
31040         * string/rawmemchr.c: Likewise.
31041         * sysdeps/posix/getcwd.c: Likewise.
31042         * time/strftime_l.c: Likewise.
31043
31044 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31045
31046         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
31047         * config.make.in (config-cflags-sse2avx): Define.
31048         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
31049         Fix typo.
31050
31051 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
31052
31053         * scripts/config.guess: Update from upstream config git repository.
31054         * scripts/config.sub: Likewise.
31055
31056 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
31057
31058         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
31059         (EM_NUM): Update.
31060         (R_TILEPRO_*, R_TILEGX_*): New macros.
31061
31062         * scripts/firstversions.awk: Fix bug in version range handling.
31063
31064         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
31065
31066         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
31067
31068         * include/sys/epoll.h: New file.
31069         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
31070         libc_hidden_def.
31071
31072 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
31073
31074         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
31075         Avoid unnecessary __WORDSIZE == 64 test.
31076         (fmaxf): Use VEX format if possible.
31077         (fmax): Likewise.
31078         (fminf): Likewise.
31079         (fmin): Likewise.
31080
31081         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
31082         * math/math_private.h: Remove libc_fegetround* and
31083         libc_fesetround*.
31084         * sysdeps/i386/configure.in: Check for -msse2avx.
31085         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
31086         also if SSE2AVX is defined.
31087         Remove libc_fegetround* and libc_fesetround*.
31088         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
31089         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
31090         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
31091         of HAS_YMM_USABLE.
31092         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31093         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31094         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31095         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31096         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31097
31098         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
31099
31100 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31101
31102         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
31103         size is not set.
31104         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31105
31106 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
31107
31108         [BZ #13618]
31109         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
31110         relocation.
31111         * Makeconfig (libm): Define.
31112         * elf/Makefile: Add rules to build and run tst-relsort1.
31113         * elf/tst-relsort1.c: New file.
31114         * elf/tst-relsort1mod1.c: New file.
31115         * elf/tst-relsort1mod2.c: New file.
31116
31117 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
31118
31119         * math/s_ldexp.c: Remove __STDC__ conditionals.
31120         * math/s_ldexpf.c: Likewise.
31121         * math/s_ldexpl.c: Likewise.
31122         * math/s_nextafter.c: Likewise.
31123         * math/s_nexttowardf.c: Likewise.
31124         * math/s_significand.c: Likewise.
31125         * math/s_significandf.c: Likewise.
31126         * math/s_significandl.c: Likewise.
31127         * math/w_jnl.c: Likewise.
31128         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
31129         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
31130         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
31131         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
31132         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
31133         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
31134         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
31135         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
31136         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
31137         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
31138         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
31139         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31140         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
31141         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
31142         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
31143         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
31144         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
31145         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
31146         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
31147         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
31148         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
31149         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
31150         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
31151         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
31152         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
31153         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
31154         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
31155         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
31156         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
31157         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
31158         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
31159         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
31160         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
31161         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
31162         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
31163         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
31164         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
31165         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
31166         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
31167         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
31168         * sysdeps/ieee754/k_standard.c: Likewise.
31169         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
31170         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
31171         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
31172         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
31173         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
31174         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
31175         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
31176         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
31177         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
31178         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
31179         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
31180         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
31181         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
31182         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
31183         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
31184         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
31185         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
31186         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
31187         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
31188         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
31189         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31190         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
31191         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
31192         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
31193         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
31194         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31195         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31196         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31197         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31198         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
31199         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
31200         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
31201         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
31202         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
31203         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
31204         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
31205         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
31206         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
31207         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
31208         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
31209         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
31210         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
31211         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
31212         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
31213         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
31214         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
31215         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
31216         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
31217         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
31218         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
31219         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
31220         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
31221         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
31222         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
31223         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
31224         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
31225         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
31226         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
31227         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
31228         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
31229         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
31230         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
31231         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
31232         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
31233         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
31234         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
31235         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
31236         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
31237         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
31238         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
31239         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
31240         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
31241         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
31242         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
31243         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
31244         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
31245         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
31246         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
31247         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
31248         * sysdeps/ieee754/s_matherr.c: Likewise.
31249         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
31250         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
31251         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
31252         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
31253
31254 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31255
31256         * crypt/md5.h: Remove __STDC__ conditionals.
31257         * libio/libioP.h: Likewise.
31258         * locale/programs/config.h: Likewise.
31259         * sysdeps/generic/sysdep.h: Likewise.
31260         * sysdeps/i386/asm-syntax.h: Likewise.
31261         * sysdeps/s390/asm-syntax.h: Likewise.
31262         * sysdeps/unix/sysdep.h: Likewise.
31263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
31264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
31265
31266 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31267
31268         * libio/libio.h: Remove __STDC__ conditionals.
31269         * malloc/obstack.h: Likewise.
31270         * math/complex.h: Likewise.
31271         * math/math.h: Likewise.
31272         * sysdeps/generic/_G_config.h: Likewise.
31273         * sysdeps/gnu/_G_config.h: Likewise.
31274         * sysdeps/mach/hurd/_G_config.h: Likewise.
31275         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31276         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31277         * sysdeps/sparc/bits/mathdef.h: Likewise.
31278
31279 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
31280
31281         [BZ #13583]
31282         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
31283         Clean up HAS_* macros.
31284         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
31285         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
31286         possible.
31287         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
31288         HAS_AVX.
31289         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31290         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31291         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31292         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31293         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31294
31295 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
31296
31297         * elf/tst-unique3.cc (gets): Remove declaration.
31298         * elf/tst-unique3lib.cc (gets): Likewise.
31299         * elf/tst-unique3lib2.cc (gets): Likewise.
31300         * elf/tst-unique4.cc (gets): Likewise.
31301
31302 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
31303
31304         * include/stdio.h: Add C++ protection.  Add gets declarations and
31305         definitions.
31306         * debug/tst-chk1.c: Don't declare gets here.
31307         * stdio-common/tst-gets.c: Likewise.
31308
31309 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31310
31311         * posix/glob: Remove directory.
31312
31313 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31314
31315         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
31316
31317 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
31318
31319         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
31320         of the non-standard EPFNOSUPPORT.
31321
31322 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31323
31324         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
31325         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
31326         ANYWHERE set to 1 only on KERN_NO_SPACE error.
31327
31328 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
31329
31330         * wcsmbs/uchar.h: Test __STDC_VERSION__.
31331
31332 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
31333
31334         * nscd/aicache.c (addhstaiX): Do not cache negative results of
31335         transient errors.
31336         * nscd/grpcache.c (cache_addgr): Likewise.
31337         * nscd/hstcache.c (cache_addhst): Likewise.
31338         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31339         * nscd/pwdcache.c (cache_addpw): Likewise.
31340         * nscd/servicescache.c (cache_addserv): Likewise.
31341
31342 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
31343
31344         * malloc/malloc.c: Various cleanups.
31345         * malloc/hooks.c: Likewise.
31346
31347         * stdlib/Makefile (tests): Add bug-fmtmsg1.
31348         * stdlib/bug-fmtmsg1.c: New file.
31349
31350         * stdlib/fmtmsg.c (init): Add missing unlock.
31351         Patch by Peng Haitao <penght@cn.fujitsu.com>.
31352
31353 2012-01-12  Marek Polacek  <polacek@redhat.com>
31354
31355         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
31356         and _GNU_SOURCE.
31357
31358 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
31359
31360         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
31361         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
31362         macro to ensure uniqueness of label name.
31363         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31364         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31365
31366 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
31367
31368         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
31369
31370         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
31371         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
31372         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31373         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
31374
31375 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
31376
31377         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
31378
31379         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
31380         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
31381         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
31382
31383         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
31384
31385         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
31386         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
31387         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
31388         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
31389
31390         * math/bits/math-finite.h: Add ldexp support.
31391
31392 2012-01-10  Marek Polacek  <polacek@redhat.com>
31393
31394         * locale/programs/localedef.h (show_archive_content): Add noreturn
31395         attribute.
31396
31397 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
31398
31399         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
31400
31401 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31402
31403         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
31404
31405         * io/Makefile (headers): Add bits/poll2.h.
31406
31407 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
31408
31409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
31410         typo #include statement.
31411
31412 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31413
31414         * include/sys/cdefs.h: Define __attribute_alloc_size.
31415         * catgets/gencat.c: Add alloc_size attribute and apply consistently
31416         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
31417         * elf/pldd.c: Likewise.
31418         * iconv/iconv_charmap.c: Likewise.
31419         * iconv/iconvconfig.c: Likewise.
31420         * iconv/strtab.c: Likewise.
31421         * locale/programs/locale.c: Likewise.
31422         * locale/programs/localedef.h: Likewise.
31423         * locale/programs/simple-hash.c: Likewise.
31424         * nscd/nscd.h: Likewise.
31425         * nss/makedb.c: Likewise.
31426         * sysdeps/generic/ldconfig.h: Likewise.
31427         * locale/programs/localedef.c: Remove xmalloc prototype.
31428         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
31429
31430 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31431
31432         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
31433         appropriate.
31434
31435 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31436
31437         * math/Makefile (tests): Add tst-CMPLX.
31438         * math/tst-CMPLX.c: New file.
31439
31440         * math/complex.h (CMPLXL): Fix typo.
31441
31442         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
31443         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
31444         GLIBC_2.16.
31445         * debug/tst-chk1.c: Add poll and ppoll tests.
31446         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
31447         * include/sys/poll.h: Add hidden proto for ppoll.
31448         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
31449         * sysdeps/mach/hurd/ppoll.c: Likewise.
31450         * io/ppoll.c: Likewise.
31451         * debug/poll_chk.c: New file.
31452         * debug/ppoll_chk.c: New file.
31453         * include/bits/poll2.h: New file.
31454         * io/bits/poll2.h: New file.
31455
31456         [BZ #1350]
31457         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
31458
31459         * configure.in: static is always set to yes.  Remove.
31460         * config.make.in: Don't set build-static.
31461         * Makeconfig: Remove use of build-static.
31462         * dlfcn/Makefile: Likewise.
31463         * elf/Makefile: Likewise.
31464         * math/Makefile: Likewise.
31465         * misc/Makefile: Likewise.
31466         * nptl/Makefile: Likewise.
31467         * sysdeps/mach/hurd/Makefile: Likewise.
31468
31469         * configure.in: PWD_P is not used anymore.
31470         * config.make.in: Remove PWD_P entry.
31471
31472         * configure.in: Remove last remnants of RANLIB.
31473         No need to check for signed size_t anymore.
31474         Don't set libc_commonpagesize and libc_relro_required here for Alpha
31475         and IA-64.
31476         Remove __builtin_expect test because we require at least gcc 3.4.
31477         * aclocal.m4: Likewise.
31478
31479         * wcsmbs/mbrtoc16.c: Implement using towc function.
31480         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
31481         * wcsmbs/wcsmbsload.c: Likewise.
31482         * iconv/gconv_simple.c: Likewise.
31483         * iconv/gconv_int.h: Likewise.
31484         * iconv/gconv_builtin.h: Likewise.
31485         * iconv/iconv_prog.c: Remove CHAR16 handling.
31486
31487         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
31488
31489         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
31490
31491         * configure.in: Remove --with-elf and --enable-bounded options.
31492         Dont set base_machine for ia64.  More non-ELF conditions removed.
31493         Remove testing and setting of leading underscore information.
31494         * config.make.in (build-bounded): Set to no.
31495         * config.h.in: Remove NO_UNDERSCORES entry.
31496         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
31497         them.
31498         * csu/start.c: Remove !NO_UNDERSCORE code.
31499         * locale/localeinfo.h: Likewise.
31500         * sysdeps/generic/machine-gmon.h: Likewise.
31501         * sysdeps/generic/sysdep.h: Likewise.
31502         * sysdeps/i386/sysdep.h: Likewise.
31503         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31504         * sysdeps/mach/sysdep.h: Likewise.
31505         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31506         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31507         * sysdeps/sh/sysdep.h: Likewise.
31508         * sysdeps/sparc/sparc32/alloca.S: Likewise.
31509         * sysdeps/unix/i386/sysdep.S: Likewise.
31510         * sysdeps/unix/sparc/start.c: Likewise.
31511         * sysdeps/unix/sparc/sysdep.S: Likewise.
31512         * sysdeps/unix/sparc/sysdep.h: Likewise.
31513         * sysdeps/unix/start.c: Likewise.
31514         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31515         * sysdeps/x86_64/sysdep.h: Likewise.
31516
31517 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
31518
31519         [BZ #13553]
31520         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
31521         for non-gcc.
31522         * argp/argp-fmtstream.h: Use const instead __const.
31523         * argp/argp.h: Likewise.
31524         * assert/assert.h: Likewise.
31525         * bits/fenv.h: Likewise.
31526         * bits/sched.h: Likewise.
31527         * bits/sigset.h: Likewise.
31528         * bits/sigthread.h: Likewise.
31529         * catgets/nl_types.h: Likewise.
31530         * conform/data/pthread.h-data: Likewise.
31531         * crypt/crypt-private.h: Likewise.
31532         * crypt/crypt.h: Likewise.
31533         * crypt/crypt_util.c: Likewise.
31534         * ctype/ctype.h: Likewise.
31535         * debug/execinfo.h: Likewise.
31536         * debug/mbsnrtowcs_chk.c: Likewise.
31537         * debug/mbsrtowcs_chk.c: Likewise.
31538         * debug/wcsnrtombs_chk.c: Likewise.
31539         * debug/wcsrtombs_chk.c: Likewise.
31540         * debug/wcstombs_chk.c: Likewise.
31541         * dirent/dirent.h: Likewise.
31542         * dlfcn/dlfcn.h: Likewise.
31543         * elf/neededtest4.c: Likewise.
31544         * grp/grp.h: Likewise.
31545         * gshadow/gshadow.h: Likewise.
31546         * iconv/gconv.h: Likewise.
31547         * iconv/gconv_int.h: Likewise.
31548         * iconv/gconv_simple.c: Likewise.
31549         * iconv/iconv.h: Likewise.
31550         * iconv/loop.c: Likewise.
31551         * iconv/skeleton.c: Likewise.
31552         * include/aio.h: Likewise.
31553         * include/aliases.h: Likewise.
31554         * include/argz.h: Likewise.
31555         * include/arpa/inet.h: Likewise.
31556         * include/assert.h: Likewise.
31557         * include/dirent.h: Likewise.
31558         * include/dlfcn.h: Likewise.
31559         * include/execinfo.h: Likewise.
31560         * include/fcntl.h: Likewise.
31561         * include/fenv.h: Likewise.
31562         * include/glob.h: Likewise.
31563         * include/grp.h: Likewise.
31564         * include/libintl.h: Likewise.
31565         * include/mntent.h: Likewise.
31566         * include/netdb.h: Likewise.
31567         * include/pwd.h: Likewise.
31568         * include/rpc/netdb.h: Likewise.
31569         * include/sched.h: Likewise.
31570         * include/search.h: Likewise.
31571         * include/shadow.h: Likewise.
31572         * include/signal.h: Likewise.
31573         * include/stdio.h: Likewise.
31574         * include/stdlib.h: Likewise.
31575         * include/string.h: Likewise.
31576         * include/sys/socket.h: Likewise.
31577         * include/sys/stat.h: Likewise.
31578         * include/sys/statfs.h: Likewise.
31579         * include/sys/statvfs.h: Likewise.
31580         * include/sys/syslog.h: Likewise.
31581         * include/sys/time.h: Likewise.
31582         * include/sys/uio.h: Likewise.
31583         * include/time.h: Likewise.
31584         * include/unistd.h: Likewise.
31585         * include/utmp.h: Likewise.
31586         * include/wchar.h: Likewise.
31587         * include/wctype.h: Likewise.
31588         * inet/aliases.h: Likewise.
31589         * inet/arpa/inet.h: Likewise.
31590         * inet/netinet/ether.h: Likewise.
31591         * inet/netinet/in.h: Likewise.
31592         * intl/libintl.h: Likewise.
31593         * io/bits/fcntl2.h: Likewise.
31594         * io/fcntl.h: Likewise.
31595         * io/ftw.h: Likewise.
31596         * io/sys/poll.h: Likewise.
31597         * io/sys/stat.h: Likewise.
31598         * io/sys/statfs.h: Likewise.
31599         * io/sys/statvfs.h: Likewise.
31600         * io/utime.h: Likewise.
31601         * libio/bits/stdio.h: Likewise.
31602         * libio/bits/stdio2.h: Likewise.
31603         * libio/libio.h: Likewise.
31604         * libio/libioP.h: Likewise.
31605         * libio/stdio.h: Likewise.
31606         * locale/lc-ctype.c: Likewise.
31607         * locale/locale.h: Likewise.
31608         * login/utmp.h: Likewise.
31609         * malloc/arena.c: Likewise.
31610         * malloc/malloc.c: Likewise.
31611         * malloc/malloc.h: Likewise.
31612         * malloc/mcheck.c: Likewise.
31613         * malloc/mtrace.c: Likewise.
31614         * math/bits/mathcalls.h: Likewise.
31615         * math/fenv.h: Likewise.
31616         * math/math_private.h: Likewise.
31617         * misc/bits/error.h: Likewise.
31618         * misc/bits/syslog.h: Likewise.
31619         * misc/err.h: Likewise.
31620         * misc/error.h: Likewise.
31621         * misc/fstab.h: Likewise.
31622         * misc/mntent.h: Likewise.
31623         * misc/regexp.h: Likewise.
31624         * misc/search.h: Likewise.
31625         * misc/sgtty.h: Likewise.
31626         * misc/sys/mman.h: Likewise.
31627         * misc/sys/syslog.h: Likewise.
31628         * misc/sys/uio.h: Likewise.
31629         * misc/sys/xattr.h: Likewise.
31630         * misc/ttyent.h: Likewise.
31631         * nis/rpcsvc/ypclnt.h: Likewise.
31632         * nss/nss.h: Likewise.
31633         * posix/bits/unistd.h: Likewise.
31634         * posix/fnmatch.h: Likewise.
31635         * posix/glob.h: Likewise.
31636         * posix/sched.h: Likewise.
31637         * posix/spawn.h: Likewise.
31638         * posix/sys/wait.h: Likewise.
31639         * posix/unistd.h: Likewise.
31640         * posix/wordexp.h: Likewise.
31641         * pwd/pwd.h: Likewise.
31642         * resolv/netdb.h: Likewise.
31643         * resource/sys/resource.h: Likewise.
31644         * rt/aio.h: Likewise.
31645         * rt/bits/mqueue2.h: Likewise.
31646         * rt/mqueue.h: Likewise.
31647         * shadow/shadow.h: Likewise.
31648         * signal/signal.h: Likewise.
31649         * socket/send.c: Likewise.
31650         * socket/sendto.c: Likewise.
31651         * socket/sys/socket.h: Likewise.
31652         * stdio-common/printf.h: Likewise.
31653         * stdlib/bits/stdlib.h: Likewise.
31654         * stdlib/fmtmsg.h: Likewise.
31655         * stdlib/monetary.h: Likewise.
31656         * stdlib/stdlib.h: Likewise.
31657         * stdlib/ucontext.h: Likewise.
31658         * streams/stropts.h: Likewise.
31659         * string/argz.h: Likewise.
31660         * string/bits/string2.h: Likewise.
31661         * string/string.h: Likewise.
31662         * string/strings.h: Likewise.
31663         * sunrpc/rpc/auth.h: Likewise.
31664         * sunrpc/rpc/auth_des.h: Likewise.
31665         * sunrpc/rpc/clnt.h: Likewise.
31666         * sunrpc/rpc/netdb.h: Likewise.
31667         * sunrpc/rpc/pmap_clnt.h: Likewise.
31668         * sunrpc/rpc/xdr.h: Likewise.
31669         * sysdeps/generic/inttypes.h: Likewise.
31670         * sysdeps/generic/net/if.h: Likewise.
31671         * sysdeps/generic/sys/swap.h: Likewise.
31672         * sysdeps/gnu/net/if.h: Likewise.
31673         * sysdeps/gnu/utmpx.h: Likewise.
31674         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
31675         * sysdeps/i386/i486/bits/string.h: Likewise.
31676         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
31677         * sysdeps/s390/bits/string.h: Likewise.
31678         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
31679         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
31680         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31681         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
31682         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
31683         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
31684         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
31685         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
31686         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
31687         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31688         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
31689         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
31690         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
31691         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
31692         * sysdeps/unix/sysv/linux/readv.c: Likewise.
31693         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
31694         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
31695         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31696         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31697         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31698         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31699         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
31700         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
31701         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
31702         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
31703         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
31704         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
31705         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31706         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
31707         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
31708         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
31709         * sysvipc/sys/ipc.h: Likewise.
31710         * sysvipc/sys/msg.h: Likewise.
31711         * sysvipc/sys/sem.h: Likewise.
31712         * sysvipc/sys/shm.h: Likewise.
31713         * termios/termios.h: Likewise.
31714         * time/sys/time.h: Likewise.
31715         * time/time.h: Likewise.
31716         * wcsmbs/bits/wchar2.h: Likewise.
31717         * wcsmbs/uchar.h: Likewise.
31718         * wcsmbs/wchar.h: Likewise.
31719         * wctype/wctype.h: Likewise.
31720
31721         [BZ #13551]
31722         * Makeconfig: Remove all but ELF support including AIX support.
31723         * Makerules: Likewise.
31724         * config.h.in: Likewise.
31725         * config.make.in: Likewise.
31726         * configure: Likewise.
31727         * configure.in: Likewise.
31728         * csu/Makefile: Likewise.
31729         * csu/version.c: Likewise.
31730         * debug/Makefile: Likewise.
31731         * dlfcn/Makefile: Likewise.
31732         * elf/Makefile: Likewise.
31733         * extra-lib.mk: Likewise.
31734         * iconv/Makefile: Likewise.
31735         * include/libc-symbols.h: Likewise.
31736         * include/shlib-compat.h: Likewise.
31737         * resolv/Makefile: Likewise.
31738         * resolv/res_libc.c: Likewise.
31739         * rt/Makefile: Likewise.
31740         * sysdeps/i386/asm-syntax.h: Likewise.
31741         * sysdeps/i386/sysdep.h: Likewise.
31742         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31743         * sysdeps/mach/sysdep.h: Likewise.
31744         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
31745         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
31746         * sysdeps/s390/asm-syntax.h: Likewise.
31747         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31748         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31749         * sysdeps/sh/sysdep.h: Likewise.
31750         * sysdeps/unix/sparc/sysdep.h: Likewise.
31751         * sysdeps/wordsize-32/divdi3.c: Likewise.
31752         * sysdeps/x86_64/sysdep.h: Likewise.
31753
31754         * argp/Versions: Remove _argp_unlock_xxx.
31755
31756         [BZ #13559]
31757         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
31758         * abilist/libBrokenLocale.abilist: Likewise.
31759         * abilist/libanl.abilist: Likewise.
31760         * abilist/libc.abilist: Likewise.
31761         * abilist/libcrypt.abilist: Likewise.
31762         * abilist/libdl.abilist: Likewise.
31763         * abilist/libm.abilist: Likewise.
31764         * abilist/libnsl.abilist: Likewise.
31765         * abilist/libpthread.abilist: Likewise.
31766         * abilist/libresolv.abilist: Likewise.
31767         * abilist/librt.abilist: Likewise.
31768         * abilist/libthread_db.abilist: Likewise.
31769         * abilist/libutil.abilist: Likewise.
31770         * abilist/libnss_db.abilist: New file.
31771
31772         * scripts/abilist.awk: Add support for indirect functions.
31773
31774         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
31775
31776         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
31777
31778         * shlib-versions: Remove entries for ports architectures.
31779
31780         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
31781         files in ports.
31782         * elf/stackguard-macros.h: Remove support for IA-64.
31783         * elf/tst-auditmod1.c: Likewise.
31784         * sysdeps/generic/ldsodefs.h: Likewise.
31785
31786         * sysdeps/unix/sysv/linux/configure.in: Ports should define
31787         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
31788         configure files.
31789
31790         [BZ #13552]
31791         * configure.in: Remove --enable-omitfp support.
31792         * FAQ.in: Adjust.
31793         * config.make.in: Likewise.
31794         * Makeconfig: Likewise.
31795         * manual/install.texi: Likewise.
31796
31797         In case anyone cares, the IA-64 architecture could move to ports.
31798         * sysdeps/ia64/*: Removed.
31799         * sysdeps/unix/sysv/linux/ia64/*: Removed.
31800         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
31801
31802         [BZ #13555]
31803         * configure.in: Remove entries for unsupported architectures.
31804
31805         [BZ #13533]
31806         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
31807         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
31808         routines.
31809         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
31810         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
31811         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
31812         fall back to using wcrtomb.
31813         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
31814         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
31815         renaming.
31816         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
31817         * wcsmbs/tst-c16c32-1.c: New file.
31818
31819         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
31820         local variable.
31821
31822         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
31823
31824         * elf/tst-unique3.cc: Add explicit declaration of gets.
31825         * elf/tst-unique3lib.cc: Likewise.
31826         * elf/tst-unique3lib2.cc: Likewise.
31827         * elf/tst-unique4.cc: Likewise.
31828
31829         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
31830
31831 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
31832
31833         [BZ #13566]
31834         * assert/assert.h (static_assert): Don't define for C++.
31835         * libio/stdio.h (gets): Do declare for C++ <= C++11.
31836         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
31837
31838 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
31839
31840         * iconv/loop.c (single loop): Fix assertion in storing of
31841         remaining bytes.
31842
31843         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
31844
31845 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
31846
31847         * posix/getconf.c: Update copyright year.
31848         * nss/getent.c: Likewise.
31849         * nss/makedb.c: Likewise.
31850         * iconv/iconvconfig.c: Likewise.
31851         * iconv/iconv_prog.c: Likewise.
31852         * elf/ldconfig.c: Likewise.
31853         * elf/pldd.c: Likewise.
31854         * elf/sotruss.ksh: Likewise.
31855         * catgets/gencat.c: Likewise.
31856         * csu/version.c: Likewise.
31857         * elf/ldd.bash.in: Likewise.
31858         * elf/sprof.c (print_version): Likewise.
31859         * locale/programs/locale.c: Likewise.
31860         * locale/programs/localedef.c: Likewise.
31861         * login/programs/pt_chown.c: Likewise.
31862         * nscd/nscd.c (print_version): Likewise.
31863         * debug/xtrace.sh: Likewise.
31864         * malloc/memusage.sh: Likewise.
31865         * malloc/mtrace.pl: Likewise.
31866         * debug/catchsegv.sh: Likewise.
31867
31868 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
31869
31870         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
31871         pure attribute.
31872
31873 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
31874
31875         [BZ #13533]
31876         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
31877         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
31878         transformations.
31879         * iconv/gconv_int.h: Likewise.
31880         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
31881         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
31882         from libc for GLIBC_2.16.
31883         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
31884         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
31885         * wcsmbs/uchar.h: Really define mbstate_t.
31886         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
31887         * wcsmbs/c16rtomb.c: New file.
31888         * wcsmbs/mbrtoc16.c: New file.
31889         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
31890         for C/POSIX locale.
31891         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
31892         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
31893
31894         * wcsmbs/wchar.h: Add missing __restrict.
31895
31896 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31897
31898         [BZ #13532]
31899         * time/Makefile (routines): Add timespec_get.
31900         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
31901         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
31902         timespec for ISO C11.
31903         * time/timespec_get.c: New file.
31904         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
31905         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
31906
31907         [BZ #13531]
31908         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
31909         * stdlib/stdlib.h: Declare aligned_alloc.
31910         * Versions.def: Add GLIBC_2.16 for libc.
31911         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
31912
31913         [BZ 13527]
31914         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
31915         ISO C11.
31916
31917         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
31918         code.
31919
31920         [BZ #13528]
31921         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
31922
31923         [BZ #13529]
31924         * assert/assert.h (static_assert): Define.
31925
31926         * version.h: Update for 2.16 development version.
31927
31928         [BZ #13526]
31929         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
31930         _ISOC11_SOURCE.
31931
31932         * version.h (RELEASE): Bump for 2.15 release.
31933         * include/features.h (__GLIBC_MINOR__): Bump to 15.
31934
31935         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
31936         Patch by Marek Polacek <mpolacek@redhat.com>.
31937
31938         * bits/byteswap.h: Protect long long constants with __extension__.
31939         * sysdeps/i386/bits/byteswap.h: Likewise.
31940         * sysdeps/ia64/bits/byteswap.h: Likewise.
31941         * sysdeps/s390/bits/byteswap.h: Likewise.
31942         * sysdeps/x86_64/bits/byteswap.h: Likewise.
31943
31944 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31945
31946         [BZ #13540]
31947         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
31948         destination buffer.
31949         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
31950
31951 2011-12-23  Marek Polacek  <polacek@redhat.com>
31952
31953         * elf/dl-addr.c (determine_info): Add inline keyword.
31954         * elf/tst-auditmod4b.c (check_avx): Likewise.
31955         * elf/tst-auditmod6b.c (check_avx): Likewise.
31956         * elf/tst-auditmod6c.c (check_avx): Likewise.
31957         * elf/tst-auditmod7b.c (check_avx): Likewise.
31958
31959 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31960
31961         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
31962         !__SSE_MATH__.
31963
31964 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31965
31966         [BZ #13540]
31967         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
31968         processing for last bytes.
31969
31970 2011-08-06  Bruno Haible  <bruno@clisp.org>
31971
31972         [BZ #13061]
31973         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
31974         U+0385, not to U+1FEE.
31975
31976         [BZ #13062]
31977         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
31978         entry for U+00A5 U+0301.
31979
31980 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
31981
31982         [BZ #13166]
31983         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
31984         buffer for the output is too small.
31985
31986         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
31987         optimization.
31988
31989         [BZ #13185]
31990         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
31991         SSE flags if possible.
31992
31993 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31994
31995         [BZ #13540]
31996         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
31997         processing for last bytes.
31998
31999 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
32000
32001         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
32002         (syscall-list-default-options, syscall-list-default-condition)
32003         (syscall-list-includes): Define.
32004         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
32005         list of ABIs and options and #if conditions for each ABI.  Do not
32006         handle common syscalls between ABIs specially.
32007         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
32008         Remove.
32009         (syscall-list-variants, syscall-list-32bit-options)
32010         (syscall-list-32bit-condition, syscall-list-64bit-options)
32011         (syscall-list-64bit-condition): Define.
32012         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
32013         (syscall-list-variants, syscall-list-32bit-options)
32014         (syscall-list-32bit-condition, syscall-list-64bit-options)
32015         (syscall-list-64bit-condition): Define.
32016         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
32017         Remove.
32018         (syscall-list-variants, syscall-list-32bit-options)
32019         (syscall-list-32bit-condition, syscall-list-64bit-options)
32020         (syscall-list-64bit-condition): Define.
32021         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
32022         Remove.
32023         (syscall-list-variants, syscall-list-32bit-options)
32024         (syscall-list-32bit-condition, syscall-list-64bit-options)
32025         (syscall-list-64bit-condition): Define.
32026
32027 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32028
32029         * locale/iso-639.def: Add brx entry.
32030
32031         [BZ #13328]
32032         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
32033         Proposed by Mariusz_Cukr <marcukr@op.pl>.
32034
32035         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
32036         __feraiseexcept_renamed.
32037
32038 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32039
32040         [BZ #13538]
32041         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
32042         EPOLLET with unsigned values.
32043         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
32044         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
32045
32046         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
32047         to large cancellation.
32048         * math/s_cacoshf.c: Likewise.
32049         * math/s_cacoshl.c: Likewise.
32050
32051 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
32052
32053         [BZ #13305]
32054         [BZ #12786]
32055         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
32056         * math/s_cacoshf.c: Likewise.
32057         * math/s_cacoshl.c: Likewise.
32058
32059 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32060
32061         [BZ #13439]
32062         * iconv/gconv.h: Define __GCONV_SWAP.
32063         * iconvdata/unicode.c: The swap bit must be stored in __flags.
32064         * iconvdata/utf-16.c: Likewise.
32065         * iconvdata/utf-32.c: Likewise.
32066
32067 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
32068
32069         [BZ #13524]
32070         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
32071         numerator after shifting it by one limb.
32072
32073 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
32074
32075         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
32076         under [__USE_EXTERN_INLINES].
32077
32078 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32079
32080         [BZ #13446]
32081         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
32082
32083 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32084
32085         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
32086         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
32087         optimized code.
32088         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
32089         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
32090         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
32091         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
32092         for strncasecmp/strncasecmp_l compilation.
32093         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
32094         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
32095
32096 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
32097
32098         [BZ #13484]
32099         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
32100         of __asm__.
32101
32102 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32103
32104         [BZ #13506]
32105         * time/tzfile.c (__tzfile_read): Check values from file header.
32106
32107 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
32108
32109         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
32110         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
32111         * powerpc/powerpc32/dl-start.S: Likewise.
32112         * powerpc/powerpc32/elf/start.S: Likewise.
32113         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
32114         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
32115         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
32116         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
32117         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
32118         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
32119         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
32120         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
32121         * powerpc/powerpc32/fpu/s_round.S: Likewise.
32122         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
32123         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
32124         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
32125         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
32126         * powerpc/powerpc32/memset.S: Likewise.
32127         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
32128         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
32129         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
32130         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
32131         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
32132         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
32133         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
32134         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
32135         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
32136         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
32137         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
32138         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
32139         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
32140
32141 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32142
32143         * math/libm-test.inc: Added more nearbyint tests.
32144         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
32145         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
32146         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
32147         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
32148
32149 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
32150
32151         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
32152         FD_CLOEXEC.
32153
32154 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32155
32156         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
32157         Add wcscpy-ssse3 wcscpy-c.
32158         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
32159         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
32160         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
32161         * sysdeps/x86_64/wcschr.S: New file.
32162         * sysdeps/x86_64/wcsrchr.S: New file.
32163         * string/test-strcmp.c: Remove checking of wcscmp function for
32164         wrong alignments.
32165         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
32166         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
32167         wcsrchr-sse2 wcsrchr-c.
32168         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
32169         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
32170         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
32171         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
32172         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
32173         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
32174         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
32175         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
32176         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
32177         * wcsmbc/wcschr.c (WCSCHR): New macro.
32178
32179 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32180
32181         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
32182         * wcsmbs/test-wcsrchr.c: New file.
32183         * string/test-strrchr.c: Add wcsrchr support.
32184         (WIDE): New macro.
32185         * wcsmbs/test-wcscpy.c: New file.
32186         * string/test-strcpy.c: Add wcscpy support.
32187         (WIDE): New macro.
32188
32189 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
32190
32191         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
32192         the inner loop.
32193
32194 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
32195
32196         [BZ #13472]
32197         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
32198
32199 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
32200
32201         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
32202         Minor optimizations.
32203
32204         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
32205         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
32206         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32207
32208 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
32209
32210         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
32211         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
32212         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
32213         for gcc to avoid warnings.
32214         * inet/Makefile (tests): Add tst-checks.
32215         * inet/tst-checks.c: New file.
32216
32217         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
32218         warning.
32219
32220         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
32221         __wmemcmp_sse2.
32222
32223         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
32224         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
32225
32226         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
32227
32228 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
32229
32230         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
32231         problem.
32232
32233         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
32234
32235 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
32236
32237         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
32238         conditional on GCC version.
32239         (__arch_compare_and_exchange_val_8_acq)
32240         (__arch_compare_and_exchange_val_16_acq)
32241         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
32242         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
32243         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
32244
32245 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
32246
32247         * sysdeps/sh/backtrace.c: New file.
32248
32249 2011-12-02  Andreas Schwab  <schwab@redhat.com>
32250
32251         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
32252         parenthesis.
32253
32254 2011-12-01  Andreas Schwab  <schwab@redhat.com>
32255
32256         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
32257         falling back to utime.
32258
32259 2011-11-30  Andreas Schwab  <schwab@redhat.com>
32260
32261         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
32262         expectations for float.
32263
32264 2011-11-29  Andreas Schwab  <schwab@redhat.com>
32265
32266         * locale/weight.h (findidx): Add parameter len.
32267         * locale/weightwc.h (findidx): Likewise.
32268         * posix/fnmatch_loop.c (FCT): Adjust caller.
32269         * posix/regcomp.c (build_equiv_class): Likewise.
32270         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
32271         * posix/regexec.c (check_node_accept_bytes): Likewise.
32272         * string/strcoll_l.c (STRCOLL): Likewise.
32273         * string/strxfrm_l.c (STRXFRM): Likewise.
32274
32275 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
32276
32277         * Makefile.in: Remove CVSOPT handling.
32278         * configure.in: Remove use of AC_REVISION.
32279         * iconvdata/Makefile (distribute): No need to filter out CVS.
32280         * scripts/list-sources.sh: Remove CVS, subversion and monotone
32281         handling.
32282
32283 2011-11-16  Andreas Schwab  <schwab@redhat.com>
32284
32285         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
32286         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
32287         [USE_AS_STRNCASECMP_L]: Likewise.
32288         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
32289         NO_TLS_DIRECT_SEG_REFS.
32290         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
32291         Fix argument offsets for non-PIC.
32292         [USE_AS_STRNCASECMP_L]: Likewise.
32293         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
32294         NO_TLS_DIRECT_SEG_REFS.
32295
32296 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32297
32298         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
32299         O_CLOEXEC.
32300         * locale/loadlocale.c (_nl_load_locale): Likewise.
32301
32302 2011-11-15  Andreas Schwab  <schwab@redhat.com>
32303
32304         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
32305         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
32306         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
32307         (SYSCALL_GETTIME): Set errno on error.
32308
32309         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
32310         count references to noai6ai_cached.
32311
32312 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32313
32314         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
32315
32316         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
32317         FD_CLOEXEC for /proc/self/maps.
32318
32319         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
32320         FD_CLOEXEC for /proc/meminfo.
32321
32322         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
32323         gai.conf.
32324
32325         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
32326         FD_CLOEXEC for given file.
32327
32328         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
32329
32330         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
32331         FD_CLOEXEC for /etc/hosts.
32332         (_gethtent): Likewise.
32333
32334         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
32335
32336         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
32337         cancellation and set FD_CLOEXEC for /etc/netgroup.
32338
32339         * nss/nss_files/files-key.c (search): Don't allow cancellation when
32340         reading /etc/publickey.
32341
32342         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
32343         allow cancellation when reading /etc/group.
32344
32345         * nss/nss_files/files-alias.c (internal_setent): Don't allow
32346         cancellation.
32347         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
32348
32349         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
32350         when using data file.
32351
32352         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
32353
32354         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
32355         (write_nis_obj): Use "c" and "e" in fopen.
32356
32357         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
32358
32359         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
32360
32361         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
32362
32363         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
32364
32365         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
32366         locale.alias.
32367
32368         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
32369
32370         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
32371
32372         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
32373
32374         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
32375         file parsing and set FD_CLOEXEC.
32376
32377 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32378
32379         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
32380
32381 2011-11-14  Andreas Schwab  <schwab@redhat.com>
32382
32383         * malloc/arena.c (arena_get2): Don't call reused_arena when
32384         _int_new_arena failed.
32385
32386 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32387
32388         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
32389         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
32390         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
32391         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32392         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32393         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
32394         to compile strcasecmp and strncasecmp.
32395         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
32396         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
32397
32398         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
32399
32400 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
32401
32402         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
32403         locale-defines.sym to gen-as-const-headers.
32404         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
32405         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
32406         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
32407         to compile strcasecmp and strncasecmp.
32408         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
32409         strcasecmp_l and strncasecmp_l.
32410         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
32411         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
32412         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
32413         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
32414         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
32415         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
32416         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
32417         * sysdeps/i386/i686/multiarch/strncase.S: New file.
32418         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
32419         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
32420         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
32421
32422 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
32423
32424         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
32425         result of SYSDEP_GETTIME_CPU to retval.
32426         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
32427         parameter list to macro.  Remove trailing semicolon.  Adjust users.
32428
32429         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
32430         variable.
32431
32432         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
32433         mantissa words.
32434         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32435
32436         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
32437         from unused variable.
32438
32439         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
32440         DWARF definitions.
32441         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
32442         for assembling.
32443
32444         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
32445         over namespaces.
32446
32447         * sunrpc/rpc_prot.c (rejected): Fix case value.
32448
32449         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
32450         unsigned long long int to avoid warnings in shift.
32451
32452         * posix/regex_internal.c (re_string_reconstruct): Actually use result
32453         of use of trans.
32454         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
32455         variable tmp.
32456
32457         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
32458         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
32459         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
32460
32461         * nis/nis_table.c (nis_list): Use variable of correct type for
32462         result of __follow_path call.
32463
32464 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32465
32466         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
32467         of math functions ceil, trunc, floor, round, and sqrt, when
32468         avaliable on the platform.
32469         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
32470         name clash.
32471         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32472         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32473         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32474
32475 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
32476
32477         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
32478         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
32479
32480 2011-11-11  Roland McGrath  <roland@hack.frob.com>
32481
32482         * include/unistd.h: Fix __readlink return type.
32483         Reported by Chris Metcalf <cmetcalf@tilera.com>.
32484
32485 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
32486
32487         * stdlib/ucontext.h: Undo last change for makecontext.
32488
32489 2011-11-11  Andreas Schwab  <schwab@redhat.com>
32490
32491         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
32492
32493         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
32494         * setjmp/setjmp.h: Mark functions as non-leaf.
32495         * setjmp/bits/setjmp2.h: Likewise.
32496         * stdlib/ucontext.h: Likewise.
32497
32498 2011-11-10  Andreas Schwab  <schwab@redhat.com>
32499
32500         * malloc/arena.c (_int_new_arena): Don't increment narenas.
32501         (reused_arena): Don't check arena limit.
32502         (arena_get2): Atomically check arena limit.
32503
32504 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
32505
32506         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
32507         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
32508
32509         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
32510         instructions.
32511
32512 2011-11-07  Andreas Schwab  <schwab@redhat.com>
32513
32514         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
32515         handler when locking.
32516
32517         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32518         Fix size of allocated buffer.
32519
32520 2011-11-04  Andreas Schwab  <schwab@redhat.com>
32521
32522         [BZ #10103]
32523         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
32524         declarations for long double functions.
32525         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
32526
32527         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
32528
32529 2011-11-03  Andreas Schwab  <schwab@redhat.com>
32530
32531         * nscd/nscd.c (main): Don't start AVC thread until credentials are
32532         installed.
32533
32534         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
32535         is disabled.
32536
32537 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32538
32539         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
32540
32541 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
32542
32543         * include/alloca.h (stackinfo_alloca_round): Define.
32544         (extend_alloca): Use it.
32545         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
32546         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
32547         here.
32548
32549         * scripts/check-local-headers.sh: Ignore libaudit.h.
32550
32551         * nscd/Makefile (extra-objs): Make recursively expanded.
32552
32553 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
32554
32555         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
32556         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
32557
32558         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
32559         * posix/tst-rfc3484-2.c: Likewise.
32560         * posix/tst-rfc3484-3.c: Likewise.
32561
32562         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
32563         process_vm_writev.
32564         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
32565         process_vm_writev.
32566         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
32567         process_vm_writev from libc using GLIBC_2.15 version.
32568
32569         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
32570
32571 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
32572
32573         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
32574         stack usage.
32575
32576 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
32577
32578         [BZ #13367]
32579         * nss/getent.c (initgroups_keys): Show error message in case no group
32580         names are given.
32581
32582         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
32583         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
32584         __bump_nl_timestamp.
32585         * nscd/connections (nscd_init): When host database is served open
32586         netlink socket and request notification about configuration changes.
32587         (main_loop_poll): Track netlink file descriptor and bump timestamp
32588         in case data becomes available.
32589         (main_loop_epoll): Likewise.
32590         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
32591         (database_pers_head): Add extra_data fileds.
32592         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
32593         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
32594         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
32595         Adjust caller.
32596         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
32597         in6ai data, call __free_in6ai.
32598         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
32599         Add -DHAVE_NETLINK.
32600         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
32601         interface information.  Reuse previous data if netlink timestamp
32602         is not changed.
32603         (__bump_nl_timestamp): New function.
32604         (__free_in6ai): New function.
32605
32606 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
32607
32608         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
32609         close_not_cancel_no_status here.
32610         (__check_pf): Reorganize code a bit to not call close twice if OOM.
32611
32612 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32613
32614         [BZ #13276]
32615         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
32616         return value.
32617
32618         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
32619         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
32620         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
32621
32622 2011-07-03  Andreas Jaeger  <aj@suse.de>
32623
32624         [BZ #10709]
32625         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
32626         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
32627         * math/libm-test.inc (sin_test): Add test case.
32628
32629 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32630
32631         [BZ #13337]
32632         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
32633         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32634
32635         * elf/chroot_canon.c (chroot_canon): Cleanups.
32636
32637         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
32638
32639         [BZ #13335]
32640         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
32641         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32642
32643         * string/test-strchr.c: Make usable for strchrnul testing.
32644         * string/test-strchrnul.c: New file.
32645         * string/Makefile (strop-tests): Add strchrnul.
32646
32647         * po/it.po: Update from translation team.
32648         * po/es.po: Likewise.
32649
32650 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
32651
32652         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
32653         the three constants needed as parameters.  Drop the others.
32654         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
32655         __m128i_strloadu_tolower.
32656         Create and initialize variable zero and use it in all the places
32657         where _mm_setzero_si128 was used.
32658
32659         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
32660         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
32661         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
32662         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
32663         anymore.
32664         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
32665         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
32666         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
32667         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
32668         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
32669         __mpranred, __mptan.
32670         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
32671         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
32672         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
32673         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
32674         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
32675         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
32676         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
32677         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
32678         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
32679
32680 2011-10-28  Andreas Schwab  <schwab@redhat.com>
32681
32682         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
32683         redefine if SHARED.
32684         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
32685
32686         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
32687         wide char related routines to wcsmbs subdir.
32688
32689 2011-10-27  Andreas Schwab  <schwab@redhat.com>
32690
32691         [BZ #13344]
32692         * misc/sys/cdefs.h (__THROWNL): Define.
32693         * posix/unistd.h: Use __THREADNL instead of __THREAD
32694         for memory synchronization functions.
32695
32696 2011-10-26  Roland McGrath  <roland@hack.frob.com>
32697
32698         [BZ #13349]
32699         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
32700         doesn't exist.
32701         * manual/stdio.texi (Obstack Streams): Node removed.
32702
32703 2011-10-26  Andreas Schwab  <schwab@redhat.com>
32704
32705         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
32706         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32707         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32708
32709         * math/math_private.h (math_force_eval): Allow non-addressable
32710         arguments.
32711         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
32712
32713 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32714
32715         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
32716         file is not needed.
32717
32718         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
32719         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32720         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32721         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32722         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32723         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32724         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32725         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
32726         Add AVX variants.
32727         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
32728         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
32729         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
32730         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
32731         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
32732         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
32733         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
32734         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
32735         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
32736         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
32737         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
32738         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
32739         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
32740         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
32741         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
32742         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
32743         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
32744         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
32745         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
32746
32747         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
32748         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
32749
32750         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
32751         place.  Use VEX encoding when compiling for AVX.
32752
32753 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32754
32755         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
32756         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
32757
32758         * string/test-strchr.c (do_test): Don't generate NUL bytes.
32759
32760 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32761
32762         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
32763         useless if() expression.
32764         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32765         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
32766         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
32767         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32768         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
32769         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32770         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32771         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32772         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
32773         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32774         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32775         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32776         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
32777         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32778         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
32779         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32780         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32781         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32782         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
32783
32784         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
32785
32786 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32787
32788         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
32789         condition.
32790         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32791
32792 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32793
32794         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
32795         .text section.  Avoid duplicate constants.
32796         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
32797         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32798         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32799         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32800         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32801         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32802         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32803         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32804         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
32805         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
32806         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
32807         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
32808         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
32809         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
32810         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
32811         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
32812         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
32813         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
32814         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
32815         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32816         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
32817         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
32818         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
32819         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
32820         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
32821         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
32822         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
32823         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
32824         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
32825         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
32826         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
32827         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
32828         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
32829         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
32830         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
32831         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
32832         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
32833         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
32834         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
32835         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
32836         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
32837         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
32838         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
32839         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
32840         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
32841
32842 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
32843
32844         * sysdeps/x86_64/dla.h: Move to ...
32845         * sysdeps/x86_64/fpu/dla.h: ...here.
32846         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
32847         situations.  Use __builtin_fma only for gcc 4.6 and up.
32848
32849         * config.make.in: Add have-mfma4 entry.
32850         * configure.in: Substitute libc_cv_cc_fma4.
32851         * math/Makefile (dbl-only-routines): Add sincostab.
32852         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
32853         Use __sincostab not sincos.
32854         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
32855         name is a macro.
32856         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32857         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32858         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32859         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
32860         using __copysign.
32861         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
32862         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
32863         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
32864         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
32865         and __inv.
32866         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
32867         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
32868         __copysign.
32869         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
32870         define aliases when function name is a macro.
32871         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
32872         sysdeps/ieee754/dbl-64/sincos.tbl.
32873         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
32874         fma4-enabled routines.
32875         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
32876         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
32877         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
32878         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
32879         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
32880         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
32881         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
32882         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
32883         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
32884         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
32885         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
32886         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
32887         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
32888         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
32889         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
32890         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
32891         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
32892         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
32893         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
32894         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
32895         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
32896         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
32897         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
32898         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
32899         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
32900         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
32901         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
32902         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
32903         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
32904         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
32905
32906         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
32907         rename.
32908         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32909         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32910         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32911         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32912         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32913         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32914         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32915         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32916
32917 2011-10-24  Andreas Schwab  <schwab@redhat.com>
32918
32919         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
32920
32921 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32922
32923         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
32924
32925         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
32926         prediction.
32927         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
32928
32929         * string/strnlen.c: Don't define STRNLEN, reverse logic.
32930         Remove unused variable magic_bits.
32931         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
32932
32933         * string/strnlen.c: Define and use STRNLEN macro.
32934         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
32935         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
32936         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
32937         * wcsmbs/wcslen.c: Define and use WCSLEN.
32938         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
32939         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
32940         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
32941         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
32942         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
32943         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
32944         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
32945
32946 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32947
32948         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32949         strnlen-sse2-no-bsf.
32950         Rename strlen-no-bsf to strlen-sse2-no-bsf.
32951         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
32952         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
32953         Add strnlen support.
32954         (USE_AS_STRNLEN): New macro.
32955         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
32956         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
32957         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
32958         * sysdeps/x86_64/wcslen.S: New file.
32959
32960 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
32961
32962         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
32963         XMM-moves are used for copying on small sizes.
32964
32965 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32966
32967         * wcsmbs/Makefile (strop-tests): Add wcschr.
32968         * wcsmbs/test-wcschr.c: New file.
32969         * string/test-strchr.c: Update.
32970         Add wcschr support.
32971         (WIDE): New macro.
32972
32973 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32974
32975         * wcsmbs/Makefile (strop-tests): Add wcslen.
32976         * wcsmbs/test-wcslen.c: New file.
32977         * string/test-strlen.c: Update.
32978         Add wcslen support.
32979         (WIDE): New macro.
32980
32981 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32982
32983         * po/it.po: Update from translation team.
32984
32985 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32986
32987         * sysdeps/x86_64/wcscmp.S: Update.
32988         Fix wrong comparison semantics.
32989         wcscmp shall use signed comparison not unsigned.
32990         Don't use substraction to avoid overflow bug.
32991         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
32992         * wcsmbc/wcscmp.c: Likewise.
32993         * string/test-strcmp.c: Likewise.
32994         Add new tests to check cases with negative values.
32995
32996 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32997
32998         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
32999         * sysdeps/x86_64/dla.h: ...here.  New file.
33000         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
33001         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33002         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33003         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33004         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33005         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33006         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33007         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33008         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33009
33010 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
33011
33012         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
33013         __ynl_finite aliases.
33014
33015 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33016
33017         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33018
33019         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
33020         define DLA_FMA.
33021         [DLA_FMA] (EMULV): Use DLA_FMA.
33022         [DLA_FMA] (MUL12): Use EMULV.
33023         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
33024         that are not needed.
33025         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33026         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33027         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33028         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33029         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33030         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33031         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33032
33033 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
33034
33035         * math/s_nan.c: Undef __nan.
33036         * math/s_nanf.c: Undef __nanf.
33037         * math/s_nanl.c: Undef __nanl.
33038         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
33039         "math_private.h".
33040
33041 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33042
33043         * math/s_catan.c: Add branch predictions.
33044         * math/s_catanf.c: Likewise.
33045         * math/s_catanh.c: Likewise.
33046         * math/s_catanhf.c: Likewise.
33047         * math/s_catanhl.c: Likewise.
33048         * math/s_catanl.c: Likewise.
33049         * math/s_cexp.c: Likewise.
33050         * math/s_cexpf.c: Likewise.
33051         * math/s_cexpl.c: Likewise.
33052         * math/s_clog.c: Likewise.
33053         * math/s_clog10.c: Likewise.
33054         * math/s_clog10f.c: Likewise.
33055         * math/s_clog10l.c: Likewise.
33056         * math/s_clogf.c: Likewise.
33057         * math/s_clogl.c: Likewise.
33058         * math/s_csqrt.c: Likewise.
33059         * math/s_csqrtf.c: Likewise.
33060         * math/s_csqrtl.c: Likewise.
33061         * math/s_ctanf.c: Likewise.
33062         * math/s_ctanh.c: Likewise.
33063         * math/s_ctanhf.c: Likewise.
33064         * math/s_ctanhl.c: Likewise.
33065         * math/s_ctanl.c: Likewise.
33066
33067         * math/math_private.h: Define __nan, __nanf, __nanl.
33068         * math/s_cacosh.c: Include <math_private.h>.
33069         * math/s_cacoshl.c: Likewise.
33070         * math/s_casinh.c: Likewise.
33071         * math/s_casinhf.c: Likewise.
33072         * math/s_casinhl.c: Likewise.
33073         * math/s_ccos.c: Rely entire on ccosh.
33074         * math/s_ccosf.c: Rely entire on ccoshf.
33075         * math/s_ccosl.c: Rely entirely on ccoshl.
33076         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
33077         Remove tests for FE_INVALID.
33078         * math/s_ccoshf.c: Likewise.
33079         * math/s_ccoshl.c: Likewise.
33080         * math/s_csin.c: Likewise.
33081         * math/s_csinf.c: Likewise.
33082         * math/s_csinh.c Likewise.
33083         * math/s_csinhf.c: Likewise.
33084         * math/s_csinhl.c: Likewise.
33085         * math/s_csinl.c: Likewise.
33086         * math/s_ctan.c: Likewise.
33087         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
33088         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
33089         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
33090
33091 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
33092
33093         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
33094         compilation problems.
33095
33096         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
33097         __builtin_expect.
33098
33099 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
33100
33101         * sysdeps/i386/configure.in: Test for -mfma4 option.
33102         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
33103         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
33104         COMMON_CPUID_INDEX_80000001.
33105         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
33106         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
33107         use it if FMA3 is not supported.
33108         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
33109
33110         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
33111         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33112
33113 2011-10-20  Andreas Schwab  <schwab@redhat.com>
33114
33115         [BZ #12892]
33116         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
33117         it would create a cycle with a link time dependency.
33118
33119 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
33120
33121         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
33122         instruction.
33123         * string/Makefile (strop-tests): Add rawmemchr.
33124         * string/test-rawmemchr.c: New file.
33125
33126         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
33127         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
33128         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
33129         when compiling str{,n}casecmp and when AVX is available.  Hook up
33130         new optimized code in initializers.
33131
33132 2011-10-19  Andreas Schwab  <schwab@redhat.com>
33133
33134         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
33135         __feraiseexcept instead of feraiseexcept.
33136
33137 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
33138
33139         * math/math_private.h: Define defaults for libc_fetestexcept and
33140         libc_feupdateenv.
33141         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
33142         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
33143         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33144         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33145         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
33146         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33147         libc_fetestexcept and libc_feupdateenv.
33148
33149         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
33150         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
33151         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
33152         * sysdeps/x86_64/fpu/math_private.h: Define special version of
33153         libc_feholdexcept_setround.
33154
33155         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
33156         Add s_nearbyint-c and s_nearbyintf-c.
33157         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
33158         nearbyintf inlines.
33159         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
33160         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
33161         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
33162         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
33163
33164         * math/math_private.h: Define defaults for libc_fegetround,
33165         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
33166         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
33167         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
33168         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
33169         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
33170         standard functions.
33171         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33172         Remove comments and hacks for old compiler versions.
33173         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33174         libc_fegetround, libc_fesetround, libc_feholdexcept, and
33175         libc_feholdexceptl.
33176
33177 2011-10-18  Andreas Schwab  <schwab@redhat.com>
33178
33179         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
33180         (__feraiseexcept_renamed): Add __NTH.
33181         (feraiseexcept): Add __NTH.  Rename local variables to fix
33182         namespace violations.
33183
33184 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
33185
33186         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
33187
33188         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
33189
33190         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
33191         recently added interfaces.
33192         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
33193
33194         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
33195         about macro parameter expansion.
33196
33197         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
33198         __NO_MATH_INLINES is defined.  Cleanups.
33199
33200         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
33201         and __floorf is target has SSE4.1.
33202         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
33203         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
33204         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
33205         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
33206
33207         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
33208         name.
33209         (floorf): Likewise.
33210
33211         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
33212
33213 2011-10-17  Andreas Schwab  <schwab@redhat.com>
33214
33215         * misc/sys/cdefs.h: Fix last change.
33216
33217         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
33218         database lookup.
33219
33220 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
33221
33222         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
33223
33224         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
33225         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33226         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
33227         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33228         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33229         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
33230         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33231         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33232         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
33233         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
33234         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
33235         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
33236         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
33237         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
33238         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
33239         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
33240         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
33241         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
33242         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
33243         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
33244         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
33245         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
33246
33247         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
33248         ceil, ceilf, floor, floorf.
33249
33250         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
33251         Perform IRELATIVE relocations last.
33252
33253         * elf/do-rel.h: Add another parameter nrelative, replacing the
33254         local variable with the same name.  Change name of the function
33255         to end in Rel or Rela (uppercase).
33256         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
33257         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
33258         elf_dynamic_do_##reloc function.
33259
33260 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33261
33262         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
33263         is sufficient, at least on modern CPUs.
33264
33265         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
33266
33267         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
33268         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
33269
33270         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
33271         __expl_finite.
33272         * math/bits/math-finite.h: Add entries for exp.
33273         * math/e_expl.c: Add __*_finite alias.
33274         * sysdeps/i386/fpu/e_exp.S: Likewise.
33275         * sysdeps/i386/fpu/e_expf.S: Likewise.
33276         * sysdeps/i386/fpu/e_expl.c: Likewise.
33277         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33278         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33279         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
33280         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
33281         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
33282         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
33283         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
33284
33285         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
33286         is sufficient, at least on modern CPUs.
33287
33288         * ctype/ctype-info.c (__ctype_init): Define.
33289         * include/ctype.h (__ctype_init): Declare.
33290         (__ctype_b_loc): The variable is always initialized.
33291         (__ctype_toupper_loc): Likewise.
33292         (__ctype_tolower_loc): Likewise.
33293         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
33294         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
33295
33296 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
33297
33298         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
33299
33300         * configure.in: Also look in $cxxmachine/include for C++ system
33301         headers.
33302
33303 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33304
33305         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
33306         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
33307         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
33308         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
33309         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
33310         (USE_AS_WMEMCMP): New macro.
33311         Fixing indents.
33312         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
33313         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
33314         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
33315         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
33316         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33317         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
33318         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
33319         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
33320         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
33321         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
33322         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
33323         (USE_AS_WMEMCMP): New macro.
33324         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
33325         * sysdeps/string/test-memcmp.c: Update.
33326         Fix simple_wmemcmp.
33327         Add new tests.
33328         * wcsmbs/wmemcmp.c: Update.
33329         (WMEMCMP): New macro.
33330         Fix overflow bug.
33331
33332 2011-10-12  Andreas Jaeger  <aj@suse.de>
33333
33334         [BZ #13268]
33335         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
33336
33337 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33338
33339         * libio/iofwide.c (do_length): Avoid warning.
33340
33341         * ctype/ctype.h (__isctype_f): Add missing __THROW.
33342
33343 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
33344
33345         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
33346
33347         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
33348         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
33349         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
33350         * sysdeps/i386/i686/fpu/e_log.S: New file.
33351         * sysdeps/i386/i686/fpu/e_logf.S: New file.
33352         * sysdeps/i386/i686/fpu/e_logl.S: New file.
33353
33354         * ctype/ctype.h: Add support for inlined isXXX functions when
33355         compiling C++ code.
33356
33357 2011-10-14  Andreas Schwab  <schwab@redhat.com>
33358
33359         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33360
33361         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
33362
33363 2011-10-13  Roland McGrath  <roland@hack.frob.com>
33364
33365         [BZ #13291]
33366         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
33367
33368 2011-10-13  Andreas Schwab  <schwab@redhat.com>
33369
33370         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
33371         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
33372         feraiseexcept.
33373
33374         * sysdeps/x86_64/memrchr.S: Check for zero size.
33375
33376         * string/stratcliff.c: Add memrchr tests.
33377
33378 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33379
33380         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33381         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
33382         rawmemchr-sse2 rawmemchr-sse2-bsf.
33383         * sysdeps/i386/i686/multiarch/memchr.S: New file.
33384         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
33385         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
33386         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
33387         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
33388         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
33389         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
33390         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
33391         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
33392         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
33393         * string/memrchr.c (MEMRCHR): New macro.
33394
33395 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
33396
33397         Add integration with gcc's -ffinite-math-only and optimize wrapper
33398         functions in libm.
33399         * Versions.def: Define GLIBC_2.15 version for libm.
33400         * math/Makefile (headers): Add bits/math-finite.h.
33401         * math/bits/math-finite.h: New file.
33402         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
33403         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
33404         * math/e_acoshl.c: Add __*_finite alias.
33405         * math/e_acosl.c: Likewise.
33406         * math/e_asinl.c: Likewise.
33407         * math/e_atan2l.c: Likewise.
33408         * math/e_atanhl.c: Likewise.
33409         * math/e_coshl.c: Likewise.
33410         * math/e_exp10.c: Likewise.
33411         * math/e_exp10f.c: Likewise.
33412         * math/e_exp10l.c: Likewise.
33413         * math/e_exp2l.c: Likewise.
33414         * math/e_fmodl.c: Likewise.
33415         * math/e_gammal_r.c: Likewise.
33416         * math/e_hypotl.c: Likewise.
33417         * math/e_j0l.c: Likewise.
33418         * math/e_j1l.c: Likewise.
33419         * math/e_jnl.c: Likewise.
33420         * math/e_lgammal_r.c: Likewise.
33421         * math/e_log10l.c: Likewise.
33422         * math/e_log2l.c: Likewise.
33423         * math/e_logl.c: Likewise.
33424         * math/e_powl.c: Likewise.
33425         * math/e_sinhl.c: Likewise.
33426         * math/e_sqrtl.c: Likewise.
33427         * math/e_scalb.c: Completely rewritten and optimized.
33428         * math/e_scalbf.c: Likewise.
33429         * math/e_scalbl.c: Likewise.
33430         * math/w_acos.c: Likewise.
33431         * math/w_acosf.c: Likewise.
33432         * math/w_acosl.c: Likewise.
33433         * math/w_acosh.c: Likewise.
33434         * math/w_acoshf.c: Likewise.
33435         * math/w_acoshl.c: Likewise.
33436         * math/w_asin.c: Likewise.
33437         * math/w_asinf.c: Likewise.
33438         * math/w_asinl.c: Likewise.
33439         * math/w_atan2.c: Likewise.
33440         * math/w_atan2f.c: Likewise.
33441         * math/w_atan2l.c: Likewise.
33442         * math/w_atanh.c: Likewise.
33443         * math/w_atanhf.c: Likewise.
33444         * math/w_atanhl.c: Likewise.
33445         * math/w_exp10.c: Likewise.
33446         * math/w_exp10f.c: Likewise.
33447         * math/w_exp10l.c: Likewise.
33448         * math/w_fmod.c: Likewise.
33449         * math/w_fmodf.c: Likewise.
33450         * math/w_fmodl.c: Likewise.
33451         * math/w_j0.c: Likewise.
33452         * math/w_j0f.c: Likewise.
33453         * math/w_j0l.c: Likewise.
33454         * math/w_j1.c: Likewise.
33455         * math/w_j1f.c: Likewise.
33456         * math/w_j1l.c: Likewise.
33457         * math/w_jn.c: Likewise.
33458         * math/w_jnf.c: Likewise.
33459         * math/w_log.c: Likewise.
33460         * math/w_logf.c: Likewise.
33461         * math/w_logl.c: Likewise.
33462         * math/w_log10.c: Likewise.
33463         * math/w_log10f.c: Likewise.
33464         * math/w_log10l.c: Likewise.
33465         * math/w_log2.c: Likewise.
33466         * math/w_log2f.c: Likewise.
33467         * math/w_log2l.c: Likewise.
33468         * math/w_pow.c: Likewise.
33469         * math/w_powf.c: Likewise.
33470         * math/w_powl.c: Likewise.
33471         * math/w_remainder.c: Likewise.
33472         * math/w_remainderf.c: Likewise.
33473         * math/w_remainderl.c: Likewise.
33474         * math/w_scalb.c: Likewise.
33475         * math/w_scalbf.c: Likewise.
33476         * math/w_scalbl.c: Likewise.
33477         * math/w_sqrt.c: Likewise.
33478         * math/w_sqrtf.c: Likewise.
33479         * math/w_sqrtl.c: Likewise.
33480         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
33481         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
33482         used.
33483         * math/math_private.h: Declare __kernel_standard_f.
33484         * math/w_cosh.c: Remove cruft and optimize a bit.
33485         * math/w_coshf.c: Likewise.
33486         * math/w_coshl.c: Likewise.
33487         * math/w_exp2.c: Likewise.
33488         * math/w_exp2f.c: Likewise.
33489         * math/w_exp2l.c: Likewise.
33490         * math/w_hypot.c: Likewise.
33491         * math/w_hypotf.c: Likewise.
33492         * math/w_hypotl.c: Likewise.
33493         * math/w_lgamma.c: Likewise.
33494         * math/w_lgamma_r.c: Likewise.
33495         * math/w_lgammaf.c: Likewise.
33496         * math/w_lgammaf_r.c: Likewise.
33497         * math/w_lgammal.c: Likewise.
33498         * math/w_lgammal_r.c: Likewise.
33499         * math/w_sinh.c: Likewise.
33500         * math/w_sinhf.c: Likewise.
33501         * math/w_sinhl.c: Likewise.
33502         * math/w_tgamma.c: Likewise.
33503         * math/w_tgammaf.c: Likewise.
33504         * math/w_tgammal.c: Likewise.
33505         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
33506         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33507         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
33508         Minor optimizations.  Pretty printing.  Remove cruft.
33509         * sysdeps/i386/fpu/e_acosf.S: Likewise.
33510         * sysdeps/i386/fpu/e_acosh.S: Likewise.
33511         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
33512         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
33513         * sysdeps/i386/fpu/e_acosl.c: Likewise.
33514         * sysdeps/i386/fpu/e_asin.S: Likewise.
33515         * sysdeps/i386/fpu/e_asinf.S: Likewise.
33516         * sysdeps/i386/fpu/e_atan2.S: Likewise.
33517         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
33518         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
33519         * sysdeps/i386/fpu/e_atanh.S: Likewise.
33520         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
33521         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
33522         * sysdeps/i386/fpu/e_exp10.S: Likewise.
33523         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
33524         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
33525         * sysdeps/i386/fpu/e_exp2.S: Likewise.
33526         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
33527         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
33528         * sysdeps/i386/fpu/e_fmod.S: Likewise.
33529         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
33530         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
33531         * sysdeps/i386/fpu/e_hypot.S: Likewise.
33532         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
33533         * sysdeps/i386/fpu/e_log.S: Likewise.
33534         * sysdeps/i386/fpu/e_log10.S: Likewise.
33535         * sysdeps/i386/fpu/e_log10f.S: Likewise.
33536         * sysdeps/i386/fpu/e_log10l.S: Likewise.
33537         * sysdeps/i386/fpu/e_log2.S: Likewise.
33538         * sysdeps/i386/fpu/e_log2f.S: Likewise.
33539         * sysdeps/i386/fpu/e_log2l.S: Likewise.
33540         * sysdeps/i386/fpu/e_logf.S: Likewise.
33541         * sysdeps/i386/fpu/e_logl.S: Likewise.
33542         * sysdeps/i386/fpu/e_pow.S: Likewise.
33543         * sysdeps/i386/fpu/e_powf.S: Likewise.
33544         * sysdeps/i386/fpu/e_powl.S: Likewise.
33545         * sysdeps/i386/fpu/e_remainder.S: Likewise.
33546         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
33547         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
33548         * sysdeps/i386/fpu/e_scalb.S: Likewise.
33549         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
33550         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
33551         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
33552         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
33553         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
33554         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
33555         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33556         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33557         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
33558         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33559         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
33560         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
33561         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
33562         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33563         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
33564         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
33565         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
33566         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33567         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
33568         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
33569         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33570         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
33571         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
33572         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33573         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33574         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
33575         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
33576         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
33577         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
33578         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
33579         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
33580         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33581         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
33582         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
33583         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
33584         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33585         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
33586         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33587         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
33588         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
33589         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
33590         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
33591         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
33592         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
33593         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
33594         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
33595         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
33596         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
33597         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
33598         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
33599         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
33600         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
33601         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
33602         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
33603         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
33604         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
33605         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
33606         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
33607         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33608         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
33609         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
33610         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
33611         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
33612         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
33613         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
33614         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
33615         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
33616         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
33617         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
33618         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
33619         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
33620         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
33621         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
33622         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
33623         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
33624         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
33625         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
33626         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
33627         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
33628         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
33629         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
33630         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
33631         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
33632         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33633         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
33634         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33635         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
33636         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
33637         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
33638         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33639         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
33640         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33641         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
33642         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
33643         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
33644         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
33645         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
33646         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
33647         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
33648         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
33649         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
33650         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
33651         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
33652         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
33653         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
33654         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
33655         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
33656         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
33657         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
33658         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
33659         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
33660         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
33661         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33662         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
33663         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
33664         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
33665         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
33666         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
33667         (__isnanf): Likewise.
33668         (__isinf_ns): Likewise.
33669         (__isinf_nsf): Likewise.
33670         (__finite): Likewise.
33671         (__finitef): Likewise.
33672         (__ieee754_sqrt): Define as macro.
33673         (__ieee754_sqrtf): Define as macro.
33674         (__ieee754_sqrtl): Define as macro.
33675         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
33676         inlined copy.
33677         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
33678         __FINITE_MATH_ONLY__ consistent.
33679         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
33680
33681 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
33682
33683         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
33684         of rawmemchr.
33685
33686         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
33687
33688 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
33689
33690         * po/ja.po: Update from translation team.
33691
33692 2011-10-08  Roland McGrath  <roland@hack.frob.com>
33693
33694         * locale/programs/locarchive.c (prepare_address_space): New function.
33695         (create_archive, enlarge_archive, open_archive): Use it.
33696
33697         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
33698         inside [SHARED], where it is used.
33699
33700         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
33701
33702         * nss/getent.c (netgroup_keys): Remove unused variable.
33703         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
33704
33705 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
33706
33707         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
33708         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
33709         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
33710         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
33711         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
33712         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
33713         * math/Makefile (libm-calls): Add s_isinf_ns.
33714         * math/divtc3.c: Use __isinf_nsl instead of isinf.
33715         * math/multc3.c: Likewise.
33716         * math/s_casin.c: Likewise.
33717         * math/s_casinf.c: Likewise.
33718         * math/s_casinl.c: Likewise.
33719         * math/s_ccos.c: Likewise.
33720         * math/s_ccosf.c: Likewise.
33721         * math/s_ccosl.c: Likewise.
33722         * math/s_ctan.c: Likewise.
33723         * math/s_ctanf.c: Likewise.
33724         * math/s_ctanh.c: Likewise.
33725         * math/s_ctanhf.c: Likewise.
33726         * math/s_ctanhl.c: Likewise.
33727         * math/s_ctanl.c: Likewise.
33728         * math/w_fmod.c: Likewise.
33729         * math/w_fmodf.c: Likewise.
33730         * math/w_fmodl.c: Likewise.
33731         * math/w_remainder.c: Likewise.
33732         * math/w_remainderf.c: Likewise.
33733         * math/w_remainderl.c: Likewise.
33734         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
33735         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
33736         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
33737         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
33738         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
33739         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
33740         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
33741         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
33742
33743         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
33744         of the number.
33745         * stdio-common/printf_fphex.c: Likewise.
33746         * stdio-common/printf_size.c: Likewise.
33747
33748         * math/e_exp10.c: Include math_private.h using <...> not "...".
33749         * math/e_exp10f.c: Likewise.
33750         * math/e_exp10l.c: Likewise.
33751         * math/e_exp2l.c: Likewise.
33752         * math/e_j0l.c: Likewise.
33753         * math/e_j1l.c: Likewise.
33754         * math/e_jnl.c: Likewise.
33755         * math/e_lgammal_r.c: Likewise.
33756         * math/e_rem_pio2l.c: Likewise.
33757         * math/e_scalb.c: Likewise.
33758         * math/e_scalbf.c: Likewise.
33759         * math/e_scalbl.c: Likewise.
33760         * math/k_cosl.c: Likewise.
33761         * math/k_sinl.c: Likewise.
33762         * math/k_tanl.c: Likewise.
33763         * math/s_cacoshf.c: Likewise.
33764         * math/s_catan.c: Likewise.
33765         * math/s_catanf.c: Likewise.
33766         * math/s_catanh.c: Likewise.
33767         * math/s_catanhf.c: Likewise.
33768         * math/s_catanhl.c: Likewise.
33769         * math/s_catanl.c: Likewise.
33770         * math/s_ccosh.c: Likewise.
33771         * math/s_ccoshf.c: Likewise.
33772         * math/s_ccoshl.c: Likewise.
33773         * math/s_cexp.c: Likewise.
33774         * math/s_cexpf.c: Likewise.
33775         * math/s_cexpl.c: Likewise.
33776         * math/s_clog.c: Likewise.
33777         * math/s_clog10.c: Likewise.
33778         * math/s_clog10f.c: Likewise.
33779         * math/s_clog10l.c: Likewise.
33780         * math/s_clogf.c: Likewise.
33781         * math/s_clogl.c: Likewise.
33782         * math/s_csin.c: Likewise.
33783         * math/s_csinf.c: Likewise.
33784         * math/s_csinh.c: Likewise.
33785         * math/s_csinhf.c: Likewise.
33786         * math/s_csinhl.c: Likewise.
33787         * math/s_csinl.c: Likewise.
33788         * math/s_csqrt.c: Likewise.
33789         * math/s_csqrtf.c: Likewise.
33790         * math/s_csqrtl.c: Likewise.
33791         * math/s_ctan.c: Likewise.
33792         * math/s_ctanf.c: Likewise.
33793         * math/s_ctanh.c: Likewise.
33794         * math/s_ctanhf.c: Likewise.
33795         * math/s_ctanhl.c: Likewise.
33796         * math/s_ctanl.c: Likewise.
33797         * math/s_ldexp.c: Likewise.
33798         * math/s_ldexpf.c: Likewise.
33799         * math/s_ldexpl.c: Likewise.
33800         * math/s_significand.c: Likewise.
33801         * math/s_significandf.c: Likewise.
33802         * math/s_significandl.c: Likewise.
33803         * math/w_acos.c: Likewise.
33804         * math/w_acosf.c: Likewise.
33805         * math/w_acosh.c: Likewise.
33806         * math/w_acoshf.c: Likewise.
33807         * math/w_acoshl.c: Likewise.
33808         * math/w_acosl.c: Likewise.
33809         * math/w_asin.c: Likewise.
33810         * math/w_asinf.c: Likewise.
33811         * math/w_asinl.c: Likewise.
33812         * math/w_atan2.c: Likewise.
33813         * math/w_atan2f.c: Likewise.
33814         * math/w_atan2l.c: Likewise.
33815         * math/w_atanh.c: Likewise.
33816         * math/w_atanhf.c: Likewise.
33817         * math/w_atanhl.c: Likewise.
33818         * math/w_cosh.c: Likewise.
33819         * math/w_coshf.c: Likewise.
33820         * math/w_coshl.c: Likewise.
33821         * math/w_dremf.c: Likewise.
33822         * math/w_exp10.c: Likewise.
33823         * math/w_exp10f.c: Likewise.
33824         * math/w_exp10l.c: Likewise.
33825         * math/w_exp2.c: Likewise.
33826         * math/w_exp2f.c: Likewise.
33827         * math/w_fmod.c: Likewise.
33828         * math/w_fmodf.c: Likewise.
33829         * math/w_fmodl.c: Likewise.
33830         * math/w_hypot.c: Likewise.
33831         * math/w_hypotf.c: Likewise.
33832         * math/w_hypotl.c: Likewise.
33833         * math/w_j0.c: Likewise.
33834         * math/w_j0f.c: Likewise.
33835         * math/w_j0l.c: Likewise.
33836         * math/w_j1.c: Likewise.
33837         * math/w_j1f.c: Likewise.
33838         * math/w_j1l.c: Likewise.
33839         * math/w_jn.c: Likewise.
33840         * math/w_jnf.c: Likewise.
33841         * math/w_jnl.c: Likewise.
33842         * math/w_lgamma.c: Likewise.
33843         * math/w_lgamma_r.c: Likewise.
33844         * math/w_lgammaf.c: Likewise.
33845         * math/w_lgammaf_r.c: Likewise.
33846         * math/w_lgammal.c: Likewise.
33847         * math/w_lgammal_r.c: Likewise.
33848         * math/w_log.c: Likewise.
33849         * math/w_log10.c: Likewise.
33850         * math/w_log10f.c: Likewise.
33851         * math/w_log10l.c: Likewise.
33852         * math/w_log2.c: Likewise.
33853         * math/w_log2f.c: Likewise.
33854         * math/w_log2l.c: Likewise.
33855         * math/w_logf.c: Likewise.
33856         * math/w_logl.c: Likewise.
33857         * math/w_pow.c: Likewise.
33858         * math/w_powf.c: Likewise.
33859         * math/w_powl.c: Likewise.
33860         * math/w_remainder.c: Likewise.
33861         * math/w_remainderf.c: Likewise.
33862         * math/w_remainderl.c: Likewise.
33863         * math/w_scalb.c: Likewise.
33864         * math/w_scalbf.c: Likewise.
33865         * math/w_scalbl.c: Likewise.
33866         * math/w_sinh.c: Likewise.
33867         * math/w_sinhf.c: Likewise.
33868         * math/w_sinhl.c: Likewise.
33869         * math/w_sqrt.c: Likewise.
33870         * math/w_sqrtf.c: Likewise.
33871         * math/w_sqrtl.c: Likewise.
33872         * math/w_tgamma.c: Likewise.
33873         * math/w_tgammaf.c: Likewise.
33874         * math/w_tgammal.c: Likewise.
33875
33876         * po/ja.po: Update from translation team.
33877
33878 2011-09-29  Andreas Jaeger  <aj@suse.de>
33879
33880         [BZ #13179]
33881         * sunrpc/netname.c (netname2host): Fix logic.
33882
33883         [BZ #6779]
33884         [BZ #6783]
33885         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
33886         correctly.
33887         * math/w_remainder.c (__remainder): Likewise.
33888         * math/w_remainderf.c (__remainderf): Likewise.
33889         * math/libm-test.inc (remainder_test): Add test cases.
33890
33891 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33892
33893         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
33894         sdiv_qrnnd.
33895
33896 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33897
33898         * string/test-memcmp.c: Avoid unncessary #defines.
33899         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33900
33901 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33902
33903         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
33904         Use new sse2 version for core i3 - i7 as it's faster
33905         than sse42 version.
33906         (bit_Prefer_PMINUB_for_stringop): New.
33907         * sysdeps/x86_64/rawmemchr.S: Update.
33908         Replace with faster SSE2 version.
33909         * sysdeps/x86_64/memrchr.S: New file.
33910         * sysdeps/x86_64/memchr.S: Update.
33911         Replace with faster SSE2 version.
33912
33913 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
33914
33915         * elf/dl-load.c (lose): Add cast to avoid warning.
33916
33917 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33918
33919         * po/ca.po: Update from translation team.
33920
33921         * inet/getnetgrent_r.c: Hook up nscd.
33922         * nscd/Makefile (routines): Add nscd_netgroup.
33923         (nscd-modules): Add netgroupcache.
33924         (CFLAGS-netgroupcache.c): Define.
33925         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
33926         (cache_search): Add const to second parameter.
33927         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
33928         INNETGR.
33929         (dbs): Add netgrdb entry.
33930         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
33931         (verify_persistent_db): Handle netgrdb.
33932         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
33933         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
33934         GETFDNETGR.
33935         (netgroup_response_header): Define.
33936         (innetgroup_response_header): Define.
33937         (datahead): Add netgroup_response_header and innetgroup_response_header
33938         elements.
33939         * nscd/nscd.conf: Add entries for netgroup cache.
33940         * nscd/nscd.h (dbtype): Add netgrdb.
33941         (_PATH_NSCD_NETGROUP_DB): Define.
33942         (netgroup_iov_disabled): Declare.
33943         (xmalloc, xcalloc, xrealloc): Move declarations here.
33944         (cache_search): Adjust prototype.
33945         Add netgroup-related prototypes.
33946         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
33947         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
33948         (__nscd_innetgr): Declare.
33949         * nscd/selinux.c (perms): Use access_vector_t as element type and
33950         add netgroup-related initializers.
33951         * nscd/netgroupcache.c: New file.
33952         * nscd/nscd_netgroup.c: New file.
33953         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
33954         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
33955         For four parameters use innetgr.
33956         * nss/nss_files/files-init.c: Add definition and callback for netgr.
33957         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
33958         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
33959         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
33960
33961         * nscd/connections.c (register_traced_file): Don't register file
33962         for disabled databases.
33963
33964 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
33965
33966         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
33967
33968         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
33969         from tree and freeing node.
33970
33971 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
33972
33973         * nss/nsswitch.c (__nss_database_lookup): Handle
33974         nss_parse_service_list out of memory case.
33975
33976 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
33977
33978         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
33979         out of memory case.
33980
33981 2011-10-04  Andreas Schwab  <schwab@redhat.com>
33982
33983         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
33984         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
33985         pass it down.
33986         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
33987         elf_machine_rela, elf_machine_lazy_rel.
33988         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
33989         (ELF_DYNAMIC_DO_REL): Likewise.
33990         (ELF_DYNAMIC_DO_RELA): Likewise.
33991         (ELF_DYNAMIC_RELOCATE): Likewise.
33992         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
33993         to ELF_DYNAMIC_DO_REL.
33994         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
33995         (dl_main): In trace mode always set __RTLD_NOIFUNC.
33996         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
33997         elf_machine_rela.
33998         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
33999         skip_ifunc, don't call ifunc function if non-zero.
34000         (elf_machine_rela): Likewise.
34001         (elf_machine_lazy_rel): Likewise.
34002         (elf_machine_lazy_rela): Likewise.
34003         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
34004         (elf_machine_lazy_rel): Likewise.
34005         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
34006         Likewise.
34007         (elf_machine_lazy_rel): Likewise.
34008         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34009         Likewise.
34010         (elf_machine_lazy_rel): Likewise.
34011         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
34012         (elf_machine_lazy_rel): Likewise.
34013         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
34014         (elf_machine_lazy_rel): Likewise.
34015         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
34016         (elf_machine_lazy_rel): Likewise.
34017         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
34018         (elf_machine_lazy_rel): Likewise.
34019         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
34020         (elf_machine_lazy_rel): Likewise.
34021         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
34022         (elf_machine_lazy_rel): Likewise.
34023
34024 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
34025
34026         * nss/nss_files/files-init.c (_nss_files_init): Use static
34027         initialization for all the *_traced_file variables.
34028
34029 2011-09-28  Andreas Schwab  <schwab@redhat.com>
34030
34031         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34032
34033 2011-09-27  Roland McGrath  <roland@hack.frob.com>
34034
34035         [BZ #13226]
34036         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
34037
34038 2011-09-27  Andreas Schwab  <schwab@redhat.com>
34039
34040         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
34041         Reread the line before reparsing it.
34042
34043 2011-09-26  Andreas Schwab  <schwab@redhat.com>
34044
34045         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
34046
34047 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
34048             Maxim Kuvyrkov  <maxim@codesourcery.com>
34049             Joseph Myers  <joseph@codesourcery.com>
34050
34051         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
34052         if needed for __stack_chk_guard.
34053
34054 2011-09-19  Roland McGrath  <roland@hack.frob.com>
34055
34056         * sysdeps/posix/spawni.c (script_execute): Always define it.
34057         It will be optimized away if unused.
34058         (maybe_script_execute): New function.
34059         (__spawni): Call it.
34060
34061         * Makerules: Don't include tls.make.
34062         (config-tls): Always set to thread.
34063         * tls.make.c: File removed.
34064
34065 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
34066
34067         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
34068         * config.make.in (CPPFLAGS-config): New substituted variable.
34069
34070 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34071
34072         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
34073
34074         [BZ #13192]
34075         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
34076         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
34077
34078 2011-09-15  Roland McGrath  <roland@hack.frob.com>
34079
34080         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
34081         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
34082         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
34083         (CALL_FAIL): Likewise.
34084         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
34085         (CALL_FAIL): Macro removed.
34086         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
34087
34088 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34089
34090         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
34091         for __FINITE_MATH_ONLY__ == 1.
34092
34093 2011-09-15  Andreas Schwab  <schwab@redhat.com>
34094
34095         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
34096         __ieee754_sqrt instead of sqrt.
34097         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
34098         __ieee754_sqrtf instead of sqrtf.
34099         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
34100         __floorf instead of floorf.
34101         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
34102         __floorf, __truncf instead of floorf, truncf.
34103
34104 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
34105
34106         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
34107
34108         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
34109         __extern_always_inline.
34110         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
34111         32-bit.
34112
34113 2011-09-14  Andreas Schwab  <schwab@redhat.com>
34114
34115         * elf/rtld.c (dl_main): Also relocate in dependency order when
34116         doing symbol dependency testing.
34117
34118 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
34119
34120         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34121         Always define `refsym'.
34122
34123 2011-09-13  Andreas Schwab  <schwab@redhat.com>
34124
34125         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
34126         (__FD_ELT): Renamed from __FDELT.
34127         * misc/bits/select2.h (__FD_ELT): Likewise.
34128         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
34129         __FD_MASK instead of __FDELT, __FDMASK.
34130         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34131         Likewise.
34132         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34133         Likewise.
34134
34135         * elf/Makefile (gen-ldd): Fix pattern.
34136
34137         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
34138         (init_tls): Likewise.
34139
34140 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
34141
34142         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
34143
34144 2011-09-12  Andreas Schwab  <schwab@redhat.com>
34145
34146         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
34147         `struct cmsghdr *' instead of `void *'.
34148         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
34149         Likewise.
34150
34151 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
34152
34153         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
34154         if non-absolute.
34155         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
34156         ldd_rewrite_script.
34157
34158 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
34159
34160         * configure.in: Remove --with-tls option.
34161         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
34162         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
34163         out in case it is missing.
34164         * sysdeps/ia64/elf/configure.in: Likewise.
34165         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
34166         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
34167         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
34168         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
34169         * sysdeps/sh/elf/configure.in: Likewise.
34170         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
34171         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
34172         * sysdeps/x86_64/elf/configure.in: Likewise.
34173         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
34174         * sysdeps/mach/hurd/tls.h: Likewise.
34175
34176         [BZ #13067]
34177         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
34178
34179         [BZ #13090]
34180         * configure.in: Fix use of AC_INIT.
34181
34182         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
34183
34184 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
34185
34186         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
34187         __set_errno.
34188         * malloc/hooks.c: Likewise.
34189
34190         [BZ #11929]
34191         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
34192         variables statically.
34193         (narenas): Initialize.
34194         (list_lock): Initialize.
34195         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
34196         initializtion of main_arena and list_lock.  Small cleanups.
34197         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
34198         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
34199         Add initializers to main_arena and mp_.
34200         (malloc_state): Remove pagesize member.  Change all users to use
34201         GLRO(dl_pagesize).
34202
34203         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
34204         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
34205         is always initialized.
34206
34207         * malloc/malloc.c: Removed unused configurations and dead code.
34208         * malloc/arena.c: Likewise.
34209         * malloc/hooks.c: Likewise.
34210         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
34211
34212         * include/tls.h: Removed.  USE___THREAD must always be defined.
34213         * bits/libc-tsd.h: Don't handle !USE___THREAD.
34214         * elf/dl-libc.c: Likewise.
34215         * elf/dl-tsd.c: Likewise.
34216         * include/errno.h: Likewise.
34217         * include/netdb.h: Likewise.
34218         * include/resolv.h: Likewise.
34219         * inet/herrno-loc.c: Likewise.
34220         * inet/herrno.c: Likewise.
34221         * malloc/arena.c: Likewise.
34222         * malloc/hooks.c: Likewise.
34223         * malloc/malloc.c: Likewise.
34224         * resolv/res-state.c: Likewise.
34225         * resolv/res_libc.c: Likewise.
34226         * sysdeps/i386/dl-machine.h: Likewise.
34227         * sysdeps/ia64/dl-machine.h: Likewise.
34228         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
34229         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
34230         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
34231         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
34232         * sysdeps/sh/dl-machine.h: Likewise.
34233         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
34234         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
34235         * sysdeps/unix/i386/sysdep.S: Likewise.
34236         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
34237         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
34238         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
34239         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
34240         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
34241         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
34242         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
34243         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
34244         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34245         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
34246         * sysdeps/unix/x86_64/sysdep.S: Likewise.
34247         * sysdeps/x86_64/dl-machine.h: Likewise.
34248         * tls.make.c: Likewise.
34249
34250         * configure.in: Remove --with-__thread option.  Make tests for
34251         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
34252         tls_model attribute fail if no support is available.  Remove
34253         USE_IN_LIBIO.
34254         * Makeconfig: Adjust for dropped configure option.  All features are
34255         now mandatory.
34256         * Makerules: Likewise.
34257         * Versions.def: Likewise.
34258         * argp/argp-fmtstream.c: Likewise.
34259         * argp/argp-fmtstream.h: Likewise.
34260         * argp/argp-help.c: Likewise.
34261         * assert/assert.c: Likewise.
34262         * config.h.in: Likewise.
34263         * config.make.in: Likewise.
34264         * configure: Likewise.
34265         * configure.in: Likewise.
34266         * csu/Versions: Likewise.
34267         * csu/init.c: Likewise.
34268         * elf/tst-audit2.c: Likewise.
34269         * elf/tst-tls10.c: Likewise.
34270         * elf/tst-tls10.h: Likewise.
34271         * elf/tst-tls11.c: Likewise.
34272         * elf/tst-tls12.c: Likewise.
34273         * elf/tst-tls14.c: Likewise.
34274         * elf/tst-tlsmod11.c: Likewise.
34275         * elf/tst-tlsmod12.c: Likewise.
34276         * elf/tst-tlsmod13.c: Likewise.
34277         * elf/tst-tlsmod13a.c: Likewise.
34278         * elf/tst-tlsmod14a.c: Likewise.
34279         * elf/tst-tlsmod15b.c: Likewise.
34280         * elf/tst-tlsmod16a.c: Likewise.
34281         * elf/tst-tlsmod16b.c: Likewise.
34282         * elf/tst-tlsmod7.c: Likewise.
34283         * elf/tst-tlsmod8.c: Likewise.
34284         * elf/tst-tlsmod9.c: Likewise.
34285         * gmon/gmon.c: Likewise.
34286         * grp/fgetgrent_r.c: Likewise.
34287         * grp/putgrent.c: Likewise.
34288         * hurd/fopenport.c: Likewise.
34289         * include/libc-symbols.h: Likewise.
34290         * include/tls.h: Likewise.
34291         * intl/gettextP.h: Likewise.
34292         * intl/loadinfo.h: Likewise.
34293         * locale/global-locale.c: Likewise.
34294         * locale/localeinfo.h: Likewise.
34295         * mach/devstream.c: Likewise.
34296         * malloc/arena.c: Likewise.
34297         * malloc/set-freeres.c: Likewise.
34298         * misc/err.c: Likewise.
34299         * misc/getttyent.c: Likewise.
34300         * misc/mntent_r.c: Likewise.
34301         * posix/getopt.c: Likewise.
34302         * posix/wordexp.c: Likewise.
34303         * pwd/fgetpwent_r.c: Likewise.
34304         * resolv/Versions: Likewise.
34305         * resolv/res_hconf.c: Likewise.
34306         * shadow/fgetspent_r.c: Likewise.
34307         * shadow/putspent.c: Likewise.
34308         * stdio-common/printf_fphex.c: Likewise.
34309         * stdio-common/tmpfile.c: Likewise.
34310         * stdlib/abort.c: Likewise.
34311         * stdlib/fmtmsg.c: Likewise.
34312         * sunrpc/auth_unix.c: Likewise.
34313         * sunrpc/clnt_perr.c: Likewise.
34314         * sunrpc/clnt_tcp.c: Likewise.
34315         * sunrpc/clnt_udp.c: Likewise.
34316         * sunrpc/clnt_unix.c: Likewise.
34317         * sunrpc/openchild.c: Likewise.
34318         * sunrpc/svc_simple.c: Likewise.
34319         * sunrpc/svc_tcp.c: Likewise.
34320         * sunrpc/svc_udp.c: Likewise.
34321         * sunrpc/svc_unix.c: Likewise.
34322         * sunrpc/xdr.c: Likewise.
34323         * sunrpc/xdr_array.c: Likewise.
34324         * sunrpc/xdr_rec.c: Likewise.
34325         * sunrpc/xdr_ref.c: Likewise.
34326         * sunrpc/xdr_stdio.c: Likewise.
34327
34328 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34329
34330         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34331
34332 2011-07-03  Andreas Jaeger  <aj@suse.de>
34333
34334         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
34335         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
34336         regenerate with gen-libm-tests.pl.
34337
34338 2010-05-12  Petr Baudis  <pasky@suse.cz>
34339
34340         [BZ #11589]
34341         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
34342         around j0() zero points by switching to j1().
34343         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
34344         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
34345         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
34346         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
34347
34348 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34349
34350         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
34351         instead of 0.
34352         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
34353         instead of 0.
34354         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
34355         Patch in part by Pavel Roskin <proski@gnu.org>.
34356
34357         [BZ #13138]
34358         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
34359         realloc.
34360         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
34361         Free memory block if necessary.
34362
34363         [BZ #12847]
34364         * libio/genops.c (INTDEF): For string streams the _lock pointer can
34365         be NULL.  Don't lock in this case.
34366
34367 2011-09-09  Roland McGrath  <roland@hack.frob.com>
34368
34369         * elf/elf.h (ELFOSABI_GNU): New macro.
34370         (ELFOSABI_LINUX): Define to that.
34371
34372 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
34373
34374         * string/strncat.c (strncat): Undef the symbol in case it has been
34375         defined in bits/string.h.
34376
34377 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34378
34379         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
34380
34381         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
34382         link map.
34383
34384 2011-08-17  Andreas Jaeger  <aj@suse.de>
34385
34386         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
34387
34388 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
34389             Ian Lance Taylor  <iant@google.com>
34390
34391         * math/libm-test.inc (lround_test): New testcase.
34392         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
34393
34394 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
34395
34396         * Makefile: Remove support for automatic cvs check-ins.
34397         * Makerules: Likewise.
34398         * config.make.in: Likewise.
34399         * configure.in: Likewise.
34400         * intl/Makefile: Likewise.
34401         * locale/Makefile: Likewise.
34402         * po/Makefile: Likewise.
34403         * posix/Makefile: Likewise.
34404         * sysdeps/gnu/Makefile: Likewise.
34405         * sysdeps/mach/hurd/Makefile: Likewise.
34406         * sysdeps/sparc/sparc32/Makefile: Likewise.
34407
34408         [BZ #13118]
34409         * posix/Makefile (bug-regex32-ENV): Define.
34410         Patch by John Stanley <jpsinthemix@verizon.net>.
34411
34412         * misc/Makefile (headers): Add bits/select2.h.
34413         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
34414         * misc/bits/select2.h: New file.
34415         * include/bits/select2.h: New file.
34416         * debug/Makefile (routines): Add fdelt_chk.
34417         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
34418         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
34419         FD_ISSET.
34420         * debug/fdelt_chk.c: New file.
34421
34422         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
34423         * wcsmbs/test-wmemcmp.c: Likewise.
34424         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
34425         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
34426
34427 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34428
34429         * string/Makefile (strop-tests): Add memcmp.
34430         * string/test-wmemcmp.c: New file.
34431         * string/test-memcmp.c: Add wmemcmp support.
34432
34433 2011-09-08  Roland McGrath  <roland@hack.frob.com>
34434
34435         [BZ #13153]
34436         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
34437         2011-07-19 change.
34438
34439         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
34440         garbage value in a __mach_port_mod_refs call in the cases of the
34441         task-self and thread-self ports.
34442
34443 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34444
34445         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
34446
34447 2011-09-08  Andreas Schwab  <schwab@redhat.com>
34448
34449         * elf/dl-load.c (lose): Check for non-null L.
34450
34451 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34452
34453         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
34454
34455         * elf/dl-libc.c (dlerror_run): Pass back error code from
34456         dl_catch_error.
34457
34458         [BZ #13123]
34459         * elf/dl-load.c (lose): Free l_origin if it is valid.
34460
34461         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
34462         names.
34463         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
34464         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34465         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34466         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34467         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
34468         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
34469
34470 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34471
34472         * sysdeps/powerpc/fpu/e_hypot.c: New file.
34473         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
34474         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
34475         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
34476         * sysdeps/powerpc/fpu/k_cosf.c: New file.
34477         * sysdeps/powerpc/fpu/k_sinf.c: New file.
34478         * sysdeps/powerpc/fpu/s_cosf.c: New file.
34479         * sysdeps/powerpc/fpu/s_sinf.c: New file.
34480         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
34481         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
34482
34483 2011-08-15  Alan Modra  <amodra@gmail.com>
34484
34485         [BZ #13092]
34486         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
34487         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
34488         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
34489         ppc_mcount to static-only-routines.
34490         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
34491         __mcount_internal.
34492         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
34493         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
34494
34495 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
34496
34497         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
34498         for finite and infinity parameters.
34499
34500 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
34501
34502         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
34503         and add nop instructions for throughput optimization.
34504         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34505
34506 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
34507
34508         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
34509         aligned copy for power7 with vector-scalar instructions.
34510         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
34511
34512 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
34513
34514         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
34515         AVX check.
34516
34517 2011-09-07  Andreas Schwab  <schwab@redhat.com>
34518
34519         [BZ #13144]
34520         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
34521         last change.
34522
34523 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34524
34525         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34526         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
34527         syscall wrapper around clock_gettime in __vdso_clock_gettime.
34528         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
34529         clock_gettime.
34530
34531 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34532
34533         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
34534         Forgot to demangle the pointer.
34535
34536         * sysdeps/i386/sysdep.h: Define atom_text_section.
34537         * sysdeps/x86_64/sysdep.h: Likewise.
34538         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
34539         section with atom_text_section.
34540         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34541         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34542         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
34543         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34544         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
34545
34546         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
34547         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
34548         already be defined.  Change to take two parameters and don't assign
34549         result to variable.  Adjust all users.
34550         Define INTERNAL_GETTIME if not already defined.
34551         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
34552         call.
34553         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
34554         HAVE_CLOCK_GETTIME_VSYSCALL.
34555         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
34556
34557         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
34558         gettimeofday vsyscall, just use time.
34559
34560 2011-09-06  Andreas Schwab  <schwab@redhat.com>
34561
34562         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
34563         <errno.h>.
34564
34565 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34566
34567         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
34568         syscall on x86-64.
34569         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
34570         syscall.
34571         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34572         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
34573         syscall if possible.
34574
34575 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34576
34577         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
34578         e_ident.  Don't pass to find_mapsXX.
34579         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
34580
34581 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34582
34583         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34584         strchr-sse2-no-bsf strrchr-sse2-no-bsf
34585         * sysdeps/x86_64/multiarch/strchr.S: Update.
34586         Check bit_slow_BSF bit.
34587         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
34588         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
34589         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
34590
34591 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34592
34593         [BZ #13134]
34594         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
34595         before glibc 2.15.
34596         (tryshell): Define.
34597         (__spawni): Change last parameter to be flag.  Test
34598         SPAWN_XFLAGS_USE_PATH flag to use path or not.
34599         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
34600         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
34601         * posix/spawni.c: Likewise.
34602         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
34603         * posix/spawnp.c: Likewise.  Change normal version to use
34604         SPAWN_XFLAGS_USE_PATH.
34605         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
34606         SPAWN_XFLAGS_TRY_SHELL.
34607
34608         [BZ #13150]
34609         * posix/glob.h: Remove gcc 1.x support.
34610
34611         [BZ #13068]
34612         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
34613
34614 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34615
34616         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34617         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
34618         strrchr-sse2-bsf
34619         * sysdeps/i386/i686/multiarch/strchr.S: New file.
34620         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
34621         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
34622         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
34623         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
34624         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
34625
34626 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34627
34628         * sysdeps/x86_64/wcscmp.S: New file.
34629
34630         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
34631         wcscmp-c wcscmp-sse2
34632         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
34633         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
34634         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
34635         * wcsmbs/wcscmp.c: Allow renaming.
34636
34637 2011-09-05  David S. Miller  <davem@davemloft.net>
34638
34639         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
34640         stack slot, rather than the struct return pointer slot.
34641         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
34642         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
34643         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
34644         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
34645
34646 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34647
34648         * po/ja.po: Update from translation team.
34649
34650         [BZ #13144]
34651         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
34652         kernel in 64-bit binaries.
34653
34654 2011-09-01  David S. Miller  <davem@davemloft.net>
34655
34656         * elf/elf.h (HWCAP_SPARC_*): Move to..
34657         * sysdeps/sparc/sysdep.h: this new file and add new values.
34658         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
34659         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
34660         _DL_HWCAP_COUNT to 24.
34661         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34662         entries.
34663         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
34664         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
34665         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
34666         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
34667         instead of magic constants.
34668         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34669
34670 2011-08-31  David S. Miller  <davem@davemloft.net>
34671
34672         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
34673         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
34674         Reimplement to do errno handling inline.
34675         (SYSCALL_ERROR_HANDLER): New macro.
34676         (__SYSCALL_STRING): Do not do errno handling in asm.
34677         (__CLONE_SYSCALL_STRING): Delete.
34678         (__INTERNAL_SYSCALL_STRING): Delete.
34679         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
34680         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
34681         (PSEUDO): Reimplement to do errno handling inline.
34682         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
34683         (SYSCALL_ERROR_HANDLER): New macro.
34684         (__SYSCALL_STRING): Do not do errno handling in asm.
34685         (__CLONE_SYSCALL_STRING): Delete.
34686         (__INTERNAL_SYSCALL_STRING): Delete.
34687         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
34688         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
34689         i386.
34690         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
34691         (inline_syscall*): Add 'err' argument.
34692         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
34693         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
34694         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
34695         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
34696
34697         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
34698         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34699
34700 2011-08-30  Andreas Schwab  <schwab@redhat.com>
34701
34702         * elf/rtld.c (dl_main): Relocate objects in dependency order.
34703
34704 2011-08-29  Jiri Olsa <jolsa@redhat.com>
34705
34706         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
34707         directive.
34708
34709 2011-08-24  David S. Miller  <davem@davemloft.net>
34710
34711         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
34712
34713 2011-08-24  Andreas Schwab  <schwab@redhat.com>
34714
34715         * elf/Makefile: Add rules to build and run unload8 test.
34716         * elf/unload8.c: New file.
34717         * elf/unload8mod1.c: New file.
34718         * elf/unload8mod1x.c: New file.
34719         * elf/unload8mod2.c: New file.
34720         * elf/unload8mod3.c: New file.
34721
34722         * elf/dl-close.c (_dl_close_worker): Reset private search list if
34723         it wasn't used.
34724
34725 2011-08-23  David S. Miller  <davem@davemloft.net>
34726
34727         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
34728         subtract stack bias.
34729         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
34730         %sp not %fp in calculations.
34731         (_JMPBUF_UNWINDS_ADJ): Likewise.
34732
34733         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
34734         (aio_suspend): Call it to force an exception region around the
34735         AIO_MISC_WAIT() invocation.
34736
34737 2011-08-23  Andreas Schwab  <schwab@redhat.com>
34738
34739         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
34740         backslash.
34741
34742 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
34743
34744         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
34745         protection macro.
34746         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
34747         and <dl-machine.h>.
34748         (Elf64_FuncDesc): Remove.
34749
34750 2011-08-22  David S. Miller  <davem@davemloft.net>
34751
34752         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
34753         sigaltstack check, add missing cfi directives.
34754         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
34755         missing cfi directives, and sigaltstack handling.
34756
34757 2011-08-16  Andreas Schwab  <schwab@redhat.com>
34758
34759         [BZ #11724]
34760         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
34761         object is seen twice.
34762         * elf/dl-fini.c (_dl_sort_fini): Likewise.
34763
34764         * elf/Makefile (distribute): Add tst-initorder2.c.
34765         (tests): Add tst-initorder2.
34766         (modules-names): Add tst-initorder2a tst-initorder2b
34767         tst-initorder2c tst-initorder2d.  Add rules to build them.
34768         ($(objpfx)tst-initorder2.out): New rule.
34769         * elf/tst-initorder2.c: New file.
34770         * elf/tst-initorder2.exp: New file.
34771
34772 2011-08-22  Andreas Schwab  <schwab@redhat.com>
34773
34774         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
34775
34776         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
34777         dependencies back to end of function.
34778
34779         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34780         $(elfobjdir)/ld.so.
34781
34782 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
34783
34784         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
34785         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
34786         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
34787         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
34788         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
34789         of __vdso_gettimeofday.
34790         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
34791         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
34792         attribute_hidden.
34793         (_libc_vdso_platform_setup): Remove initialization of
34794         __vdso_gettimeofday and __vdso_time.
34795
34796 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34797
34798         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
34799         and fgetc_unlocked.
34800         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
34801         getc_unlocked.
34802
34803         * elf/dl-open.c (add_to_global): Report additions to the global scope
34804         for LD_DEBUG=scopes.
34805         (dl_open_worker): Also print scope of newly loaded dependencies.
34806         (_dl_show_scope): Indicate if there is no scope.
34807
34808         [BZ #13114]
34809         * stdio-common/Makefile (tests): Add bug24.
34810         * stdio-common/bug24.c: New file.
34811
34812 2011-08-19  Andreas Jaeger  <aj@suse.de>
34813
34814         [BZ #13114]
34815         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
34816         non-existant file when using close-on-exec mode.
34817
34818 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34819
34820         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
34821         the very first instruction.
34822
34823         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
34824         the CFI state in the end.
34825         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
34826         inclusion of dl-trampoline.h.
34827         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
34828
34829 2011-08-19  Andreas Schwab  <schwab@redhat.com>
34830
34831         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
34832         expectations for long double.
34833
34834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
34835         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
34836
34837 2011-08-14  David S. Miller  <davem@davemloft.net>
34838
34839         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
34840         artificual limit depends upon the system page size.
34841
34842 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34843
34844         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
34845         * resolv/Makefile: Define CFLAGS-libresolv.
34846
34847 2011-08-17  Andreas Schwab  <schwab@redhat.com>
34848
34849         * nss/makedb.c (compute_tables): Make variables used in nested
34850         function static.
34851
34852 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34853
34854         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
34855         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
34856         if buffer was too small.
34857
34858         * elf/pldd.c (main): Attach to all threads in the process.
34859         Rewrite /proc handling to use *at functions.
34860
34861 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
34862
34863         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
34864         specifies first scope to show.
34865         (dl_open_worker): Update callers.  Move printing scope of new
34866         object to before the relocation.
34867         * elf/rtld.c (dl_main): Update _dl_show_scope call.
34868         * sysdeps/generic/ldsodefs.h: Update declaration.
34869
34870         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
34871         string for the scope number.
34872
34873 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
34874
34875         * nscd/servicescache.c (cache_addserv): Make sure written is always
34876         initialized.
34877
34878 2011-08-14  Roland McGrath  <roland@hack.frob.com>
34879
34880         * sysdeps/i386/i486/bits/atomic.h
34881         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
34882         statement expression, so as to suppress "set but not used" warning.
34883         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
34884
34885         * string/strncat.c (STRNCAT): Use prototype definition.
34886
34887         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
34888         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
34889         -Iprograms here.
34890         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
34891         (localedef-modules): Add localedef.
34892         (locale-modules): Add locale.
34893
34894         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
34895         * elf/rtld.c (dl_main): Invert order of assignment in last change,
34896         to avoid a warning.
34897
34898 2011-08-14  David S. Miller  <davem@davemloft.net>
34899
34900         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
34901         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
34902
34903 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
34904
34905         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
34906         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
34907         * elf/rtld.c (dl_main): Set l_name of vDSO.
34908         Call _dl_show_scope when DL_DEBUG_SCOPES.
34909         (process_dl_debug): Recognize scopes flag and also set it for all.
34910         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
34911         Declare _dl_show_scope.
34912
34913         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
34914         (do_dlopen): Pass caller_dlopen to dl_open.
34915         (__libc_dlopen_mode): Initialize caller_dlopen.
34916
34917         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
34918         of libc.  Make tolower call locale-independent.  Optimize a bit by
34919         using isdigit instead of isalnum.
34920         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
34921
34922 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
34923
34924         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
34925         was a dependency or dynamically loaded.
34926
34927 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
34928
34929         * intl/l10nflist.c: Allow architecture-specific pop function.
34930         * sysdeps/x86_64/l10nflist.c: New file.
34931
34932         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
34933         classification.
34934
34935 2011-08-10  Andreas Schwab  <schwab@redhat.com>
34936
34937         * include/dirent.h: Add libc_hidden_proto for scandirat and
34938         scandirat64.  Don't declare __scandirat64.
34939         * dirent/scandirat.c: Add libc_hidden_def.
34940         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
34941         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
34942
34943 2011-08-10  David S. Miller  <davem@davemloft.net>
34944
34945         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
34946         enum.
34947         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34948         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34949         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34950
34951 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
34952
34953         * Versions.def [libc]: Add GLIBC_2.15.
34954         * dirent/Makefile (routines): Add scandirat and scandirat64.
34955         * dirent/Versions [libc]: Export scandirat and scandirat64 for
34956         GLIBC_2.15.
34957         * dirent/dirent.h: Declare scandirat and scandirat64.
34958         * dirent/scandirat.c: New file.
34959         * dirent/scandirat64.c: New file.
34960         * sysdeps/wordsize-64/scandirat.c: New file.
34961         * sysdeps/wordsize-64/scandirat64.c: New file.
34962         * dirent/opendir.c: Define opendirat.
34963         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
34964         using scandirat.
34965         * dirent/scandir64.c: Adjust for scandir.c change.
34966         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
34967         __scandirat64, and __scandir_cancel_handler.
34968         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
34969         additional parameter and use openat instead of open (outside of ld.so).
34970         Add new __opendir as wrapper around __opendirat.
34971         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
34972         here without requiring old scandirat implementation.
34973
34974 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
34975
34976         * dirent/scandir.c (cancel_handler): Renamed to
34977         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
34978         defined.  Adjust users.
34979         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
34980         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
34981
34982 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
34983
34984         * string/test-string.h (IMPL): Use __STRING to expand name and then
34985         stringify it.
34986
34987         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
34988         of cleanups.
34989
34990 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34991
34992         * string/Makefile: Update.
34993         (strop-tests): Append strncat.
34994         * string/test-wcscmp.c: New file.
34995         New comprehensive test for wcscmp.
34996         * string/test-strcmp.c: Update.
34997         (WIDE): New define.
34998
34999 2011-07-22  Andreas Schwab  <schwab@redhat.com>
35000
35001         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
35002         line.
35003
35004 2011-07-26  Andreas Schwab  <schwab@redhat.com>
35005
35006         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
35007         encoding to ACE if AI_IDN.
35008
35009 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
35010
35011         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
35012         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
35013
35014 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35015
35016         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
35017         Fix overflow bug in strncat.
35018         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
35019
35020         * string/test-strncat.c: Update.
35021         Add new tests for checking overflow bugs.
35022
35023 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35024
35025         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35026         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
35027         * sysdeps/i386/i686/multiarch/strcat.S: New file.
35028         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
35029         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
35030         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
35031         * sysdeps/i386/i686/multiarch/strncat.S: New file.
35032         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
35033         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
35034
35035         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
35036         (USE_AS_STRCAT): Define.
35037         Add strcat and strncat support.
35038         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
35039
35040 2011-07-25  Andreas Schwab  <schwab@redhat.com>
35041
35042         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
35043         __n bigger than INT_MAX+1.
35044         (__strncmp_g): Likewise.
35045
35046 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
35047
35048         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
35049         * libio/stido.h: Likewise.
35050
35051         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
35052         (AF_NFC): Define.
35053         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
35054         (AF_NFC): Define.
35055
35056         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
35057         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35058         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35059         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35060         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35061
35062         [BZ #13021]
35063         * scripts/test-installation.pl: Don't expect libnss_test1 to be
35064         installed.
35065
35066         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
35067         typo.
35068         (_dl_x86_64_save_sse): Likewise.
35069
35070 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
35071
35072         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
35073         OSXSAVE.
35074         (_dl_x86_64_save_sse): Likewise.
35075
35076         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
35077
35078         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
35079
35080 2011-07-21  Andreas Schwab  <schwab@redhat.com>
35081
35082         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
35083         change.
35084         (_dl_x86_64_save_sse): Use correct AVX check.
35085
35086 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35087
35088         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
35089         bug in strncpy/strncat.
35090         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
35091
35092 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
35093
35094         * string/tester.c (test_strcat): Add tests for different alignments
35095         of source and destination.
35096         (test_strncat): Likewise.
35097
35098 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35099
35100         [BZ #12852]
35101         * posix/glob.c (glob): Check passed in values before using them in
35102         expressions to avoid some overflows.
35103         (glob_in_dir): Likewise.
35104
35105         [BZ #13007]
35106         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
35107         check for AVX enablement so that we don't crash with old kernels and
35108         new hardware.
35109         * elf/tst-audit4.c: Add same checks here.
35110         * elf/tst-audit6.c: Likewise.
35111
35112         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
35113
35114 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
35115
35116         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
35117
35118 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35119
35120         * po/cs.po: Update from translation team.
35121         * po/bg.po: Likewise.
35122
35123 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
35124
35125         * misc/sys/cdefs.h: Add support for const attribute.
35126         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
35127         to gnu_dev_{major,minor,makedev} functions.
35128
35129 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
35130
35131         * intl/dcigettext.c (get_output_charset): Add missing bracket.
35132
35133 2011-07-20  Andreas Schwab  <schwab@redhat.com>
35134
35135         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
35136         strlen results.
35137
35138 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35139
35140         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
35141         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
35142         register in order to avoid conflicts with the soft frame pointer
35143         being held in r11 when necessary.
35144         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
35145         (INTERNAL_VSYSCALL_NCS): Likewise.
35146
35147 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
35148
35149         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
35150         * elf/dl-fini.c (_dl_fini): Adjust caller.
35151         * elf/dl-close.c (_dl_close_worker): Likewise.
35152         * sysdeps/generic/ldsodefs.h: Adjust declaration.
35153
35154 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35155
35156         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
35157         "aux_cache->nlibs < 0".
35158
35159         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
35160         in the reload-count case.
35161
35162 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35163
35164         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35165         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
35166         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
35167         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
35168         * sysdeps/x86_64/multiarch/strcat.S: New file.
35169         * sysdeps/x86_64/multiarch/strncat.S: New file.
35170         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
35171         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
35172         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
35173         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
35174         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
35175         (USE_AS_STRCAT): Define.
35176         Add strcat and strncat support.
35177         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
35178         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
35179         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
35180         * string/strncat.c: Update.
35181         (USE_AS_STRNCAT): Define.
35182         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35183         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
35184         and i7.
35185         * sysdeps/x86_64/multiarch/init-arch.h
35186         (bit_Prefer_PMINUB_for_stringop): New.
35187         (index_Prefer_PMINUB_for_stringop): Likewise.
35188         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
35189         bit_Prefer_PMINUB_for_stringop.
35190
35191 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35192
35193         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
35194         buffer64.
35195         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
35196         of casting of buffer.
35197         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
35198         buffer32 and buffer64.
35199         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
35200         writes instead of casting of buffer.
35201         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
35202         buffer32.
35203         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
35204         casting of buffer.
35205
35206 2011-07-19  Andreas Schwab  <schwab@redhat.com>
35207
35208         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
35209
35210 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35211
35212         * nscd/nscd.c (termination_handler): Don't do anything for a database
35213         if it has not yet been initialized.
35214
35215 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35216
35217         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35218
35219 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35220
35221         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35222
35223 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35224
35225         * po/nl.po: Update from translation team.
35226         * po/sv.po: Likewise.
35227
35228 2011-07-16  Roland McGrath  <roland@hack.frob.com>
35229
35230         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
35231         now disallowed by GCC.
35232
35233         * configure.in (use-default-link): Default to yes if a test -shared
35234         link meets our qualifications.
35235         * configure: Regenerated.
35236
35237         * config.make.in (output-format): New variable.
35238         * configure.in: Check for ld --print-output-format support.
35239         * configure: Regenerated.
35240         * Makerules ($(common-objpfx)format.lds)
35241         [$(output-format) != unknown]: Just use $(output-format),
35242         instead of the linker-script munging.
35243
35244 2011-07-14  Roland McGrath  <roland@hack.frob.com>
35245
35246         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
35247         of $(common-objpfx)shlib.lds.
35248         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
35249
35250         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
35251         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
35252
35253         * configure.in (-z relro check): Adjust test code to add a large
35254         writable data section after it.
35255         * configure: Regenerated.
35256
35257 2011-07-11  Roland McGrath  <roland@hack.frob.com>
35258
35259         * configure.in (-z relro check): Fix test code to make the variable
35260         truly const.
35261         * configure: Regenerated.
35262
35263 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
35264
35265         * nscd/nscd.h (struct traced_file): Define.
35266         (struct database_dyn): Remove inotify_descr, reset_res, and filename
35267         elements.  Add traced_files.
35268         (inotify_fd): Declare.
35269         (register_traced_file): Declare.
35270         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
35271         (inotify_fd): Export.
35272         (resolv_conf_descr): Remove.
35273         (nscd_init): Move inotify descriptor creation to main.
35274         Don't register files for notification here.
35275         (register_traced_file): New function.
35276         (invalidate_cache): Don't use reset_res to determine whether to call
35277         res_init, go through the list of registered files.
35278         (main_loop_poll): The inotify descriptors are now stored in the
35279         structures for the traced files.
35280         (main_loop_epoll): Likewise
35281         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
35282         to __nss_disable_nscd.
35283         * nscd/cache.c (prune_cache): There is no single inotify descriptor
35284         for a database anymore.  Check the records for all the registered
35285         files instead.
35286         * nss/Makefile (libnss_files-routines): Add files-init.
35287         (libnss_db-routines): Add db-init.
35288         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
35289         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
35290         * nss/nss_db/db-init.c: New file.
35291         * nss/nss_files/files-init.c: New file.
35292         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
35293         __nss_lookup_function.
35294         (__nss_lookup_function): Call nss_load_library.
35295         (nss_load_all_libraries): New function.
35296         (__nss_disable_nscd): Take parameter with callback function for files
35297         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
35298         used for the cached services.
35299         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
35300         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
35301         options for features to all the files in nscd.
35302
35303         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
35304
35305 2011-07-10  Roland McGrath  <roland@hack.frob.com>
35306
35307         * csu/elf-init.c (__libc_csu_init): Comment typo.
35308
35309 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
35310
35311         * po/pl.po: Update from translation team.
35312         * po/ja.po: Likewise.
35313         * po/ru.po: Likewise.
35314         * po/ko.po: Likewise.
35315         * po/fr.po: Likewise.
35316
35317 2011-07-09  Roland McGrath  <roland@hack.frob.com>
35318
35319         * configure.in (.ctors/.dtors header and trailer check):
35320         Use an empirical test on a built program.
35321         * configure: Regenerated.
35322
35323         * configure.in (-z relro check): Use an empirical test on a built DSO.
35324         Detect, but do not require, on ia64.
35325         * configure: Regenerated.
35326
35327         * configure.in (READELF): Find it with AC_CHECK_TOOL.
35328         Update tests that use readelf to use $READELF instead.
35329         * configure: Regenerated.
35330
35331 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
35332
35333         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
35334         if the result is not used.
35335
35336 2011-07-05  Andreas Jaeger  <aj@suse.de>
35337
35338         [BZ#9696]
35339         * stdlib/tst-strtod.c: Add testcase.
35340
35341 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35342
35343         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
35344         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
35345         The latter has a higher limit.  Take additional parameter to pass to
35346         the new function.
35347         (__pathconf): Pass file to __statfs_link_max.
35348         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
35349         __statfs_link_max.
35350         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
35351         __statfs_link_max.
35352
35353         [BZ #12868]
35354         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
35355         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35356         Handle Lustre.
35357         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
35358         (__statfs_filesize_max): Likewise.
35359         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
35360
35361 2011-07-05  Andreas Jaeger  <aj@suse.de>
35362
35363         * resolv/res_comp.c (dn_skipname): Remove unused variable.
35364
35365 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
35366
35367         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
35368         `status' variable.
35369         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
35370         Likewise.
35371
35372 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35373
35374         * Makefile (strop-tests): Add strncat.
35375         * string/test-strncat.c: New file.
35376
35377 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
35378
35379         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
35380
35381 2011-06-21  Andreas Jaeger  <aj@suse.de>
35382
35383         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
35384         Copy rule from iconvdata/Makefile.
35385
35386 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35387
35388         [BZ #12922]
35389         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
35390         but no long options are defined, just return 'W'.
35391
35392 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
35393
35394         [BZ #9696]
35395         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
35396
35397 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35398
35399         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
35400         netgroups to read.
35401         (innetgr): Likewise.
35402
35403 2011-07-05  Roland McGrath  <roland@hack.frob.com>
35404
35405         * config.make.in (install_root): Default to $(DESTDIR).
35406
35407 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
35408
35409         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
35410
35411 2011-07-02  Roland McGrath  <roland@hack.frob.com>
35412
35413         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
35414
35415         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
35416         containing directory rather than embedding absolute directory names.
35417
35418         * scripts/check-local-headers.sh: Rewritten using awk.
35419         Match by word, not by line.  Print error messages for matches.
35420         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
35421
35422         * Makerules [shlib-lds-flags empty]:
35423         ($(common-objpfx)libc_pic.opts): New target.
35424         ($(common-objpfx)libc_pic.os.clean): New target.
35425         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
35426
35427         * config.make.in (OBJCOPY): New variable.
35428         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
35429         * configure: Regenerated.
35430
35431         * config.make.in (use-default-link): New variable.
35432         * configure.in (use_default_link): Grok --with-default-link to set it.
35433         * configure: Regenerated.
35434         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
35435         (shlib-lds, shlib-lds-flags): Define to empty.
35436
35437         * Makerules (shlib-lds): New variable.
35438         (shlib-lds-flags): New variable.
35439         (build-shlib, build-moduile, build-module-asneeded): Use it.
35440         ($(common-objpfx)libc.so): Use $(shlib-lds).
35441         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
35442         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
35443
35444         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
35445         DT_FLAGS/DT_FLAGS_1 with zero flags.
35446
35447         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
35448         linker script munging.
35449
35450 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
35451
35452         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
35453         as 128-bit value.
35454         * crypt/sha512.c (sha512_process_block): Perform total addition using
35455         128-bit if possible.
35456         (__sha512_finish_ctx): Likewise.
35457         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
35458         as 64-bit value.
35459         * crypt/sha256.c (SWAP64): Define.
35460         (sha256_process_block): Perform total addition using 64-bit if
35461         possible.
35462         (__sha256_finish_ctx): Likewise.
35463
35464 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
35465
35466         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
35467         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35468         * nscd/hstcache.c (cache_addhst): Likewise.
35469         * nscd/grpcache.c (cache_addgr): Likewise.
35470         * nscd/aicache.c (addhstaiX): Likewise
35471         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
35472
35473 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
35474
35475         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
35476         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35477         * nscd/hstcache.c (cache_addhst): Likewise.
35478         * nscd/grpcache.c (cache_addgr): Likewise.
35479         * nscd/aicache.c (addhstaiX): Likewise
35480
35481 2011-07-01  Andreas Schwab  <schwab@redhat.com>
35482
35483         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
35484         domain only when needed.
35485
35486 2011-06-30  Andreas Schwab  <schwab@redhat.com>
35487
35488         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
35489         is always restored.
35490
35491 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
35492
35493         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
35494         are re-adding the entry.
35495         * nscd/servicescache.c (cache_addserv): Likewise.
35496
35497 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
35498
35499         * sysdeps/generic/dl-irel.h: fix protection against multiple
35500         inclusions.
35501         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
35502
35503 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
35504
35505         [BZ #12935]
35506         * malloc/memusage.sh: Fix quoting in message.
35507         * debug/xtrace.sh: Likewise.
35508
35509         * configure.in: Remove support for --experimental-malloc option, make
35510         it the default.
35511         * config.make.in: Likewise.
35512         * malloc/Makefile: Likewise.
35513
35514 2011-06-27  Andreas Schwab  <schwab@redhat.com>
35515
35516         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
35517         two-byte characters.
35518
35519 2011-06-27  Roland McGrath  <roland@hack.frob.com>
35520
35521         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
35522         AC_CACHE_CHECK invocation.
35523         * configure: Regenerated.
35524
35525         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
35526
35527 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
35528
35529         [BZ #12350]
35530         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
35531         bit from old_res_options.
35532
35533         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
35534
35535         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
35536         value type for setfct.
35537
35538 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
35539
35540         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35541         __gettimeofday instead of gettimeofday.
35542
35543 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
35544
35545         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
35546
35547 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
35548
35549         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
35550
35551         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
35552         info.
35553
35554 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35555
35556         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35557         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35558         strcpy-sse2-unaligned strncpy-sse2-unaligned
35559         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
35560         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
35561         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
35562         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
35563         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
35564         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
35565         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
35566         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
35567         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
35568         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
35569         (STRCPY): Support SSE2 and SSSE3 versions.
35570
35571 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
35572
35573         [BZ #12874]
35574         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
35575         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
35576         kernels which artificially limit size of requests.
35577
35578 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35579
35580         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35581         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35582         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
35583         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
35584         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
35585         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
35586         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
35587         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
35588         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
35589         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
35590         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
35591         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
35592         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
35593         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
35594         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
35595         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35596         Enable unaligned load optimization for Intel Core i3, i5 and i7
35597         processors.
35598         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
35599         Define.
35600         (index_Fast_Unaligned_Load): Define.
35601         (HAS_FAST_UNALIGNED_LOAD): Define.
35602
35603 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
35604
35605         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
35606
35607 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35608
35609         [BZ #12907]
35610         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
35611         until it is clear that the information is realy needed.
35612         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
35613
35614 2011-06-22  Andreas Schwab  <schwab@redhat.com>
35615
35616         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
35617
35618 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35619
35620         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35621         /sys/devices/system/cpu/online if it is usable.
35622
35623         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
35624         reading the information from the /proc filesystem to once a second.
35625
35626 2011-06-21  Andreas Jaeger  <aj@suse.de>
35627
35628         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
35629         NULL after inclusion of kernel headers.
35630
35631 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
35632
35633         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
35634         calls to internal_setent.
35635
35636         [BZ #12885]
35637         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
35638         addresses using gethostbyname4_r ignore IPv4 addresses.
35639
35640         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
35641         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
35642
35643         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
35644
35645 2011-06-20  David S. Miller  <davem@davemloft.net>
35646
35647         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
35648         inclusions.
35649         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
35650
35651         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
35652         (elf_irel): Use it.
35653         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
35654         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
35655         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
35656         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
35657         * sysdeps/x86_64/dl-irel.h: Likewise.
35658
35659         * elf/dl-runtime.c: Use elf_ifunc_invoke.
35660         * elf/dl-sym.c: Likewise.
35661
35662 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35663
35664         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
35665         need to dereference resplen2.
35666
35667 2011-06-14  Andreas Schwab  <schwab@redhat.com>
35668
35669         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
35670
35671 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35672
35673         * Makeconfig: Define vardbdir and inst_vardbdir.
35674         * nss/Makefile: Add rules to install db-Makefile.
35675
35676         * nss/nss_db/db-XXX.c: Cleanup.
35677
35678         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
35679         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
35680         GLIBC_PRIVATE.
35681         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
35682         * nss/makedb.c: Implement -g option to specify that value strings
35683         are generated and should not be added to table iterated over for
35684         get*ent calls.
35685         * nss/nss_db/db-initgroups.c: New file.
35686
35687         * nss/getent.c: Add support for initgroups lookups through getgrouplist
35688         interface.
35689
35690         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
35691         (internal_getgrouplist): Adjust to name change.
35692         Update use_initgroups_entry if this is not the first call.
35693         * nss/databases.def: Add initgroups entry.
35694
35695         * nss/makedb.c (compute_tables): Check result of multiple hash table
35696         sizes to minimize maximum chain length.
35697
35698 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
35699
35700         * Versions.def: Add entry for libnss_db.
35701         * shlib-versions: Likewise.
35702         * nss/Makefile: Add rules to build libnss_db.
35703         * nss/Versions: Add libnss_db information.  Organize libnss_files
35704         entries better.
35705         * nss/db-Makefile: Add gshadow support.  Change rules for the new
35706         makedb progra.  Some minor improvements to generate smaller files.
35707         * nss/nss_db/nss_db.h: Move NSS database header data structures to
35708         here from...
35709         * nss/makedb.c: ...here.
35710         Improve database format to be smaller and require less memory at
35711         runtime.
35712         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
35713         db anymore.
35714         * nss/nss_db/db-netgrp.c: Likewise.
35715         * nss/nss_db/db-open.c: Likewise.
35716         * nss/nss_files/flies-XXX.x: Adjust comments.
35717         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
35718         * nss/nss_files/files-grp.c: Likewise.
35719         * nss/nss_files/files-hosts.c: Likewise.
35720         * nss/nss_files/files-network.c: Likewise.
35721         * nss/nss_files/files-proto.c: Likewise.
35722         * nss/nss_files/files-pwd.c: Likewise.
35723         * nss/nss_files/files-rpc.c: Likewise.
35724         * nss/nss_files/files-service.c: Likewise.
35725         * nss/nss_files/files-sgrp.c: Likewise.
35726         * nss/nss_files/files-spwd.c: Likewise.
35727         * nss/nss_db/db-alias.c: Removed.
35728         * nss/nss_db/dummy-db.h: Removed.
35729
35730 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
35731
35732         * nss/makedb.c: Rewritten to not use database library.
35733         * nss/Makefile: Update to build new makedb program.
35734
35735 2011-06-14  Andreas Jaeger  <aj@suse.de>
35736
35737         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
35738         memset declaration.
35739
35740 2011-06-10  Andreas Schwab  <schwab@redhat.com>
35741
35742         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
35743         tmpbuf.
35744
35745 2011-06-10  Roland McGrath  <roland@hack.frob.com>
35746
35747         * Makerules (shlib.lds): Fail if the linker script comes out empty.
35748         * elf/Makefile ($(objpfx)ld.so): Likewise.
35749
35750         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
35751         Don't list ld.so twice in dependencies.
35752
35753         * posix/bug-regex31.c: Include <stdlib.h>.
35754
35755         * nscd/hstcache.c (cache_addhst): Remove unused variable.
35756
35757         * nis/nss_compat/compat-spwd.c
35758         (getspent_next_nss_netgr): Remove unused variable.
35759         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
35760
35761         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
35762         nonmembers" output to use the right array.
35763
35764         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
35765
35766         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
35767
35768         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
35769         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
35770         * catgets/gencat.c (read_input_file): Likewise.
35771         * locale/programs/locarchive.c (enlarge_archive): Likewise.
35772
35773         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
35774         variable definition inside #if's controlling its use.
35775
35776         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
35777
35778         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
35779
35780         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
35781
35782         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
35783         unreachable code.
35784
35785         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
35786
35787         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
35788         * configure: Regenerated.
35789
35790         * Makerules: Revert last change.
35791         * elf/Makefile: Likewise.
35792
35793 2011-06-09  Roland McGrath  <roland@hack.frob.com>
35794
35795         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
35796         * elf/Makefile ($(objpfx)librtld.os): Likewise.
35797         (reloc-link): Likewise.
35798
35799 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
35800
35801         * elf/Makefile: Add rules to build pldd.
35802         * elf/pldd.c: New file.
35803         * elf/pldd-xx.c: New file.
35804
35805 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
35806
35807         * version.h: Update for 2.15 development version.
35808
35809 2011-06-07  David S. Miller  <davem@davemloft.net>
35810
35811         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
35812         ifuncs.
35813         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
35814         elf_machine_lazy_rel): Likewise.
35815         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
35816         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
35817         elf_machine_lazy_rel): Likewise.
35818         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
35819         dl_hwcap via passed in argument.
35820         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
35821         Likewise.
35822
35823 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35824
35825         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
35826
35827 2011-06-06  Roland McGrath  <roland@hack.frob.com>
35828
35829         [BZ #12849]
35830         * manual/fdl-1.1.texi: New file, verbatim from:
35831         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
35832         * manual/lgpl-2.1.texi: New file, verbatim from:
35833         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
35834         * manual/Makefile (licenses): New variable, list those new file names.
35835         (texis): Use it.
35836         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
35837
35838         * manual/fdl.texi: File removed.
35839         * manual/lesser.texi: File removed.
35840         * manual/libc.texinfo (Copying, Documentation License):
35841         Use new @include file names, put @appendix directive before @include.
35842
35843 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
35844
35845         [BZ #12841]
35846         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
35847         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
35848         (mq_open): Add __NTH.
35849
35850 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
35851
35852         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35853         Assume Intel Core i3/i5/i7 processor if AVX is available.
35854
35855 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35856
35857         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
35858         typo.
35859
35860 2011-05-31  Andreas Schwab  <schwab@redhat.com>
35861
35862         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
35863         memory.  Use alloca_account.  Fix memory leak when retrying.
35864
35865 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35866
35867         * version.h (RELEASE): Bump for 2.14 release.
35868         * include/features.h (__GLIBC_MINOR__): Bump to 14.
35869
35870         * config.make.in (RANLIB): Remove entry.
35871
35872 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
35873
35874         * po/Makefile (po-sed-cmd): Add ksh to extensions.
35875         (libc.pot): Work around missing support for .ksh extension in xgettext.
35876
35877         [BZ #12684]
35878         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
35879         if both request failed.
35880         (send_dg): In case of server errors clear resplen or *resplen2.
35881
35882         [BZ #12454]
35883         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
35884         when there are multiple maps.
35885         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
35886         (_dl_fini): Remove test here.
35887
35888         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
35889
35890 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
35891
35892         [BZ #12350]
35893         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
35894         bit from old_res_options.
35895         (gaih_inet): Likewise.
35896
35897         [BZ #11099]
35898         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
35899         as signed.
35900
35901         * resolv/res_init.c (res_setoptions): Make the code more compact.
35902
35903         [BZ #11558]
35904         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
35905         set RES_USEVC.
35906
35907         [BZ #11634]
35908         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
35909
35910         * malloc/malloc.h: Mark malloc hook variables as deprecated.
35911
35912         [BZ #11781]
35913         * malloc/malloc.h: Declare malloc hook variables as volatile.
35914
35915         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
35916         in last patch.
35917
35918         [BZ #11799]
35919         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
35920         raise in the comment.
35921         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
35922         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
35923         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
35924
35925 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
35926
35927         [BZ #12811]
35928         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
35929         grow the buffers more if it already has to be sufficient.
35930         (build_wcs_upper_buffer): Likewise.
35931         * posix/regexec.c (check_matching): Likewise.
35932         (clean_state_log_if_needed): Likewise.
35933         (extend_buffers): Don't enlarge buffers beyond size of the input
35934         buffer.
35935         Patches mostly by Emil Wojak <emil@wojak.eu>.
35936         * posix/bug-regex32.c: New file.
35937         * posix/Makefile (tests): Add bug-regex32.
35938
35939         * locale/findlocale.c (_nl_find_locale): Return right away if
35940         _nl_explode_name failed.
35941         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
35942
35943         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
35944
35945         * debug/xtrace.sh: Unify messages.
35946         * malloc/memusage.sh: Likewise.
35947
35948         [BZ #12813]
35949         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
35950         time symbol from vDSO.  Substitute with vsyscall if not available.
35951         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
35952         __vdso_time.
35953
35954         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
35955         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
35956         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
35957         Add sendmmsg and internal_sendmmsg.
35958         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
35959         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
35960         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
35961
35962         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
35963         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
35964         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
35965
35966 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
35967
35968         [BZ #12813]
35969         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
35970         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
35971         available.
35972         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
35973         __vdso_getcpu.
35974
35975         [BZ #12814]
35976         * iconvdata/Makefile (tests): Add bug-iconv9.
35977         * iconvdata/bug-iconv9.c: New file.
35978
35979 2011-05-27  Andreas Schwab  <schwab@redhat.com>
35980
35981         [BZ #12814]
35982         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
35983
35984 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
35985
35986         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35987         (struct user_regs_struct): Change intcs field back to cs.
35988
35989 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
35990
35991         * po/ja.po: Update from translation team.
35992
35993 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
35994
35995         [BZ #12795]
35996         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
35997         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
35998
35999 2011-05-20  Andreas Schwab  <schwab@redhat.com>
36000
36001         * stdlib/longlong.h: Update from GCC.
36002
36003 2011-05-23  Andreas Schwab  <schwab@redhat.com>
36004
36005         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
36006         parameter name.
36007         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
36008         Add parameter name.
36009         (__sysconf): Pass it down.
36010
36011 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
36012
36013         [BZ #12671]
36014         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
36015         some situations.
36016         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36017         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
36018         add in in __libc_use_alloca calls.  Adjust callers.
36019         (glob): Use malloc in some situations.
36020
36021         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
36022         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
36023         pltexit.
36024
36025 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
36026
36027         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
36028         and CLOCK_BOOTTIME_ALARM.
36029
36030         [BZ #12782]
36031         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
36032         is returned.
36033
36034         * string/_strerror.c (__strerror_r): Print negative errors as signed
36035         numbers.
36036
36037         [BZ #12777]
36038         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
36039         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
36040         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
36041
36042         * configure.in: Fix typo in redirection and correct removal of test
36043         files in two cases.
36044
36045         [BZ #12788]
36046         * locale/setlocale.c (new_composite_name): Fix test to check for
36047         identical name of all categories.
36048
36049         [BZ #12792]
36050         * libio/filedoalloc.c (local_isatty): New function.
36051         (_IO_file_doallocate): Use local_isatty.
36052         * stdio-common/perror.c (perror): In case a new stream is used
36053         forward the stream error.
36054         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
36055         error flag.
36056
36057 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
36058
36059         [BZ #11869]
36060         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
36061         alloca.
36062         * include/alloca.h (extend_alloca_account): Define.
36063
36064         [BZ #11857]
36065         * posix/regex.h: Fix comments with documentation of user-accessible
36066         fields after compilation and describe correct free'ing of pattern
36067         after re_compile_pattern.
36068         Patch by Reuben Thomas <rrt@sc3d.org>.
36069
36070 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
36071
36072         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
36073         and -mno-altivec to prevent the compiler from using Altivec and/or
36074         VSX instructions when the corresponding registers are not available.
36075
36076 2011-05-19  Andreas Schwab  <schwab@redhat.com>
36077
36078         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
36079
36080 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
36081
36082         * libio/freopen.c (freopen): Use __dup2, not dup2.
36083         * libio/freopen64.c (freopen64): Likewise.
36084
36085 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
36086
36087         [BZ #12775]
36088         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
36089         * math/Makefile (tests): Add test-powl.
36090         (CFLAGS-test-powl.c): Define.
36091         * math/test-powl.c: New file.
36092
36093 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
36094
36095         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
36096
36097 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
36098
36099         [BZ #11837]
36100         * iconvdata/gb18030.c: Update to GB18020-2005.
36101
36102 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
36103
36104         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
36105         RE_SYNTAX_POSIX_AWK): Update to match recent development.
36106         Patch by Aharon Robbins <arnold@skeeve.com>.
36107
36108         [BZ #11892]
36109         * stdlib/putenv.c (putenv): Don't always create copy of the variable
36110         on the stack.
36111
36112         [BZ #11895]
36113         * misc/pselect.c (__pselect): Handle timeout value errors hidden
36114         through underflows.
36115
36116         [BZ #12766]
36117         * misc/error.c (error_at_line): Ensure file_name and old_file_name
36118         point to strings before performing equality test for error_one_per_line
36119         mode.
36120
36121         [BZ #11697]
36122         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
36123
36124         [BZ #11820]
36125         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36126         (struct user_fpregs_struct): Avoid __uint*_t types.
36127
36128         [BZ #6420]
36129         * malloc/mtrace.c (tr_where): Add additional parameter to point to
36130         symbol info.  Use it instead of calling _dl_addr locally.
36131         (lock_and_info): New function.
36132         (tr_freehook): Call lock_and_info and pass symbol info as additional
36133         parameter to tr_where.
36134         (tr_mallochook): Likewise.
36135         (tr_reallochook): Likewise.
36136         (tr_memalignhook): Likewise.
36137
36138         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
36139         used and couldn't be at all thread-safe.
36140
36141 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
36142
36143         * libio/freopen.c (freopen): Don't close old file descriptor
36144         before the new one is opened.  Instead dup the new file descriptor
36145         to the old one after the new stream is created.
36146         * libio/freopen64.c (freopen64): Likewise.
36147         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
36148         * libio/fileops.c (_IO_new_file_close_it): Handle new
36149         _IO_FLAGS2_NOCLOSE flag.
36150         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
36151         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
36152         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
36153         _IO_FLAGS2_NOCLOSE flag.
36154         * include/unistd.h: Add hidden_proto for dup3.
36155         Define __have_dup3.
36156         * io/dup3.c: Define hidden symbol.
36157         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
36158
36159         [BZ #7101]
36160         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
36161         when an incomplete long option is used.
36162         * posix/tst-getopt_long1.c: New file.
36163         * posix/Makefile (tests): Add tst-getopt_long1.
36164
36165         [BZ #10138]
36166         * scripts/config.guess: Update from autoconf-2.68.
36167         * scripts/config.sub: Likewise.
36168
36169         [BZ #10157]
36170         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
36171         tests into ...
36172         (has_cpuclock): ...this.  New function.
36173         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
36174         macro here based on has_cpuclock code.
36175
36176         [BZ #10149]
36177         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36178         First byte (not low byte) is now always NUL.
36179         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
36180
36181         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36182         Use non-cancelable interfaces.
36183
36184         [BZ #9809]
36185         * locale/iso-639.def: Add entry for Sorani.
36186
36187         [BZ #11901]
36188         * include/stdlib.h: Move include protection to the right place.
36189         Define abort_msg_s.  Declare __abort_msg with it.
36190         * stdlib/abort.c (__abort_msg): Adjust type.
36191         * assert/assert.c (__assert_fail_base): New function.  Majority
36192         of code from __assert_fail.  Allocate memory for __abort_msg with
36193         mmap.
36194         (__assert_fail): Now call __assert_fail_base.
36195         * assert/assert-perr.c: Remove bulk of implementation.  Use
36196         __assert_fail_base.
36197         * include/assert.hL Declare __assert_fail_base.
36198         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
36199         mmap.
36200         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
36201
36202 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
36203
36204         [BZ #11952]
36205         [BZ #12453]
36206         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
36207         until all modules are registered in the DTV.
36208         * elf/Makefile: Add rules to build and run tst-tls19.
36209         * elf/tst-tls19.c: New file.
36210         * elf/tst-tls19mod1.c: New file.
36211         * elf/tst-tls19mod2.c: New file.
36212         * elf/tst-tls19mod3.c: New file.
36213         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
36214
36215         [BZ #12083]
36216         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
36217         correctly.
36218
36219         [BZ #12601]
36220         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
36221         two-byte sequence errors.
36222         * iconvdata/Makefile (tests): Add bug-iconv8.
36223         * iconvdata/bug-iconv8.c: New file.
36224
36225         [BZ #12626]
36226         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
36227         buf2 definition.
36228
36229         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
36230
36231         [BZ #12432]
36232         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
36233         (dummy_getcfa): New function.
36234         (init): Get _Unwind_GetCFA address, use dummy if not found.
36235         (backtrace_helper): In recursion check, also check whether CFA changes.
36236         (__backtrace): Completely initialize arg.
36237
36238         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
36239         storing incomplete byte sequence in state object.  Avoid testing for
36240         guaranteed too small input if we know there is enough data available.
36241
36242 2011-05-11  Andreas Schwab  <schwab@redhat.com>
36243
36244         * Makeconfig (+link-pie): Indent.
36245         * Rules (binaries-pie): Define if $(have-fpie) and
36246         $(build-shared).
36247         (binaries-shared): Also filter out $(binaries-pie).
36248         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
36249         * nscd/Makefile (others-pie): Add nscd.
36250         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
36251         ($(objpfx)nscd): Remove command override.
36252         * login/Makefile (others-pie): Add pt_chown.
36253         ($(objpfx)pt_chown): Remove command override.
36254         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
36255         remove command overrides.
36256
36257 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
36258
36259         * libio/tst_putwc.c: Fix error messages.
36260
36261         [BZ #12724]
36262         * libio/fileops.c (_IO_new_file_close_it): Always flush when
36263         currently writing and seek to current position when not.
36264         * libio/Makefile (tests): Add bug-fclose1.
36265         * libio/bug-fclose1.c: New file.
36266
36267 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
36268
36269         [BZ #12511]
36270         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
36271         don't set DF_1_NODELETE here.
36272         (do_lookup_x): When entering new entry test for copy relocation
36273         and if necessary set DF_1_NODELETE flag.
36274         * elf/tst-unique4.cc: New file.
36275         * elf/tst-unique4.h: New file.
36276         * elf/tst-unique4lib.cc: New file.
36277         * elf/Makefile: Add rules to build and run tst-unique4.
36278         Patch by Piotr Bury <pbury@goahead.com>.
36279
36280 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36281
36282         [BZ #12052]
36283         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
36284
36285         [BZ #12625]
36286         * misc/mntent_r.c (addmntent): Flush the stream after the output
36287
36288         [BZ #12393]
36289         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
36290         (is_trusted_path_normalize): Skip initial colon.  Append slash
36291         to empty buffer.  Duplicate is_trusted_path code but allow
36292         constructed patch to be prefix.
36293         (is_dst): Allow $ORIGIN followed by /.
36294         (_dl_dst_substitute): Correct clearing of check_for_trusted.
36295         Correct testing of result of is_trusted_path_normalize
36296         (decompose_rpath): Fix warning.
36297
36298 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
36299
36300         [BZ #11257]
36301         * grp/initgroups.c (internal_getgrouplist): When we found the service
36302         list through the initgroups entry in nsswitch.conf do not always
36303         continue on a successful lookup.  Don't always use the
36304         __nss_group_database value if it is set.
36305         * nss/nsswitch.conf (initgroups): Change action for successful db
36306         lookup to continue for compatibility.
36307
36308 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
36309
36310         [BZ #11532]
36311         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
36312         and CP774 modules.
36313         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
36314         and CP774 modules.
36315         * iconvdata/tst-tables.sh: Likewise.
36316         * iconvdata/cp770.c: New file.
36317         * iconvdata/cp771.c: New file.
36318         * iconvdata/cp772.c: New file.
36319         * iconvdata/cp773.c: New file.
36320         * iconvdata/cp774.c: New file.
36321         * iconvdata/testdata/CP770: New file.
36322         * iconvdata/testdata/CP770..UTF8: New file.
36323         * iconvdata/testdata/CP771: New file.
36324         * iconvdata/testdata/CP771..UTF8: New file.
36325         * iconvdata/testdata/CP772: New file.
36326         * iconvdata/testdata/CP772..UTF8: New file.
36327         * iconvdata/testdata/CP773: New file.
36328         * iconvdata/testdata/CP773..UTF8: New file.
36329         * iconvdata/testdata/CP774: New file.
36330         * iconvdata/testdata/CP774..UTF8: New file.
36331
36332         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
36333         END CHARMAP line.
36334         * iconvdata/gen-8bit-gap.sh: Likewise.
36335         * iconvdata/gen-8bit.sh: Likewise.
36336
36337         * locale/iso-639.def: Add ary entry.
36338
36339         [BZ #11258]
36340         * locale/C-translit.h.in: Add U20A1 transliteration.
36341
36342         [BZ #12178]
36343         * locale/iso-639.def: Add wae entry.
36344         Patch by Kevin Bortis <bortis@translate-wae.ch>.
36345
36346         [BZ #12545]
36347         * locale/programs/localedef.c (construct_output_path): Use ssize_t
36348         for n.
36349
36350         [BZ #12711]
36351         * locale/C-translit.h.in: Add entry for U20B9.
36352         Patch by pravin.d.s@gmail.com.
36353
36354 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
36355
36356         [BZ #12713]
36357         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
36358         ENAMETOOLONG use generic getcwd.
36359         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
36360         in rtld.  Use *stat64.
36361         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
36362         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
36363         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
36364         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
36365         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
36366         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
36367         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
36368         __fstatat64 macros.
36369         * include/dirent.h: Add libc_hidden_proto for rewinddir.
36370         * dirent/rewinddir.c: Add libc_hidden_def.
36371         * sysdeps/mach/hurd/rewinddir.c: Likewise.
36372         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
36373
36374         * include/dirent.h (__alloc_dir): Add flags parameter.
36375         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
36376         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
36377         __alloc_dir.
36378         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
36379         from fdopendir if O_CLOEXEC is already set.
36380
36381 2011-03-15  Alan Modra  <amodra@gmail.com>
36382
36383         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
36384         l_tls_firstbyte_offset non-zero.  Save padding offset in
36385         l_tls_firstbyte_offset for later use.
36386         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
36387         freeing static tls block.
36388
36389 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
36390
36391         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
36392         where #ifdef was intended.  The intent is to prevent ARG_MAX from
36393         being defined by the kernel headers.
36394
36395 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
36396
36397         [BZ #12734]
36398         * resolv/resolv.h: Define RES_NOTLDQUERY.
36399         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
36400         no-tld-query and set RES_NOTLDQUERY.
36401         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
36402         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
36403         modern BIND to search name as TLD unless forbidden.
36404
36405 2011-05-07  Petr Baudis  <pasky@suse.cz>
36406             Ulrich Drepper  <drepper@gmail.com>
36407
36408         [BZ #12393]
36409         * elf/dl-load.c (fillin_rpath): Move trusted path check...
36410         (is_trusted_path): ...to here.
36411         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
36412         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
36413         using is_trusted_path_normalize() in setuid scripts.
36414
36415 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36416
36417         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
36418         __BEGIN/__END_DECLS.
36419
36420 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
36421
36422         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
36423         NSS_STATUS_NOTFOUND if no record was found.
36424
36425 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36426
36427         * sunrpc/Makefile (headers): Add rpc/netdb.h.
36428         (headers-not-in-tirpc): Remove rpc/netdb.h
36429         * resolv/netdb.h: Revert last change.
36430
36431 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
36432
36433         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
36434         circular dependency between libgcc.a and libc.a.
36435
36436 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36437
36438         * resolv/netdb.h: Don't include <rpc/netdb.h>.
36439         * nis/Makefile: Don't install rpcsvc/*.
36440         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
36441         instead of <rpc/types.h>.
36442         (MAXHOSTNAMELEN): Define.
36443
36444 2011-05-03  Andreas Schwab  <schwab@redhat.com>
36445
36446         * elf/ldconfig.c (add_dir): Don't crash on empty path.
36447
36448 2011-04-28  Maciej Babinski  <mbabinski@google.com>
36449
36450         [BZ #12714]
36451         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
36452         gethostbyname4_r when IPv6 results are possible.
36453
36454 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
36455
36456         [BZ #12723]
36457         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
36458         _PC_PIPE_BUF handling.
36459
36460 2011-04-30  Bruno Haible  <bruno@clisp.org>
36461
36462         [BZ #12717]
36463         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
36464         * resolv/netdb.h (getnameinfo): Change type of flags parameter
36465         to 'int'.
36466         * inet/getnameinfo.c (getnameinfo): Likewise.
36467
36468 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
36469
36470         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
36471         to groups setting in database lookup.
36472         * nss/nsswitch.conf: Add initgroups entry.
36473
36474 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
36475
36476         [BZ #12685]
36477         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
36478         mode string.
36479         Patch by Eric Blake <eblake@redhat.com>.
36480
36481 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
36482
36483         * sunrpc/Makefile (need-export-routines): Add svc_run.
36484         (routines): Remove svc_run.
36485         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
36486         * sunrpc/clnt_perr.c (clnt_perrno): Export.
36487         * sunrpc/svc_run.c (svc_run): Likewise.
36488         * sunrpc/svc_udp.c (svcudp_create): Likewise.
36489
36490 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
36491
36492         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
36493         problem in reallocation in last patch.
36494
36495 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
36496
36497         * sunrpc/Makefile: Move inclusion of Rules.
36498
36499 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36500
36501         * nss/nss_files/files-initgroups.c: New file.
36502         * nss/Makefile (libnss_files-routines): Add files-initgroups.
36503         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
36504         _nss_files_initgroups_dyn.
36505
36506 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
36507
36508         * elf/elf.h (R_ARM_IRELATIVE): Define.
36509
36510 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36511
36512         * po/ru.po: Update from translation team.
36513
36514 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36515
36516         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
36517         dependencies.
36518
36519 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
36520
36521         [BZ #12653]
36522         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
36523         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
36524         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36525         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36526         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36527
36528 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
36529
36530         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
36531         differing bytes.
36532         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
36533         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
36534         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
36535
36536 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36537
36538         [BZ #12420]
36539         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
36540         storing it.
36541         * stdlib/bug-getcontext.c: New file.
36542         * stdlib/Makefile: Add rules to build and run bug-getcontext.
36543
36544 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36545
36546         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
36547         instructions into .machine "z9-109".
36548         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
36549         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
36550
36551 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36552
36553         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
36554         between environment variables and auxiliary vector.
36555
36556 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
36557
36558         * Makefile: Add rules to build linkobj/libc.so.
36559         * include/libc-symbols.h: Define libc_hidden_nolink.
36560         * include/rpc/auth.h: Mark functions which are to be hidden.
36561         * include/rpc/auth_des.h: Likewise.
36562         * include/rpc/auth_unix.h: Likewise.
36563         * include/rpc/clnt.h: Likewise.
36564         * include/rpc/des_crypt.h: Likewise.
36565         * include/rpc/key_prot.h: Likewise.
36566         * include/rpc/pmap_clnt.h: Likewise.
36567         * include/rpc/pmap_prot.h: Likewise.
36568         * include/rpc/pmap_rmt.h: Likewise.
36569         * include/rpc/rpc_msg.h: Likewise.
36570         * include/rpc/svc.h: Likewise.
36571         * include/rpc/svc_auth.h: Likewise.
36572         * include/rpc/xdr.h: Likewise.
36573         * nis/Makefile: Link all DSOs against linkobj/libc.so.
36574         * nss/Makefile: Likewise.
36575         * sunrpc/Makefile: Don't install headers.  Build library with normal
36576         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
36577         * sunrpc/auth_des.c: Hide exported symbols by default, export some
36578         for the compat linking library.  Remove use of INTDEF/INTUSE.
36579         * sunrpc/auth_none.c: Likewise.
36580         * sunrpc/auth_unix.c: Likewise.
36581         * sunrpc/authdes_prot.c: Likewise.
36582         * sunrpc/authuxprot.c: Likewise.
36583         * sunrpc/clnt_gen.c: Likewise.
36584         * sunrpc/clnt_perr.c: Likewise.
36585         * sunrpc/clnt_raw.c: Likewise.
36586         * sunrpc/clnt_simp.c: Likewise.
36587         * sunrpc/clnt_tcp.c: Likewise.
36588         * sunrpc/clnt_udp.c: Likewise.
36589         * sunrpc/clnt_unix.c: Likewise.
36590         * sunrpc/des_crypt.c: Likewise.
36591         * sunrpc/des_soft.c: Likewise.
36592         * sunrpc/get_myaddr.c: Likewise.
36593         * sunrpc/key_call.c: Likewise.
36594         * sunrpc/key_prot.c: Likewise.
36595         * sunrpc/netname.c: Likewise.
36596         * sunrpc/pm_getmaps.c: Likewise.
36597         * sunrpc/pm_getport.c: Likewise.
36598         * sunrpc/pmap_clnt.c: Likewise.
36599         * sunrpc/pmap_prot.c: Likewise.
36600         * sunrpc/pmap_prot2.c: Likewise.
36601         * sunrpc/pmap_rmt.c: Likewise.
36602         * sunrpc/publickey.c: Likewise.
36603         * sunrpc/rpc_cmsg.c: Likewise.
36604         * sunrpc/rpc_common.c: Likewise.
36605         * sunrpc/rpc_dtable.c: Likewise.
36606         * sunrpc/rpc_prot.c: Likewise.
36607         * sunrpc/rpc_thread.c: Likewise.
36608         * sunrpc/rtime.c: Likewise.
36609         * sunrpc/svc.c: Likewise.
36610         * sunrpc/svc_auth.c: Likewise.
36611         * sunrpc/svc_authux.c: Likewise.
36612         * sunrpc/svc_raw.c: Likewise.
36613         * sunrpc/svc_run.c: Likewise.
36614         * sunrpc/svc_simple.c: Likewise.
36615         * sunrpc/svc_tcp.c: Likewise.
36616         * sunrpc/svc_udp.c: Likewise.
36617         * sunrpc/svc_unix.c: Likewise.
36618         * sunrpc/svcauth_des.c: Likewise.
36619         * sunrpc/xcrypt.c: Likewise.
36620         * sunrpc/xdr.c: Likewise.
36621         * sunrpc/xdr_array.c: Likewise.
36622         * sunrpc/xdr_float.c: Likewise.
36623         * sunrpc/xdr_intXX_t.c: Likewise.
36624         * sunrpc/xdr_mem.c: Likewise.
36625         * sunrpc/xdr_rec.c: Likewise.
36626         * sunrpc/xdr_ref.c: Likewise.
36627         * sunrpc/xdr_sizeof.c: Likewise.
36628         * sunrpc/xdr_stdio.c: Likewise.
36629
36630 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
36631
36632         [BZ #12650]
36633         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
36634         * sysdeps/ia64/dl-tls.h: Likewise.
36635         * sysdeps/powerpc/dl-tls.h: Likewise.
36636         * sysdeps/s390/dl-tls.h: Likewise.
36637         * sysdeps/sh/dl-tls.h: Likewise.
36638         * sysdeps/sparc/dl-tls.h: Likewise.
36639         * sysdeps/x86_64/dl-tls.h: Likewise.
36640         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
36641
36642 2011-03-14  Andreas Schwab  <schwab@redhat.com>
36643
36644         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
36645         rpath element also skip the following colon.
36646         (expand_dynamic_string_token): Add is_path parameter and pass
36647         down to DL_DST_REQUIRED and _dl_dst_substitute.
36648         (decompose_rpath): Call expand_dynamic_string_token with
36649         non-zero is_path.  Ignore empty rpaths.
36650         (_dl_map_object_from_fd): Call expand_dynamic_string_token
36651         with zero is_path.
36652
36653 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
36654
36655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
36656         Make cancelable.
36657
36658 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
36659
36660         [BZ #12655]
36661         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
36662         Patch by Filipe David Manana <fdmanana@apache.org>.
36663
36664 2011-04-07  Andreas Schwab  <schwab@redhat.com>
36665
36666         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
36667         Maintain aligned stack.
36668         (CHECK_RSP): Remove unused macro.
36669
36670 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
36671
36672         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
36673         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
36674
36675 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
36676
36677         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
36678
36679         * include/features.h: Mention __USE_XOPEN2K8 in comment.
36680
36681 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
36682
36683         [BZ #12518]
36684         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
36685         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
36686         * sysdeps/x86_64/memmove.c: New file.
36687         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
36688         (memcpy): Renamed to ...
36689         (__new_memcpy): This.
36690         (memcpy): Provide GLIBC_2_14 memcpy.
36691         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
36692         (memcpy): Provide GLIBC_2_2_5 memcpy.
36693
36694 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36695
36696         [BZ #12631]
36697         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
36698
36699 2011-03-30  Andreas Schwab  <schwab@redhat.com>
36700
36701         * misc/syncfs.c: New file.
36702         * misc/Makefile (routines): Add syncfs.
36703         * posix/unistd.h: Declare syncfs.
36704         * sysdeps/unix/syscalls.list: Add syncfs.
36705
36706 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36707
36708         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
36709         open_by_handle_at.
36710         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36711         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36712         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36713         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36714         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36715         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
36716         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36717
36718 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36719
36720         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
36721         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36722         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
36723         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36724         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36725         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36726         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36727
36728         * io/Makefile: Compile fallocate.c, fallocate64.c, and
36729         sync_file_range.c with -fexceptions.
36730         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
36731         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
36732         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
36733         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
36734         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
36735         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
36736         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
36737         sync_file_range as cancellation point
36738         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
36739         now a wrapper around __call_sync_file_range with cancellation handling.
36740         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
36741         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
36742         function name to __call_sync_file_range.
36743         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
36744         Add call_sync_file_range.
36745
36746 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36747
36748         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36749         bits/timex.h.
36750
36751 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36752
36753         * iconv/iconv.h: Fix typo in comment.
36754         * io/fcntl.h: Likewise.
36755         * libio/stdio.h: Likewise.
36756         * posix/spawn.h: Likewise.
36757         * posix/unistd.h: Likewise.
36758         * stdlib/stdlib.h: Likewise.
36759         * time/time.h: Likewise.
36760         * wcsmbs/wchar.h: Likewise.
36761
36762         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
36763         open_by_handle): Add.
36764         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
36765         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
36766         Augment a few comments.
36767         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36768         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36769         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36770         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36771         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36772         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
36773         open_by_handle.
36774
36775         * io/fcntl.h (AT_EMPTY_PATH): Define.
36776
36777 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
36778
36779         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
36780         * sysdeps/unix/sysv/linux/bits/time.h: New file.
36781         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
36782         to...
36783         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
36784         * Versions.def: Add GLIBC_2.14.
36785         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
36786         Export.
36787
36788 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
36789
36790         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
36791         round counter.
36792         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36793
36794 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36795
36796         [BZ #12597]
36797         * string/test-strncmp.c (do_page_test): New function.
36798         (check2): Likewise.
36799         (test_main): Call check2.
36800         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
36801
36802 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
36803
36804         [BZ #12587]
36805         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
36806         Handle cache information in CPU leaf 4.
36807         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36808
36809 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
36810
36811         [BZ #12583]
36812         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
36813         character representation.
36814         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
36815
36816 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
36817
36818         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
36819         END(__isnan) to END(__isnanf) to match function entry point/label
36820         EALIGN(__isnanf,...).
36821
36822 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
36823
36824         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
36825
36826 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
36827
36828         [BZ #12510]
36829         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
36830         copy from the symbol referenced in the relocation to initialize the
36831         used variable.
36832         Patch by Piotr Bury <pbury@goahead.com>.
36833         * elf/Makefile: Add rules to build and tst-unique3.
36834         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
36835         * elf/tst-unique3.cc: New file.
36836         * elf/tst-unique3.h: New file.
36837         * elf/tst-unique3lib.cc: New file.
36838         * elf/tst-unique3lib2.cc: New file.
36839
36840         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
36841
36842 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
36843
36844         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
36845         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
36846         to _start.
36847
36848 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
36849
36850         * elf/dl-load.c (_dl_map_object): If we are looking for the first
36851         to-be-loaded object along a path to loader is ld.so.
36852
36853 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36854             Ulrich Drepper  <drepper@gmail.com>
36855
36856         * sysdeps/x86_64/memset.S: After aligning destination, code
36857         branches to different locations depending on the value of
36858         misalignment, when multiarch is enabled. Fix this.
36859
36860 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36861
36862         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
36863         Set _x86_64_preferred_memory_instruction for AMD processsors.
36864         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36865         Set bit_Prefer_SSE_for_memop for AMD processors.
36866
36867 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
36868
36869         * libio/fmemopen.c (fmemopen): Optimize a bit.
36870
36871 2011-03-03  Andreas Schwab  <schwab@redhat.com>
36872
36873         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
36874
36875 2011-03-03  Roland McGrath  <roland@redhat.com>
36876
36877         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
36878
36879 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
36880
36881         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
36882         __bzero_ultra1 instead of __memset_ultra1.
36883
36884 2011-02-23  Andreas Schwab  <schwab@redhat.com>
36885             Ulrich Drepper  <drepper@gmail.com>
36886
36887         [BZ #12509]
36888         * include/link.h (struct link_map): Add l_orig_initfini.
36889         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
36890         returning unsuccessfully.
36891         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
36892         close of a file loaded at startup, restore the original l_initfini
36893         list.
36894         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
36895         list, store the pointer.
36896         * elf/Makefile ($(objpfx)noload-mem): New rule.
36897         (noload-ENV): Define.
36898         (tests): Add $(objpfx)noload-mem.
36899         * elf/noload.c: Include <memcheck.h>.
36900         (main): Call mtrace.  Close all opened handles.
36901
36902 2011-02-17  Andreas Schwab  <schwab@redhat.com>
36903
36904         [BZ #12454]
36905         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
36906         dependencies are missing.
36907
36908 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36909
36910         Fix __if_freereq crash: Unlike the generic version which uses free,
36911         Hurd needs munmap.
36912         * sysdeps/mach/hurd/ifreq.h: New file.
36913
36914 2011-01-27  Petr Baudis  <pasky@suse.cz>
36915             Ulrich Drepper  <drepper@gmail.com>
36916
36917         [BZ 12445]#
36918         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
36919         to extend_alloca().
36920         * stdio-common/bug23.c: New file.
36921         * stdio-common/Makefile (tests): Add bug23.
36922
36923 2010-09-28  Andreas Schwab  <schwab@redhat.com>
36924             Ulrich Drepper  <drepper@gmail.com>
36925
36926         [BZ #12489]
36927         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
36928         before performing relro protection.  At old place add assertion
36929         to make sure nothing changed.
36930
36931 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
36932             Glauber de Oliveira Costa  <glommer@gmail.com>
36933
36934         * elf/elf.h: Add new ARM TLS relocs.
36935
36936 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
36937
36938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
36939         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
36940         cast from r3.
36941         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
36942         'tests' variable.
36943         * sysdeps/wordsize-64/tst-writev.c: New file.
36944
36945 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
36946
36947         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
36948         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
36949         insns in _dl_start to prevent a TOC reference before relocs are
36950         resolved.
36951
36952 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
36953
36954         [BZ #12469]
36955         * Makeconfig: Remove RANLIB definition.
36956         * Makerules: Don't use RANLIB.
36957         * aclocal.m4: Remove ranlib test.
36958         * configure.in: No need to check for ranlib.
36959         * elf/rtld-Rules: Don't use RANLIB.
36960
36961 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36962
36963         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
36964         protection macro.
36965         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
36966         inclusion protection macro.
36967
36968         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
36969         SIGRTMIN and SIGRTMAX and print information in that case only when
36970         SIGRTMIN is defined.
36971
36972 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
36973
36974         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
36975         arginfo fn returning -1.
36976
36977         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
36978         and thousands string is zero terminated.
36979
36980 2011-02-03  Andreas Schwab  <schwab@redhat.com>
36981
36982         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
36983         sysdeps/unix/sysv/linux/bits/socket.h.
36984
36985 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36986
36987         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
36988         (__CPU_COUNT): Remove old macros.
36989         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
36990         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
36991         (__CPU_ALLOC, __CPU_FREE): Add macros.
36992         (__sched_cpualloc, __sched_cpufree): Add declarations.
36993
36994 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
36995
36996         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
36997         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
36998         * nscd/aicache.c (addhstaiX): Return timeout of added value.
36999         (readdhstai): Return value of addhstaiX call.
37000         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
37001         (addgrbyX): Return value returned by cache_addgr.
37002         (readdgrbyname): Return value returned by addgrbyX.
37003         (readdgrbygid): Likewise.
37004         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
37005         (addpwbyX): Return value returned by cache_addpw.
37006         (readdpwbyname): Return value returned by addhstbyX.
37007         (readdpwbyuid): Likewise.
37008         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
37009         (addservbyX): Return value returned by cache_addserv.
37010         (readdservbyname): Return value returned by addservbyX:
37011         (readdservbyport): Likewise.
37012         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
37013         (addhstbyX): Return value returned by cache_addhst.
37014         (readdhstbyname): Return value returned by addhstbyX.
37015         (readdhstbyaddr): Likewise.
37016         (readdhstbynamev6): Likewise.
37017         (readdhstbyaddrv6): Likewise.
37018         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
37019         (readdinitgroups): Return value returned by addinitgroupsX.
37020         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
37021         (prune_cache): Keep track of timeout value of re-added entries.
37022         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
37023         * nscd/nscd.h: Adjust prototypes of readd* functions.
37024
37025 2011-02-04  Roland McGrath  <roland@redhat.com>
37026
37027         * nis/nis_server.c (nis_servstate): Use the right name for 0.
37028         (nis_stats): Likewise.
37029         * nis/nis_modify.c (nis_modify): Likewise.
37030         * nis/nis_remove.c (nis_remove): Likewise.
37031         * nis/nis_add.c (nis_add): Likewise.
37032
37033         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
37034
37035         * posix/fnmatch_loop.c: Add some consts.
37036
37037         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
37038
37039 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
37040
37041         [BZ #12460]
37042         * config.make.in (config-cflags-novzeroupper): Define.
37043         * configure.in: Substitute libc_cv_cc_novzeroupper.
37044         * elf/Makefile (AVX-CFLAGS): Define.
37045         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
37046         (CFLAGS-tst-auditmod4a.c): Likewise.
37047         (CFLAGS-tst-auditmod4b.c): Likewise.
37048         (CFLAGS-tst-auditmod6b.c): Likewise.
37049         (CFLAGS-tst-auditmod6c.c): Likewise.
37050         (CFLAGS-tst-auditmod7b.c): Likewise.
37051         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
37052
37053 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
37054
37055         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
37056         function to the callback.
37057         Patch partly by Jiri Olsa <jolsa@redhat.com>.
37058
37059 2011-02-02  Andreas Schwab  <schwab@redhat.com>
37060
37061         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
37062         of errno.
37063
37064 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
37065
37066         [BZ #11724]
37067         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
37068         of constructors.
37069         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
37070         of destructors.
37071         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
37072
37073         [BZ #11724]
37074         * elf/Makefile: Add rules to build and run new test.
37075         * elf/tst-initorder.c: New file.
37076         * elf/tst-initorder.exp: New file.
37077         * elf/tst-initordera1.c: New file.
37078         * elf/tst-initordera2.c: New file.
37079         * elf/tst-initordera3.c: New file.
37080         * elf/tst-initordera4.c: New file.
37081         * elf/tst-initorderb1.c: New file.
37082         * elf/tst-initorderb2.c: New file.
37083         * elf/tst-order-a1.c: New file.
37084         * elf/tst-order-a2.c: New file.
37085         * elf/tst-order-a3.c: New file.
37086         * elf/tst-order-a4.c: New file.
37087         * elf/tst-order-b1.c: New file.
37088         * elf/tst-order-b2.c: New file.
37089         * elf/tst-order-main.c: New file.
37090         New test case by George Gensure <werkt0@gmail.com>.
37091
37092 2010-10-01  Andreas Schwab  <schwab@redhat.com>
37093
37094         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
37095         decoding ACE if AI_CANONIDN.
37096
37097 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
37098
37099         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
37100
37101 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
37102
37103         * version.h (RELEASE): Bump for 2.13 release.
37104         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
37105
37106         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
37107
37108         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
37109         MADV_NOHUGEPAGE.
37110         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
37111         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
37112         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
37113         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
37114         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
37115         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37116
37117         * posix/getconf.c: Update copyright year.
37118         * catgets/gencat.c: Likewise.
37119         * csu/version.c: Likewise.
37120         * debug/catchsegv.sh: Likewise.
37121         * debug/xtrace.sh: Likewise.
37122         * elf/ldconfig.c: Likewise.
37123         * elf/ldd.bash.in: Likewise.
37124         * elf/sprof.c (print_version): Likewise.
37125         * iconv/iconv_prog.c: Likewise.
37126         * iconv/iconvconfig.c: Likewise.
37127         * locale/programs/locale.c: Likewise.
37128         * locale/programs/localedef.c: Likewise.
37129         * malloc/memusage.sh: Likewise.
37130         * malloc/mtrace.pl: Likewise.
37131         * nscd/nscd.c (print_version): Likewise.
37132         * nss/getent.c: Likewise.
37133
37134         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
37135         PF_CAIF, and PF_ALG.
37136         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37137
37138 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
37139
37140         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
37141         (modules-names): Use them.
37142         (ifunc-test-modules, ifunc-pie-tests): Define.
37143         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
37144         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
37145         (test-extras): Likewise.
37146         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
37147         $(compile-command.c).
37148         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
37149         (all-built-dso): Define.
37150         (check-textrel.out, check-execstack.out): Depend on it.
37151
37152         * configure.in: Don't override --enable-multi-arch.
37153
37154 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
37155
37156         [BZ #6812]
37157         * nscd/hstcache.c (tryagain): Define.
37158         (cache_addhst): Return tryagain not notfound for temporary errors.
37159         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
37160         failed.
37161
37162 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
37163
37164         [BZ #10563]
37165         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
37166         to make the syscall.
37167         * sysdeps/unix/sysv/linux/setgroups.c: New file.
37168
37169         [BZ #12378]
37170         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
37171         and fall back to matching as normal character if the string ends before
37172         the matching ']' is found.  This is what POSIX requires.
37173         * posix/testfnm.c: Adjust test result.
37174         * posix/globtest.sh: Adjust test result.  Add new test.
37175         * posix/tst-fnmatch.input: Likewise.
37176         * posix/tst-fnmatch2.c: Add new test.
37177
37178 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
37179
37180         * elf/Makefile (check-execstack): Revert last change.  Depend on
37181         check-execstack.h.
37182         (check-execstack.h): New target.
37183         (generated): Add check-execstack.h.
37184         * elf/check-execstack.c: Include "check-execstack.h".
37185         (main): Revert last change.
37186         (handle_file): Return zero if GNU_STACK is absent and
37187         DEFAULT_STACK_PERMS doesn't include PF_X.
37188
37189 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
37190
37191         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
37192         in child fails because the descriptor is already closed.
37193         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
37194         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
37195         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
37196
37197         [BZ #12397]
37198         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
37199         syscall.
37200
37201         [BZ #10484]
37202         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
37203         temporary buffer used to handle multi lookups locally.
37204         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
37205
37206 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37207
37208         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
37209         loader is ld.so.
37210
37211 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
37212
37213         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
37214         alignment for SSE2.
37215
37216 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37217
37218         [BZ #12394]
37219         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
37220         characters.  When rounding increased number of integer digits recompute
37221         number of groups.
37222         * stdio-common/tst-grouping.c: New file.
37223         * stdio-common/Makefile: Add rules to build and run tst-grouping.
37224
37225 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
37226
37227         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
37228         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
37229
37230         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
37231         void.
37232         * bits/select.h: Likewise.
37233
37234 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
37235
37236         * po/ja.po: Update from translation team.
37237
37238 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
37239
37240         [BZ #11155]
37241         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
37242         implementation just like for lxstat, fxstatat, et al.
37243
37244 2010-12-27  Jim Meyering  <meyering@redhat.com>
37245
37246         [BZ #12348]
37247         * posix/regexec.c (build_trtable): Return failure indication upon
37248         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
37249
37250 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
37251
37252         [BZ #12201]
37253         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
37254         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
37255         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
37256         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
37257
37258         [BZ #12207]
37259         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
37260
37261         [BZ #12204]
37262         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
37263         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
37264
37265 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
37266
37267         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
37268         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
37269         script has SORT_BY_INIT_PRIORITY.
37270         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
37271         NO_CTORS_DTORS_SECTIONS is defined.
37272         * elf/soinit.c: Likewise.
37273         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
37274         NO_CTORS_DTORS_SECTIONS is defined.
37275         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
37276         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
37277         * sysdeps/sh/init-first.c: Likewise.
37278         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
37279
37280 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
37281
37282         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
37283         always use the slow path.
37284
37285 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
37286
37287         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
37288         similar rule which adds the sysdep directories to the header search in
37289         order to pick up the correct platform stackinfo.h.
37290         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
37291         perform test if it is, otherwise return successfully without testing.
37292         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
37293         DEFAULT_STACK_PERMS define in stackinfo.h.
37294         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
37295         defined in stackinfo.h.
37296         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
37297         DEFAULT_STACK_PERMS defined in stackinfo.h.
37298         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
37299         * sysdeps/ia64/stackinfo.h: Likewise.
37300         * sysdeps/s390/stackinfo.h: Likewise.
37301         * sysdeps/sh/stackinfo.h: Likewise.
37302         * sysdeps/sparc/stackinfo.h: Likewise.
37303         * sysdeps/x86_64/stackinfo.h: Likewise.
37304         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
37305         PF_X for powerpc64.  Retain PF_X for powerpc32.
37306
37307 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
37308
37309         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
37310         accurately.
37311         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
37312         GETDENTS_64BIT_ALIGNED.
37313
37314 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
37315
37316         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
37317
37318 2010-12-10  Andreas Schwab  <schwab@redhat.com>
37319
37320         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
37321         _GNU_SOURCE.
37322
37323         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
37324         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
37325         Remove __restrict.
37326         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
37327         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
37328
37329 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
37330
37331         [BZ #11655]
37332         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
37333         are initialized.
37334
37335 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
37336
37337         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
37338
37339 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
37340
37341         * po/it.po: Update from translation team.
37342
37343 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
37344
37345         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
37346         unused codes.
37347
37348 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
37349
37350         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
37351
37352 2010-11-24  Andreas Schwab  <schwab@redhat.com>
37353
37354         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
37355         specially.
37356         (gaih_getanswer_slice): Likewise.
37357
37358 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
37359
37360         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
37361
37362 2010-05-31  Petr Baudis  <pasky@suse.cz>
37363
37364         [BZ #11149]
37365         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
37366         silently even in the chroot mode.
37367
37368 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
37369
37370         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
37371         last patch a bit.  Pretty printing
37372
37373 2010-05-31  Petr Baudis <pasky@suse.cz>
37374
37375         [BZ #10085]
37376         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
37377         initialization of skip_initgroups_dyn.
37378
37379 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
37380
37381         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
37382         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37383
37384 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
37385
37386         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
37387
37388 2010-11-11  Andreas Schwab  <schwab@redhat.com>
37389
37390         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
37391         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
37392         (tst-fnmatch-ENV): Set MALLOC_TRACE.
37393         ($(objpfx)tst-fnmatch-mem): New rule.
37394         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
37395         * posix/tst-fnmatch.c (main): Call mtrace.
37396
37397 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
37398
37399         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37400         Support Intel processor model 6 and model 0x2c.
37401
37402 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
37403
37404         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
37405           signed comparison.
37406
37407 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
37408
37409         [BZ #12205]
37410         * string/test-strncasecmp.c (check_result): New function.
37411         (do_one_test): Use it.
37412         (check1): New function.
37413         (test_main): Use it.
37414         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
37415         Support strcasecmp and strncasecmp.
37416
37417 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
37418
37419         [BZ #12194]
37420         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
37421         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37422
37423 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
37424
37425         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
37426         IFUNC support.
37427         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37428         memset-x86-64.
37429         * sysdeps/x86_64/multiarch/bzero.S: New file.
37430         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
37431         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
37432         * sysdeps/x86_64/multiarch/memset.S: New file.
37433         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
37434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37435         Set bit_Prefer_SSE_for_memop for Intel processors.
37436         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
37437         Define.
37438         (index_Prefer_SSE_for_memop): Define.
37439         (HAS_PREFER_SSE_FOR_MEMOP): Define.
37440
37441 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
37442
37443         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
37444         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
37445
37446 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
37447
37448         [BZ #12191]
37449         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37450         (__x86_64_raw_data_cache_size_half): Likewise.
37451         (__x86_64_raw_shared_cache_size): Likewise.
37452         (__x86_64_raw_shared_cache_size_half): Likewise.
37453
37454         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37455         (__x86_64_raw_data_cache_size_half): Likewise.
37456         (__x86_64_raw_shared_cache_size): Likewise.
37457         (__x86_64_raw_shared_cache_size_half): Likewise.
37458         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37459         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
37460         and __x86_64_raw_shared_cache_size_half.  Round
37461         __x86_64_data_cache_size_half, __x86_64_data_cache_size
37462         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
37463         to multiple of 256 bytes.
37464
37465 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
37466
37467         [BZ #12167]
37468         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
37469         of inacessible symlinks.  Verify result of symlink before returning it.
37470         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37471         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
37472
37473 2010-10-28  Erich Ritz  <erichritz@gmail.com>
37474
37475         * math/math.h (isinf): Fix typo in comment.
37476
37477 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
37478
37479         * po/da.po: Update from translation team.
37480
37481 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
37482
37483         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
37484         is added to the list.
37485
37486 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37487             Ulrich Drepper  <drepper@gmail.com>
37488
37489         * elf/dl-object.c (_dl_new_object): Don't append the new object to
37490         the global list here.  Move code to...
37491         (_dl_add_to_namespace_list): ...here.  New function.
37492         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
37493         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
37494         * elf/dl-load.c (lose): Don't remove the element from the list.
37495         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
37496         (_dl_map_object): Likewise.
37497
37498 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
37499
37500         [BZ #12159]
37501         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
37502         into all bytes of SSE register.
37503         Patch by Richard Li <richardpku@gmail.com>.
37504
37505 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
37506
37507         [BZ #12140]
37508         * malloc/malloc.c (_int_free): Fill correct number of bytes when
37509         perturbing.
37510
37511 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
37512
37513         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
37514         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
37515         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
37516         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
37518         submachine.
37519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
37520
37521 2010-10-22  Andreas Schwab  <schwab@redhat.com>
37522
37523         * include/dlfcn.h (__RTLD_SECURE): Define.
37524         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
37525         mode & __RTLD_SECURE instead.
37526         (open_path): Rename preloaded parameter to secure.
37527         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
37528         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
37529         * elf/dl-deps.c (openaux): Likewise.
37530         * elf/rtld.c (struct map_args): Remove is_preloaded.
37531         (map_doit): Don't use it.
37532         (dl_main): Likewise.
37533         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
37534         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
37535
37536 2010-09-09  Andreas Schwab  <schwab@redhat.com>
37537
37538         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
37539         (sysd-rules-targets): Remove duplicates.
37540         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
37541         rtld-%.$o dependency.
37542
37543 2010-10-18  Andreas Schwab  <schwab@redhat.com>
37544
37545         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
37546         _dl_map_object do it.
37547
37548 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
37549
37550         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
37551         fast fma builtins, define the macros in the C99 standard.
37552         (FP_FAST_FMAF): Likewise.
37553         (FP_FAST_FMAL): Likewise.
37554         * sysdeps/x86_64/bits/mathdef.h: Likewise.
37555
37556         * bits/mathdef.h: Update copyright year.
37557         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37558
37559 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37560
37561         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
37562         builtins, define the macros in the C99 standard.
37563         (FP_FAST_FMAF): Likewise.
37564         (FP_FAST_FMAL): Likewise.
37565         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
37566         multiply/add.
37567         (FP_FAST_FMAF): Likewise.
37568
37569 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
37570
37571         [BZ #3268]
37572         * math/libm-test.inc (fma_test): Some new testcases.
37573         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
37574         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
37575         y and infinite z.  Do multiplication by C already in long double.
37576         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
37577         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
37578         y and infinite z.  Do bitwise or of inexact bit into u.d.
37579         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
37580         * sysdeps/i386/fpu/s_fmaf.S: Removed.
37581         * sysdeps/i386/fpu/s_fma.S: Removed.
37582         * sysdeps/i386/fpu/s_fmal.S: Removed.
37583
37584 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
37585
37586         [BZ #3268]
37587         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
37588         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
37589         computation is not scheduled after fetestexcept.  Fix value
37590         of minimum denormal long double.
37591
37592 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
37593
37594         [BZ #3268]
37595         * math/libm-test.inc (fma_test): Add some more tests.
37596         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
37597         correctly.
37598
37599 2010-10-15  Andreas Schwab  <schwab@redhat.com>
37600
37601         * scripts/data/localplt-s390-linux-gnu.data: New file.
37602         * scripts/data/localplt-s390x-linux-gnu.data: New file.
37603
37604 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
37605
37606         [BZ #3268]
37607         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
37608         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
37609         instead of dbl-64.
37610         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
37611         inlines.
37612         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
37613         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
37614         if one of x and y is very large and the other is subnormal.
37615         * sysdeps/s390/fpu/s_fmaf.c: New file.
37616         * sysdeps/s390/fpu/s_fma.c: New file.
37617         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
37618         * sysdeps/powerpc/fpu/s_fma.S: New file.
37619         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
37620         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
37621         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
37622
37623 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
37624
37625         [BZ #3268]
37626         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
37627         fma tests.
37628         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
37629         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
37630         * sysdeps/i386/i686/multiarch/s_fma.c: Include
37631         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
37632         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
37633         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
37634         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
37635
37636 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
37637
37638         [BZ #12078]
37639         * posix/regcomp.c (parse_branch): One more memory leak plugged.
37640         * posix/bug-regex31.input: Add test case.
37641
37642 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37643
37644         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
37645         * posix/bug-regex31.input: New file.
37646
37647         [BZ #12078]
37648         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
37649         (parse_sub_exp): Fix last change, use postorder.
37650
37651         * posix/bug-regex31.c: New file.
37652         * posix/Makefile: Add rules to build and run bug-regex31.
37653
37654         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
37655
37656         [BZ #12078]
37657         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
37658
37659         [BZ #12108]
37660         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
37661         to have entries in sys_siglist.
37662
37663         [BZ #12093]
37664         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
37665         be NULL.
37666
37667 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
37668
37669         [BZ #3268]
37670         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
37671         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
37672         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
37673         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
37674         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
37675         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
37676         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
37677         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
37678         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
37679         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
37680         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
37681         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
37682         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
37683         * math/ftestexcept.c (fetestexcept): Likewise.
37684         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
37685         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
37686         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
37687         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
37688         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
37689         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
37690         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37691
37692 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37693
37694         [BZ #12107]
37695         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
37696         newline.
37697
37698 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
37699
37700         * string/bug-strstr1.c: New file.
37701         * string/Makefile: Add rules to build and run bug-strstr1.
37702
37703 2010-10-05  Eric Blake  <eblake@redhat.com>
37704
37705         [BZ #12092]
37706         * string/str-two-way.h (two_way_long_needle): Always clear memory
37707         when skipping input due to the shift table.
37708
37709 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
37710
37711         [BZ #12005]
37712         * malloc/mcheck.c: Handle large requests.
37713
37714         [BZ #12077]
37715         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
37716         for strncmp and strncasecmp.
37717         * string/stratcliff.c: Add tests for strcmp and strncmp.
37718         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
37719
37720 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37721
37722         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
37723         __set_fpscr.
37724
37725 2010-09-30  Andreas Jaeger  <aj@suse.de>
37726
37727         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
37728         (CGROUP_SUPER_MAGIC): Define.
37729         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37730         Handle btrfs and cgroup file systems.
37731         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
37732         Likewise.
37733
37734 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
37735
37736         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
37737         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
37738
37739 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37740
37741         [BZ #12067]
37742         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
37743         trying to locate the ELF header.
37744
37745 2010-09-27  Andreas Schwab  <schwab@redhat.com>
37746
37747         [BZ #11611]
37748         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
37749         Mask out sign-bit copies when constructing f_fsid.
37750
37751 2010-09-24  Petr Baudis <pasky@suse.cz>
37752
37753         * debug/stack_chk_fail_local.c: Add missing licence exception.
37754         * debug/warning-nop.c: Likewise.
37755
37756 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
37757
37758         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
37759         implementing getdents64 using getdents syscall, set d_type if
37760         __ASSUME_GETDENTS32_D_TYPE.
37761
37762 2010-09-16  Andreas Schwab  <schwab@redhat.com>
37763
37764         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
37765         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
37766
37767 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
37768
37769         [BZ #12037]
37770         * posix/unistd.h: Undo change of feature selection for ftruncate from
37771         2010-01-11.
37772
37773 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
37774
37775         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
37776         detection.
37777
37778 2010-09-20  Andreas Schwab  <schwab@redhat.com>
37779
37780         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
37781         fanotify_mark.
37782         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37783
37784 2010-09-14  Andreas Schwab  <schwab@redhat.com>
37785
37786         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
37787         variables after CHECK_SP call.
37788         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
37789
37790 2010-09-13  Andreas Schwab  <schwab@redhat.com>
37791             Ulrich Drepper  <drepper@redhat.com>
37792
37793         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
37794         re-relocationg ld.so.
37795         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
37796         _dl_init_paths call.
37797         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
37798         here anymore.
37799
37800 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
37801
37802         * resolv/res_init.c (__res_vinit): Count the default server we added.
37803
37804 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
37805             Ulrich Drepper  <drepper@redhat.com>
37806
37807         [BZ #11968]
37808         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
37809         (____longjmp_chk): Use %ebx for saving value across system call.
37810         Add unwind info.
37811
37812 2010-09-06  Andreas Schwab  <schwab@redhat.com>
37813
37814         * manual/Makefile: Don't mix pattern rules with normal rules.
37815
37816 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
37817
37818         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
37819         operation.
37820         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
37821         * libio/iofopncook.c (_IO_cookie_init): Likewise.
37822         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
37823         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
37824         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
37825         Likewise.
37826
37827 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
37828
37829         [BZ #11979]
37830         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
37831         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
37832
37833 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
37834
37835         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
37836         * sysdeps/x86_64/addmul_1.S: Likewise.
37837         * sysdeps/x86_64/lshift.S: Likewise.
37838         * sysdeps/x86_64/mul_1.S: Likewise.
37839         * sysdeps/x86_64/rshift.S: Likewise.
37840         * sysdeps/x86_64/sub_n.S: Likewise.
37841         * sysdeps/x86_64/submul_1.S: Likewise.
37842
37843 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37844
37845         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
37846         Define __sched_param instead of SCHED_* and sched_param when
37847         <bits/sched.h> is included with __need_schedparam defined.
37848         * bits/sched.h [__need_schedparam]
37849         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
37850         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
37851         (__defined_schedparam): Define to 1.
37852         (__sched_param): New structure, identical to sched_param.
37853         (__need_schedparam): Undefine.
37854
37855 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
37856
37857         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
37858         (epoll_create1): Declare.
37859
37860         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
37861
37862 2010-08-31  Andreas Schwab  <schwab@redhat.com>
37863
37864         [BZ #7066]
37865         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
37866         shifting retval into place.
37867
37868 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
37869
37870         * nis/rpcsvc/nis.h: Update copyright notice.
37871         * nis/rpcsvc/nis.x: Likewise.
37872         * nis/rpcsvc/nis_callback.h: Likewise.
37873         * nis/rpcsvc/nis_callback.x: Likewise.
37874         * nis/rpcsvc/nis_object.x: Likewise.
37875         * nis/rpcsvc/nis_tags.h: Likewise.
37876         * nis/rpcsvc/yp.h: Likewise.
37877         * nis/rpcsvc/yp.x: Likewise.
37878         * nis/rpcsvc/ypupd.h: Likewise.
37879         * nis/yp_xdr.c: Likewise.
37880         * nis/ypupdate_xdr.c: Likewise.
37881
37882         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
37883         mainly the body of pmap_getport.  Add parameters to specify timeouts.
37884         (pmap_getport): Use __libc_rpc_getport.
37885         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
37886         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
37887         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
37888
37889 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
37890
37891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
37892         fanotify_mark.
37893
37894 2010-08-27  Roland McGrath  <roland@redhat.com>
37895
37896         * sysdeps/i386/i686/multiarch/Makefile
37897         (CFLAGS-varshift.c): New variable.
37898
37899 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
37900
37901         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
37902         * sysdeps/i386/i686/multiarch/varshift.c: New file.
37903
37904         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
37905
37906         * sysdeps/x86_64/strlen.S: Minimal code improvement.
37907
37908 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
37909
37910         * sysdeps/x86_64/strlen.S: Unroll the loop.
37911         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37912         strlen-sse2 strlen-sse2-bsf.
37913         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
37914         __strlen_no_bsf if bit_Slow_BSF is set.
37915         (__strlen_sse42): Removed.
37916         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
37917         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
37918
37919 2010-08-25  Roland McGrath  <roland@redhat.com>
37920
37921         * sysdeps/x86_64/multiarch/varshift.S: File removed.
37922         * sysdeps/x86_64/multiarch/varshift.c: New file.
37923         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
37924         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
37925         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
37926         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
37927
37928 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
37929
37930         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37931         strlen-sse2 strlen-sse2-bsf.
37932         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
37933         __strlen_sse2_bsf if bit_Slow_BSF is unset.
37934         (__strlen_sse2): Removed.
37935         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
37936         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
37937         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
37938         bit_Slow_BSF for Atom.
37939         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
37940         (index_Slow_BSF): Define.
37941         (HAS_SLOW_BSF): Define.
37942
37943 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
37944
37945         [BZ #10851]
37946         * resolv/res_init.c (__res_vinit): When no server address at all
37947         is given default to loopback.
37948
37949 2010-08-24  Roland McGrath  <roland@redhat.com>
37950
37951         * configure.in: Remove config-name.h generation.
37952         * configure: Regenerated.
37953         * config-name.in: File removed.
37954         * scripts/config-uname.sh: New file.
37955         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
37956         ($(objdir)config-name.h): New target.
37957
37958         * sunrpc/rpc_parse.h: Avoid nested comment.
37959
37960 2010-08-24  Richard Henderson  <rth@redhat.com>
37961             Ulrich Drepper  <drepper@redhat.com>
37962             H.J. Lu  <hongjiu.lu@intel.com>
37963
37964         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
37965         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
37966         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
37967         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
37968         _mm_alignr_epi8 with _mm_loadu_si128.
37969         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
37970         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
37971         (__m128i_shift_right): Removed.
37972         * sysdeps/i386/i686/multiarch/varshift.h: New file.
37973         * sysdeps/i386/i686/multiarch/varshift.S: New file.
37974         * sysdeps/x86_64/multiarch/varshift.h: New file.
37975         * sysdeps/x86_64/multiarch/varshift.S: New file.
37976
37977 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
37978
37979         * configure.in: Move assembler checks to before sysdep dir checking.
37980
37981 2010-08-20  Petr Baudis  <pasky@suse.cz>
37982
37983         * LICENSES: Sync the sunrpc license.
37984
37985 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
37986
37987         * sunrpc/auth_des.c: Update copyright notice once again.
37988         * sunrpc/auth_none.c: Likewise.
37989         * sunrpc/auth_unix.c: Likewise.
37990         * sunrpc/authdes_prot.c: Likewise.
37991         * sunrpc/authuxprot.c: Likewise.
37992         * sunrpc/bindrsvprt.c: Likewise.
37993         * sunrpc/clnt_gen.c: Likewise.
37994         * sunrpc/clnt_perr.c: Likewise.
37995         * sunrpc/clnt_raw.c: Likewise.
37996         * sunrpc/clnt_simp.c: Likewise.
37997         * sunrpc/clnt_tcp.c: Likewise.
37998         * sunrpc/clnt_udp.c: Likewise.
37999         * sunrpc/clnt_unix.c: Likewise.
38000         * sunrpc/des_crypt.c: Likewise.
38001         * sunrpc/des_soft.c: Likewise.
38002         * sunrpc/get_myaddr.c: Likewise.
38003         * sunrpc/getrpcport.c: Likewise.
38004         * sunrpc/key_call.c: Likewise.
38005         * sunrpc/key_prot.c: Likewise.
38006         * sunrpc/openchild.c: Likewise.
38007         * sunrpc/pm_getmaps.c: Likewise.
38008         * sunrpc/pm_getport.c: Likewise.
38009         * sunrpc/pmap_clnt.c: Likewise.
38010         * sunrpc/pmap_prot.c: Likewise.
38011         * sunrpc/pmap_prot2.c: Likewise.
38012         * sunrpc/pmap_rmt.c: Likewise.
38013         * sunrpc/rpc/auth.h: Likewise.
38014         * sunrpc/rpc/auth_unix.h: Likewise.
38015         * sunrpc/rpc/clnt.h: Likewise.
38016         * sunrpc/rpc/des_crypt.h: Likewise.
38017         * sunrpc/rpc/key_prot.h: Likewise.
38018         * sunrpc/rpc/netdb.h: Likewise.
38019         * sunrpc/rpc/pmap_clnt.h: Likewise.
38020         * sunrpc/rpc/pmap_prot.h: Likewise.
38021         * sunrpc/rpc/pmap_rmt.h: Likewise.
38022         * sunrpc/rpc/rpc.h: Likewise.
38023         * sunrpc/rpc/rpc_des.h: Likewise.
38024         * sunrpc/rpc/rpc_msg.h: Likewise.
38025         * sunrpc/rpc/svc.h: Likewise.
38026         * sunrpc/rpc/svc_auth.h: Likewise.
38027         * sunrpc/rpc/types.h: Likewise.
38028         * sunrpc/rpc/xdr.h: Likewise.
38029         * sunrpc/rpc_clntout.c: Likewise.
38030         * sunrpc/rpc_cmsg.c: Likewise.
38031         * sunrpc/rpc_common.c: Likewise.
38032         * sunrpc/rpc_cout.c: Likewise.
38033         * sunrpc/rpc_dtable.c: Likewise.
38034         * sunrpc/rpc_hout.c: Likewise.
38035         * sunrpc/rpc_main.c: Likewise.
38036         * sunrpc/rpc_parse.c: Likewise.
38037         * sunrpc/rpc_parse.h: Likewise.
38038         * sunrpc/rpc_prot.c: Likewise.
38039         * sunrpc/rpc_sample.c: Likewise.
38040         * sunrpc/rpc_scan.c: Likewise.
38041         * sunrpc/rpc_scan.h: Likewise.
38042         * sunrpc/rpc_svcout.c: Likewise.
38043         * sunrpc/rpc_tblout.c: Likewise.
38044         * sunrpc/rpc_util.c: Likewise.
38045         * sunrpc/rpc_util.h: Likewise.
38046         * sunrpc/rpcinfo.c: Likewise.
38047         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
38048         * sunrpc/rpcsvc/key_prot.x: Likewise.
38049         * sunrpc/rpcsvc/klm_prot.x: Likewise.
38050         * sunrpc/rpcsvc/mount.x: Likewise.
38051         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
38052         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
38053         * sunrpc/rpcsvc/rex.x: Likewise.
38054         * sunrpc/rpcsvc/rstat.x: Likewise.
38055         * sunrpc/rpcsvc/rusers.x: Likewise.
38056         * sunrpc/rpcsvc/sm_inter.x: Likewise.
38057         * sunrpc/rpcsvc/spray.x: Likewise.
38058         * sunrpc/rpcsvc/yppasswd.x: Likewise.
38059         * sunrpc/rtime.c: Likewise.
38060         * sunrpc/svc.c: Likewise.
38061         * sunrpc/svc_auth.c: Likewise.
38062         * sunrpc/svc_authux.c: Likewise.
38063         * sunrpc/svc_raw.c: Likewise.
38064         * sunrpc/svc_run.c: Likewise.
38065         * sunrpc/svc_simple.c: Likewise.
38066         * sunrpc/svc_tcp.c: Likewise.
38067         * sunrpc/svc_udp.c: Likewise.
38068         * sunrpc/svc_unix.c: Likewise.
38069         * sunrpc/svcauth_des.c: Likewise.
38070         * sunrpc/xcrypt.c: Likewise.
38071         * sunrpc/xdr.c: Likewise.
38072         * sunrpc/xdr_array.c: Likewise.
38073         * sunrpc/xdr_float.c: Likewise.
38074         * sunrpc/xdr_mem.c: Likewise.
38075         * sunrpc/xdr_rec.c: Likewise.
38076         * sunrpc/xdr_ref.c: Likewise.
38077         * sunrpc/xdr_sizeof.c: Likewise.
38078         * sunrpc/xdr_stdio.c: Likewise.
38079
38080         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
38081         handling.
38082
38083 2010-08-19  Andreas Schwab  <schwab@redhat.com>
38084
38085         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
38086
38087 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
38088
38089         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
38090         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
38091         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
38092         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
38093         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
38094         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
38095         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
38096         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
38097         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
38098         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
38099         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
38100         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
38101         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
38102         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
38103
38104 2010-07-26  Anton Blanchard  <anton@samba.org>
38105
38106         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
38107         * malloc/arena.c (heap_trim): Likewise.
38108
38109 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
38110
38111         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
38112         here.  Not...
38113         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
38114         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
38115
38116 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
38117
38118         * sysdeps/i386/elf/Makefile: New file.
38119
38120 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38121
38122         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
38123         from fanotify_init.
38124         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
38125         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38126
38127 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
38128
38129         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
38130         of strncasecmp_l.
38131         * sysdeps/multiarch/strcmp.S: Likewise.
38132
38133 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
38134
38135         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38136         strncase_l-nonascii.
38137         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38138         Add strncase_l-ssse3.
38139         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
38140         * sysdeps/x86_64/strcmp.S: Likewise.
38141         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
38142         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
38143         * sysdeps/x86_64/strncase.S: New file.
38144         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
38145         * sysdeps/x86_64/strncase_l.S: New file.
38146         * string/Makefile (strop-tests): Add strncasecmp.
38147         * string/test-strncasecmp.c: New file.
38148
38149         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
38150         warning.
38151
38152         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
38153         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
38154
38155 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38156
38157         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
38158
38159 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
38160
38161         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
38162         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
38163         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
38164
38165 2010-05-01  Alan Modra  <amodra@gmail.com>
38166
38167         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
38168         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
38169         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
38170         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
38171         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
38172         tidying.  Don't tail-call __sigjmp_save for static lib.
38173         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
38174         save location.
38175         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
38176         (CALL_MCOUNT): Add eh info, and nop after bl.
38177         (TAIL_CALL_SYSCALL_ERROR): New macro.
38178         (PSEUDO_RET): Use it.
38179         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
38180         Correct save location of integer regs and cr.
38181         (_dl_profile_resolve): Correct cr save location.  Delete nops
38182         after bl when SHARED.  Reduce cfi size a little by better
38183         placement of cfi directives.
38184         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
38185         make a stack frame.  Instead use parm save area as a temp.
38186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
38187         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
38188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
38189         Don't make a stack frame for parent, use parm save area.
38190         Increase child stack frame to 112 bytes.  Don't save unused reg,
38191         and adjust reg usage.  Set up cfi on error recovery and
38192         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
38193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
38194         (__makecontext): Add dummy nop after jump to exit.
38195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
38196         Use correct parm save area and cr save, reduce stack frame.
38197         Correct cfi for possible PSEUDO_RET frame setup.
38198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
38199         Branch to local label emitted by PSEUDO_RET rather than
38200         __syscall_error.
38201
38202 2010-08-12  Andreas Schwab  <schwab@redhat.com>
38203
38204         [BZ #11904]
38205         * locale/programs/locale.c (print_assignment): New function.
38206         (show_locale_vars): Use it.
38207
38208 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
38209
38210         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
38211         field.
38212         (struct statfs64): Likewise.
38213         (_STATFS_F_FLAGS): Define.
38214         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
38215         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38216         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
38217         (ST_VALID): Define locally.
38218         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
38219         __statvfs_getflags, use the provided value.
38220         * sysdeps/unix/sysv/linux/kernel-features.h: Define
38221         __ASSUME_STATFS_F_FLAGS.
38222
38223         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
38224
38225         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
38226         Add sys/fanotify.h.
38227         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
38228         fanotify_mask for GLIBC_2.13.
38229         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
38230         fanotify_init and fanotify_mark.
38231         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38232         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
38233
38234         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
38235         Add prlimit.
38236         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
38237         prlimit64 for GLIBC_2.13.
38238         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
38239         prlimit64.
38240         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
38241         syscall.
38242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
38243         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38244         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
38245         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
38246         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
38247         add prlimit alias.
38248         * sysdeps/unix/sysv/linux/prlimit.c: New file.
38249
38250         [BZ #11903]
38251         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
38252         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
38253
38254         * nss/Makefile: Add rules to build and run tst-nss-test1.
38255         * shlib-versions: Add entry for libnss_test1.
38256         * nss/nss_test1.c: New file.
38257         * nss/tst-nss-test1.c: New file.
38258
38259         * nss/nsswitch.c (__nss_database_custom): Define new variable.
38260         (__nss_configure_lookup): Set appropriate entry in
38261         __nss_configure_lookup to true.
38262         * nss/nsswitch.h: Define enum with indeces of databases in
38263         databases and __nss_database_custom arrays.  Declare
38264         __nss_database_custom.
38265         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
38266         to avoid using nscd when custom rules are installed.
38267         * nss/getXXbyYY_r.c: Likewise.
38268         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
38269
38270         * nss/nss_files/files-parse.c: Whitespace fixes.
38271
38272 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
38273
38274         [BZ #11883]
38275         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
38276         * posix/fnmatch_loop.c: Likewise.
38277
38278 2010-07-17  Andi Kleen  <ak@linux.intel.com>
38279
38280         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
38281         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
38282         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
38283         * Versions.def [GLIBC_2.13]: Add.
38284
38285 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
38286
38287         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38288         Also fail if tpwd after pwuid call is NULL.
38289
38290 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38291
38292         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
38293         when converting to ms.
38294
38295 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38296
38297         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
38298         EOPNOTSUPP errors with ENOTTY.
38299         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
38300         EOPNOTSUPP errors with ENOTTY.
38301
38302 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
38303
38304         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38305         Add strcasecmp_l-ssse3.
38306         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
38307         strcasecmp.
38308         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
38309         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
38310         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
38311
38312 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
38313
38314         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
38315
38316         * string/Makefile (strop-tests): Add strcasecmp.
38317         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38318         strcasecmp_l-nonascii.
38319         (gen-as-const-headers): Add locale-defines.sym.
38320         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
38321         * sysdeps/x86_64/strcasecmp.S: New file.
38322         * sysdeps/x86_64/strcasecmp_l.S: New file.
38323         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
38324         * sysdeps/x86_64/locale-defines.sym: New file.
38325         * string/test-strcasecmp.c: New file.
38326
38327         * string/test-strcasestr.c: Test both ends of the range of characters.
38328         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
38329
38330 2010-07-29  Roland McGrath  <roland@redhat.com>
38331
38332         [BZ #11856]
38333         * manual/locale.texi (Yes-or-No Questions): Fix example code.
38334
38335 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
38336
38337         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
38338         for ld.so.
38339
38340 2010-07-27  Andreas Schwab  <schwab@redhat.com>
38341
38342         * manual/memory.texi (Malloc Tunable Parameters): Document
38343         M_PERTURB.
38344
38345 2010-07-26  Roland McGrath  <roland@redhat.com>
38346
38347         [BZ #11840]
38348         * configure.in (-fgnu89-inline check): Set and substitute
38349         gnu89_inline, not libc_cv_gnu89_inline.
38350         * configure: Regenerated.
38351         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
38352
38353 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
38354
38355         * string/test-strnlen.c: New file.
38356         * string/Makefile (strop-tests): Add strnlen.
38357         * string/tester.c (test_strnlen): Add a few more test cases.
38358         * string/tst-strlen.c: Better error reporting.
38359
38360         * sysdeps/x86_64/strnlen.S: New file.
38361
38362 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
38363
38364         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
38365         lower-latency instructions.
38366
38367 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
38368
38369         * string/test-strcasestr.c: New file.
38370         * string/test-strstr.c: New file.
38371         * string/Makefile (strop-tests): Add strstr and strcasestr.
38372         * string/str-two-way.h: Don't undefine MAX.
38373         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
38374
38375 2010-07-21  Andreas Schwab  <schwab@redhat.com>
38376
38377         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38378         strcasestr-nonascii.
38379         (CFLAGS-strcasestr-nonascii.c): Define.
38380         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
38381         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
38382         Remove unused attribute.
38383
38384 2010-07-20  Roland McGrath  <roland@redhat.com>
38385
38386         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
38387         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
38388         ld.so.cache was broken.  With it, there is no way to disable dsocaps
38389         like LD_HWCAP_MASK can disable hwcaps.
38390
38391 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38392
38393         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
38394
38395 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
38396
38397         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
38398         call in strcasestr.
38399         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
38400         __strcasestr_sse42_nonascii.
38401         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
38402         strcasestr-nonascii.c.
38403         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
38404
38405 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
38406
38407         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
38408         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
38409         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
38410         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
38411
38412 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
38413
38414         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
38415         fcntl.
38416
38417 2010-07-06  Andreas Schwab  <schwab@redhat.com>
38418
38419         [BZ #11577]
38420         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
38421         dl_signal_cerror.
38422
38423 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
38424
38425         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
38426         _PC_PIPE_BUF using F_GETPIPE_SZ.
38427
38428 2010-07-05  Roland McGrath  <roland@redhat.com>
38429
38430         * manual/arith.texi (Rounding Functions): Fix rint description
38431         implicit in round description.
38432
38433 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
38434
38435         * elf/Makefile: Fix linking for a few tests to make recent linker
38436         happy.
38437
38438 2010-06-30  Andreas Schwab  <schwab@redhat.com>
38439
38440         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
38441         $(common-objpfx)libc_nonshared.a.
38442
38443 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
38444
38445         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
38446         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
38447         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38448         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38449         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
38450         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
38451         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38452         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
38454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
38455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
38456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
38458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
38460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
38461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
38462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
38463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
38465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
38467         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
38468         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
38469         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
38470         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
38471         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
38472         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
38473         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
38474         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
38475         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
38476         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
38477         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
38478         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
38479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
38480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
38481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
38482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
38483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
38484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
38485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
38486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
38487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
38488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
38489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
38490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
38491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
38492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
38493
38494 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
38495
38496         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
38497         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
38498         * string/memmove.c (memmove): Renamed to ...
38499         (MEMMOVE): ...this.  Default to memmove.
38500         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
38501         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
38502         (END_CHK): Define.
38503         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38504         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
38505         mempcpy-ssse3-back memmove-ssse3-back.
38506         * sysdeps/x86_64/multiarch/bcopy.S: New file .
38507         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
38508         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
38509         * sysdeps/x86_64/multiarch/memcpy.S: New file.
38510         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
38511         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
38512         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
38513         * sysdeps/x86_64/multiarch/memmove.c: New file.
38514         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
38515         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
38516         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
38517         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
38518         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
38519         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
38520         Define.
38521         (index_Fast_Copy_Backward): Define.
38522         (HAS_ARCH_FEATURE): Define.
38523         (HAS_FAST_REP_STRING): Define.
38524         (HAS_FAST_COPY_BACKWARD): Define.
38525
38526 2010-06-21  Andreas Schwab  <schwab@redhat.com>
38527
38528         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38529         Restore proper fallback handling.
38530
38531 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
38532
38533         [BZ #11701]
38534         * posix/group_member.c (__group_member): Correct checking loop.
38535
38536         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
38537         OOM in getpwuid_r correctly.  Return error number when the caller
38538         should return, otherwise -1.
38539         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
38540         call returning > 0 value.
38541         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
38542
38543 2010-06-07  Andreas Schwab  <schwab@redhat.com>
38544
38545         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
38546         libc_nonshared.a from targets in modules-names.
38547
38548 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
38549
38550         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
38551         requires it.
38552
38553 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
38554
38555         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
38556         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
38557         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
38558         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
38559
38560 2010-06-02  Andreas Schwab  <schwab@redhat.com>
38561
38562         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
38563
38564 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
38565
38566         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
38567         and F_GETPIPE_SZ.
38568         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
38569         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
38570         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
38571         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
38572         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
38573         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
38574
38575 2010-06-14  Roland McGrath  <roland@redhat.com>
38576
38577         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
38578
38579 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
38580
38581         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
38582         __REDIRECT followed by __THROW.
38583         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
38584         * posix/getopt.h (getopt): Likewise.
38585
38586 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38587
38588         * hurd/lookup-at.c (__file_name_lookup_at): Accept
38589         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
38590         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
38591         in AT_FLAGS.
38592         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
38593         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
38594
38595 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
38596
38597         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
38598
38599 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
38600
38601         [BZ #11640]
38602         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38603         Properly check family and model.
38604
38605 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
38606
38607         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
38608
38609 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
38610
38611         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
38612
38613 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
38614
38615         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
38616         symbol reference.
38617
38618 2010-05-19  Andreas Schwab  <schwab@redhat.com>
38619
38620         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
38621         symbol reference.
38622
38623 2010-05-21  Andreas Schwab  <schwab@redhat.com>
38624
38625         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
38626         and internal_recvmmsg.
38627         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
38628         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
38629         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
38630         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
38631
38632         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
38633         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
38634         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
38635
38636 2010-05-20  Andreas Schwab  <schwab@redhat.com>
38637
38638         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
38639
38640 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
38641
38642         POWER7 optimizations.
38643         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
38644         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
38645
38646 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
38647
38648         * version.h: Update for 2.13 development version.
38649
38650 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
38651
38652         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
38653         exceptions.  Return 0.
38654
38655 2010-05-07  Roland McGrath  <roland@redhat.com>
38656
38657         * elf/ldconfig.c (main): Add a const.
38658
38659 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
38660
38661         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
38662         (args_options): Add no-idn option.
38663         (ahosts_keys_int): Add idn_flags to ai_flags.
38664         (parse_option): Handle 'i' option to clear idn_flags.
38665
38666         * malloc/malloc.c (_int_free): Possible race in the most recently
38667         added check.  Only act on the data if no current modification
38668         happened.
38669
38670 See ChangeLog.17 for earlier changes.